configure revision 46845023
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-amdgpu 21.0.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu>. 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/AMDgpu 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-amdgpu' 593PACKAGE_TARNAME='xf86-video-amdgpu' 594PACKAGE_VERSION='21.0.0' 595PACKAGE_STRING='xf86-video-amdgpu 21.0.0' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu' 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 642GLAMOR_FALSE 643GLAMOR_TRUE 644LIBGLAMOR_EGL_LIBS 645LIBGLAMOR_EGL_CFLAGS 646LIBGLAMOR_LIBS 647LIBGLAMOR_CFLAGS 648LIBGL_LIBS 649LIBGL_CFLAGS 650LIBUDEV_FALSE 651LIBUDEV_TRUE 652LIBUDEV_LIBS 653LIBUDEV_CFLAGS 654configdir 655HAS_XORG_CONF_DIR_FALSE 656HAS_XORG_CONF_DIR_TRUE 657HAVE_XEXTPROTO_71_FALSE 658HAVE_XEXTPROTO_71_TRUE 659XEXT_LIBS 660XEXT_CFLAGS 661XORG_LIBS 662XORG_CFLAGS 663GBM_LIBS 664GBM_CFLAGS 665LIBDRM_AMDGPU_LIBS 666LIBDRM_AMDGPU_CFLAGS 667LIBDRM_LIBS 668LIBDRM_CFLAGS 669LT_SYS_LIBRARY_PATH 670OTOOL64 671OTOOL 672LIPO 673NMEDIT 674DSYMUTIL 675MANIFEST_TOOL 676RANLIB 677ac_ct_AR 678AR 679DLLTOOL 680OBJDUMP 681LN_S 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LD 686FGREP 687LIBTOOL 688MAN_SUBSTS 689XORG_MAN_PAGE 690ADMIN_MAN_DIR 691DRIVER_MAN_DIR 692MISC_MAN_DIR 693FILE_MAN_DIR 694LIB_MAN_DIR 695APP_MAN_DIR 696ADMIN_MAN_SUFFIX 697DRIVER_MAN_SUFFIX 698MISC_MAN_SUFFIX 699FILE_MAN_SUFFIX 700LIB_MAN_SUFFIX 701APP_MAN_SUFFIX 702SED 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711INSTALL_CMD 712PKG_CONFIG_LIBDIR 713PKG_CONFIG_PATH 714PKG_CONFIG 715CHANGELOG_CMD 716STRICT_CFLAGS 717CWARNFLAGS 718BASE_CFLAGS 719EGREP 720GREP 721CPP 722am__fastdepCC_FALSE 723am__fastdepCC_TRUE 724CCDEPMODE 725am__nodep 726AMDEPBACKSLASH 727AMDEP_FALSE 728AMDEP_TRUE 729am__include 730DEPDIR 731OBJEXT 732EXEEXT 733ac_ct_CC 734CPPFLAGS 735LDFLAGS 736CFLAGS 737CC 738AM_BACKSLASH 739AM_DEFAULT_VERBOSITY 740AM_DEFAULT_V 741AM_V 742am__untar 743am__tar 744AMTAR 745am__leading_dot 746SET_MAKE 747AWK 748mkdir_p 749MKDIR_P 750INSTALL_STRIP_PROGRAM 751STRIP 752install_sh 753MAKEINFO 754AUTOHEADER 755AUTOMAKE 756AUTOCONF 757ACLOCAL 758VERSION 759PACKAGE 760CYGPATH_W 761am__isrc 762INSTALL_DATA 763INSTALL_SCRIPT 764INSTALL_PROGRAM 765target_alias 766host_alias 767build_alias 768LIBS 769ECHO_T 770ECHO_N 771ECHO_C 772DEFS 773mandir 774localedir 775libdir 776psdir 777pdfdir 778dvidir 779htmldir 780infodir 781docdir 782oldincludedir 783includedir 784localstatedir 785sharedstatedir 786sysconfdir 787datadir 788datarootdir 789libexecdir 790sbindir 791bindir 792program_transform_name 793prefix 794exec_prefix 795PACKAGE_URL 796PACKAGE_BUGREPORT 797PACKAGE_STRING 798PACKAGE_VERSION 799PACKAGE_TARNAME 800PACKAGE_NAME 801PATH_SEPARATOR 802SHELL 803am__quote' 804ac_subst_files='' 805ac_user_opts=' 806enable_option_checking 807enable_silent_rules 808enable_largefile 809enable_dependency_tracking 810enable_selective_werror 811enable_strict_compilation 812enable_static 813enable_shared 814with_pic 815enable_fast_install 816with_aix_soname 817with_gnu_ld 818with_sysroot 819enable_libtool_lock 820with_xorg_module_dir 821with_xorg_conf_dir 822enable_udev 823enable_glamor 824' 825 ac_precious_vars='build_alias 826host_alias 827target_alias 828CC 829CFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833CPP 834PKG_CONFIG 835PKG_CONFIG_PATH 836PKG_CONFIG_LIBDIR 837LT_SYS_LIBRARY_PATH 838LIBDRM_CFLAGS 839LIBDRM_LIBS 840LIBDRM_AMDGPU_CFLAGS 841LIBDRM_AMDGPU_LIBS 842GBM_CFLAGS 843GBM_LIBS 844XORG_CFLAGS 845XORG_LIBS 846XEXT_CFLAGS 847XEXT_LIBS 848LIBUDEV_CFLAGS 849LIBUDEV_LIBS 850LIBGL_CFLAGS 851LIBGL_LIBS 852LIBGLAMOR_CFLAGS 853LIBGLAMOR_LIBS 854LIBGLAMOR_EGL_CFLAGS 855LIBGLAMOR_EGL_LIBS' 856 857 858# Initialize some variables set by options. 859ac_init_help= 860ac_init_version=false 861ac_unrecognized_opts= 862ac_unrecognized_sep= 863# The variables have the same names as the options, with 864# dashes changed to underlines. 865cache_file=/dev/null 866exec_prefix=NONE 867no_create= 868no_recursion= 869prefix=NONE 870program_prefix=NONE 871program_suffix=NONE 872program_transform_name=s,x,x, 873silent= 874site= 875srcdir= 876verbose= 877x_includes=NONE 878x_libraries=NONE 879 880# Installation directory options. 881# These are left unexpanded so users can "make install exec_prefix=/foo" 882# and all the variables that are supposed to be based on exec_prefix 883# by default will actually change. 884# Use braces instead of parens because sh, perl, etc. also accept them. 885# (The list follows the same order as the GNU Coding Standards.) 886bindir='${exec_prefix}/bin' 887sbindir='${exec_prefix}/sbin' 888libexecdir='${exec_prefix}/libexec' 889datarootdir='${prefix}/share' 890datadir='${datarootdir}' 891sysconfdir='${prefix}/etc' 892sharedstatedir='${prefix}/com' 893localstatedir='${prefix}/var' 894includedir='${prefix}/include' 895oldincludedir='/usr/include' 896docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 897infodir='${datarootdir}/info' 898htmldir='${docdir}' 899dvidir='${docdir}' 900pdfdir='${docdir}' 901psdir='${docdir}' 902libdir='${exec_prefix}/lib' 903localedir='${datarootdir}/locale' 904mandir='${datarootdir}/man' 905 906ac_prev= 907ac_dashdash= 908for ac_option 909do 910 # If the previous option needs an argument, assign it. 911 if test -n "$ac_prev"; then 912 eval $ac_prev=\$ac_option 913 ac_prev= 914 continue 915 fi 916 917 case $ac_option in 918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 919 *=) ac_optarg= ;; 920 *) ac_optarg=yes ;; 921 esac 922 923 # Accept the important Cygnus configure options, so we can diagnose typos. 924 925 case $ac_dashdash$ac_option in 926 --) 927 ac_dashdash=yes ;; 928 929 -bindir | --bindir | --bindi | --bind | --bin | --bi) 930 ac_prev=bindir ;; 931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 932 bindir=$ac_optarg ;; 933 934 -build | --build | --buil | --bui | --bu) 935 ac_prev=build_alias ;; 936 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 937 build_alias=$ac_optarg ;; 938 939 -cache-file | --cache-file | --cache-fil | --cache-fi \ 940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 941 ac_prev=cache_file ;; 942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 944 cache_file=$ac_optarg ;; 945 946 --config-cache | -C) 947 cache_file=config.cache ;; 948 949 -datadir | --datadir | --datadi | --datad) 950 ac_prev=datadir ;; 951 -datadir=* | --datadir=* | --datadi=* | --datad=*) 952 datadir=$ac_optarg ;; 953 954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 955 | --dataroo | --dataro | --datar) 956 ac_prev=datarootdir ;; 957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 959 datarootdir=$ac_optarg ;; 960 961 -disable-* | --disable-*) 962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 963 # Reject names that are not valid shell variable names. 964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 as_fn_error $? "invalid feature name: $ac_useropt" 966 ac_useropt_orig=$ac_useropt 967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 968 case $ac_user_opts in 969 *" 970"enable_$ac_useropt" 971"*) ;; 972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 973 ac_unrecognized_sep=', ';; 974 esac 975 eval enable_$ac_useropt=no ;; 976 977 -docdir | --docdir | --docdi | --doc | --do) 978 ac_prev=docdir ;; 979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 980 docdir=$ac_optarg ;; 981 982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 983 ac_prev=dvidir ;; 984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 985 dvidir=$ac_optarg ;; 986 987 -enable-* | --enable-*) 988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 989 # Reject names that are not valid shell variable names. 990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 991 as_fn_error $? "invalid feature name: $ac_useropt" 992 ac_useropt_orig=$ac_useropt 993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 994 case $ac_user_opts in 995 *" 996"enable_$ac_useropt" 997"*) ;; 998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 999 ac_unrecognized_sep=', ';; 1000 esac 1001 eval enable_$ac_useropt=\$ac_optarg ;; 1002 1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1005 | --exec | --exe | --ex) 1006 ac_prev=exec_prefix ;; 1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1009 | --exec=* | --exe=* | --ex=*) 1010 exec_prefix=$ac_optarg ;; 1011 1012 -gas | --gas | --ga | --g) 1013 # Obsolete; use --with-gas. 1014 with_gas=yes ;; 1015 1016 -help | --help | --hel | --he | -h) 1017 ac_init_help=long ;; 1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1019 ac_init_help=recursive ;; 1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1021 ac_init_help=short ;; 1022 1023 -host | --host | --hos | --ho) 1024 ac_prev=host_alias ;; 1025 -host=* | --host=* | --hos=* | --ho=*) 1026 host_alias=$ac_optarg ;; 1027 1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1029 ac_prev=htmldir ;; 1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1031 | --ht=*) 1032 htmldir=$ac_optarg ;; 1033 1034 -includedir | --includedir | --includedi | --included | --include \ 1035 | --includ | --inclu | --incl | --inc) 1036 ac_prev=includedir ;; 1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1038 | --includ=* | --inclu=* | --incl=* | --inc=*) 1039 includedir=$ac_optarg ;; 1040 1041 -infodir | --infodir | --infodi | --infod | --info | --inf) 1042 ac_prev=infodir ;; 1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1044 infodir=$ac_optarg ;; 1045 1046 -libdir | --libdir | --libdi | --libd) 1047 ac_prev=libdir ;; 1048 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1049 libdir=$ac_optarg ;; 1050 1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1052 | --libexe | --libex | --libe) 1053 ac_prev=libexecdir ;; 1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1055 | --libexe=* | --libex=* | --libe=*) 1056 libexecdir=$ac_optarg ;; 1057 1058 -localedir | --localedir | --localedi | --localed | --locale) 1059 ac_prev=localedir ;; 1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1061 localedir=$ac_optarg ;; 1062 1063 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1064 | --localstate | --localstat | --localsta | --localst | --locals) 1065 ac_prev=localstatedir ;; 1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1068 localstatedir=$ac_optarg ;; 1069 1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1071 ac_prev=mandir ;; 1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1073 mandir=$ac_optarg ;; 1074 1075 -nfp | --nfp | --nf) 1076 # Obsolete; use --without-fp. 1077 with_fp=no ;; 1078 1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1080 | --no-cr | --no-c | -n) 1081 no_create=yes ;; 1082 1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1085 no_recursion=yes ;; 1086 1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1089 | --oldin | --oldi | --old | --ol | --o) 1090 ac_prev=oldincludedir ;; 1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1094 oldincludedir=$ac_optarg ;; 1095 1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1097 ac_prev=prefix ;; 1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1099 prefix=$ac_optarg ;; 1100 1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1102 | --program-pre | --program-pr | --program-p) 1103 ac_prev=program_prefix ;; 1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1106 program_prefix=$ac_optarg ;; 1107 1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1109 | --program-suf | --program-su | --program-s) 1110 ac_prev=program_suffix ;; 1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1113 program_suffix=$ac_optarg ;; 1114 1115 -program-transform-name | --program-transform-name \ 1116 | --program-transform-nam | --program-transform-na \ 1117 | --program-transform-n | --program-transform- \ 1118 | --program-transform | --program-transfor \ 1119 | --program-transfo | --program-transf \ 1120 | --program-trans | --program-tran \ 1121 | --progr-tra | --program-tr | --program-t) 1122 ac_prev=program_transform_name ;; 1123 -program-transform-name=* | --program-transform-name=* \ 1124 | --program-transform-nam=* | --program-transform-na=* \ 1125 | --program-transform-n=* | --program-transform-=* \ 1126 | --program-transform=* | --program-transfor=* \ 1127 | --program-transfo=* | --program-transf=* \ 1128 | --program-trans=* | --program-tran=* \ 1129 | --progr-tra=* | --program-tr=* | --program-t=*) 1130 program_transform_name=$ac_optarg ;; 1131 1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1133 ac_prev=pdfdir ;; 1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1135 pdfdir=$ac_optarg ;; 1136 1137 -psdir | --psdir | --psdi | --psd | --ps) 1138 ac_prev=psdir ;; 1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1140 psdir=$ac_optarg ;; 1141 1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1143 | -silent | --silent | --silen | --sile | --sil) 1144 silent=yes ;; 1145 1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1147 ac_prev=sbindir ;; 1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1149 | --sbi=* | --sb=*) 1150 sbindir=$ac_optarg ;; 1151 1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1154 | --sharedst | --shareds | --shared | --share | --shar \ 1155 | --sha | --sh) 1156 ac_prev=sharedstatedir ;; 1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1160 | --sha=* | --sh=*) 1161 sharedstatedir=$ac_optarg ;; 1162 1163 -site | --site | --sit) 1164 ac_prev=site ;; 1165 -site=* | --site=* | --sit=*) 1166 site=$ac_optarg ;; 1167 1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1169 ac_prev=srcdir ;; 1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1171 srcdir=$ac_optarg ;; 1172 1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1174 | --syscon | --sysco | --sysc | --sys | --sy) 1175 ac_prev=sysconfdir ;; 1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1178 sysconfdir=$ac_optarg ;; 1179 1180 -target | --target | --targe | --targ | --tar | --ta | --t) 1181 ac_prev=target_alias ;; 1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1183 target_alias=$ac_optarg ;; 1184 1185 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1186 verbose=yes ;; 1187 1188 -version | --version | --versio | --versi | --vers | -V) 1189 ac_init_version=: ;; 1190 1191 -with-* | --with-*) 1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1193 # Reject names that are not valid shell variable names. 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 as_fn_error $? "invalid package name: $ac_useropt" 1196 ac_useropt_orig=$ac_useropt 1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1198 case $ac_user_opts in 1199 *" 1200"with_$ac_useropt" 1201"*) ;; 1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1203 ac_unrecognized_sep=', ';; 1204 esac 1205 eval with_$ac_useropt=\$ac_optarg ;; 1206 1207 -without-* | --without-*) 1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1209 # Reject names that are not valid shell variable names. 1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1211 as_fn_error $? "invalid package name: $ac_useropt" 1212 ac_useropt_orig=$ac_useropt 1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1214 case $ac_user_opts in 1215 *" 1216"with_$ac_useropt" 1217"*) ;; 1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1219 ac_unrecognized_sep=', ';; 1220 esac 1221 eval with_$ac_useropt=no ;; 1222 1223 --x) 1224 # Obsolete; use --with-x. 1225 with_x=yes ;; 1226 1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1228 | --x-incl | --x-inc | --x-in | --x-i) 1229 ac_prev=x_includes ;; 1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1232 x_includes=$ac_optarg ;; 1233 1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1236 ac_prev=x_libraries ;; 1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1239 x_libraries=$ac_optarg ;; 1240 1241 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1242Try \`$0 --help' for more information" 1243 ;; 1244 1245 *=*) 1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1247 # Reject names that are not valid shell variable names. 1248 case $ac_envvar in #( 1249 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1251 esac 1252 eval $ac_envvar=\$ac_optarg 1253 export $ac_envvar ;; 1254 1255 *) 1256 # FIXME: should be removed in autoconf 3.0. 1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1261 ;; 1262 1263 esac 1264done 1265 1266if test -n "$ac_prev"; then 1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1268 as_fn_error $? "missing argument to $ac_option" 1269fi 1270 1271if test -n "$ac_unrecognized_opts"; then 1272 case $enable_option_checking in 1273 no) ;; 1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1276 esac 1277fi 1278 1279# Check all directory arguments for consistency. 1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1281 datadir sysconfdir sharedstatedir localstatedir includedir \ 1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1283 libdir localedir mandir 1284do 1285 eval ac_val=\$$ac_var 1286 # Remove trailing slashes. 1287 case $ac_val in 1288 */ ) 1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1290 eval $ac_var=\$ac_val;; 1291 esac 1292 # Be sure to have absolute directory names. 1293 case $ac_val in 1294 [\\/$]* | ?:[\\/]* ) continue;; 1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1296 esac 1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1298done 1299 1300# There might be people who depend on the old broken behavior: `$host' 1301# used to hold the argument of --host etc. 1302# FIXME: To remove some day. 1303build=$build_alias 1304host=$host_alias 1305target=$target_alias 1306 1307# FIXME: To remove some day. 1308if test "x$host_alias" != x; then 1309 if test "x$build_alias" = x; then 1310 cross_compiling=maybe 1311 elif test "x$build_alias" != "x$host_alias"; then 1312 cross_compiling=yes 1313 fi 1314fi 1315 1316ac_tool_prefix= 1317test -n "$host_alias" && ac_tool_prefix=$host_alias- 1318 1319test "$silent" = yes && exec 6>/dev/null 1320 1321 1322ac_pwd=`pwd` && test -n "$ac_pwd" && 1323ac_ls_di=`ls -di .` && 1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1325 as_fn_error $? "working directory cannot be determined" 1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1327 as_fn_error $? "pwd does not report name of working directory" 1328 1329 1330# Find the source files, if location was not specified. 1331if test -z "$srcdir"; then 1332 ac_srcdir_defaulted=yes 1333 # Try the directory containing this script, then the parent directory. 1334 ac_confdir=`$as_dirname -- "$as_myself" || 1335$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1336 X"$as_myself" : 'X\(//\)[^/]' \| \ 1337 X"$as_myself" : 'X\(//\)$' \| \ 1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1339$as_echo X"$as_myself" | 1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\/\)[^/].*/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\).*/{ 1353 s//\1/ 1354 q 1355 } 1356 s/.*/./; q'` 1357 srcdir=$ac_confdir 1358 if test ! -r "$srcdir/$ac_unique_file"; then 1359 srcdir=.. 1360 fi 1361else 1362 ac_srcdir_defaulted=no 1363fi 1364if test ! -r "$srcdir/$ac_unique_file"; then 1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1367fi 1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1369ac_abs_confdir=`( 1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1371 pwd)` 1372# When building in place, set srcdir=. 1373if test "$ac_abs_confdir" = "$ac_pwd"; then 1374 srcdir=. 1375fi 1376# Remove unnecessary trailing slashes from srcdir. 1377# Double slashes in file names in object file debugging info 1378# mess up M-x gdb in Emacs. 1379case $srcdir in 1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1381esac 1382for ac_var in $ac_precious_vars; do 1383 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_env_${ac_var}_value=\$${ac_var} 1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1386 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1387done 1388 1389# 1390# Report the --help message. 1391# 1392if test "$ac_init_help" = "long"; then 1393 # Omit some internal or obsolete options to make the list less imposing. 1394 # This message is too long to be a string in the A/UX 3.1 sh. 1395 cat <<_ACEOF 1396\`configure' configures xf86-video-amdgpu 21.0.0 to adapt to many kinds of systems. 1397 1398Usage: $0 [OPTION]... [VAR=VALUE]... 1399 1400To assign environment variables (e.g., CC, CFLAGS...), specify them as 1401VAR=VALUE. See below for descriptions of some of the useful variables. 1402 1403Defaults for the options are specified in brackets. 1404 1405Configuration: 1406 -h, --help display this help and exit 1407 --help=short display options specific to this package 1408 --help=recursive display the short help of all the included packages 1409 -V, --version display version information and exit 1410 -q, --quiet, --silent do not print \`checking ...' messages 1411 --cache-file=FILE cache test results in FILE [disabled] 1412 -C, --config-cache alias for \`--cache-file=config.cache' 1413 -n, --no-create do not create output files 1414 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1415 1416Installation directories: 1417 --prefix=PREFIX install architecture-independent files in PREFIX 1418 [$ac_default_prefix] 1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1420 [PREFIX] 1421 1422By default, \`make install' will install all the files in 1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1424an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1425for instance \`--prefix=\$HOME'. 1426 1427For better control, use the options below. 1428 1429Fine tuning of the installation directories: 1430 --bindir=DIR user executables [EPREFIX/bin] 1431 --sbindir=DIR system admin executables [EPREFIX/sbin] 1432 --libexecdir=DIR program executables [EPREFIX/libexec] 1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1436 --libdir=DIR object code libraries [EPREFIX/lib] 1437 --includedir=DIR C header files [PREFIX/include] 1438 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1441 --infodir=DIR info documentation [DATAROOTDIR/info] 1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1443 --mandir=DIR man documentation [DATAROOTDIR/man] 1444 --docdir=DIR documentation root 1445 [DATAROOTDIR/doc/xf86-video-amdgpu] 1446 --htmldir=DIR html documentation [DOCDIR] 1447 --dvidir=DIR dvi documentation [DOCDIR] 1448 --pdfdir=DIR pdf documentation [DOCDIR] 1449 --psdir=DIR ps documentation [DOCDIR] 1450_ACEOF 1451 1452 cat <<\_ACEOF 1453 1454Program names: 1455 --program-prefix=PREFIX prepend PREFIX to installed program names 1456 --program-suffix=SUFFIX append SUFFIX to installed program names 1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1458 1459System types: 1460 --build=BUILD configure for building on BUILD [guessed] 1461 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1462_ACEOF 1463fi 1464 1465if test -n "$ac_init_help"; then 1466 case $ac_init_help in 1467 short | recursive ) echo "Configuration of xf86-video-amdgpu 21.0.0:";; 1468 esac 1469 cat <<\_ACEOF 1470 1471Optional Features: 1472 --disable-option-checking ignore unrecognized --enable/--with options 1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1475 --enable-silent-rules less verbose build output (undo: "make V=1") 1476 --disable-silent-rules verbose build output (undo: "make V=0") 1477 --disable-largefile omit support for large files 1478 --enable-dependency-tracking 1479 do not reject slow dependency extractors 1480 --disable-dependency-tracking 1481 speeds up one-time build 1482 --disable-selective-werror 1483 Turn off selective compiler errors. (default: 1484 enabled) 1485 --enable-strict-compilation 1486 Enable all warnings from compiler and make them 1487 errors (default: disabled) 1488 --enable-static[=PKGS] build static libraries [default=no] 1489 --enable-shared[=PKGS] build shared libraries [default=yes] 1490 --enable-fast-install[=PKGS] 1491 optimize for fast installation [default=yes] 1492 --disable-libtool-lock avoid locking (might break parallel builds) 1493 --disable-udev Disable libudev support [default=auto] 1494 --disable-glamor Disable glamor, a new GL-based acceleration 1495 [default=enabled] 1496 1497Optional Packages: 1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1501 both] 1502 --with-aix-soname=aix|svr4|both 1503 shared library versioning (aka "SONAME") variant to 1504 provide on AIX, [default=aix]. 1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1507 compiler's sysroot if not specified). 1508 --with-xorg-module-dir=DIR 1509 Default xorg module directory 1510 [[default=$libdir/xorg/modules]] 1511 --with-xorg-conf-dir=DIR 1512 Default xorg.conf.d directory 1513 [[default=${prefix}/share/X11/xorg.conf.d]] 1514 1515Some influential environment variables: 1516 CC C compiler command 1517 CFLAGS C compiler flags 1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1519 nonstandard directory <lib dir> 1520 LIBS libraries to pass to the linker, e.g. -l<library> 1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1522 you have headers in a nonstandard directory <include dir> 1523 CPP C preprocessor 1524 PKG_CONFIG path to pkg-config utility 1525 PKG_CONFIG_PATH 1526 directories to add to pkg-config's search path 1527 PKG_CONFIG_LIBDIR 1528 path overriding pkg-config's built-in search path 1529 LT_SYS_LIBRARY_PATH 1530 User-defined run-time library search path. 1531 LIBDRM_CFLAGS 1532 C compiler flags for LIBDRM, overriding pkg-config 1533 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1534 LIBDRM_AMDGPU_CFLAGS 1535 C compiler flags for LIBDRM_AMDGPU, overriding pkg-config 1536 LIBDRM_AMDGPU_LIBS 1537 linker flags for LIBDRM_AMDGPU, overriding pkg-config 1538 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 1539 GBM_LIBS linker flags for GBM, overriding pkg-config 1540 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1541 XORG_LIBS linker flags for XORG, overriding pkg-config 1542 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1543 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1544 LIBUDEV_CFLAGS 1545 C compiler flags for LIBUDEV, overriding pkg-config 1546 LIBUDEV_LIBS 1547 linker flags for LIBUDEV, overriding pkg-config 1548 LIBGL_CFLAGS 1549 C compiler flags for LIBGL, overriding pkg-config 1550 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config 1551 LIBGLAMOR_CFLAGS 1552 C compiler flags for LIBGLAMOR, overriding pkg-config 1553 LIBGLAMOR_LIBS 1554 linker flags for LIBGLAMOR, overriding pkg-config 1555 LIBGLAMOR_EGL_CFLAGS 1556 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config 1557 LIBGLAMOR_EGL_LIBS 1558 linker flags for LIBGLAMOR_EGL, overriding pkg-config 1559 1560Use these variables to override the choices made by `configure' or to help 1561it to find libraries and programs with nonstandard names/locations. 1562 1563Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu>. 1564_ACEOF 1565ac_status=$? 1566fi 1567 1568if test "$ac_init_help" = "recursive"; then 1569 # If there are subdirs, report their specific --help. 1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1571 test -d "$ac_dir" || 1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1573 continue 1574 ac_builddir=. 1575 1576case "$ac_dir" in 1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1578*) 1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1580 # A ".." for each directory in $ac_dir_suffix. 1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1582 case $ac_top_builddir_sub in 1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1585 esac ;; 1586esac 1587ac_abs_top_builddir=$ac_pwd 1588ac_abs_builddir=$ac_pwd$ac_dir_suffix 1589# for backward compatibility: 1590ac_top_builddir=$ac_top_build_prefix 1591 1592case $srcdir in 1593 .) # We are building in place. 1594 ac_srcdir=. 1595 ac_top_srcdir=$ac_top_builddir_sub 1596 ac_abs_top_srcdir=$ac_pwd ;; 1597 [\\/]* | ?:[\\/]* ) # Absolute name. 1598 ac_srcdir=$srcdir$ac_dir_suffix; 1599 ac_top_srcdir=$srcdir 1600 ac_abs_top_srcdir=$srcdir ;; 1601 *) # Relative name. 1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1603 ac_top_srcdir=$ac_top_build_prefix$srcdir 1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1605esac 1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1607 1608 cd "$ac_dir" || { ac_status=$?; continue; } 1609 # Check for guested configure. 1610 if test -f "$ac_srcdir/configure.gnu"; then 1611 echo && 1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1613 elif test -f "$ac_srcdir/configure"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure" --help=recursive 1616 else 1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1618 fi || ac_status=$? 1619 cd "$ac_pwd" || { ac_status=$?; break; } 1620 done 1621fi 1622 1623test -n "$ac_init_help" && exit $ac_status 1624if $ac_init_version; then 1625 cat <<\_ACEOF 1626xf86-video-amdgpu configure 21.0.0 1627generated by GNU Autoconf 2.69 1628 1629Copyright (C) 2012 Free Software Foundation, Inc. 1630This configure script is free software; the Free Software Foundation 1631gives unlimited permission to copy, distribute and modify it. 1632_ACEOF 1633 exit 1634fi 1635 1636## ------------------------ ## 1637## Autoconf initialization. ## 1638## ------------------------ ## 1639 1640# ac_fn_c_try_compile LINENO 1641# -------------------------- 1642# Try to compile conftest.$ac_ext, and return whether this succeeded. 1643ac_fn_c_try_compile () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 rm -f conftest.$ac_objext 1647 if { { ac_try="$ac_compile" 1648case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653$as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_compile") 2>conftest.err 1655 ac_status=$? 1656 if test -s conftest.err; then 1657 grep -v '^ *+' conftest.err >conftest.er1 1658 cat conftest.er1 >&5 1659 mv -f conftest.er1 conftest.err 1660 fi 1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; } && { 1663 test -z "$ac_c_werror_flag" || 1664 test ! -s conftest.err 1665 } && test -s conftest.$ac_objext; then : 1666 ac_retval=0 1667else 1668 $as_echo "$as_me: failed program was:" >&5 1669sed 's/^/| /' conftest.$ac_ext >&5 1670 1671 ac_retval=1 1672fi 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674 as_fn_set_status $ac_retval 1675 1676} # ac_fn_c_try_compile 1677 1678# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1679# --------------------------------------------- 1680# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1681# accordingly. 1682ac_fn_c_check_decl () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 as_decl_name=`echo $2|sed 's/ *(.*//'` 1686 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1688$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1689if eval \${$3+:} false; then : 1690 $as_echo_n "(cached) " >&6 1691else 1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1693/* end confdefs.h. */ 1694$4 1695int 1696main () 1697{ 1698#ifndef $as_decl_name 1699#ifdef __cplusplus 1700 (void) $as_decl_use; 1701#else 1702 (void) $as_decl_name; 1703#endif 1704#endif 1705 1706 ; 1707 return 0; 1708} 1709_ACEOF 1710if ac_fn_c_try_compile "$LINENO"; then : 1711 eval "$3=yes" 1712else 1713 eval "$3=no" 1714fi 1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1716fi 1717eval ac_res=\$$3 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1719$as_echo "$ac_res" >&6; } 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 1722} # ac_fn_c_check_decl 1723 1724# ac_fn_c_try_cpp LINENO 1725# ---------------------- 1726# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1727ac_fn_c_try_cpp () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 if { { ac_try="$ac_cpp conftest.$ac_ext" 1731case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1738 ac_status=$? 1739 if test -s conftest.err; then 1740 grep -v '^ *+' conftest.err >conftest.er1 1741 cat conftest.er1 >&5 1742 mv -f conftest.er1 conftest.err 1743 fi 1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1745 test $ac_status = 0; } > conftest.i && { 1746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1747 test ! -s conftest.err 1748 }; then : 1749 ac_retval=0 1750else 1751 $as_echo "$as_me: failed program was:" >&5 1752sed 's/^/| /' conftest.$ac_ext >&5 1753 1754 ac_retval=1 1755fi 1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1757 as_fn_set_status $ac_retval 1758 1759} # ac_fn_c_try_cpp 1760 1761# ac_fn_c_try_run LINENO 1762# ---------------------- 1763# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1764# that executables *can* be run. 1765ac_fn_c_try_run () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 if { { ac_try="$ac_link" 1769case "(($ac_try" in 1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1771 *) ac_try_echo=$ac_try;; 1772esac 1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1774$as_echo "$ac_try_echo"; } >&5 1775 (eval "$ac_link") 2>&5 1776 ac_status=$? 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1779 { { case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784$as_echo "$ac_try_echo"; } >&5 1785 (eval "$ac_try") 2>&5 1786 ac_status=$? 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; }; }; then : 1789 ac_retval=0 1790else 1791 $as_echo "$as_me: program exited with status $ac_status" >&5 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=$ac_status 1796fi 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_run 1802 1803# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1804# ------------------------------------------------------- 1805# Tests whether HEADER exists and can be compiled using the include files in 1806# INCLUDES, setting the cache variable VAR accordingly. 1807ac_fn_c_check_header_compile () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1811$as_echo_n "checking for $2... " >&6; } 1812if eval \${$3+:} false; then : 1813 $as_echo_n "(cached) " >&6 1814else 1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817$4 1818#include <$2> 1819_ACEOF 1820if ac_fn_c_try_compile "$LINENO"; then : 1821 eval "$3=yes" 1822else 1823 eval "$3=no" 1824fi 1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1826fi 1827eval ac_res=\$$3 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1829$as_echo "$ac_res" >&6; } 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 1832} # ac_fn_c_check_header_compile 1833 1834# ac_fn_c_try_link LINENO 1835# ----------------------- 1836# Try to link conftest.$ac_ext, and return whether this succeeded. 1837ac_fn_c_try_link () 1838{ 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 rm -f conftest.$ac_objext conftest$ac_exeext 1841 if { { ac_try="$ac_link" 1842case "(($ac_try" in 1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1844 *) ac_try_echo=$ac_try;; 1845esac 1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1847$as_echo "$ac_try_echo"; } >&5 1848 (eval "$ac_link") 2>conftest.err 1849 ac_status=$? 1850 if test -s conftest.err; then 1851 grep -v '^ *+' conftest.err >conftest.er1 1852 cat conftest.er1 >&5 1853 mv -f conftest.er1 conftest.err 1854 fi 1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1856 test $ac_status = 0; } && { 1857 test -z "$ac_c_werror_flag" || 1858 test ! -s conftest.err 1859 } && test -s conftest$ac_exeext && { 1860 test "$cross_compiling" = yes || 1861 test -x conftest$ac_exeext 1862 }; then : 1863 ac_retval=0 1864else 1865 $as_echo "$as_me: failed program was:" >&5 1866sed 's/^/| /' conftest.$ac_ext >&5 1867 1868 ac_retval=1 1869fi 1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1872 # interfere with the next link command; also delete a directory that is 1873 # left behind by Apple's compiler. We do this before executing the actions. 1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 as_fn_set_status $ac_retval 1877 1878} # ac_fn_c_try_link 1879 1880# ac_fn_c_check_func LINENO FUNC VAR 1881# ---------------------------------- 1882# Tests whether FUNC exists, setting the cache variable VAR accordingly 1883ac_fn_c_check_func () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1887$as_echo_n "checking for $2... " >&6; } 1888if eval \${$3+:} false; then : 1889 $as_echo_n "(cached) " >&6 1890else 1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1892/* end confdefs.h. */ 1893/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1895#define $2 innocuous_$2 1896 1897/* System header to define __stub macros and hopefully few prototypes, 1898 which can conflict with char $2 (); below. 1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1900 <limits.h> exists even on freestanding compilers. */ 1901 1902#ifdef __STDC__ 1903# include <limits.h> 1904#else 1905# include <assert.h> 1906#endif 1907 1908#undef $2 1909 1910/* Override any GCC internal prototype to avoid an error. 1911 Use char because int might match the return type of a GCC 1912 builtin and then its argument prototype would still apply. */ 1913#ifdef __cplusplus 1914extern "C" 1915#endif 1916char $2 (); 1917/* The GNU C library defines this for functions which it implements 1918 to always fail with ENOSYS. Some functions are actually named 1919 something starting with __ and the normal name is an alias. */ 1920#if defined __stub_$2 || defined __stub___$2 1921choke me 1922#endif 1923 1924int 1925main () 1926{ 1927return $2 (); 1928 ; 1929 return 0; 1930} 1931_ACEOF 1932if ac_fn_c_try_link "$LINENO"; then : 1933 eval "$3=yes" 1934else 1935 eval "$3=no" 1936fi 1937rm -f core conftest.err conftest.$ac_objext \ 1938 conftest$ac_exeext conftest.$ac_ext 1939fi 1940eval ac_res=\$$3 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942$as_echo "$ac_res" >&6; } 1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1944 1945} # ac_fn_c_check_func 1946 1947# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1948# ------------------------------------------------------- 1949# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1950# the include files in INCLUDES and setting the cache variable VAR 1951# accordingly. 1952ac_fn_c_check_header_mongrel () 1953{ 1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1955 if eval \${$3+:} false; then : 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1957$as_echo_n "checking for $2... " >&6; } 1958if eval \${$3+:} false; then : 1959 $as_echo_n "(cached) " >&6 1960fi 1961eval ac_res=\$$3 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1963$as_echo "$ac_res" >&6; } 1964else 1965 # Is the header compilable? 1966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1967$as_echo_n "checking $2 usability... " >&6; } 1968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1969/* end confdefs.h. */ 1970$4 1971#include <$2> 1972_ACEOF 1973if ac_fn_c_try_compile "$LINENO"; then : 1974 ac_header_compiler=yes 1975else 1976 ac_header_compiler=no 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1980$as_echo "$ac_header_compiler" >&6; } 1981 1982# Is the header present? 1983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1984$as_echo_n "checking $2 presence... " >&6; } 1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987#include <$2> 1988_ACEOF 1989if ac_fn_c_try_cpp "$LINENO"; then : 1990 ac_header_preproc=yes 1991else 1992 ac_header_preproc=no 1993fi 1994rm -f conftest.err conftest.i conftest.$ac_ext 1995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1996$as_echo "$ac_header_preproc" >&6; } 1997 1998# So? What about this header? 1999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2000 yes:no: ) 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2002$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2004$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2005 ;; 2006 no:yes:* ) 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2008$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2010$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2012$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2014$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2016$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2017( $as_echo "## ---------------------------------------------------------------------------------------------- ## 2018## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu ## 2019## ---------------------------------------------------------------------------------------------- ##" 2020 ) | sed "s/^/$as_me: WARNING: /" >&2 2021 ;; 2022esac 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2024$as_echo_n "checking for $2... " >&6; } 2025if eval \${$3+:} false; then : 2026 $as_echo_n "(cached) " >&6 2027else 2028 eval "$3=\$ac_header_compiler" 2029fi 2030eval ac_res=\$$3 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2032$as_echo "$ac_res" >&6; } 2033fi 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2035 2036} # ac_fn_c_check_header_mongrel 2037cat >config.log <<_ACEOF 2038This file contains any messages produced by compilers while 2039running configure, to aid debugging if configure makes a mistake. 2040 2041It was created by xf86-video-amdgpu $as_me 21.0.0, which was 2042generated by GNU Autoconf 2.69. Invocation command line was 2043 2044 $ $0 $@ 2045 2046_ACEOF 2047exec 5>>config.log 2048{ 2049cat <<_ASUNAME 2050## --------- ## 2051## Platform. ## 2052## --------- ## 2053 2054hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2055uname -m = `(uname -m) 2>/dev/null || echo unknown` 2056uname -r = `(uname -r) 2>/dev/null || echo unknown` 2057uname -s = `(uname -s) 2>/dev/null || echo unknown` 2058uname -v = `(uname -v) 2>/dev/null || echo unknown` 2059 2060/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2061/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2062 2063/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2064/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2065/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2066/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2067/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2068/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2069/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2070 2071_ASUNAME 2072 2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2074for as_dir in $PATH 2075do 2076 IFS=$as_save_IFS 2077 test -z "$as_dir" && as_dir=. 2078 $as_echo "PATH: $as_dir" 2079 done 2080IFS=$as_save_IFS 2081 2082} >&5 2083 2084cat >&5 <<_ACEOF 2085 2086 2087## ----------- ## 2088## Core tests. ## 2089## ----------- ## 2090 2091_ACEOF 2092 2093 2094# Keep a trace of the command line. 2095# Strip out --no-create and --no-recursion so they do not pile up. 2096# Strip out --silent because we don't want to record it for future runs. 2097# Also quote any args containing shell meta-characters. 2098# Make two passes to allow for proper duplicate-argument suppression. 2099ac_configure_args= 2100ac_configure_args0= 2101ac_configure_args1= 2102ac_must_keep_next=false 2103for ac_pass in 1 2 2104do 2105 for ac_arg 2106 do 2107 case $ac_arg in 2108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2110 | -silent | --silent | --silen | --sile | --sil) 2111 continue ;; 2112 *\'*) 2113 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2114 esac 2115 case $ac_pass in 2116 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2117 2) 2118 as_fn_append ac_configure_args1 " '$ac_arg'" 2119 if test $ac_must_keep_next = true; then 2120 ac_must_keep_next=false # Got value, back to normal. 2121 else 2122 case $ac_arg in 2123 *=* | --config-cache | -C | -disable-* | --disable-* \ 2124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2126 | -with-* | --with-* | -without-* | --without-* | --x) 2127 case "$ac_configure_args0 " in 2128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2129 esac 2130 ;; 2131 -* ) ac_must_keep_next=true ;; 2132 esac 2133 fi 2134 as_fn_append ac_configure_args " '$ac_arg'" 2135 ;; 2136 esac 2137 done 2138done 2139{ ac_configure_args0=; unset ac_configure_args0;} 2140{ ac_configure_args1=; unset ac_configure_args1;} 2141 2142# When interrupted or exit'd, cleanup temporary files, and complete 2143# config.log. We remove comments because anyway the quotes in there 2144# would cause problems or look ugly. 2145# WARNING: Use '\'' to represent an apostrophe within the trap. 2146# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2147trap 'exit_status=$? 2148 # Save into config.log some information that might help in debugging. 2149 { 2150 echo 2151 2152 $as_echo "## ---------------- ## 2153## Cache variables. ## 2154## ---------------- ##" 2155 echo 2156 # The following way of writing the cache mishandles newlines in values, 2157( 2158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2159 eval ac_val=\$$ac_var 2160 case $ac_val in #( 2161 *${as_nl}*) 2162 case $ac_var in #( 2163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2164$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2165 esac 2166 case $ac_var in #( 2167 _ | IFS | as_nl) ;; #( 2168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2169 *) { eval $ac_var=; unset $ac_var;} ;; 2170 esac ;; 2171 esac 2172 done 2173 (set) 2>&1 | 2174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2175 *${as_nl}ac_space=\ *) 2176 sed -n \ 2177 "s/'\''/'\''\\\\'\'''\''/g; 2178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2179 ;; #( 2180 *) 2181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2182 ;; 2183 esac | 2184 sort 2185) 2186 echo 2187 2188 $as_echo "## ----------------- ## 2189## Output variables. ## 2190## ----------------- ##" 2191 echo 2192 for ac_var in $ac_subst_vars 2193 do 2194 eval ac_val=\$$ac_var 2195 case $ac_val in 2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2197 esac 2198 $as_echo "$ac_var='\''$ac_val'\''" 2199 done | sort 2200 echo 2201 2202 if test -n "$ac_subst_files"; then 2203 $as_echo "## ------------------- ## 2204## File substitutions. ## 2205## ------------------- ##" 2206 echo 2207 for ac_var in $ac_subst_files 2208 do 2209 eval ac_val=\$$ac_var 2210 case $ac_val in 2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2212 esac 2213 $as_echo "$ac_var='\''$ac_val'\''" 2214 done | sort 2215 echo 2216 fi 2217 2218 if test -s confdefs.h; then 2219 $as_echo "## ----------- ## 2220## confdefs.h. ## 2221## ----------- ##" 2222 echo 2223 cat confdefs.h 2224 echo 2225 fi 2226 test "$ac_signal" != 0 && 2227 $as_echo "$as_me: caught signal $ac_signal" 2228 $as_echo "$as_me: exit $exit_status" 2229 } >&5 2230 rm -f core *.core core.conftest.* && 2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2232 exit $exit_status 2233' 0 2234for ac_signal in 1 2 13 15; do 2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2236done 2237ac_signal=0 2238 2239# confdefs.h avoids OS command line length limits that DEFS can exceed. 2240rm -f -r conftest* confdefs.h 2241 2242$as_echo "/* confdefs.h */" > confdefs.h 2243 2244# Predefined preprocessor variables. 2245 2246cat >>confdefs.h <<_ACEOF 2247#define PACKAGE_NAME "$PACKAGE_NAME" 2248_ACEOF 2249 2250cat >>confdefs.h <<_ACEOF 2251#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2252_ACEOF 2253 2254cat >>confdefs.h <<_ACEOF 2255#define PACKAGE_VERSION "$PACKAGE_VERSION" 2256_ACEOF 2257 2258cat >>confdefs.h <<_ACEOF 2259#define PACKAGE_STRING "$PACKAGE_STRING" 2260_ACEOF 2261 2262cat >>confdefs.h <<_ACEOF 2263#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2264_ACEOF 2265 2266cat >>confdefs.h <<_ACEOF 2267#define PACKAGE_URL "$PACKAGE_URL" 2268_ACEOF 2269 2270 2271# Let the site file select an alternate cache file if it wants to. 2272# Prefer an explicitly selected file to automatically selected ones. 2273ac_site_file1=NONE 2274ac_site_file2=NONE 2275if test -n "$CONFIG_SITE"; then 2276 # We do not want a PATH search for config.site. 2277 case $CONFIG_SITE in #(( 2278 -*) ac_site_file1=./$CONFIG_SITE;; 2279 */*) ac_site_file1=$CONFIG_SITE;; 2280 *) ac_site_file1=./$CONFIG_SITE;; 2281 esac 2282elif test "x$prefix" != xNONE; then 2283 ac_site_file1=$prefix/share/config.site 2284 ac_site_file2=$prefix/etc/config.site 2285else 2286 ac_site_file1=$ac_default_prefix/share/config.site 2287 ac_site_file2=$ac_default_prefix/etc/config.site 2288fi 2289for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2290do 2291 test "x$ac_site_file" = xNONE && continue 2292 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2294$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2295 sed 's/^/| /' "$ac_site_file" >&5 2296 . "$ac_site_file" \ 2297 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2299as_fn_error $? "failed to load site script $ac_site_file 2300See \`config.log' for more details" "$LINENO" 5; } 2301 fi 2302done 2303 2304if test -r "$cache_file"; then 2305 # Some versions of bash will fail to source /dev/null (special files 2306 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2307 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2309$as_echo "$as_me: loading cache $cache_file" >&6;} 2310 case $cache_file in 2311 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2312 *) . "./$cache_file";; 2313 esac 2314 fi 2315else 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2317$as_echo "$as_me: creating cache $cache_file" >&6;} 2318 >$cache_file 2319fi 2320 2321# Check that the precious variables saved in the cache have kept the same 2322# value. 2323ac_cache_corrupted=false 2324for ac_var in $ac_precious_vars; do 2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2326 eval ac_new_set=\$ac_env_${ac_var}_set 2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2328 eval ac_new_val=\$ac_env_${ac_var}_value 2329 case $ac_old_set,$ac_new_set in 2330 set,) 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2332$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2333 ac_cache_corrupted=: ;; 2334 ,set) 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2336$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2337 ac_cache_corrupted=: ;; 2338 ,);; 2339 *) 2340 if test "x$ac_old_val" != "x$ac_new_val"; then 2341 # differences in whitespace do not lead to failure. 2342 ac_old_val_w=`echo x $ac_old_val` 2343 ac_new_val_w=`echo x $ac_new_val` 2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2346$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2347 ac_cache_corrupted=: 2348 else 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2350$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2351 eval $ac_var=\$ac_old_val 2352 fi 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2354$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2356$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2357 fi;; 2358 esac 2359 # Pass precious variables to config.status. 2360 if test "$ac_new_set" = set; then 2361 case $ac_new_val in 2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2363 *) ac_arg=$ac_var=$ac_new_val ;; 2364 esac 2365 case " $ac_configure_args " in 2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2368 esac 2369 fi 2370done 2371if $ac_cache_corrupted; then 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2375$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2377fi 2378## -------------------- ## 2379## Main body of script. ## 2380## -------------------- ## 2381 2382ac_ext=c 2383ac_cpp='$CPP $CPPFLAGS' 2384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2386ac_compiler_gnu=$ac_cv_c_compiler_gnu 2387 2388 2389 2390 2391ac_config_headers="$ac_config_headers config.h" 2392 2393 2394 2395ac_aux_dir= 2396for ac_dir in . "$srcdir"/.; do 2397 if test -f "$ac_dir/install-sh"; then 2398 ac_aux_dir=$ac_dir 2399 ac_install_sh="$ac_aux_dir/install-sh -c" 2400 break 2401 elif test -f "$ac_dir/install.sh"; then 2402 ac_aux_dir=$ac_dir 2403 ac_install_sh="$ac_aux_dir/install.sh -c" 2404 break 2405 elif test -f "$ac_dir/shtool"; then 2406 ac_aux_dir=$ac_dir 2407 ac_install_sh="$ac_aux_dir/shtool install -c" 2408 break 2409 fi 2410done 2411if test -z "$ac_aux_dir"; then 2412 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2413fi 2414 2415# These three variables are undocumented and unsupported, 2416# and are intended to be withdrawn in a future Autoconf release. 2417# They can cause serious problems if a builder's source tree is in a directory 2418# whose full name contains unusual characters. 2419ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2420ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2421ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2422 2423 2424 2425# Initialize Automake 2426am__api_version='1.16' 2427 2428# Find a good install program. We prefer a C program (faster), 2429# so one script is as good as another. But avoid the broken or 2430# incompatible versions: 2431# SysV /etc/install, /usr/sbin/install 2432# SunOS /usr/etc/install 2433# IRIX /sbin/install 2434# AIX /bin/install 2435# AmigaOS /C/install, which installs bootblocks on floppy discs 2436# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2437# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2438# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2439# OS/2's system install, which has a completely different semantic 2440# ./install, which can be erroneously created by make from ./install.sh. 2441# Reject install programs that cannot install multiple files. 2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2443$as_echo_n "checking for a BSD-compatible install... " >&6; } 2444if test -z "$INSTALL"; then 2445if ${ac_cv_path_install+:} false; then : 2446 $as_echo_n "(cached) " >&6 2447else 2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2449for as_dir in $PATH 2450do 2451 IFS=$as_save_IFS 2452 test -z "$as_dir" && as_dir=. 2453 # Account for people who put trailing slashes in PATH elements. 2454case $as_dir/ in #(( 2455 ./ | .// | /[cC]/* | \ 2456 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2457 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2458 /usr/ucb/* ) ;; 2459 *) 2460 # OSF1 and SCO ODT 3.0 have their own names for install. 2461 # Don't use installbsd from OSF since it installs stuff as root 2462 # by default. 2463 for ac_prog in ginstall scoinst install; do 2464 for ac_exec_ext in '' $ac_executable_extensions; do 2465 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2466 if test $ac_prog = install && 2467 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2468 # AIX install. It has an incompatible calling convention. 2469 : 2470 elif test $ac_prog = install && 2471 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2472 # program-specific install script used by HP pwplus--don't use. 2473 : 2474 else 2475 rm -rf conftest.one conftest.two conftest.dir 2476 echo one > conftest.one 2477 echo two > conftest.two 2478 mkdir conftest.dir 2479 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2480 test -s conftest.one && test -s conftest.two && 2481 test -s conftest.dir/conftest.one && 2482 test -s conftest.dir/conftest.two 2483 then 2484 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2485 break 3 2486 fi 2487 fi 2488 fi 2489 done 2490 done 2491 ;; 2492esac 2493 2494 done 2495IFS=$as_save_IFS 2496 2497rm -rf conftest.one conftest.two conftest.dir 2498 2499fi 2500 if test "${ac_cv_path_install+set}" = set; then 2501 INSTALL=$ac_cv_path_install 2502 else 2503 # As a last resort, use the slow shell script. Don't cache a 2504 # value for INSTALL within a source directory, because that will 2505 # break other packages using the cache if that directory is 2506 # removed, or if the value is a relative name. 2507 INSTALL=$ac_install_sh 2508 fi 2509fi 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2511$as_echo "$INSTALL" >&6; } 2512 2513# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2514# It thinks the first close brace ends the variable substitution. 2515test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2516 2517test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2518 2519test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2520 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2522$as_echo_n "checking whether build environment is sane... " >&6; } 2523# Reject unsafe characters in $srcdir or the absolute working directory 2524# name. Accept space and tab only in the latter. 2525am_lf=' 2526' 2527case `pwd` in 2528 *[\\\"\#\$\&\'\`$am_lf]*) 2529 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2530esac 2531case $srcdir in 2532 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2533 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2534esac 2535 2536# Do 'set' in a subshell so we don't clobber the current shell's 2537# arguments. Must try -L first in case configure is actually a 2538# symlink; some systems play weird games with the mod time of symlinks 2539# (eg FreeBSD returns the mod time of the symlink's containing 2540# directory). 2541if ( 2542 am_has_slept=no 2543 for am_try in 1 2; do 2544 echo "timestamp, slept: $am_has_slept" > conftest.file 2545 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2546 if test "$*" = "X"; then 2547 # -L didn't work. 2548 set X `ls -t "$srcdir/configure" conftest.file` 2549 fi 2550 if test "$*" != "X $srcdir/configure conftest.file" \ 2551 && test "$*" != "X conftest.file $srcdir/configure"; then 2552 2553 # If neither matched, then we have a broken ls. This can happen 2554 # if, for instance, CONFIG_SHELL is bash and it inherits a 2555 # broken ls alias from the environment. This has actually 2556 # happened. Such a system could not be considered "sane". 2557 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2558 alias in your environment" "$LINENO" 5 2559 fi 2560 if test "$2" = conftest.file || test $am_try -eq 2; then 2561 break 2562 fi 2563 # Just in case. 2564 sleep 1 2565 am_has_slept=yes 2566 done 2567 test "$2" = conftest.file 2568 ) 2569then 2570 # Ok. 2571 : 2572else 2573 as_fn_error $? "newly created file is older than distributed files! 2574Check your system clock" "$LINENO" 5 2575fi 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2577$as_echo "yes" >&6; } 2578# If we didn't sleep, we still need to ensure time stamps of config.status and 2579# generated files are strictly newer. 2580am_sleep_pid= 2581if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2582 ( sleep 1 ) & 2583 am_sleep_pid=$! 2584fi 2585 2586rm -f conftest.file 2587 2588test "$program_prefix" != NONE && 2589 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2590# Use a double $ so make ignores it. 2591test "$program_suffix" != NONE && 2592 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2593# Double any \ or $. 2594# By default was `s,x,x', remove it if useless. 2595ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2596program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2597 2598# Expand $ac_aux_dir to an absolute path. 2599am_aux_dir=`cd "$ac_aux_dir" && pwd` 2600 2601if test x"${MISSING+set}" != xset; then 2602 case $am_aux_dir in 2603 *\ * | *\ *) 2604 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2605 *) 2606 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2607 esac 2608fi 2609# Use eval to expand $SHELL 2610if eval "$MISSING --is-lightweight"; then 2611 am_missing_run="$MISSING " 2612else 2613 am_missing_run= 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2615$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2616fi 2617 2618if test x"${install_sh+set}" != xset; then 2619 case $am_aux_dir in 2620 *\ * | *\ *) 2621 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2622 *) 2623 install_sh="\${SHELL} $am_aux_dir/install-sh" 2624 esac 2625fi 2626 2627# Installed binaries are usually stripped using 'strip' when the user 2628# run "make install-strip". However 'strip' might not be the right 2629# tool to use in cross-compilation environments, therefore Automake 2630# will honor the 'STRIP' environment variable to overrule this program. 2631if test "$cross_compiling" != no; then 2632 if test -n "$ac_tool_prefix"; then 2633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2634set dummy ${ac_tool_prefix}strip; ac_word=$2 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2636$as_echo_n "checking for $ac_word... " >&6; } 2637if ${ac_cv_prog_STRIP+:} false; then : 2638 $as_echo_n "(cached) " >&6 2639else 2640 if test -n "$STRIP"; then 2641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2642else 2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2644for as_dir in $PATH 2645do 2646 IFS=$as_save_IFS 2647 test -z "$as_dir" && as_dir=. 2648 for ac_exec_ext in '' $ac_executable_extensions; do 2649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2650 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2652 break 2 2653 fi 2654done 2655 done 2656IFS=$as_save_IFS 2657 2658fi 2659fi 2660STRIP=$ac_cv_prog_STRIP 2661if test -n "$STRIP"; then 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2663$as_echo "$STRIP" >&6; } 2664else 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2666$as_echo "no" >&6; } 2667fi 2668 2669 2670fi 2671if test -z "$ac_cv_prog_STRIP"; then 2672 ac_ct_STRIP=$STRIP 2673 # Extract the first word of "strip", so it can be a program name with args. 2674set dummy strip; ac_word=$2 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2676$as_echo_n "checking for $ac_word... " >&6; } 2677if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 if test -n "$ac_ct_STRIP"; then 2681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2682else 2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2684for as_dir in $PATH 2685do 2686 IFS=$as_save_IFS 2687 test -z "$as_dir" && as_dir=. 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2690 ac_cv_prog_ac_ct_STRIP="strip" 2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2692 break 2 2693 fi 2694done 2695 done 2696IFS=$as_save_IFS 2697 2698fi 2699fi 2700ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2701if test -n "$ac_ct_STRIP"; then 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2703$as_echo "$ac_ct_STRIP" >&6; } 2704else 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2706$as_echo "no" >&6; } 2707fi 2708 2709 if test "x$ac_ct_STRIP" = x; then 2710 STRIP=":" 2711 else 2712 case $cross_compiling:$ac_tool_warned in 2713yes:) 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2716ac_tool_warned=yes ;; 2717esac 2718 STRIP=$ac_ct_STRIP 2719 fi 2720else 2721 STRIP="$ac_cv_prog_STRIP" 2722fi 2723 2724fi 2725INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2726 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2728$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2729if test -z "$MKDIR_P"; then 2730 if ${ac_cv_path_mkdir+:} false; then : 2731 $as_echo_n "(cached) " >&6 2732else 2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2734for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2735do 2736 IFS=$as_save_IFS 2737 test -z "$as_dir" && as_dir=. 2738 for ac_prog in mkdir gmkdir; do 2739 for ac_exec_ext in '' $ac_executable_extensions; do 2740 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2741 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2742 'mkdir (GNU coreutils) '* | \ 2743 'mkdir (coreutils) '* | \ 2744 'mkdir (fileutils) '4.1*) 2745 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2746 break 3;; 2747 esac 2748 done 2749 done 2750 done 2751IFS=$as_save_IFS 2752 2753fi 2754 2755 test -d ./--version && rmdir ./--version 2756 if test "${ac_cv_path_mkdir+set}" = set; then 2757 MKDIR_P="$ac_cv_path_mkdir -p" 2758 else 2759 # As a last resort, use the slow shell script. Don't cache a 2760 # value for MKDIR_P within a source directory, because that will 2761 # break other packages using the cache if that directory is 2762 # removed, or if the value is a relative name. 2763 MKDIR_P="$ac_install_sh -d" 2764 fi 2765fi 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2767$as_echo "$MKDIR_P" >&6; } 2768 2769for ac_prog in gawk mawk nawk awk 2770do 2771 # Extract the first word of "$ac_prog", so it can be a program name with args. 2772set dummy $ac_prog; ac_word=$2 2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2774$as_echo_n "checking for $ac_word... " >&6; } 2775if ${ac_cv_prog_AWK+:} false; then : 2776 $as_echo_n "(cached) " >&6 2777else 2778 if test -n "$AWK"; then 2779 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2780else 2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2782for as_dir in $PATH 2783do 2784 IFS=$as_save_IFS 2785 test -z "$as_dir" && as_dir=. 2786 for ac_exec_ext in '' $ac_executable_extensions; do 2787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2788 ac_cv_prog_AWK="$ac_prog" 2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2790 break 2 2791 fi 2792done 2793 done 2794IFS=$as_save_IFS 2795 2796fi 2797fi 2798AWK=$ac_cv_prog_AWK 2799if test -n "$AWK"; then 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2801$as_echo "$AWK" >&6; } 2802else 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2804$as_echo "no" >&6; } 2805fi 2806 2807 2808 test -n "$AWK" && break 2809done 2810 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2812$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2813set x ${MAKE-make} 2814ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2815if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2816 $as_echo_n "(cached) " >&6 2817else 2818 cat >conftest.make <<\_ACEOF 2819SHELL = /bin/sh 2820all: 2821 @echo '@@@%%%=$(MAKE)=@@@%%%' 2822_ACEOF 2823# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2824case `${MAKE-make} -f conftest.make 2>/dev/null` in 2825 *@@@%%%=?*=@@@%%%*) 2826 eval ac_cv_prog_make_${ac_make}_set=yes;; 2827 *) 2828 eval ac_cv_prog_make_${ac_make}_set=no;; 2829esac 2830rm -f conftest.make 2831fi 2832if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2834$as_echo "yes" >&6; } 2835 SET_MAKE= 2836else 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2838$as_echo "no" >&6; } 2839 SET_MAKE="MAKE=${MAKE-make}" 2840fi 2841 2842rm -rf .tst 2>/dev/null 2843mkdir .tst 2>/dev/null 2844if test -d .tst; then 2845 am__leading_dot=. 2846else 2847 am__leading_dot=_ 2848fi 2849rmdir .tst 2>/dev/null 2850 2851# Check whether --enable-silent-rules was given. 2852if test "${enable_silent_rules+set}" = set; then : 2853 enableval=$enable_silent_rules; 2854fi 2855 2856case $enable_silent_rules in # ((( 2857 yes) AM_DEFAULT_VERBOSITY=0;; 2858 no) AM_DEFAULT_VERBOSITY=1;; 2859 *) AM_DEFAULT_VERBOSITY=1;; 2860esac 2861am_make=${MAKE-make} 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2863$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2864if ${am_cv_make_support_nested_variables+:} false; then : 2865 $as_echo_n "(cached) " >&6 2866else 2867 if $as_echo 'TRUE=$(BAR$(V)) 2868BAR0=false 2869BAR1=true 2870V=1 2871am__doit: 2872 @$(TRUE) 2873.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2874 am_cv_make_support_nested_variables=yes 2875else 2876 am_cv_make_support_nested_variables=no 2877fi 2878fi 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2880$as_echo "$am_cv_make_support_nested_variables" >&6; } 2881if test $am_cv_make_support_nested_variables = yes; then 2882 AM_V='$(V)' 2883 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2884else 2885 AM_V=$AM_DEFAULT_VERBOSITY 2886 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2887fi 2888AM_BACKSLASH='\' 2889 2890if test "`cd $srcdir && pwd`" != "`pwd`"; then 2891 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2892 # is not polluted with repeated "-I." 2893 am__isrc=' -I$(srcdir)' 2894 # test to see if srcdir already configured 2895 if test -f $srcdir/config.status; then 2896 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2897 fi 2898fi 2899 2900# test whether we have cygpath 2901if test -z "$CYGPATH_W"; then 2902 if (cygpath --version) >/dev/null 2>/dev/null; then 2903 CYGPATH_W='cygpath -w' 2904 else 2905 CYGPATH_W=echo 2906 fi 2907fi 2908 2909 2910# Define the identity of the package. 2911 PACKAGE='xf86-video-amdgpu' 2912 VERSION='21.0.0' 2913 2914 2915cat >>confdefs.h <<_ACEOF 2916#define PACKAGE "$PACKAGE" 2917_ACEOF 2918 2919 2920cat >>confdefs.h <<_ACEOF 2921#define VERSION "$VERSION" 2922_ACEOF 2923 2924# Some tools Automake needs. 2925 2926ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2927 2928 2929AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2930 2931 2932AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2933 2934 2935AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2936 2937 2938MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2939 2940# For better backward compatibility. To be removed once Automake 1.9.x 2941# dies out for good. For more background, see: 2942# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2943# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2944mkdir_p='$(MKDIR_P)' 2945 2946# We need awk for the "check" target (and possibly the TAP driver). The 2947# system "awk" is bad on some platforms. 2948# Always define AMTAR for backward compatibility. Yes, it's still used 2949# in the wild :-( We should find a proper way to deprecate it ... 2950AMTAR='$${TAR-tar}' 2951 2952 2953# We'll loop over all known methods to create a tar archive until one works. 2954_am_tools='gnutar pax cpio none' 2955 2956am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2957 2958 2959 2960 2961 2962 2963# POSIX will say in a future version that running "rm -f" with no argument 2964# is OK; and we want to be able to make that assumption in our Makefile 2965# recipes. So use an aggressive probe to check that the usage we want is 2966# actually supported "in the wild" to an acceptable degree. 2967# See automake bug#10828. 2968# To make any issue more visible, cause the running configure to be aborted 2969# by default if the 'rm' program in use doesn't match our expectations; the 2970# user can still override this though. 2971if rm -f && rm -fr && rm -rf; then : OK; else 2972 cat >&2 <<'END' 2973Oops! 2974 2975Your 'rm' program seems unable to run without file operands specified 2976on the command line, even when the '-f' option is present. This is contrary 2977to the behaviour of most rm programs out there, and not conforming with 2978the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2979 2980Please tell bug-automake@gnu.org about your system, including the value 2981of your $PATH and any error possibly output before this message. This 2982can help us improve future automake versions. 2983 2984END 2985 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2986 echo 'Configuration will proceed anyway, since you have set the' >&2 2987 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2988 echo >&2 2989 else 2990 cat >&2 <<'END' 2991Aborting the configuration process, to ensure you take notice of the issue. 2992 2993You can download and install GNU coreutils to get an 'rm' implementation 2994that behaves properly: <https://www.gnu.org/software/coreutils/>. 2995 2996If you want to complete the configuration process using your problematic 2997'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2998to "yes", and re-run configure. 2999 3000END 3001 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3002 fi 3003fi 3004 3005DEPDIR="${am__leading_dot}deps" 3006 3007ac_config_commands="$ac_config_commands depfiles" 3008 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3010$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3011cat > confinc.mk << 'END' 3012am__doit: 3013 @echo this is the am__doit target >confinc.out 3014.PHONY: am__doit 3015END 3016am__include="#" 3017am__quote= 3018# BSD make does it like this. 3019echo '.include "confinc.mk" # ignored' > confmf.BSD 3020# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3021echo 'include confinc.mk # ignored' > confmf.GNU 3022_am_result=no 3023for s in GNU BSD; do 3024 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3025 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3026 ac_status=$? 3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3028 (exit $ac_status); } 3029 case $?:`cat confinc.out 2>/dev/null` in #( 3030 '0:this is the am__doit target') : 3031 case $s in #( 3032 BSD) : 3033 am__include='.include' am__quote='"' ;; #( 3034 *) : 3035 am__include='include' am__quote='' ;; 3036esac ;; #( 3037 *) : 3038 ;; 3039esac 3040 if test "$am__include" != "#"; then 3041 _am_result="yes ($s style)" 3042 break 3043 fi 3044done 3045rm -f confinc.* confmf.* 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3047$as_echo "${_am_result}" >&6; } 3048 3049# Check whether --enable-dependency-tracking was given. 3050if test "${enable_dependency_tracking+set}" = set; then : 3051 enableval=$enable_dependency_tracking; 3052fi 3053 3054if test "x$enable_dependency_tracking" != xno; then 3055 am_depcomp="$ac_aux_dir/depcomp" 3056 AMDEPBACKSLASH='\' 3057 am__nodep='_no' 3058fi 3059 if test "x$enable_dependency_tracking" != xno; then 3060 AMDEP_TRUE= 3061 AMDEP_FALSE='#' 3062else 3063 AMDEP_TRUE='#' 3064 AMDEP_FALSE= 3065fi 3066 3067 3068ac_ext=c 3069ac_cpp='$CPP $CPPFLAGS' 3070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3072ac_compiler_gnu=$ac_cv_c_compiler_gnu 3073if test -n "$ac_tool_prefix"; then 3074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3075set dummy ${ac_tool_prefix}gcc; ac_word=$2 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3077$as_echo_n "checking for $ac_word... " >&6; } 3078if ${ac_cv_prog_CC+:} false; then : 3079 $as_echo_n "(cached) " >&6 3080else 3081 if test -n "$CC"; then 3082 ac_cv_prog_CC="$CC" # Let the user override the test. 3083else 3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3085for as_dir in $PATH 3086do 3087 IFS=$as_save_IFS 3088 test -z "$as_dir" && as_dir=. 3089 for ac_exec_ext in '' $ac_executable_extensions; do 3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3091 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3093 break 2 3094 fi 3095done 3096 done 3097IFS=$as_save_IFS 3098 3099fi 3100fi 3101CC=$ac_cv_prog_CC 3102if test -n "$CC"; then 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3104$as_echo "$CC" >&6; } 3105else 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3107$as_echo "no" >&6; } 3108fi 3109 3110 3111fi 3112if test -z "$ac_cv_prog_CC"; then 3113 ac_ct_CC=$CC 3114 # Extract the first word of "gcc", so it can be a program name with args. 3115set dummy gcc; ac_word=$2 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3117$as_echo_n "checking for $ac_word... " >&6; } 3118if ${ac_cv_prog_ac_ct_CC+:} false; then : 3119 $as_echo_n "(cached) " >&6 3120else 3121 if test -n "$ac_ct_CC"; then 3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3123else 3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH 3126do 3127 IFS=$as_save_IFS 3128 test -z "$as_dir" && as_dir=. 3129 for ac_exec_ext in '' $ac_executable_extensions; do 3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3131 ac_cv_prog_ac_ct_CC="gcc" 3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3133 break 2 3134 fi 3135done 3136 done 3137IFS=$as_save_IFS 3138 3139fi 3140fi 3141ac_ct_CC=$ac_cv_prog_ac_ct_CC 3142if test -n "$ac_ct_CC"; then 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3144$as_echo "$ac_ct_CC" >&6; } 3145else 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3147$as_echo "no" >&6; } 3148fi 3149 3150 if test "x$ac_ct_CC" = x; then 3151 CC="" 3152 else 3153 case $cross_compiling:$ac_tool_warned in 3154yes:) 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3157ac_tool_warned=yes ;; 3158esac 3159 CC=$ac_ct_CC 3160 fi 3161else 3162 CC="$ac_cv_prog_CC" 3163fi 3164 3165if test -z "$CC"; then 3166 if test -n "$ac_tool_prefix"; then 3167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3168set dummy ${ac_tool_prefix}cc; ac_word=$2 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170$as_echo_n "checking for $ac_word... " >&6; } 3171if ${ac_cv_prog_CC+:} false; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if test -n "$CC"; then 3175 ac_cv_prog_CC="$CC" # Let the user override the test. 3176else 3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178for as_dir in $PATH 3179do 3180 IFS=$as_save_IFS 3181 test -z "$as_dir" && as_dir=. 3182 for ac_exec_ext in '' $ac_executable_extensions; do 3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3184 ac_cv_prog_CC="${ac_tool_prefix}cc" 3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3186 break 2 3187 fi 3188done 3189 done 3190IFS=$as_save_IFS 3191 3192fi 3193fi 3194CC=$ac_cv_prog_CC 3195if test -n "$CC"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3197$as_echo "$CC" >&6; } 3198else 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200$as_echo "no" >&6; } 3201fi 3202 3203 3204 fi 3205fi 3206if test -z "$CC"; then 3207 # Extract the first word of "cc", so it can be a program name with args. 3208set dummy cc; ac_word=$2 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3210$as_echo_n "checking for $ac_word... " >&6; } 3211if ${ac_cv_prog_CC+:} false; then : 3212 $as_echo_n "(cached) " >&6 3213else 3214 if test -n "$CC"; then 3215 ac_cv_prog_CC="$CC" # Let the user override the test. 3216else 3217 ac_prog_rejected=no 3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3219for as_dir in $PATH 3220do 3221 IFS=$as_save_IFS 3222 test -z "$as_dir" && as_dir=. 3223 for ac_exec_ext in '' $ac_executable_extensions; do 3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3226 ac_prog_rejected=yes 3227 continue 3228 fi 3229 ac_cv_prog_CC="cc" 3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3231 break 2 3232 fi 3233done 3234 done 3235IFS=$as_save_IFS 3236 3237if test $ac_prog_rejected = yes; then 3238 # We found a bogon in the path, so make sure we never use it. 3239 set dummy $ac_cv_prog_CC 3240 shift 3241 if test $# != 0; then 3242 # We chose a different compiler from the bogus one. 3243 # However, it has the same basename, so the bogon will be chosen 3244 # first if we set CC to just the basename; use the full file name. 3245 shift 3246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3247 fi 3248fi 3249fi 3250fi 3251CC=$ac_cv_prog_CC 3252if test -n "$CC"; then 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3254$as_echo "$CC" >&6; } 3255else 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257$as_echo "no" >&6; } 3258fi 3259 3260 3261fi 3262if test -z "$CC"; then 3263 if test -n "$ac_tool_prefix"; then 3264 for ac_prog in cl.exe 3265 do 3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3267set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3269$as_echo_n "checking for $ac_word... " >&6; } 3270if ${ac_cv_prog_CC+:} false; then : 3271 $as_echo_n "(cached) " >&6 3272else 3273 if test -n "$CC"; then 3274 ac_cv_prog_CC="$CC" # Let the user override the test. 3275else 3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3277for as_dir in $PATH 3278do 3279 IFS=$as_save_IFS 3280 test -z "$as_dir" && as_dir=. 3281 for ac_exec_ext in '' $ac_executable_extensions; do 3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3285 break 2 3286 fi 3287done 3288 done 3289IFS=$as_save_IFS 3290 3291fi 3292fi 3293CC=$ac_cv_prog_CC 3294if test -n "$CC"; then 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3296$as_echo "$CC" >&6; } 3297else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299$as_echo "no" >&6; } 3300fi 3301 3302 3303 test -n "$CC" && break 3304 done 3305fi 3306if test -z "$CC"; then 3307 ac_ct_CC=$CC 3308 for ac_prog in cl.exe 3309do 3310 # Extract the first word of "$ac_prog", so it can be a program name with args. 3311set dummy $ac_prog; ac_word=$2 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3313$as_echo_n "checking for $ac_word... " >&6; } 3314if ${ac_cv_prog_ac_ct_CC+:} false; then : 3315 $as_echo_n "(cached) " >&6 3316else 3317 if test -n "$ac_ct_CC"; then 3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3319else 3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3321for as_dir in $PATH 3322do 3323 IFS=$as_save_IFS 3324 test -z "$as_dir" && as_dir=. 3325 for ac_exec_ext in '' $ac_executable_extensions; do 3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3327 ac_cv_prog_ac_ct_CC="$ac_prog" 3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3329 break 2 3330 fi 3331done 3332 done 3333IFS=$as_save_IFS 3334 3335fi 3336fi 3337ac_ct_CC=$ac_cv_prog_ac_ct_CC 3338if test -n "$ac_ct_CC"; then 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3340$as_echo "$ac_ct_CC" >&6; } 3341else 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3343$as_echo "no" >&6; } 3344fi 3345 3346 3347 test -n "$ac_ct_CC" && break 3348done 3349 3350 if test "x$ac_ct_CC" = x; then 3351 CC="" 3352 else 3353 case $cross_compiling:$ac_tool_warned in 3354yes:) 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3357ac_tool_warned=yes ;; 3358esac 3359 CC=$ac_ct_CC 3360 fi 3361fi 3362 3363fi 3364 3365 3366test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3368as_fn_error $? "no acceptable C compiler found in \$PATH 3369See \`config.log' for more details" "$LINENO" 5; } 3370 3371# Provide some information about the compiler. 3372$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3373set X $ac_compile 3374ac_compiler=$2 3375for ac_option in --version -v -V -qversion; do 3376 { { ac_try="$ac_compiler $ac_option >&5" 3377case "(($ac_try" in 3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3379 *) ac_try_echo=$ac_try;; 3380esac 3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3382$as_echo "$ac_try_echo"; } >&5 3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3384 ac_status=$? 3385 if test -s conftest.err; then 3386 sed '10a\ 3387... rest of stderr output deleted ... 3388 10q' conftest.err >conftest.er1 3389 cat conftest.er1 >&5 3390 fi 3391 rm -f conftest.er1 conftest.err 3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3393 test $ac_status = 0; } 3394done 3395 3396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3397/* end confdefs.h. */ 3398 3399int 3400main () 3401{ 3402 3403 ; 3404 return 0; 3405} 3406_ACEOF 3407ac_clean_files_save=$ac_clean_files 3408ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3409# Try to create an executable without -o first, disregard a.out. 3410# It will help us diagnose broken compilers, and finding out an intuition 3411# of exeext. 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3413$as_echo_n "checking whether the C compiler works... " >&6; } 3414ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3415 3416# The possible output files: 3417ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3418 3419ac_rmfiles= 3420for ac_file in $ac_files 3421do 3422 case $ac_file in 3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3424 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3425 esac 3426done 3427rm -f $ac_rmfiles 3428 3429if { { ac_try="$ac_link_default" 3430case "(($ac_try" in 3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3432 *) ac_try_echo=$ac_try;; 3433esac 3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3435$as_echo "$ac_try_echo"; } >&5 3436 (eval "$ac_link_default") 2>&5 3437 ac_status=$? 3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3439 test $ac_status = 0; }; then : 3440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3441# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3442# in a Makefile. We should not override ac_cv_exeext if it was cached, 3443# so that the user can short-circuit this test for compilers unknown to 3444# Autoconf. 3445for ac_file in $ac_files '' 3446do 3447 test -f "$ac_file" || continue 3448 case $ac_file in 3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3450 ;; 3451 [ab].out ) 3452 # We found the default executable, but exeext='' is most 3453 # certainly right. 3454 break;; 3455 *.* ) 3456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3457 then :; else 3458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3459 fi 3460 # We set ac_cv_exeext here because the later test for it is not 3461 # safe: cross compilers may not add the suffix if given an `-o' 3462 # argument, so we may need to know it at that point already. 3463 # Even if this section looks crufty: it has the advantage of 3464 # actually working. 3465 break;; 3466 * ) 3467 break;; 3468 esac 3469done 3470test "$ac_cv_exeext" = no && ac_cv_exeext= 3471 3472else 3473 ac_file='' 3474fi 3475if test -z "$ac_file"; then : 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3477$as_echo "no" >&6; } 3478$as_echo "$as_me: failed program was:" >&5 3479sed 's/^/| /' conftest.$ac_ext >&5 3480 3481{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3483as_fn_error 77 "C compiler cannot create executables 3484See \`config.log' for more details" "$LINENO" 5; } 3485else 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3487$as_echo "yes" >&6; } 3488fi 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3490$as_echo_n "checking for C compiler default output file name... " >&6; } 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3492$as_echo "$ac_file" >&6; } 3493ac_exeext=$ac_cv_exeext 3494 3495rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3496ac_clean_files=$ac_clean_files_save 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3498$as_echo_n "checking for suffix of executables... " >&6; } 3499if { { ac_try="$ac_link" 3500case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503esac 3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3505$as_echo "$ac_try_echo"; } >&5 3506 (eval "$ac_link") 2>&5 3507 ac_status=$? 3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3509 test $ac_status = 0; }; then : 3510 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3511# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3512# work properly (i.e., refer to `conftest.exe'), while it won't with 3513# `rm'. 3514for ac_file in conftest.exe conftest conftest.*; do 3515 test -f "$ac_file" || continue 3516 case $ac_file in 3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3519 break;; 3520 * ) break;; 3521 esac 3522done 3523else 3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3526as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3527See \`config.log' for more details" "$LINENO" 5; } 3528fi 3529rm -f conftest conftest$ac_cv_exeext 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3531$as_echo "$ac_cv_exeext" >&6; } 3532 3533rm -f conftest.$ac_ext 3534EXEEXT=$ac_cv_exeext 3535ac_exeext=$EXEEXT 3536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3537/* end confdefs.h. */ 3538#include <stdio.h> 3539int 3540main () 3541{ 3542FILE *f = fopen ("conftest.out", "w"); 3543 return ferror (f) || fclose (f) != 0; 3544 3545 ; 3546 return 0; 3547} 3548_ACEOF 3549ac_clean_files="$ac_clean_files conftest.out" 3550# Check that the compiler produces executables we can run. If not, either 3551# the compiler is broken, or we cross compile. 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3553$as_echo_n "checking whether we are cross compiling... " >&6; } 3554if test "$cross_compiling" != yes; then 3555 { { ac_try="$ac_link" 3556case "(($ac_try" in 3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3558 *) ac_try_echo=$ac_try;; 3559esac 3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3561$as_echo "$ac_try_echo"; } >&5 3562 (eval "$ac_link") 2>&5 3563 ac_status=$? 3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3565 test $ac_status = 0; } 3566 if { ac_try='./conftest$ac_cv_exeext' 3567 { { case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570esac 3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3572$as_echo "$ac_try_echo"; } >&5 3573 (eval "$ac_try") 2>&5 3574 ac_status=$? 3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3576 test $ac_status = 0; }; }; then 3577 cross_compiling=no 3578 else 3579 if test "$cross_compiling" = maybe; then 3580 cross_compiling=yes 3581 else 3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3584as_fn_error $? "cannot run C compiled programs. 3585If you meant to cross compile, use \`--host'. 3586See \`config.log' for more details" "$LINENO" 5; } 3587 fi 3588 fi 3589fi 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3591$as_echo "$cross_compiling" >&6; } 3592 3593rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3594ac_clean_files=$ac_clean_files_save 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3596$as_echo_n "checking for suffix of object files... " >&6; } 3597if ${ac_cv_objext+:} false; then : 3598 $as_echo_n "(cached) " >&6 3599else 3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601/* end confdefs.h. */ 3602 3603int 3604main () 3605{ 3606 3607 ; 3608 return 0; 3609} 3610_ACEOF 3611rm -f conftest.o conftest.obj 3612if { { ac_try="$ac_compile" 3613case "(($ac_try" in 3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3615 *) ac_try_echo=$ac_try;; 3616esac 3617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3618$as_echo "$ac_try_echo"; } >&5 3619 (eval "$ac_compile") 2>&5 3620 ac_status=$? 3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3622 test $ac_status = 0; }; then : 3623 for ac_file in conftest.o conftest.obj conftest.*; do 3624 test -f "$ac_file" || continue; 3625 case $ac_file in 3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3628 break;; 3629 esac 3630done 3631else 3632 $as_echo "$as_me: failed program was:" >&5 3633sed 's/^/| /' conftest.$ac_ext >&5 3634 3635{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3637as_fn_error $? "cannot compute suffix of object files: cannot compile 3638See \`config.log' for more details" "$LINENO" 5; } 3639fi 3640rm -f conftest.$ac_cv_objext conftest.$ac_ext 3641fi 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3643$as_echo "$ac_cv_objext" >&6; } 3644OBJEXT=$ac_cv_objext 3645ac_objext=$OBJEXT 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3647$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3648if ${ac_cv_c_compiler_gnu+:} false; then : 3649 $as_echo_n "(cached) " >&6 3650else 3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3652/* end confdefs.h. */ 3653 3654int 3655main () 3656{ 3657#ifndef __GNUC__ 3658 choke me 3659#endif 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665if ac_fn_c_try_compile "$LINENO"; then : 3666 ac_compiler_gnu=yes 3667else 3668 ac_compiler_gnu=no 3669fi 3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3671ac_cv_c_compiler_gnu=$ac_compiler_gnu 3672 3673fi 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3675$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3676if test $ac_compiler_gnu = yes; then 3677 GCC=yes 3678else 3679 GCC= 3680fi 3681ac_test_CFLAGS=${CFLAGS+set} 3682ac_save_CFLAGS=$CFLAGS 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3684$as_echo_n "checking whether $CC accepts -g... " >&6; } 3685if ${ac_cv_prog_cc_g+:} false; then : 3686 $as_echo_n "(cached) " >&6 3687else 3688 ac_save_c_werror_flag=$ac_c_werror_flag 3689 ac_c_werror_flag=yes 3690 ac_cv_prog_cc_g=no 3691 CFLAGS="-g" 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694 3695int 3696main () 3697{ 3698 3699 ; 3700 return 0; 3701} 3702_ACEOF 3703if ac_fn_c_try_compile "$LINENO"; then : 3704 ac_cv_prog_cc_g=yes 3705else 3706 CFLAGS="" 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708/* end confdefs.h. */ 3709 3710int 3711main () 3712{ 3713 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718if ac_fn_c_try_compile "$LINENO"; then : 3719 3720else 3721 ac_c_werror_flag=$ac_save_c_werror_flag 3722 CFLAGS="-g" 3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725 3726int 3727main () 3728{ 3729 3730 ; 3731 return 0; 3732} 3733_ACEOF 3734if ac_fn_c_try_compile "$LINENO"; then : 3735 ac_cv_prog_cc_g=yes 3736fi 3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3738fi 3739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3740fi 3741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3742 ac_c_werror_flag=$ac_save_c_werror_flag 3743fi 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3745$as_echo "$ac_cv_prog_cc_g" >&6; } 3746if test "$ac_test_CFLAGS" = set; then 3747 CFLAGS=$ac_save_CFLAGS 3748elif test $ac_cv_prog_cc_g = yes; then 3749 if test "$GCC" = yes; then 3750 CFLAGS="-g -O2" 3751 else 3752 CFLAGS="-g" 3753 fi 3754else 3755 if test "$GCC" = yes; then 3756 CFLAGS="-O2" 3757 else 3758 CFLAGS= 3759 fi 3760fi 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3762$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3763if ${ac_cv_prog_cc_c89+:} false; then : 3764 $as_echo_n "(cached) " >&6 3765else 3766 ac_cv_prog_cc_c89=no 3767ac_save_CC=$CC 3768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770#include <stdarg.h> 3771#include <stdio.h> 3772struct stat; 3773/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3774struct buf { int x; }; 3775FILE * (*rcsopen) (struct buf *, struct stat *, int); 3776static char *e (p, i) 3777 char **p; 3778 int i; 3779{ 3780 return p[i]; 3781} 3782static char *f (char * (*g) (char **, int), char **p, ...) 3783{ 3784 char *s; 3785 va_list v; 3786 va_start (v,p); 3787 s = g (p, va_arg (v,int)); 3788 va_end (v); 3789 return s; 3790} 3791 3792/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3793 function prototypes and stuff, but not '\xHH' hex character constants. 3794 These don't provoke an error unfortunately, instead are silently treated 3795 as 'x'. The following induces an error, until -std is added to get 3796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3797 array size at least. It's necessary to write '\x00'==0 to get something 3798 that's true only with -std. */ 3799int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3800 3801/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3802 inside strings and character constants. */ 3803#define FOO(x) 'x' 3804int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3805 3806int test (int i, double x); 3807struct s1 {int (*f) (int a);}; 3808struct s2 {int (*f) (double a);}; 3809int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3810int argc; 3811char **argv; 3812int 3813main () 3814{ 3815return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3822do 3823 CC="$ac_save_CC $ac_arg" 3824 if ac_fn_c_try_compile "$LINENO"; then : 3825 ac_cv_prog_cc_c89=$ac_arg 3826fi 3827rm -f core conftest.err conftest.$ac_objext 3828 test "x$ac_cv_prog_cc_c89" != "xno" && break 3829done 3830rm -f conftest.$ac_ext 3831CC=$ac_save_CC 3832 3833fi 3834# AC_CACHE_VAL 3835case "x$ac_cv_prog_cc_c89" in 3836 x) 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3838$as_echo "none needed" >&6; } ;; 3839 xno) 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3841$as_echo "unsupported" >&6; } ;; 3842 *) 3843 CC="$CC $ac_cv_prog_cc_c89" 3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3845$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3846esac 3847if test "x$ac_cv_prog_cc_c89" != xno; then : 3848 3849fi 3850 3851ac_ext=c 3852ac_cpp='$CPP $CPPFLAGS' 3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3855ac_compiler_gnu=$ac_cv_c_compiler_gnu 3856 3857ac_ext=c 3858ac_cpp='$CPP $CPPFLAGS' 3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3861ac_compiler_gnu=$ac_cv_c_compiler_gnu 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3863$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3864if ${am_cv_prog_cc_c_o+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866else 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869 3870int 3871main () 3872{ 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878 # Make sure it works both with $CC and with simple cc. 3879 # Following AC_PROG_CC_C_O, we do the test twice because some 3880 # compilers refuse to overwrite an existing .o file with -o, 3881 # though they will create one. 3882 am_cv_prog_cc_c_o=yes 3883 for am_i in 1 2; do 3884 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3885 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3886 ac_status=$? 3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3888 (exit $ac_status); } \ 3889 && test -f conftest2.$ac_objext; then 3890 : OK 3891 else 3892 am_cv_prog_cc_c_o=no 3893 break 3894 fi 3895 done 3896 rm -f core conftest* 3897 unset am_i 3898fi 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3900$as_echo "$am_cv_prog_cc_c_o" >&6; } 3901if test "$am_cv_prog_cc_c_o" != yes; then 3902 # Losing compiler, so override with the script. 3903 # FIXME: It is wrong to rewrite CC. 3904 # But if we don't then we get into trouble of one sort or another. 3905 # A longer-term fix would be to have automake use am__CC in this case, 3906 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3907 CC="$am_aux_dir/compile $CC" 3908fi 3909ac_ext=c 3910ac_cpp='$CPP $CPPFLAGS' 3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3913ac_compiler_gnu=$ac_cv_c_compiler_gnu 3914 3915 3916depcc="$CC" am_compiler_list= 3917 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3919$as_echo_n "checking dependency style of $depcc... " >&6; } 3920if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3921 $as_echo_n "(cached) " >&6 3922else 3923 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3924 # We make a subdir and do the tests there. Otherwise we can end up 3925 # making bogus files that we don't know about and never remove. For 3926 # instance it was reported that on HP-UX the gcc test will end up 3927 # making a dummy file named 'D' -- because '-MD' means "put the output 3928 # in D". 3929 rm -rf conftest.dir 3930 mkdir conftest.dir 3931 # Copy depcomp to subdir because otherwise we won't find it if we're 3932 # using a relative directory. 3933 cp "$am_depcomp" conftest.dir 3934 cd conftest.dir 3935 # We will build objects and dependencies in a subdirectory because 3936 # it helps to detect inapplicable dependency modes. For instance 3937 # both Tru64's cc and ICC support -MD to output dependencies as a 3938 # side effect of compilation, but ICC will put the dependencies in 3939 # the current directory while Tru64 will put them in the object 3940 # directory. 3941 mkdir sub 3942 3943 am_cv_CC_dependencies_compiler_type=none 3944 if test "$am_compiler_list" = ""; then 3945 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3946 fi 3947 am__universal=false 3948 case " $depcc " in #( 3949 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3950 esac 3951 3952 for depmode in $am_compiler_list; do 3953 # Setup a source with many dependencies, because some compilers 3954 # like to wrap large dependency lists on column 80 (with \), and 3955 # we should not choose a depcomp mode which is confused by this. 3956 # 3957 # We need to recreate these files for each test, as the compiler may 3958 # overwrite some of them when testing with obscure command lines. 3959 # This happens at least with the AIX C compiler. 3960 : > sub/conftest.c 3961 for i in 1 2 3 4 5 6; do 3962 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3963 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3964 # Solaris 10 /bin/sh. 3965 echo '/* dummy */' > sub/conftst$i.h 3966 done 3967 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3968 3969 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3970 # mode. It turns out that the SunPro C++ compiler does not properly 3971 # handle '-M -o', and we need to detect this. Also, some Intel 3972 # versions had trouble with output in subdirs. 3973 am__obj=sub/conftest.${OBJEXT-o} 3974 am__minus_obj="-o $am__obj" 3975 case $depmode in 3976 gcc) 3977 # This depmode causes a compiler race in universal mode. 3978 test "$am__universal" = false || continue 3979 ;; 3980 nosideeffect) 3981 # After this tag, mechanisms are not by side-effect, so they'll 3982 # only be used when explicitly requested. 3983 if test "x$enable_dependency_tracking" = xyes; then 3984 continue 3985 else 3986 break 3987 fi 3988 ;; 3989 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3990 # This compiler won't grok '-c -o', but also, the minuso test has 3991 # not run yet. These depmodes are late enough in the game, and 3992 # so weak that their functioning should not be impacted. 3993 am__obj=conftest.${OBJEXT-o} 3994 am__minus_obj= 3995 ;; 3996 none) break ;; 3997 esac 3998 if depmode=$depmode \ 3999 source=sub/conftest.c object=$am__obj \ 4000 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4001 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4002 >/dev/null 2>conftest.err && 4003 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4004 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4005 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4006 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4007 # icc doesn't choke on unknown options, it will just issue warnings 4008 # or remarks (even with -Werror). So we grep stderr for any message 4009 # that says an option was ignored or not supported. 4010 # When given -MP, icc 7.0 and 7.1 complain thusly: 4011 # icc: Command line warning: ignoring option '-M'; no argument required 4012 # The diagnosis changed in icc 8.0: 4013 # icc: Command line remark: option '-MP' not supported 4014 if (grep 'ignoring option' conftest.err || 4015 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4016 am_cv_CC_dependencies_compiler_type=$depmode 4017 break 4018 fi 4019 fi 4020 done 4021 4022 cd .. 4023 rm -rf conftest.dir 4024else 4025 am_cv_CC_dependencies_compiler_type=none 4026fi 4027 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4030$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4031CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4032 4033 if 4034 test "x$enable_dependency_tracking" != xno \ 4035 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4036 am__fastdepCC_TRUE= 4037 am__fastdepCC_FALSE='#' 4038else 4039 am__fastdepCC_TRUE='#' 4040 am__fastdepCC_FALSE= 4041fi 4042 4043 4044 4045# Check whether --enable-largefile was given. 4046if test "${enable_largefile+set}" = set; then : 4047 enableval=$enable_largefile; 4048fi 4049 4050if test "$enable_largefile" != no; then 4051 4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4053$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4054if ${ac_cv_sys_largefile_CC+:} false; then : 4055 $as_echo_n "(cached) " >&6 4056else 4057 ac_cv_sys_largefile_CC=no 4058 if test "$GCC" != yes; then 4059 ac_save_CC=$CC 4060 while :; do 4061 # IRIX 6.2 and later do not support large files by default, 4062 # so use the C compiler's -n32 option if that helps. 4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064/* end confdefs.h. */ 4065#include <sys/types.h> 4066 /* Check that off_t can represent 2**63 - 1 correctly. 4067 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4068 since some C++ compilers masquerading as C compilers 4069 incorrectly reject 9223372036854775807. */ 4070#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4072 && LARGE_OFF_T % 2147483647 == 1) 4073 ? 1 : -1]; 4074int 4075main () 4076{ 4077 4078 ; 4079 return 0; 4080} 4081_ACEOF 4082 if ac_fn_c_try_compile "$LINENO"; then : 4083 break 4084fi 4085rm -f core conftest.err conftest.$ac_objext 4086 CC="$CC -n32" 4087 if ac_fn_c_try_compile "$LINENO"; then : 4088 ac_cv_sys_largefile_CC=' -n32'; break 4089fi 4090rm -f core conftest.err conftest.$ac_objext 4091 break 4092 done 4093 CC=$ac_save_CC 4094 rm -f conftest.$ac_ext 4095 fi 4096fi 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4098$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4099 if test "$ac_cv_sys_largefile_CC" != no; then 4100 CC=$CC$ac_cv_sys_largefile_CC 4101 fi 4102 4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4104$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4105if ${ac_cv_sys_file_offset_bits+:} false; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 while :; do 4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111#include <sys/types.h> 4112 /* Check that off_t can represent 2**63 - 1 correctly. 4113 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4114 since some C++ compilers masquerading as C compilers 4115 incorrectly reject 9223372036854775807. */ 4116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4118 && LARGE_OFF_T % 2147483647 == 1) 4119 ? 1 : -1]; 4120int 4121main () 4122{ 4123 4124 ; 4125 return 0; 4126} 4127_ACEOF 4128if ac_fn_c_try_compile "$LINENO"; then : 4129 ac_cv_sys_file_offset_bits=no; break 4130fi 4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4133/* end confdefs.h. */ 4134#define _FILE_OFFSET_BITS 64 4135#include <sys/types.h> 4136 /* Check that off_t can represent 2**63 - 1 correctly. 4137 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4138 since some C++ compilers masquerading as C compilers 4139 incorrectly reject 9223372036854775807. */ 4140#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4142 && LARGE_OFF_T % 2147483647 == 1) 4143 ? 1 : -1]; 4144int 4145main () 4146{ 4147 4148 ; 4149 return 0; 4150} 4151_ACEOF 4152if ac_fn_c_try_compile "$LINENO"; then : 4153 ac_cv_sys_file_offset_bits=64; break 4154fi 4155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4156 ac_cv_sys_file_offset_bits=unknown 4157 break 4158done 4159fi 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4161$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4162case $ac_cv_sys_file_offset_bits in #( 4163 no | unknown) ;; 4164 *) 4165cat >>confdefs.h <<_ACEOF 4166#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4167_ACEOF 4168;; 4169esac 4170rm -rf conftest* 4171 if test $ac_cv_sys_file_offset_bits = unknown; then 4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4173$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4174if ${ac_cv_sys_large_files+:} false; then : 4175 $as_echo_n "(cached) " >&6 4176else 4177 while :; do 4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4179/* end confdefs.h. */ 4180#include <sys/types.h> 4181 /* Check that off_t can represent 2**63 - 1 correctly. 4182 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4183 since some C++ compilers masquerading as C compilers 4184 incorrectly reject 9223372036854775807. */ 4185#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4187 && LARGE_OFF_T % 2147483647 == 1) 4188 ? 1 : -1]; 4189int 4190main () 4191{ 4192 4193 ; 4194 return 0; 4195} 4196_ACEOF 4197if ac_fn_c_try_compile "$LINENO"; then : 4198 ac_cv_sys_large_files=no; break 4199fi 4200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4202/* end confdefs.h. */ 4203#define _LARGE_FILES 1 4204#include <sys/types.h> 4205 /* Check that off_t can represent 2**63 - 1 correctly. 4206 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4207 since some C++ compilers masquerading as C compilers 4208 incorrectly reject 9223372036854775807. */ 4209#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4211 && LARGE_OFF_T % 2147483647 == 1) 4212 ? 1 : -1]; 4213int 4214main () 4215{ 4216 4217 ; 4218 return 0; 4219} 4220_ACEOF 4221if ac_fn_c_try_compile "$LINENO"; then : 4222 ac_cv_sys_large_files=1; break 4223fi 4224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4225 ac_cv_sys_large_files=unknown 4226 break 4227done 4228fi 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4230$as_echo "$ac_cv_sys_large_files" >&6; } 4231case $ac_cv_sys_large_files in #( 4232 no | unknown) ;; 4233 *) 4234cat >>confdefs.h <<_ACEOF 4235#define _LARGE_FILES $ac_cv_sys_large_files 4236_ACEOF 4237;; 4238esac 4239rm -rf conftest* 4240 fi 4241 4242 4243fi 4244 4245 4246# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4259$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4260if ${ac_cv_prog_cc_c99+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 ac_cv_prog_cc_c99=no 4264ac_save_CC=$CC 4265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266/* end confdefs.h. */ 4267#include <stdarg.h> 4268#include <stdbool.h> 4269#include <stdlib.h> 4270#include <wchar.h> 4271#include <stdio.h> 4272 4273// Check varargs macros. These examples are taken from C99 6.10.3.5. 4274#define debug(...) fprintf (stderr, __VA_ARGS__) 4275#define showlist(...) puts (#__VA_ARGS__) 4276#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4277static void 4278test_varargs_macros (void) 4279{ 4280 int x = 1234; 4281 int y = 5678; 4282 debug ("Flag"); 4283 debug ("X = %d\n", x); 4284 showlist (The first, second, and third items.); 4285 report (x>y, "x is %d but y is %d", x, y); 4286} 4287 4288// Check long long types. 4289#define BIG64 18446744073709551615ull 4290#define BIG32 4294967295ul 4291#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4292#if !BIG_OK 4293 your preprocessor is broken; 4294#endif 4295#if BIG_OK 4296#else 4297 your preprocessor is broken; 4298#endif 4299static long long int bignum = -9223372036854775807LL; 4300static unsigned long long int ubignum = BIG64; 4301 4302struct incomplete_array 4303{ 4304 int datasize; 4305 double data[]; 4306}; 4307 4308struct named_init { 4309 int number; 4310 const wchar_t *name; 4311 double average; 4312}; 4313 4314typedef const char *ccp; 4315 4316static inline int 4317test_restrict (ccp restrict text) 4318{ 4319 // See if C++-style comments work. 4320 // Iterate through items via the restricted pointer. 4321 // Also check for declarations in for loops. 4322 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4323 continue; 4324 return 0; 4325} 4326 4327// Check varargs and va_copy. 4328static void 4329test_varargs (const char *format, ...) 4330{ 4331 va_list args; 4332 va_start (args, format); 4333 va_list args_copy; 4334 va_copy (args_copy, args); 4335 4336 const char *str; 4337 int number; 4338 float fnumber; 4339 4340 while (*format) 4341 { 4342 switch (*format++) 4343 { 4344 case 's': // string 4345 str = va_arg (args_copy, const char *); 4346 break; 4347 case 'd': // int 4348 number = va_arg (args_copy, int); 4349 break; 4350 case 'f': // float 4351 fnumber = va_arg (args_copy, double); 4352 break; 4353 default: 4354 break; 4355 } 4356 } 4357 va_end (args_copy); 4358 va_end (args); 4359} 4360 4361int 4362main () 4363{ 4364 4365 // Check bool. 4366 _Bool success = false; 4367 4368 // Check restrict. 4369 if (test_restrict ("String literal") == 0) 4370 success = true; 4371 char *restrict newvar = "Another string"; 4372 4373 // Check varargs. 4374 test_varargs ("s, d' f .", "string", 65, 34.234); 4375 test_varargs_macros (); 4376 4377 // Check flexible array members. 4378 struct incomplete_array *ia = 4379 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4380 ia->datasize = 10; 4381 for (int i = 0; i < ia->datasize; ++i) 4382 ia->data[i] = i * 1.234; 4383 4384 // Check named initializers. 4385 struct named_init ni = { 4386 .number = 34, 4387 .name = L"Test wide string", 4388 .average = 543.34343, 4389 }; 4390 4391 ni.number = 58; 4392 4393 int dynamic_array[ni.number]; 4394 dynamic_array[ni.number - 1] = 543; 4395 4396 // work around unused variable warnings 4397 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4398 || dynamic_array[ni.number - 1] != 543); 4399 4400 ; 4401 return 0; 4402} 4403_ACEOF 4404for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4405do 4406 CC="$ac_save_CC $ac_arg" 4407 if ac_fn_c_try_compile "$LINENO"; then : 4408 ac_cv_prog_cc_c99=$ac_arg 4409fi 4410rm -f core conftest.err conftest.$ac_objext 4411 test "x$ac_cv_prog_cc_c99" != "xno" && break 4412done 4413rm -f conftest.$ac_ext 4414CC=$ac_save_CC 4415 4416fi 4417# AC_CACHE_VAL 4418case "x$ac_cv_prog_cc_c99" in 4419 x) 4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4421$as_echo "none needed" >&6; } ;; 4422 xno) 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4424$as_echo "unsupported" >&6; } ;; 4425 *) 4426 CC="$CC $ac_cv_prog_cc_c99" 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4428$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4429esac 4430if test "x$ac_cv_prog_cc_c99" != xno; then : 4431 4432fi 4433 4434 4435ac_ext=c 4436ac_cpp='$CPP $CPPFLAGS' 4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4439ac_compiler_gnu=$ac_cv_c_compiler_gnu 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4441$as_echo_n "checking how to run the C preprocessor... " >&6; } 4442# On Suns, sometimes $CPP names a directory. 4443if test -n "$CPP" && test -d "$CPP"; then 4444 CPP= 4445fi 4446if test -z "$CPP"; then 4447 if ${ac_cv_prog_CPP+:} false; then : 4448 $as_echo_n "(cached) " >&6 4449else 4450 # Double quotes because CPP needs to be expanded 4451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4452 do 4453 ac_preproc_ok=false 4454for ac_c_preproc_warn_flag in '' yes 4455do 4456 # Use a header file that comes with gcc, so configuring glibc 4457 # with a fresh cross-compiler works. 4458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4459 # <limits.h> exists even on freestanding compilers. 4460 # On the NeXT, cc -E runs the code through the compiler's parser, 4461 # not just through cpp. "Syntax error" is here to catch this case. 4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4463/* end confdefs.h. */ 4464#ifdef __STDC__ 4465# include <limits.h> 4466#else 4467# include <assert.h> 4468#endif 4469 Syntax error 4470_ACEOF 4471if ac_fn_c_try_cpp "$LINENO"; then : 4472 4473else 4474 # Broken: fails on valid input. 4475continue 4476fi 4477rm -f conftest.err conftest.i conftest.$ac_ext 4478 4479 # OK, works on sane cases. Now check whether nonexistent headers 4480 # can be detected and how. 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4482/* end confdefs.h. */ 4483#include <ac_nonexistent.h> 4484_ACEOF 4485if ac_fn_c_try_cpp "$LINENO"; then : 4486 # Broken: success on invalid input. 4487continue 4488else 4489 # Passes both tests. 4490ac_preproc_ok=: 4491break 4492fi 4493rm -f conftest.err conftest.i conftest.$ac_ext 4494 4495done 4496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4497rm -f conftest.i conftest.err conftest.$ac_ext 4498if $ac_preproc_ok; then : 4499 break 4500fi 4501 4502 done 4503 ac_cv_prog_CPP=$CPP 4504 4505fi 4506 CPP=$ac_cv_prog_CPP 4507else 4508 ac_cv_prog_CPP=$CPP 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4511$as_echo "$CPP" >&6; } 4512ac_preproc_ok=false 4513for ac_c_preproc_warn_flag in '' yes 4514do 4515 # Use a header file that comes with gcc, so configuring glibc 4516 # with a fresh cross-compiler works. 4517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4518 # <limits.h> exists even on freestanding compilers. 4519 # On the NeXT, cc -E runs the code through the compiler's parser, 4520 # not just through cpp. "Syntax error" is here to catch this case. 4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4522/* end confdefs.h. */ 4523#ifdef __STDC__ 4524# include <limits.h> 4525#else 4526# include <assert.h> 4527#endif 4528 Syntax error 4529_ACEOF 4530if ac_fn_c_try_cpp "$LINENO"; then : 4531 4532else 4533 # Broken: fails on valid input. 4534continue 4535fi 4536rm -f conftest.err conftest.i conftest.$ac_ext 4537 4538 # OK, works on sane cases. Now check whether nonexistent headers 4539 # can be detected and how. 4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4541/* end confdefs.h. */ 4542#include <ac_nonexistent.h> 4543_ACEOF 4544if ac_fn_c_try_cpp "$LINENO"; then : 4545 # Broken: success on invalid input. 4546continue 4547else 4548 # Passes both tests. 4549ac_preproc_ok=: 4550break 4551fi 4552rm -f conftest.err conftest.i conftest.$ac_ext 4553 4554done 4555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4556rm -f conftest.i conftest.err conftest.$ac_ext 4557if $ac_preproc_ok; then : 4558 4559else 4560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4562as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4563See \`config.log' for more details" "$LINENO" 5; } 4564fi 4565 4566ac_ext=c 4567ac_cpp='$CPP $CPPFLAGS' 4568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4570ac_compiler_gnu=$ac_cv_c_compiler_gnu 4571 4572 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4574$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4575if ${ac_cv_path_GREP+:} false; then : 4576 $as_echo_n "(cached) " >&6 4577else 4578 if test -z "$GREP"; then 4579 ac_path_GREP_found=false 4580 # Loop through the user's path and test for each of PROGNAME-LIST 4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4582for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4583do 4584 IFS=$as_save_IFS 4585 test -z "$as_dir" && as_dir=. 4586 for ac_prog in grep ggrep; do 4587 for ac_exec_ext in '' $ac_executable_extensions; do 4588 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4589 as_fn_executable_p "$ac_path_GREP" || continue 4590# Check for GNU ac_path_GREP and select it if it is found. 4591 # Check for GNU $ac_path_GREP 4592case `"$ac_path_GREP" --version 2>&1` in 4593*GNU*) 4594 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4595*) 4596 ac_count=0 4597 $as_echo_n 0123456789 >"conftest.in" 4598 while : 4599 do 4600 cat "conftest.in" "conftest.in" >"conftest.tmp" 4601 mv "conftest.tmp" "conftest.in" 4602 cp "conftest.in" "conftest.nl" 4603 $as_echo 'GREP' >> "conftest.nl" 4604 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4606 as_fn_arith $ac_count + 1 && ac_count=$as_val 4607 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4608 # Best one so far, save it but keep looking for a better one 4609 ac_cv_path_GREP="$ac_path_GREP" 4610 ac_path_GREP_max=$ac_count 4611 fi 4612 # 10*(2^10) chars as input seems more than enough 4613 test $ac_count -gt 10 && break 4614 done 4615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4616esac 4617 4618 $ac_path_GREP_found && break 3 4619 done 4620 done 4621 done 4622IFS=$as_save_IFS 4623 if test -z "$ac_cv_path_GREP"; then 4624 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4625 fi 4626else 4627 ac_cv_path_GREP=$GREP 4628fi 4629 4630fi 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4632$as_echo "$ac_cv_path_GREP" >&6; } 4633 GREP="$ac_cv_path_GREP" 4634 4635 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4637$as_echo_n "checking for egrep... " >&6; } 4638if ${ac_cv_path_EGREP+:} false; then : 4639 $as_echo_n "(cached) " >&6 4640else 4641 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4642 then ac_cv_path_EGREP="$GREP -E" 4643 else 4644 if test -z "$EGREP"; then 4645 ac_path_EGREP_found=false 4646 # Loop through the user's path and test for each of PROGNAME-LIST 4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4649do 4650 IFS=$as_save_IFS 4651 test -z "$as_dir" && as_dir=. 4652 for ac_prog in egrep; do 4653 for ac_exec_ext in '' $ac_executable_extensions; do 4654 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4655 as_fn_executable_p "$ac_path_EGREP" || continue 4656# Check for GNU ac_path_EGREP and select it if it is found. 4657 # Check for GNU $ac_path_EGREP 4658case `"$ac_path_EGREP" --version 2>&1` in 4659*GNU*) 4660 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4661*) 4662 ac_count=0 4663 $as_echo_n 0123456789 >"conftest.in" 4664 while : 4665 do 4666 cat "conftest.in" "conftest.in" >"conftest.tmp" 4667 mv "conftest.tmp" "conftest.in" 4668 cp "conftest.in" "conftest.nl" 4669 $as_echo 'EGREP' >> "conftest.nl" 4670 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4672 as_fn_arith $ac_count + 1 && ac_count=$as_val 4673 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4674 # Best one so far, save it but keep looking for a better one 4675 ac_cv_path_EGREP="$ac_path_EGREP" 4676 ac_path_EGREP_max=$ac_count 4677 fi 4678 # 10*(2^10) chars as input seems more than enough 4679 test $ac_count -gt 10 && break 4680 done 4681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4682esac 4683 4684 $ac_path_EGREP_found && break 3 4685 done 4686 done 4687 done 4688IFS=$as_save_IFS 4689 if test -z "$ac_cv_path_EGREP"; then 4690 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4691 fi 4692else 4693 ac_cv_path_EGREP=$EGREP 4694fi 4695 4696 fi 4697fi 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4699$as_echo "$ac_cv_path_EGREP" >&6; } 4700 EGREP="$ac_cv_path_EGREP" 4701 4702 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4704$as_echo_n "checking for ANSI C header files... " >&6; } 4705if ${ac_cv_header_stdc+:} false; then : 4706 $as_echo_n "(cached) " >&6 4707else 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709/* end confdefs.h. */ 4710#include <stdlib.h> 4711#include <stdarg.h> 4712#include <string.h> 4713#include <float.h> 4714 4715int 4716main () 4717{ 4718 4719 ; 4720 return 0; 4721} 4722_ACEOF 4723if ac_fn_c_try_compile "$LINENO"; then : 4724 ac_cv_header_stdc=yes 4725else 4726 ac_cv_header_stdc=no 4727fi 4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4729 4730if test $ac_cv_header_stdc = yes; then 4731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4733/* end confdefs.h. */ 4734#include <string.h> 4735 4736_ACEOF 4737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4738 $EGREP "memchr" >/dev/null 2>&1; then : 4739 4740else 4741 ac_cv_header_stdc=no 4742fi 4743rm -f conftest* 4744 4745fi 4746 4747if test $ac_cv_header_stdc = yes; then 4748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4750/* end confdefs.h. */ 4751#include <stdlib.h> 4752 4753_ACEOF 4754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4755 $EGREP "free" >/dev/null 2>&1; then : 4756 4757else 4758 ac_cv_header_stdc=no 4759fi 4760rm -f conftest* 4761 4762fi 4763 4764if test $ac_cv_header_stdc = yes; then 4765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4766 if test "$cross_compiling" = yes; then : 4767 : 4768else 4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4770/* end confdefs.h. */ 4771#include <ctype.h> 4772#include <stdlib.h> 4773#if ((' ' & 0x0FF) == 0x020) 4774# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4775# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4776#else 4777# define ISLOWER(c) \ 4778 (('a' <= (c) && (c) <= 'i') \ 4779 || ('j' <= (c) && (c) <= 'r') \ 4780 || ('s' <= (c) && (c) <= 'z')) 4781# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4782#endif 4783 4784#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4785int 4786main () 4787{ 4788 int i; 4789 for (i = 0; i < 256; i++) 4790 if (XOR (islower (i), ISLOWER (i)) 4791 || toupper (i) != TOUPPER (i)) 4792 return 2; 4793 return 0; 4794} 4795_ACEOF 4796if ac_fn_c_try_run "$LINENO"; then : 4797 4798else 4799 ac_cv_header_stdc=no 4800fi 4801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4802 conftest.$ac_objext conftest.beam conftest.$ac_ext 4803fi 4804 4805fi 4806fi 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4808$as_echo "$ac_cv_header_stdc" >&6; } 4809if test $ac_cv_header_stdc = yes; then 4810 4811$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4812 4813fi 4814 4815# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4816for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4817 inttypes.h stdint.h unistd.h 4818do : 4819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4820ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4821" 4822if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4823 cat >>confdefs.h <<_ACEOF 4824#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4825_ACEOF 4826 4827fi 4828 4829done 4830 4831 4832 4833 4834 4835 4836ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4837if test "x$ac_cv_have_decl___clang__" = xyes; then : 4838 CLANGCC="yes" 4839else 4840 CLANGCC="no" 4841fi 4842 4843ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4844if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4845 INTELCC="yes" 4846else 4847 INTELCC="no" 4848fi 4849 4850ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4851if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4852 SUNCC="yes" 4853else 4854 SUNCC="no" 4855fi 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4866 if test -n "$ac_tool_prefix"; then 4867 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4868set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4870$as_echo_n "checking for $ac_word... " >&6; } 4871if ${ac_cv_path_PKG_CONFIG+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 case $PKG_CONFIG in 4875 [\\/]* | ?:[\\/]*) 4876 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4877 ;; 4878 *) 4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4880for as_dir in $PATH 4881do 4882 IFS=$as_save_IFS 4883 test -z "$as_dir" && as_dir=. 4884 for ac_exec_ext in '' $ac_executable_extensions; do 4885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4886 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4888 break 2 4889 fi 4890done 4891 done 4892IFS=$as_save_IFS 4893 4894 ;; 4895esac 4896fi 4897PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4898if test -n "$PKG_CONFIG"; then 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4900$as_echo "$PKG_CONFIG" >&6; } 4901else 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4903$as_echo "no" >&6; } 4904fi 4905 4906 4907fi 4908if test -z "$ac_cv_path_PKG_CONFIG"; then 4909 ac_pt_PKG_CONFIG=$PKG_CONFIG 4910 # Extract the first word of "pkg-config", so it can be a program name with args. 4911set dummy pkg-config; ac_word=$2 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4913$as_echo_n "checking for $ac_word... " >&6; } 4914if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 case $ac_pt_PKG_CONFIG in 4918 [\\/]* | ?:[\\/]*) 4919 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4920 ;; 4921 *) 4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4923for as_dir in $PATH 4924do 4925 IFS=$as_save_IFS 4926 test -z "$as_dir" && as_dir=. 4927 for ac_exec_ext in '' $ac_executable_extensions; do 4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4929 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4931 break 2 4932 fi 4933done 4934 done 4935IFS=$as_save_IFS 4936 4937 ;; 4938esac 4939fi 4940ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4941if test -n "$ac_pt_PKG_CONFIG"; then 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4943$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4944else 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4946$as_echo "no" >&6; } 4947fi 4948 4949 if test "x$ac_pt_PKG_CONFIG" = x; then 4950 PKG_CONFIG="" 4951 else 4952 case $cross_compiling:$ac_tool_warned in 4953yes:) 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4956ac_tool_warned=yes ;; 4957esac 4958 PKG_CONFIG=$ac_pt_PKG_CONFIG 4959 fi 4960else 4961 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4962fi 4963 4964fi 4965if test -n "$PKG_CONFIG"; then 4966 _pkg_min_version=0.9.0 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4968$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4969 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4971$as_echo "yes" >&6; } 4972 else 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4974$as_echo "no" >&6; } 4975 PKG_CONFIG="" 4976 fi 4977fi 4978# Make sure we can run config.sub. 4979$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4980 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4981 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4983$as_echo_n "checking build system type... " >&6; } 4984if ${ac_cv_build+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 ac_build_alias=$build_alias 4988test "x$ac_build_alias" = x && 4989 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4990test "x$ac_build_alias" = x && 4991 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4992ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4993 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4994 4995fi 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4997$as_echo "$ac_cv_build" >&6; } 4998case $ac_cv_build in 4999*-*-*) ;; 5000*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5001esac 5002build=$ac_cv_build 5003ac_save_IFS=$IFS; IFS='-' 5004set x $ac_cv_build 5005shift 5006build_cpu=$1 5007build_vendor=$2 5008shift; shift 5009# Remember, the first character of IFS is used to create $*, 5010# except with old shells: 5011build_os=$* 5012IFS=$ac_save_IFS 5013case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5014 5015 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5017$as_echo_n "checking host system type... " >&6; } 5018if ${ac_cv_host+:} false; then : 5019 $as_echo_n "(cached) " >&6 5020else 5021 if test "x$host_alias" = x; then 5022 ac_cv_host=$ac_cv_build 5023else 5024 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5025 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5026fi 5027 5028fi 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5030$as_echo "$ac_cv_host" >&6; } 5031case $ac_cv_host in 5032*-*-*) ;; 5033*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5034esac 5035host=$ac_cv_host 5036ac_save_IFS=$IFS; IFS='-' 5037set x $ac_cv_host 5038shift 5039host_cpu=$1 5040host_vendor=$2 5041shift; shift 5042# Remember, the first character of IFS is used to create $*, 5043# except with old shells: 5044host_os=$* 5045IFS=$ac_save_IFS 5046case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5047 5048 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5050$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5051if ${ac_cv_path_SED+:} false; then : 5052 $as_echo_n "(cached) " >&6 5053else 5054 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5055 for ac_i in 1 2 3 4 5 6 7; do 5056 ac_script="$ac_script$as_nl$ac_script" 5057 done 5058 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5059 { ac_script=; unset ac_script;} 5060 if test -z "$SED"; then 5061 ac_path_SED_found=false 5062 # Loop through the user's path and test for each of PROGNAME-LIST 5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5064for as_dir in $PATH 5065do 5066 IFS=$as_save_IFS 5067 test -z "$as_dir" && as_dir=. 5068 for ac_prog in sed gsed; do 5069 for ac_exec_ext in '' $ac_executable_extensions; do 5070 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5071 as_fn_executable_p "$ac_path_SED" || continue 5072# Check for GNU ac_path_SED and select it if it is found. 5073 # Check for GNU $ac_path_SED 5074case `"$ac_path_SED" --version 2>&1` in 5075*GNU*) 5076 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5077*) 5078 ac_count=0 5079 $as_echo_n 0123456789 >"conftest.in" 5080 while : 5081 do 5082 cat "conftest.in" "conftest.in" >"conftest.tmp" 5083 mv "conftest.tmp" "conftest.in" 5084 cp "conftest.in" "conftest.nl" 5085 $as_echo '' >> "conftest.nl" 5086 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5088 as_fn_arith $ac_count + 1 && ac_count=$as_val 5089 if test $ac_count -gt ${ac_path_SED_max-0}; then 5090 # Best one so far, save it but keep looking for a better one 5091 ac_cv_path_SED="$ac_path_SED" 5092 ac_path_SED_max=$ac_count 5093 fi 5094 # 10*(2^10) chars as input seems more than enough 5095 test $ac_count -gt 10 && break 5096 done 5097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5098esac 5099 5100 $ac_path_SED_found && break 3 5101 done 5102 done 5103 done 5104IFS=$as_save_IFS 5105 if test -z "$ac_cv_path_SED"; then 5106 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5107 fi 5108else 5109 ac_cv_path_SED=$SED 5110fi 5111 5112fi 5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5114$as_echo "$ac_cv_path_SED" >&6; } 5115 SED="$ac_cv_path_SED" 5116 rm -f conftest.sed 5117 5118 5119 5120 5121 5122 5123# Check whether --enable-selective-werror was given. 5124if test "${enable_selective_werror+set}" = set; then : 5125 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5126else 5127 SELECTIVE_WERROR=yes 5128fi 5129 5130 5131 5132 5133 5134# -v is too short to test reliably with XORG_TESTSET_CFLAG 5135if test "x$SUNCC" = "xyes"; then 5136 BASE_CFLAGS="-v" 5137else 5138 BASE_CFLAGS="" 5139fi 5140 5141# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155xorg_testset_save_CFLAGS="$CFLAGS" 5156 5157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5162 $as_echo_n "(cached) " >&6 5163else 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165/* end confdefs.h. */ 5166int i; 5167_ACEOF 5168if ac_fn_c_try_compile "$LINENO"; then : 5169 xorg_cv_cc_flag_unknown_warning_option=yes 5170else 5171 xorg_cv_cc_flag_unknown_warning_option=no 5172fi 5173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5174fi 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5178 CFLAGS="$xorg_testset_save_CFLAGS" 5179fi 5180 5181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5184 fi 5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190else 5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5192/* end confdefs.h. */ 5193int i; 5194_ACEOF 5195if ac_fn_c_try_compile "$LINENO"; then : 5196 xorg_cv_cc_flag_unused_command_line_argument=yes 5197else 5198 xorg_cv_cc_flag_unused_command_line_argument=no 5199fi 5200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5201fi 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5205 CFLAGS="$xorg_testset_save_CFLAGS" 5206fi 5207 5208found="no" 5209 5210 if test $found = "no" ; then 5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5213 fi 5214 5215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5217 fi 5218 5219 CFLAGS="$CFLAGS -Wall" 5220 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5222$as_echo_n "checking if $CC supports -Wall... " >&6; } 5223 cacheid=xorg_cv_cc_flag__Wall 5224 if eval \${$cacheid+:} false; then : 5225 $as_echo_n "(cached) " >&6 5226else 5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5228/* end confdefs.h. */ 5229int i; 5230int 5231main () 5232{ 5233 5234 ; 5235 return 0; 5236} 5237_ACEOF 5238if ac_fn_c_try_link "$LINENO"; then : 5239 eval $cacheid=yes 5240else 5241 eval $cacheid=no 5242fi 5243rm -f core conftest.err conftest.$ac_objext \ 5244 conftest$ac_exeext conftest.$ac_ext 5245fi 5246 5247 5248 CFLAGS="$xorg_testset_save_CFLAGS" 5249 5250 eval supported=\$$cacheid 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5252$as_echo "$supported" >&6; } 5253 if test "$supported" = "yes" ; then 5254 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5255 found="yes" 5256 fi 5257 fi 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273xorg_testset_save_CFLAGS="$CFLAGS" 5274 5275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5280 $as_echo_n "(cached) " >&6 5281else 5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5283/* end confdefs.h. */ 5284int i; 5285_ACEOF 5286if ac_fn_c_try_compile "$LINENO"; then : 5287 xorg_cv_cc_flag_unknown_warning_option=yes 5288else 5289 xorg_cv_cc_flag_unknown_warning_option=no 5290fi 5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5292fi 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5296 CFLAGS="$xorg_testset_save_CFLAGS" 5297fi 5298 5299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5302 fi 5303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5310/* end confdefs.h. */ 5311int i; 5312_ACEOF 5313if ac_fn_c_try_compile "$LINENO"; then : 5314 xorg_cv_cc_flag_unused_command_line_argument=yes 5315else 5316 xorg_cv_cc_flag_unused_command_line_argument=no 5317fi 5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5319fi 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5323 CFLAGS="$xorg_testset_save_CFLAGS" 5324fi 5325 5326found="no" 5327 5328 if test $found = "no" ; then 5329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5331 fi 5332 5333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5335 fi 5336 5337 CFLAGS="$CFLAGS -Wpointer-arith" 5338 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5340$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5341 cacheid=xorg_cv_cc_flag__Wpointer_arith 5342 if eval \${$cacheid+:} false; then : 5343 $as_echo_n "(cached) " >&6 5344else 5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5346/* end confdefs.h. */ 5347int i; 5348int 5349main () 5350{ 5351 5352 ; 5353 return 0; 5354} 5355_ACEOF 5356if ac_fn_c_try_link "$LINENO"; then : 5357 eval $cacheid=yes 5358else 5359 eval $cacheid=no 5360fi 5361rm -f core conftest.err conftest.$ac_objext \ 5362 conftest$ac_exeext conftest.$ac_ext 5363fi 5364 5365 5366 CFLAGS="$xorg_testset_save_CFLAGS" 5367 5368 eval supported=\$$cacheid 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5370$as_echo "$supported" >&6; } 5371 if test "$supported" = "yes" ; then 5372 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5373 found="yes" 5374 fi 5375 fi 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391xorg_testset_save_CFLAGS="$CFLAGS" 5392 5393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5398 $as_echo_n "(cached) " >&6 5399else 5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5401/* end confdefs.h. */ 5402int i; 5403_ACEOF 5404if ac_fn_c_try_compile "$LINENO"; then : 5405 xorg_cv_cc_flag_unknown_warning_option=yes 5406else 5407 xorg_cv_cc_flag_unknown_warning_option=no 5408fi 5409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5410fi 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5414 CFLAGS="$xorg_testset_save_CFLAGS" 5415fi 5416 5417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5420 fi 5421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428/* end confdefs.h. */ 5429int i; 5430_ACEOF 5431if ac_fn_c_try_compile "$LINENO"; then : 5432 xorg_cv_cc_flag_unused_command_line_argument=yes 5433else 5434 xorg_cv_cc_flag_unused_command_line_argument=no 5435fi 5436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5437fi 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5441 CFLAGS="$xorg_testset_save_CFLAGS" 5442fi 5443 5444found="no" 5445 5446 if test $found = "no" ; then 5447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5449 fi 5450 5451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5453 fi 5454 5455 CFLAGS="$CFLAGS -Wmissing-declarations" 5456 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5458$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5459 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5460 if eval \${$cacheid+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462else 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5464/* end confdefs.h. */ 5465int i; 5466int 5467main () 5468{ 5469 5470 ; 5471 return 0; 5472} 5473_ACEOF 5474if ac_fn_c_try_link "$LINENO"; then : 5475 eval $cacheid=yes 5476else 5477 eval $cacheid=no 5478fi 5479rm -f core conftest.err conftest.$ac_objext \ 5480 conftest$ac_exeext conftest.$ac_ext 5481fi 5482 5483 5484 CFLAGS="$xorg_testset_save_CFLAGS" 5485 5486 eval supported=\$$cacheid 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5488$as_echo "$supported" >&6; } 5489 if test "$supported" = "yes" ; then 5490 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5491 found="yes" 5492 fi 5493 fi 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509xorg_testset_save_CFLAGS="$CFLAGS" 5510 5511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5516 $as_echo_n "(cached) " >&6 5517else 5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5519/* end confdefs.h. */ 5520int i; 5521_ACEOF 5522if ac_fn_c_try_compile "$LINENO"; then : 5523 xorg_cv_cc_flag_unknown_warning_option=yes 5524else 5525 xorg_cv_cc_flag_unknown_warning_option=no 5526fi 5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5528fi 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5532 CFLAGS="$xorg_testset_save_CFLAGS" 5533fi 5534 5535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5538 fi 5539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5546/* end confdefs.h. */ 5547int i; 5548_ACEOF 5549if ac_fn_c_try_compile "$LINENO"; then : 5550 xorg_cv_cc_flag_unused_command_line_argument=yes 5551else 5552 xorg_cv_cc_flag_unused_command_line_argument=no 5553fi 5554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5555fi 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5559 CFLAGS="$xorg_testset_save_CFLAGS" 5560fi 5561 5562found="no" 5563 5564 if test $found = "no" ; then 5565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5567 fi 5568 5569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5571 fi 5572 5573 CFLAGS="$CFLAGS -Wformat=2" 5574 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5576$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5577 cacheid=xorg_cv_cc_flag__Wformat_2 5578 if eval \${$cacheid+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5582/* end confdefs.h. */ 5583int i; 5584int 5585main () 5586{ 5587 5588 ; 5589 return 0; 5590} 5591_ACEOF 5592if ac_fn_c_try_link "$LINENO"; then : 5593 eval $cacheid=yes 5594else 5595 eval $cacheid=no 5596fi 5597rm -f core conftest.err conftest.$ac_objext \ 5598 conftest$ac_exeext conftest.$ac_ext 5599fi 5600 5601 5602 CFLAGS="$xorg_testset_save_CFLAGS" 5603 5604 eval supported=\$$cacheid 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5606$as_echo "$supported" >&6; } 5607 if test "$supported" = "yes" ; then 5608 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5609 found="yes" 5610 fi 5611 fi 5612 5613 if test $found = "no" ; then 5614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5616 fi 5617 5618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5620 fi 5621 5622 CFLAGS="$CFLAGS -Wformat" 5623 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5625$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5626 cacheid=xorg_cv_cc_flag__Wformat 5627 if eval \${$cacheid+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631/* end confdefs.h. */ 5632int i; 5633int 5634main () 5635{ 5636 5637 ; 5638 return 0; 5639} 5640_ACEOF 5641if ac_fn_c_try_link "$LINENO"; then : 5642 eval $cacheid=yes 5643else 5644 eval $cacheid=no 5645fi 5646rm -f core conftest.err conftest.$ac_objext \ 5647 conftest$ac_exeext conftest.$ac_ext 5648fi 5649 5650 5651 CFLAGS="$xorg_testset_save_CFLAGS" 5652 5653 eval supported=\$$cacheid 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5655$as_echo "$supported" >&6; } 5656 if test "$supported" = "yes" ; then 5657 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5658 found="yes" 5659 fi 5660 fi 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678xorg_testset_save_CFLAGS="$CFLAGS" 5679 5680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686else 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689int i; 5690_ACEOF 5691if ac_fn_c_try_compile "$LINENO"; then : 5692 xorg_cv_cc_flag_unknown_warning_option=yes 5693else 5694 xorg_cv_cc_flag_unknown_warning_option=no 5695fi 5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5697fi 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5701 CFLAGS="$xorg_testset_save_CFLAGS" 5702fi 5703 5704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5707 fi 5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5712 $as_echo_n "(cached) " >&6 5713else 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5715/* end confdefs.h. */ 5716int i; 5717_ACEOF 5718if ac_fn_c_try_compile "$LINENO"; then : 5719 xorg_cv_cc_flag_unused_command_line_argument=yes 5720else 5721 xorg_cv_cc_flag_unused_command_line_argument=no 5722fi 5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5724fi 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5728 CFLAGS="$xorg_testset_save_CFLAGS" 5729fi 5730 5731found="no" 5732 5733 if test $found = "no" ; then 5734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5736 fi 5737 5738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5740 fi 5741 5742 CFLAGS="$CFLAGS -Wstrict-prototypes" 5743 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5745$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5746 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5747 if eval \${$cacheid+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749else 5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5751/* end confdefs.h. */ 5752int i; 5753int 5754main () 5755{ 5756 5757 ; 5758 return 0; 5759} 5760_ACEOF 5761if ac_fn_c_try_link "$LINENO"; then : 5762 eval $cacheid=yes 5763else 5764 eval $cacheid=no 5765fi 5766rm -f core conftest.err conftest.$ac_objext \ 5767 conftest$ac_exeext conftest.$ac_ext 5768fi 5769 5770 5771 CFLAGS="$xorg_testset_save_CFLAGS" 5772 5773 eval supported=\$$cacheid 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5775$as_echo "$supported" >&6; } 5776 if test "$supported" = "yes" ; then 5777 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5778 found="yes" 5779 fi 5780 fi 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796xorg_testset_save_CFLAGS="$CFLAGS" 5797 5798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5803 $as_echo_n "(cached) " >&6 5804else 5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5806/* end confdefs.h. */ 5807int i; 5808_ACEOF 5809if ac_fn_c_try_compile "$LINENO"; then : 5810 xorg_cv_cc_flag_unknown_warning_option=yes 5811else 5812 xorg_cv_cc_flag_unknown_warning_option=no 5813fi 5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5815fi 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5819 CFLAGS="$xorg_testset_save_CFLAGS" 5820fi 5821 5822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5825 fi 5826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5833/* end confdefs.h. */ 5834int i; 5835_ACEOF 5836if ac_fn_c_try_compile "$LINENO"; then : 5837 xorg_cv_cc_flag_unused_command_line_argument=yes 5838else 5839 xorg_cv_cc_flag_unused_command_line_argument=no 5840fi 5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5842fi 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5846 CFLAGS="$xorg_testset_save_CFLAGS" 5847fi 5848 5849found="no" 5850 5851 if test $found = "no" ; then 5852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5854 fi 5855 5856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5858 fi 5859 5860 CFLAGS="$CFLAGS -Wmissing-prototypes" 5861 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5863$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5864 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5865 if eval \${$cacheid+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867else 5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5869/* end confdefs.h. */ 5870int i; 5871int 5872main () 5873{ 5874 5875 ; 5876 return 0; 5877} 5878_ACEOF 5879if ac_fn_c_try_link "$LINENO"; then : 5880 eval $cacheid=yes 5881else 5882 eval $cacheid=no 5883fi 5884rm -f core conftest.err conftest.$ac_objext \ 5885 conftest$ac_exeext conftest.$ac_ext 5886fi 5887 5888 5889 CFLAGS="$xorg_testset_save_CFLAGS" 5890 5891 eval supported=\$$cacheid 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5893$as_echo "$supported" >&6; } 5894 if test "$supported" = "yes" ; then 5895 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5896 found="yes" 5897 fi 5898 fi 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914xorg_testset_save_CFLAGS="$CFLAGS" 5915 5916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922else 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924/* end confdefs.h. */ 5925int i; 5926_ACEOF 5927if ac_fn_c_try_compile "$LINENO"; then : 5928 xorg_cv_cc_flag_unknown_warning_option=yes 5929else 5930 xorg_cv_cc_flag_unknown_warning_option=no 5931fi 5932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5933fi 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5937 CFLAGS="$xorg_testset_save_CFLAGS" 5938fi 5939 5940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5943 fi 5944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5948 $as_echo_n "(cached) " >&6 5949else 5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5951/* end confdefs.h. */ 5952int i; 5953_ACEOF 5954if ac_fn_c_try_compile "$LINENO"; then : 5955 xorg_cv_cc_flag_unused_command_line_argument=yes 5956else 5957 xorg_cv_cc_flag_unused_command_line_argument=no 5958fi 5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5960fi 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5964 CFLAGS="$xorg_testset_save_CFLAGS" 5965fi 5966 5967found="no" 5968 5969 if test $found = "no" ; then 5970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5972 fi 5973 5974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5976 fi 5977 5978 CFLAGS="$CFLAGS -Wnested-externs" 5979 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5981$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5982 cacheid=xorg_cv_cc_flag__Wnested_externs 5983 if eval \${$cacheid+:} false; then : 5984 $as_echo_n "(cached) " >&6 5985else 5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5987/* end confdefs.h. */ 5988int i; 5989int 5990main () 5991{ 5992 5993 ; 5994 return 0; 5995} 5996_ACEOF 5997if ac_fn_c_try_link "$LINENO"; then : 5998 eval $cacheid=yes 5999else 6000 eval $cacheid=no 6001fi 6002rm -f core conftest.err conftest.$ac_objext \ 6003 conftest$ac_exeext conftest.$ac_ext 6004fi 6005 6006 6007 CFLAGS="$xorg_testset_save_CFLAGS" 6008 6009 eval supported=\$$cacheid 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6011$as_echo "$supported" >&6; } 6012 if test "$supported" = "yes" ; then 6013 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6014 found="yes" 6015 fi 6016 fi 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032xorg_testset_save_CFLAGS="$CFLAGS" 6033 6034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6039 $as_echo_n "(cached) " >&6 6040else 6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6042/* end confdefs.h. */ 6043int i; 6044_ACEOF 6045if ac_fn_c_try_compile "$LINENO"; then : 6046 xorg_cv_cc_flag_unknown_warning_option=yes 6047else 6048 xorg_cv_cc_flag_unknown_warning_option=no 6049fi 6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6051fi 6052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6055 CFLAGS="$xorg_testset_save_CFLAGS" 6056fi 6057 6058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6061 fi 6062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6066 $as_echo_n "(cached) " >&6 6067else 6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6069/* end confdefs.h. */ 6070int i; 6071_ACEOF 6072if ac_fn_c_try_compile "$LINENO"; then : 6073 xorg_cv_cc_flag_unused_command_line_argument=yes 6074else 6075 xorg_cv_cc_flag_unused_command_line_argument=no 6076fi 6077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6078fi 6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6082 CFLAGS="$xorg_testset_save_CFLAGS" 6083fi 6084 6085found="no" 6086 6087 if test $found = "no" ; then 6088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6090 fi 6091 6092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6094 fi 6095 6096 CFLAGS="$CFLAGS -Wbad-function-cast" 6097 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6099$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6100 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6101 if eval \${$cacheid+:} false; then : 6102 $as_echo_n "(cached) " >&6 6103else 6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6105/* end confdefs.h. */ 6106int i; 6107int 6108main () 6109{ 6110 6111 ; 6112 return 0; 6113} 6114_ACEOF 6115if ac_fn_c_try_link "$LINENO"; then : 6116 eval $cacheid=yes 6117else 6118 eval $cacheid=no 6119fi 6120rm -f core conftest.err conftest.$ac_objext \ 6121 conftest$ac_exeext conftest.$ac_ext 6122fi 6123 6124 6125 CFLAGS="$xorg_testset_save_CFLAGS" 6126 6127 eval supported=\$$cacheid 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6129$as_echo "$supported" >&6; } 6130 if test "$supported" = "yes" ; then 6131 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6132 found="yes" 6133 fi 6134 fi 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150xorg_testset_save_CFLAGS="$CFLAGS" 6151 6152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6157 $as_echo_n "(cached) " >&6 6158else 6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6160/* end confdefs.h. */ 6161int i; 6162_ACEOF 6163if ac_fn_c_try_compile "$LINENO"; then : 6164 xorg_cv_cc_flag_unknown_warning_option=yes 6165else 6166 xorg_cv_cc_flag_unknown_warning_option=no 6167fi 6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6169fi 6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6173 CFLAGS="$xorg_testset_save_CFLAGS" 6174fi 6175 6176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6179 fi 6180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185else 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188int i; 6189_ACEOF 6190if ac_fn_c_try_compile "$LINENO"; then : 6191 xorg_cv_cc_flag_unused_command_line_argument=yes 6192else 6193 xorg_cv_cc_flag_unused_command_line_argument=no 6194fi 6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6196fi 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6200 CFLAGS="$xorg_testset_save_CFLAGS" 6201fi 6202 6203found="no" 6204 6205 if test $found = "no" ; then 6206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6208 fi 6209 6210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6212 fi 6213 6214 CFLAGS="$CFLAGS -Wold-style-definition" 6215 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6217$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6218 cacheid=xorg_cv_cc_flag__Wold_style_definition 6219 if eval \${$cacheid+:} false; then : 6220 $as_echo_n "(cached) " >&6 6221else 6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224int i; 6225int 6226main () 6227{ 6228 6229 ; 6230 return 0; 6231} 6232_ACEOF 6233if ac_fn_c_try_link "$LINENO"; then : 6234 eval $cacheid=yes 6235else 6236 eval $cacheid=no 6237fi 6238rm -f core conftest.err conftest.$ac_objext \ 6239 conftest$ac_exeext conftest.$ac_ext 6240fi 6241 6242 6243 CFLAGS="$xorg_testset_save_CFLAGS" 6244 6245 eval supported=\$$cacheid 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6247$as_echo "$supported" >&6; } 6248 if test "$supported" = "yes" ; then 6249 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6250 found="yes" 6251 fi 6252 fi 6253 6254 if test $found = "no" ; then 6255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6257 fi 6258 6259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6261 fi 6262 6263 CFLAGS="$CFLAGS -fd" 6264 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6266$as_echo_n "checking if $CC supports -fd... " >&6; } 6267 cacheid=xorg_cv_cc_flag__fd 6268 if eval \${$cacheid+:} false; then : 6269 $as_echo_n "(cached) " >&6 6270else 6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272/* end confdefs.h. */ 6273int i; 6274int 6275main () 6276{ 6277 6278 ; 6279 return 0; 6280} 6281_ACEOF 6282if ac_fn_c_try_link "$LINENO"; then : 6283 eval $cacheid=yes 6284else 6285 eval $cacheid=no 6286fi 6287rm -f core conftest.err conftest.$ac_objext \ 6288 conftest$ac_exeext conftest.$ac_ext 6289fi 6290 6291 6292 CFLAGS="$xorg_testset_save_CFLAGS" 6293 6294 eval supported=\$$cacheid 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6296$as_echo "$supported" >&6; } 6297 if test "$supported" = "yes" ; then 6298 BASE_CFLAGS="$BASE_CFLAGS -fd" 6299 found="yes" 6300 fi 6301 fi 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317xorg_testset_save_CFLAGS="$CFLAGS" 6318 6319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328int i; 6329_ACEOF 6330if ac_fn_c_try_compile "$LINENO"; then : 6331 xorg_cv_cc_flag_unknown_warning_option=yes 6332else 6333 xorg_cv_cc_flag_unknown_warning_option=no 6334fi 6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6340 CFLAGS="$xorg_testset_save_CFLAGS" 6341fi 6342 6343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6346 fi 6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355int i; 6356_ACEOF 6357if ac_fn_c_try_compile "$LINENO"; then : 6358 xorg_cv_cc_flag_unused_command_line_argument=yes 6359else 6360 xorg_cv_cc_flag_unused_command_line_argument=no 6361fi 6362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6363fi 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6367 CFLAGS="$xorg_testset_save_CFLAGS" 6368fi 6369 6370found="no" 6371 6372 if test $found = "no" ; then 6373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6375 fi 6376 6377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6379 fi 6380 6381 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6382 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6384$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6385 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6386 if eval \${$cacheid+:} false; then : 6387 $as_echo_n "(cached) " >&6 6388else 6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6390/* end confdefs.h. */ 6391int i; 6392int 6393main () 6394{ 6395 6396 ; 6397 return 0; 6398} 6399_ACEOF 6400if ac_fn_c_try_link "$LINENO"; then : 6401 eval $cacheid=yes 6402else 6403 eval $cacheid=no 6404fi 6405rm -f core conftest.err conftest.$ac_objext \ 6406 conftest$ac_exeext conftest.$ac_ext 6407fi 6408 6409 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411 6412 eval supported=\$$cacheid 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6414$as_echo "$supported" >&6; } 6415 if test "$supported" = "yes" ; then 6416 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6417 found="yes" 6418 fi 6419 fi 6420 6421 6422 6423 6424 6425# This chunk adds additional warnings that could catch undesired effects. 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439xorg_testset_save_CFLAGS="$CFLAGS" 6440 6441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450int i; 6451_ACEOF 6452if ac_fn_c_try_compile "$LINENO"; then : 6453 xorg_cv_cc_flag_unknown_warning_option=yes 6454else 6455 xorg_cv_cc_flag_unknown_warning_option=no 6456fi 6457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6458fi 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6462 CFLAGS="$xorg_testset_save_CFLAGS" 6463fi 6464 6465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6468 fi 6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6473 $as_echo_n "(cached) " >&6 6474else 6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476/* end confdefs.h. */ 6477int i; 6478_ACEOF 6479if ac_fn_c_try_compile "$LINENO"; then : 6480 xorg_cv_cc_flag_unused_command_line_argument=yes 6481else 6482 xorg_cv_cc_flag_unused_command_line_argument=no 6483fi 6484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6485fi 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490fi 6491 6492found="no" 6493 6494 if test $found = "no" ; then 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 fi 6498 6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6501 fi 6502 6503 CFLAGS="$CFLAGS -Wunused" 6504 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6506$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6507 cacheid=xorg_cv_cc_flag__Wunused 6508 if eval \${$cacheid+:} false; then : 6509 $as_echo_n "(cached) " >&6 6510else 6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6512/* end confdefs.h. */ 6513int i; 6514int 6515main () 6516{ 6517 6518 ; 6519 return 0; 6520} 6521_ACEOF 6522if ac_fn_c_try_link "$LINENO"; then : 6523 eval $cacheid=yes 6524else 6525 eval $cacheid=no 6526fi 6527rm -f core conftest.err conftest.$ac_objext \ 6528 conftest$ac_exeext conftest.$ac_ext 6529fi 6530 6531 6532 CFLAGS="$xorg_testset_save_CFLAGS" 6533 6534 eval supported=\$$cacheid 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6536$as_echo "$supported" >&6; } 6537 if test "$supported" = "yes" ; then 6538 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6539 found="yes" 6540 fi 6541 fi 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557xorg_testset_save_CFLAGS="$CFLAGS" 6558 6559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6564 $as_echo_n "(cached) " >&6 6565else 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567/* end confdefs.h. */ 6568int i; 6569_ACEOF 6570if ac_fn_c_try_compile "$LINENO"; then : 6571 xorg_cv_cc_flag_unknown_warning_option=yes 6572else 6573 xorg_cv_cc_flag_unknown_warning_option=no 6574fi 6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6576fi 6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6580 CFLAGS="$xorg_testset_save_CFLAGS" 6581fi 6582 6583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6586 fi 6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6594/* end confdefs.h. */ 6595int i; 6596_ACEOF 6597if ac_fn_c_try_compile "$LINENO"; then : 6598 xorg_cv_cc_flag_unused_command_line_argument=yes 6599else 6600 xorg_cv_cc_flag_unused_command_line_argument=no 6601fi 6602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6603fi 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6607 CFLAGS="$xorg_testset_save_CFLAGS" 6608fi 6609 6610found="no" 6611 6612 if test $found = "no" ; then 6613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6615 fi 6616 6617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6619 fi 6620 6621 CFLAGS="$CFLAGS -Wuninitialized" 6622 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6624$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6625 cacheid=xorg_cv_cc_flag__Wuninitialized 6626 if eval \${$cacheid+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6630/* end confdefs.h. */ 6631int i; 6632int 6633main () 6634{ 6635 6636 ; 6637 return 0; 6638} 6639_ACEOF 6640if ac_fn_c_try_link "$LINENO"; then : 6641 eval $cacheid=yes 6642else 6643 eval $cacheid=no 6644fi 6645rm -f core conftest.err conftest.$ac_objext \ 6646 conftest$ac_exeext conftest.$ac_ext 6647fi 6648 6649 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651 6652 eval supported=\$$cacheid 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6654$as_echo "$supported" >&6; } 6655 if test "$supported" = "yes" ; then 6656 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6657 found="yes" 6658 fi 6659 fi 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675xorg_testset_save_CFLAGS="$CFLAGS" 6676 6677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685/* end confdefs.h. */ 6686int i; 6687_ACEOF 6688if ac_fn_c_try_compile "$LINENO"; then : 6689 xorg_cv_cc_flag_unknown_warning_option=yes 6690else 6691 xorg_cv_cc_flag_unknown_warning_option=no 6692fi 6693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6694fi 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6698 CFLAGS="$xorg_testset_save_CFLAGS" 6699fi 6700 6701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6704 fi 6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713int i; 6714_ACEOF 6715if ac_fn_c_try_compile "$LINENO"; then : 6716 xorg_cv_cc_flag_unused_command_line_argument=yes 6717else 6718 xorg_cv_cc_flag_unused_command_line_argument=no 6719fi 6720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6721fi 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6725 CFLAGS="$xorg_testset_save_CFLAGS" 6726fi 6727 6728found="no" 6729 6730 if test $found = "no" ; then 6731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6733 fi 6734 6735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6737 fi 6738 6739 CFLAGS="$CFLAGS -Wshadow" 6740 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6742$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6743 cacheid=xorg_cv_cc_flag__Wshadow 6744 if eval \${$cacheid+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746else 6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6748/* end confdefs.h. */ 6749int i; 6750int 6751main () 6752{ 6753 6754 ; 6755 return 0; 6756} 6757_ACEOF 6758if ac_fn_c_try_link "$LINENO"; then : 6759 eval $cacheid=yes 6760else 6761 eval $cacheid=no 6762fi 6763rm -f core conftest.err conftest.$ac_objext \ 6764 conftest$ac_exeext conftest.$ac_ext 6765fi 6766 6767 6768 CFLAGS="$xorg_testset_save_CFLAGS" 6769 6770 eval supported=\$$cacheid 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6772$as_echo "$supported" >&6; } 6773 if test "$supported" = "yes" ; then 6774 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6775 found="yes" 6776 fi 6777 fi 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793xorg_testset_save_CFLAGS="$CFLAGS" 6794 6795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804int i; 6805_ACEOF 6806if ac_fn_c_try_compile "$LINENO"; then : 6807 xorg_cv_cc_flag_unknown_warning_option=yes 6808else 6809 xorg_cv_cc_flag_unknown_warning_option=no 6810fi 6811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6812fi 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6816 CFLAGS="$xorg_testset_save_CFLAGS" 6817fi 6818 6819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822 fi 6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828else 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830/* end confdefs.h. */ 6831int i; 6832_ACEOF 6833if ac_fn_c_try_compile "$LINENO"; then : 6834 xorg_cv_cc_flag_unused_command_line_argument=yes 6835else 6836 xorg_cv_cc_flag_unused_command_line_argument=no 6837fi 6838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6839fi 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6843 CFLAGS="$xorg_testset_save_CFLAGS" 6844fi 6845 6846found="no" 6847 6848 if test $found = "no" ; then 6849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6851 fi 6852 6853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6855 fi 6856 6857 CFLAGS="$CFLAGS -Wmissing-noreturn" 6858 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6860$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6861 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6862 if eval \${$cacheid+:} false; then : 6863 $as_echo_n "(cached) " >&6 6864else 6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6866/* end confdefs.h. */ 6867int i; 6868int 6869main () 6870{ 6871 6872 ; 6873 return 0; 6874} 6875_ACEOF 6876if ac_fn_c_try_link "$LINENO"; then : 6877 eval $cacheid=yes 6878else 6879 eval $cacheid=no 6880fi 6881rm -f core conftest.err conftest.$ac_objext \ 6882 conftest$ac_exeext conftest.$ac_ext 6883fi 6884 6885 6886 CFLAGS="$xorg_testset_save_CFLAGS" 6887 6888 eval supported=\$$cacheid 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6890$as_echo "$supported" >&6; } 6891 if test "$supported" = "yes" ; then 6892 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6893 found="yes" 6894 fi 6895 fi 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911xorg_testset_save_CFLAGS="$CFLAGS" 6912 6913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919else 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921/* end confdefs.h. */ 6922int i; 6923_ACEOF 6924if ac_fn_c_try_compile "$LINENO"; then : 6925 xorg_cv_cc_flag_unknown_warning_option=yes 6926else 6927 xorg_cv_cc_flag_unknown_warning_option=no 6928fi 6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6930fi 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6934 CFLAGS="$xorg_testset_save_CFLAGS" 6935fi 6936 6937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6940 fi 6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6948/* end confdefs.h. */ 6949int i; 6950_ACEOF 6951if ac_fn_c_try_compile "$LINENO"; then : 6952 xorg_cv_cc_flag_unused_command_line_argument=yes 6953else 6954 xorg_cv_cc_flag_unused_command_line_argument=no 6955fi 6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6957fi 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6961 CFLAGS="$xorg_testset_save_CFLAGS" 6962fi 6963 6964found="no" 6965 6966 if test $found = "no" ; then 6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6969 fi 6970 6971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6973 fi 6974 6975 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6976 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6978$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6979 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6980 if eval \${$cacheid+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984/* end confdefs.h. */ 6985int i; 6986int 6987main () 6988{ 6989 6990 ; 6991 return 0; 6992} 6993_ACEOF 6994if ac_fn_c_try_link "$LINENO"; then : 6995 eval $cacheid=yes 6996else 6997 eval $cacheid=no 6998fi 6999rm -f core conftest.err conftest.$ac_objext \ 7000 conftest$ac_exeext conftest.$ac_ext 7001fi 7002 7003 7004 CFLAGS="$xorg_testset_save_CFLAGS" 7005 7006 eval supported=\$$cacheid 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7008$as_echo "$supported" >&6; } 7009 if test "$supported" = "yes" ; then 7010 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7011 found="yes" 7012 fi 7013 fi 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029xorg_testset_save_CFLAGS="$CFLAGS" 7030 7031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040int i; 7041_ACEOF 7042if ac_fn_c_try_compile "$LINENO"; then : 7043 xorg_cv_cc_flag_unknown_warning_option=yes 7044else 7045 xorg_cv_cc_flag_unknown_warning_option=no 7046fi 7047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7048fi 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7052 CFLAGS="$xorg_testset_save_CFLAGS" 7053fi 7054 7055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7058 fi 7059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7063 $as_echo_n "(cached) " >&6 7064else 7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066/* end confdefs.h. */ 7067int i; 7068_ACEOF 7069if ac_fn_c_try_compile "$LINENO"; then : 7070 xorg_cv_cc_flag_unused_command_line_argument=yes 7071else 7072 xorg_cv_cc_flag_unused_command_line_argument=no 7073fi 7074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7075fi 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7079 CFLAGS="$xorg_testset_save_CFLAGS" 7080fi 7081 7082found="no" 7083 7084 if test $found = "no" ; then 7085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7087 fi 7088 7089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7091 fi 7092 7093 CFLAGS="$CFLAGS -Wredundant-decls" 7094 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7096$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7097 cacheid=xorg_cv_cc_flag__Wredundant_decls 7098 if eval \${$cacheid+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7102/* end confdefs.h. */ 7103int i; 7104int 7105main () 7106{ 7107 7108 ; 7109 return 0; 7110} 7111_ACEOF 7112if ac_fn_c_try_link "$LINENO"; then : 7113 eval $cacheid=yes 7114else 7115 eval $cacheid=no 7116fi 7117rm -f core conftest.err conftest.$ac_objext \ 7118 conftest$ac_exeext conftest.$ac_ext 7119fi 7120 7121 7122 CFLAGS="$xorg_testset_save_CFLAGS" 7123 7124 eval supported=\$$cacheid 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7126$as_echo "$supported" >&6; } 7127 if test "$supported" = "yes" ; then 7128 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7129 found="yes" 7130 fi 7131 fi 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147xorg_testset_save_CFLAGS="$CFLAGS" 7148 7149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155else 7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7157/* end confdefs.h. */ 7158int i; 7159_ACEOF 7160if ac_fn_c_try_compile "$LINENO"; then : 7161 xorg_cv_cc_flag_unknown_warning_option=yes 7162else 7163 xorg_cv_cc_flag_unknown_warning_option=no 7164fi 7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7166fi 7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7170 CFLAGS="$xorg_testset_save_CFLAGS" 7171fi 7172 7173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7176 fi 7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7184/* end confdefs.h. */ 7185int i; 7186_ACEOF 7187if ac_fn_c_try_compile "$LINENO"; then : 7188 xorg_cv_cc_flag_unused_command_line_argument=yes 7189else 7190 xorg_cv_cc_flag_unused_command_line_argument=no 7191fi 7192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7193fi 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7197 CFLAGS="$xorg_testset_save_CFLAGS" 7198fi 7199 7200found="no" 7201 7202 if test $found = "no" ; then 7203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7205 fi 7206 7207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7209 fi 7210 7211 CFLAGS="$CFLAGS -Wlogical-op" 7212 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7214$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7215 cacheid=xorg_cv_cc_flag__Wlogical_op 7216 if eval \${$cacheid+:} false; then : 7217 $as_echo_n "(cached) " >&6 7218else 7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220/* end confdefs.h. */ 7221int i; 7222int 7223main () 7224{ 7225 7226 ; 7227 return 0; 7228} 7229_ACEOF 7230if ac_fn_c_try_link "$LINENO"; then : 7231 eval $cacheid=yes 7232else 7233 eval $cacheid=no 7234fi 7235rm -f core conftest.err conftest.$ac_objext \ 7236 conftest$ac_exeext conftest.$ac_ext 7237fi 7238 7239 7240 CFLAGS="$xorg_testset_save_CFLAGS" 7241 7242 eval supported=\$$cacheid 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7244$as_echo "$supported" >&6; } 7245 if test "$supported" = "yes" ; then 7246 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7247 found="yes" 7248 fi 7249 fi 7250 7251 7252 7253# These are currently disabled because they are noisy. They will be enabled 7254# in the future once the codebase is sufficiently modernized to silence 7255# them. For now, I don't want them to drown out the other warnings. 7256# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7257# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7258# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7259 7260# Turn some warnings into errors, so we don't accidently get successful builds 7261# when there are problems that should be fixed. 7262 7263if test "x$SELECTIVE_WERROR" = "xyes" ; then 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277xorg_testset_save_CFLAGS="$CFLAGS" 7278 7279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285else 7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287/* end confdefs.h. */ 7288int i; 7289_ACEOF 7290if ac_fn_c_try_compile "$LINENO"; then : 7291 xorg_cv_cc_flag_unknown_warning_option=yes 7292else 7293 xorg_cv_cc_flag_unknown_warning_option=no 7294fi 7295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7296fi 7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7300 CFLAGS="$xorg_testset_save_CFLAGS" 7301fi 7302 7303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7306 fi 7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7311 $as_echo_n "(cached) " >&6 7312else 7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314/* end confdefs.h. */ 7315int i; 7316_ACEOF 7317if ac_fn_c_try_compile "$LINENO"; then : 7318 xorg_cv_cc_flag_unused_command_line_argument=yes 7319else 7320 xorg_cv_cc_flag_unused_command_line_argument=no 7321fi 7322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7323fi 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7327 CFLAGS="$xorg_testset_save_CFLAGS" 7328fi 7329 7330found="no" 7331 7332 if test $found = "no" ; then 7333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7335 fi 7336 7337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7339 fi 7340 7341 CFLAGS="$CFLAGS -Werror=implicit" 7342 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7344$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7345 cacheid=xorg_cv_cc_flag__Werror_implicit 7346 if eval \${$cacheid+:} false; then : 7347 $as_echo_n "(cached) " >&6 7348else 7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7350/* end confdefs.h. */ 7351int i; 7352int 7353main () 7354{ 7355 7356 ; 7357 return 0; 7358} 7359_ACEOF 7360if ac_fn_c_try_link "$LINENO"; then : 7361 eval $cacheid=yes 7362else 7363 eval $cacheid=no 7364fi 7365rm -f core conftest.err conftest.$ac_objext \ 7366 conftest$ac_exeext conftest.$ac_ext 7367fi 7368 7369 7370 CFLAGS="$xorg_testset_save_CFLAGS" 7371 7372 eval supported=\$$cacheid 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7374$as_echo "$supported" >&6; } 7375 if test "$supported" = "yes" ; then 7376 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7377 found="yes" 7378 fi 7379 fi 7380 7381 if test $found = "no" ; then 7382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7384 fi 7385 7386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7388 fi 7389 7390 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7391 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7393$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7394 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7395 if eval \${$cacheid+:} false; then : 7396 $as_echo_n "(cached) " >&6 7397else 7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7399/* end confdefs.h. */ 7400int i; 7401int 7402main () 7403{ 7404 7405 ; 7406 return 0; 7407} 7408_ACEOF 7409if ac_fn_c_try_link "$LINENO"; then : 7410 eval $cacheid=yes 7411else 7412 eval $cacheid=no 7413fi 7414rm -f core conftest.err conftest.$ac_objext \ 7415 conftest$ac_exeext conftest.$ac_ext 7416fi 7417 7418 7419 CFLAGS="$xorg_testset_save_CFLAGS" 7420 7421 eval supported=\$$cacheid 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7423$as_echo "$supported" >&6; } 7424 if test "$supported" = "yes" ; then 7425 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7426 found="yes" 7427 fi 7428 fi 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444xorg_testset_save_CFLAGS="$CFLAGS" 7445 7446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7451 $as_echo_n "(cached) " >&6 7452else 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455int i; 7456_ACEOF 7457if ac_fn_c_try_compile "$LINENO"; then : 7458 xorg_cv_cc_flag_unknown_warning_option=yes 7459else 7460 xorg_cv_cc_flag_unknown_warning_option=no 7461fi 7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7463fi 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7467 CFLAGS="$xorg_testset_save_CFLAGS" 7468fi 7469 7470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7473 fi 7474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481/* end confdefs.h. */ 7482int i; 7483_ACEOF 7484if ac_fn_c_try_compile "$LINENO"; then : 7485 xorg_cv_cc_flag_unused_command_line_argument=yes 7486else 7487 xorg_cv_cc_flag_unused_command_line_argument=no 7488fi 7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7490fi 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7494 CFLAGS="$xorg_testset_save_CFLAGS" 7495fi 7496 7497found="no" 7498 7499 if test $found = "no" ; then 7500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 fi 7503 7504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7506 fi 7507 7508 CFLAGS="$CFLAGS -Werror=nonnull" 7509 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7511$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7512 cacheid=xorg_cv_cc_flag__Werror_nonnull 7513 if eval \${$cacheid+:} false; then : 7514 $as_echo_n "(cached) " >&6 7515else 7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7517/* end confdefs.h. */ 7518int i; 7519int 7520main () 7521{ 7522 7523 ; 7524 return 0; 7525} 7526_ACEOF 7527if ac_fn_c_try_link "$LINENO"; then : 7528 eval $cacheid=yes 7529else 7530 eval $cacheid=no 7531fi 7532rm -f core conftest.err conftest.$ac_objext \ 7533 conftest$ac_exeext conftest.$ac_ext 7534fi 7535 7536 7537 CFLAGS="$xorg_testset_save_CFLAGS" 7538 7539 eval supported=\$$cacheid 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7541$as_echo "$supported" >&6; } 7542 if test "$supported" = "yes" ; then 7543 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7544 found="yes" 7545 fi 7546 fi 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562xorg_testset_save_CFLAGS="$CFLAGS" 7563 7564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573int i; 7574_ACEOF 7575if ac_fn_c_try_compile "$LINENO"; then : 7576 xorg_cv_cc_flag_unknown_warning_option=yes 7577else 7578 xorg_cv_cc_flag_unknown_warning_option=no 7579fi 7580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7581fi 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7585 CFLAGS="$xorg_testset_save_CFLAGS" 7586fi 7587 7588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7591 fi 7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600int i; 7601_ACEOF 7602if ac_fn_c_try_compile "$LINENO"; then : 7603 xorg_cv_cc_flag_unused_command_line_argument=yes 7604else 7605 xorg_cv_cc_flag_unused_command_line_argument=no 7606fi 7607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7608fi 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7612 CFLAGS="$xorg_testset_save_CFLAGS" 7613fi 7614 7615found="no" 7616 7617 if test $found = "no" ; then 7618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7620 fi 7621 7622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7624 fi 7625 7626 CFLAGS="$CFLAGS -Werror=init-self" 7627 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7629$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7630 cacheid=xorg_cv_cc_flag__Werror_init_self 7631 if eval \${$cacheid+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635/* end confdefs.h. */ 7636int i; 7637int 7638main () 7639{ 7640 7641 ; 7642 return 0; 7643} 7644_ACEOF 7645if ac_fn_c_try_link "$LINENO"; then : 7646 eval $cacheid=yes 7647else 7648 eval $cacheid=no 7649fi 7650rm -f core conftest.err conftest.$ac_objext \ 7651 conftest$ac_exeext conftest.$ac_ext 7652fi 7653 7654 7655 CFLAGS="$xorg_testset_save_CFLAGS" 7656 7657 eval supported=\$$cacheid 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7659$as_echo "$supported" >&6; } 7660 if test "$supported" = "yes" ; then 7661 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7662 found="yes" 7663 fi 7664 fi 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680xorg_testset_save_CFLAGS="$CFLAGS" 7681 7682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688else 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690/* end confdefs.h. */ 7691int i; 7692_ACEOF 7693if ac_fn_c_try_compile "$LINENO"; then : 7694 xorg_cv_cc_flag_unknown_warning_option=yes 7695else 7696 xorg_cv_cc_flag_unknown_warning_option=no 7697fi 7698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7699fi 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7703 CFLAGS="$xorg_testset_save_CFLAGS" 7704fi 7705 7706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7709 fi 7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717/* end confdefs.h. */ 7718int i; 7719_ACEOF 7720if ac_fn_c_try_compile "$LINENO"; then : 7721 xorg_cv_cc_flag_unused_command_line_argument=yes 7722else 7723 xorg_cv_cc_flag_unused_command_line_argument=no 7724fi 7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7726fi 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7730 CFLAGS="$xorg_testset_save_CFLAGS" 7731fi 7732 7733found="no" 7734 7735 if test $found = "no" ; then 7736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7738 fi 7739 7740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7742 fi 7743 7744 CFLAGS="$CFLAGS -Werror=main" 7745 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7747$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7748 cacheid=xorg_cv_cc_flag__Werror_main 7749 if eval \${$cacheid+:} false; then : 7750 $as_echo_n "(cached) " >&6 7751else 7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7753/* end confdefs.h. */ 7754int i; 7755int 7756main () 7757{ 7758 7759 ; 7760 return 0; 7761} 7762_ACEOF 7763if ac_fn_c_try_link "$LINENO"; then : 7764 eval $cacheid=yes 7765else 7766 eval $cacheid=no 7767fi 7768rm -f core conftest.err conftest.$ac_objext \ 7769 conftest$ac_exeext conftest.$ac_ext 7770fi 7771 7772 7773 CFLAGS="$xorg_testset_save_CFLAGS" 7774 7775 eval supported=\$$cacheid 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7777$as_echo "$supported" >&6; } 7778 if test "$supported" = "yes" ; then 7779 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7780 found="yes" 7781 fi 7782 fi 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798xorg_testset_save_CFLAGS="$CFLAGS" 7799 7800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806else 7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809int i; 7810_ACEOF 7811if ac_fn_c_try_compile "$LINENO"; then : 7812 xorg_cv_cc_flag_unknown_warning_option=yes 7813else 7814 xorg_cv_cc_flag_unknown_warning_option=no 7815fi 7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7817fi 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7821 CFLAGS="$xorg_testset_save_CFLAGS" 7822fi 7823 7824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7827 fi 7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835/* end confdefs.h. */ 7836int i; 7837_ACEOF 7838if ac_fn_c_try_compile "$LINENO"; then : 7839 xorg_cv_cc_flag_unused_command_line_argument=yes 7840else 7841 xorg_cv_cc_flag_unused_command_line_argument=no 7842fi 7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7844fi 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7848 CFLAGS="$xorg_testset_save_CFLAGS" 7849fi 7850 7851found="no" 7852 7853 if test $found = "no" ; then 7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7856 fi 7857 7858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7860 fi 7861 7862 CFLAGS="$CFLAGS -Werror=missing-braces" 7863 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7865$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7866 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7867 if eval \${$cacheid+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869else 7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7871/* end confdefs.h. */ 7872int i; 7873int 7874main () 7875{ 7876 7877 ; 7878 return 0; 7879} 7880_ACEOF 7881if ac_fn_c_try_link "$LINENO"; then : 7882 eval $cacheid=yes 7883else 7884 eval $cacheid=no 7885fi 7886rm -f core conftest.err conftest.$ac_objext \ 7887 conftest$ac_exeext conftest.$ac_ext 7888fi 7889 7890 7891 CFLAGS="$xorg_testset_save_CFLAGS" 7892 7893 eval supported=\$$cacheid 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7895$as_echo "$supported" >&6; } 7896 if test "$supported" = "yes" ; then 7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7898 found="yes" 7899 fi 7900 fi 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916xorg_testset_save_CFLAGS="$CFLAGS" 7917 7918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7923 $as_echo_n "(cached) " >&6 7924else 7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7926/* end confdefs.h. */ 7927int i; 7928_ACEOF 7929if ac_fn_c_try_compile "$LINENO"; then : 7930 xorg_cv_cc_flag_unknown_warning_option=yes 7931else 7932 xorg_cv_cc_flag_unknown_warning_option=no 7933fi 7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7935fi 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7939 CFLAGS="$xorg_testset_save_CFLAGS" 7940fi 7941 7942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7945 fi 7946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7950 $as_echo_n "(cached) " >&6 7951else 7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7953/* end confdefs.h. */ 7954int i; 7955_ACEOF 7956if ac_fn_c_try_compile "$LINENO"; then : 7957 xorg_cv_cc_flag_unused_command_line_argument=yes 7958else 7959 xorg_cv_cc_flag_unused_command_line_argument=no 7960fi 7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7962fi 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7966 CFLAGS="$xorg_testset_save_CFLAGS" 7967fi 7968 7969found="no" 7970 7971 if test $found = "no" ; then 7972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7974 fi 7975 7976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7978 fi 7979 7980 CFLAGS="$CFLAGS -Werror=sequence-point" 7981 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7983$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7984 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7985 if eval \${$cacheid+:} false; then : 7986 $as_echo_n "(cached) " >&6 7987else 7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7989/* end confdefs.h. */ 7990int i; 7991int 7992main () 7993{ 7994 7995 ; 7996 return 0; 7997} 7998_ACEOF 7999if ac_fn_c_try_link "$LINENO"; then : 8000 eval $cacheid=yes 8001else 8002 eval $cacheid=no 8003fi 8004rm -f core conftest.err conftest.$ac_objext \ 8005 conftest$ac_exeext conftest.$ac_ext 8006fi 8007 8008 8009 CFLAGS="$xorg_testset_save_CFLAGS" 8010 8011 eval supported=\$$cacheid 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8013$as_echo "$supported" >&6; } 8014 if test "$supported" = "yes" ; then 8015 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8016 found="yes" 8017 fi 8018 fi 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034xorg_testset_save_CFLAGS="$CFLAGS" 8035 8036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8044/* end confdefs.h. */ 8045int i; 8046_ACEOF 8047if ac_fn_c_try_compile "$LINENO"; then : 8048 xorg_cv_cc_flag_unknown_warning_option=yes 8049else 8050 xorg_cv_cc_flag_unknown_warning_option=no 8051fi 8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8053fi 8054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8057 CFLAGS="$xorg_testset_save_CFLAGS" 8058fi 8059 8060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8063 fi 8064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8071/* end confdefs.h. */ 8072int i; 8073_ACEOF 8074if ac_fn_c_try_compile "$LINENO"; then : 8075 xorg_cv_cc_flag_unused_command_line_argument=yes 8076else 8077 xorg_cv_cc_flag_unused_command_line_argument=no 8078fi 8079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8080fi 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085fi 8086 8087found="no" 8088 8089 if test $found = "no" ; then 8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 fi 8093 8094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8096 fi 8097 8098 CFLAGS="$CFLAGS -Werror=return-type" 8099 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8101$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8102 cacheid=xorg_cv_cc_flag__Werror_return_type 8103 if eval \${$cacheid+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8107/* end confdefs.h. */ 8108int i; 8109int 8110main () 8111{ 8112 8113 ; 8114 return 0; 8115} 8116_ACEOF 8117if ac_fn_c_try_link "$LINENO"; then : 8118 eval $cacheid=yes 8119else 8120 eval $cacheid=no 8121fi 8122rm -f core conftest.err conftest.$ac_objext \ 8123 conftest$ac_exeext conftest.$ac_ext 8124fi 8125 8126 8127 CFLAGS="$xorg_testset_save_CFLAGS" 8128 8129 eval supported=\$$cacheid 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8131$as_echo "$supported" >&6; } 8132 if test "$supported" = "yes" ; then 8133 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8134 found="yes" 8135 fi 8136 fi 8137 8138 if test $found = "no" ; then 8139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8141 fi 8142 8143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8145 fi 8146 8147 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8148 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8150$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8151 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8152 if eval \${$cacheid+:} false; then : 8153 $as_echo_n "(cached) " >&6 8154else 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8156/* end confdefs.h. */ 8157int i; 8158int 8159main () 8160{ 8161 8162 ; 8163 return 0; 8164} 8165_ACEOF 8166if ac_fn_c_try_link "$LINENO"; then : 8167 eval $cacheid=yes 8168else 8169 eval $cacheid=no 8170fi 8171rm -f core conftest.err conftest.$ac_objext \ 8172 conftest$ac_exeext conftest.$ac_ext 8173fi 8174 8175 8176 CFLAGS="$xorg_testset_save_CFLAGS" 8177 8178 eval supported=\$$cacheid 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8180$as_echo "$supported" >&6; } 8181 if test "$supported" = "yes" ; then 8182 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8183 found="yes" 8184 fi 8185 fi 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201xorg_testset_save_CFLAGS="$CFLAGS" 8202 8203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8211/* end confdefs.h. */ 8212int i; 8213_ACEOF 8214if ac_fn_c_try_compile "$LINENO"; then : 8215 xorg_cv_cc_flag_unknown_warning_option=yes 8216else 8217 xorg_cv_cc_flag_unknown_warning_option=no 8218fi 8219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8220fi 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8224 CFLAGS="$xorg_testset_save_CFLAGS" 8225fi 8226 8227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8230 fi 8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236else 8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238/* end confdefs.h. */ 8239int i; 8240_ACEOF 8241if ac_fn_c_try_compile "$LINENO"; then : 8242 xorg_cv_cc_flag_unused_command_line_argument=yes 8243else 8244 xorg_cv_cc_flag_unused_command_line_argument=no 8245fi 8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8247fi 8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8251 CFLAGS="$xorg_testset_save_CFLAGS" 8252fi 8253 8254found="no" 8255 8256 if test $found = "no" ; then 8257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8259 fi 8260 8261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8263 fi 8264 8265 CFLAGS="$CFLAGS -Werror=trigraphs" 8266 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8268$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8269 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8270 if eval \${$cacheid+:} false; then : 8271 $as_echo_n "(cached) " >&6 8272else 8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8274/* end confdefs.h. */ 8275int i; 8276int 8277main () 8278{ 8279 8280 ; 8281 return 0; 8282} 8283_ACEOF 8284if ac_fn_c_try_link "$LINENO"; then : 8285 eval $cacheid=yes 8286else 8287 eval $cacheid=no 8288fi 8289rm -f core conftest.err conftest.$ac_objext \ 8290 conftest$ac_exeext conftest.$ac_ext 8291fi 8292 8293 8294 CFLAGS="$xorg_testset_save_CFLAGS" 8295 8296 eval supported=\$$cacheid 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8298$as_echo "$supported" >&6; } 8299 if test "$supported" = "yes" ; then 8300 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8301 found="yes" 8302 fi 8303 fi 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319xorg_testset_save_CFLAGS="$CFLAGS" 8320 8321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8326 $as_echo_n "(cached) " >&6 8327else 8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8329/* end confdefs.h. */ 8330int i; 8331_ACEOF 8332if ac_fn_c_try_compile "$LINENO"; then : 8333 xorg_cv_cc_flag_unknown_warning_option=yes 8334else 8335 xorg_cv_cc_flag_unknown_warning_option=no 8336fi 8337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8338fi 8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8342 CFLAGS="$xorg_testset_save_CFLAGS" 8343fi 8344 8345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8348 fi 8349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8356/* end confdefs.h. */ 8357int i; 8358_ACEOF 8359if ac_fn_c_try_compile "$LINENO"; then : 8360 xorg_cv_cc_flag_unused_command_line_argument=yes 8361else 8362 xorg_cv_cc_flag_unused_command_line_argument=no 8363fi 8364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8365fi 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8369 CFLAGS="$xorg_testset_save_CFLAGS" 8370fi 8371 8372found="no" 8373 8374 if test $found = "no" ; then 8375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8377 fi 8378 8379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8381 fi 8382 8383 CFLAGS="$CFLAGS -Werror=array-bounds" 8384 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8386$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8387 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8388 if eval \${$cacheid+:} false; then : 8389 $as_echo_n "(cached) " >&6 8390else 8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8392/* end confdefs.h. */ 8393int i; 8394int 8395main () 8396{ 8397 8398 ; 8399 return 0; 8400} 8401_ACEOF 8402if ac_fn_c_try_link "$LINENO"; then : 8403 eval $cacheid=yes 8404else 8405 eval $cacheid=no 8406fi 8407rm -f core conftest.err conftest.$ac_objext \ 8408 conftest$ac_exeext conftest.$ac_ext 8409fi 8410 8411 8412 CFLAGS="$xorg_testset_save_CFLAGS" 8413 8414 eval supported=\$$cacheid 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8416$as_echo "$supported" >&6; } 8417 if test "$supported" = "yes" ; then 8418 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8419 found="yes" 8420 fi 8421 fi 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437xorg_testset_save_CFLAGS="$CFLAGS" 8438 8439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8444 $as_echo_n "(cached) " >&6 8445else 8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8447/* end confdefs.h. */ 8448int i; 8449_ACEOF 8450if ac_fn_c_try_compile "$LINENO"; then : 8451 xorg_cv_cc_flag_unknown_warning_option=yes 8452else 8453 xorg_cv_cc_flag_unknown_warning_option=no 8454fi 8455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8456fi 8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8460 CFLAGS="$xorg_testset_save_CFLAGS" 8461fi 8462 8463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8466 fi 8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8471 $as_echo_n "(cached) " >&6 8472else 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475int i; 8476_ACEOF 8477if ac_fn_c_try_compile "$LINENO"; then : 8478 xorg_cv_cc_flag_unused_command_line_argument=yes 8479else 8480 xorg_cv_cc_flag_unused_command_line_argument=no 8481fi 8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8483fi 8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8487 CFLAGS="$xorg_testset_save_CFLAGS" 8488fi 8489 8490found="no" 8491 8492 if test $found = "no" ; then 8493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8495 fi 8496 8497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8499 fi 8500 8501 CFLAGS="$CFLAGS -Werror=write-strings" 8502 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8504$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8505 cacheid=xorg_cv_cc_flag__Werror_write_strings 8506 if eval \${$cacheid+:} false; then : 8507 $as_echo_n "(cached) " >&6 8508else 8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8510/* end confdefs.h. */ 8511int i; 8512int 8513main () 8514{ 8515 8516 ; 8517 return 0; 8518} 8519_ACEOF 8520if ac_fn_c_try_link "$LINENO"; then : 8521 eval $cacheid=yes 8522else 8523 eval $cacheid=no 8524fi 8525rm -f core conftest.err conftest.$ac_objext \ 8526 conftest$ac_exeext conftest.$ac_ext 8527fi 8528 8529 8530 CFLAGS="$xorg_testset_save_CFLAGS" 8531 8532 eval supported=\$$cacheid 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8534$as_echo "$supported" >&6; } 8535 if test "$supported" = "yes" ; then 8536 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8537 found="yes" 8538 fi 8539 fi 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555xorg_testset_save_CFLAGS="$CFLAGS" 8556 8557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8565/* end confdefs.h. */ 8566int i; 8567_ACEOF 8568if ac_fn_c_try_compile "$LINENO"; then : 8569 xorg_cv_cc_flag_unknown_warning_option=yes 8570else 8571 xorg_cv_cc_flag_unknown_warning_option=no 8572fi 8573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8574fi 8575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8578 CFLAGS="$xorg_testset_save_CFLAGS" 8579fi 8580 8581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8584 fi 8585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8589 $as_echo_n "(cached) " >&6 8590else 8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8592/* end confdefs.h. */ 8593int i; 8594_ACEOF 8595if ac_fn_c_try_compile "$LINENO"; then : 8596 xorg_cv_cc_flag_unused_command_line_argument=yes 8597else 8598 xorg_cv_cc_flag_unused_command_line_argument=no 8599fi 8600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8601fi 8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8605 CFLAGS="$xorg_testset_save_CFLAGS" 8606fi 8607 8608found="no" 8609 8610 if test $found = "no" ; then 8611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8613 fi 8614 8615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8617 fi 8618 8619 CFLAGS="$CFLAGS -Werror=address" 8620 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8622$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8623 cacheid=xorg_cv_cc_flag__Werror_address 8624 if eval \${$cacheid+:} false; then : 8625 $as_echo_n "(cached) " >&6 8626else 8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8628/* end confdefs.h. */ 8629int i; 8630int 8631main () 8632{ 8633 8634 ; 8635 return 0; 8636} 8637_ACEOF 8638if ac_fn_c_try_link "$LINENO"; then : 8639 eval $cacheid=yes 8640else 8641 eval $cacheid=no 8642fi 8643rm -f core conftest.err conftest.$ac_objext \ 8644 conftest$ac_exeext conftest.$ac_ext 8645fi 8646 8647 8648 CFLAGS="$xorg_testset_save_CFLAGS" 8649 8650 eval supported=\$$cacheid 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8652$as_echo "$supported" >&6; } 8653 if test "$supported" = "yes" ; then 8654 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8655 found="yes" 8656 fi 8657 fi 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673xorg_testset_save_CFLAGS="$CFLAGS" 8674 8675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8680 $as_echo_n "(cached) " >&6 8681else 8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683/* end confdefs.h. */ 8684int i; 8685_ACEOF 8686if ac_fn_c_try_compile "$LINENO"; then : 8687 xorg_cv_cc_flag_unknown_warning_option=yes 8688else 8689 xorg_cv_cc_flag_unknown_warning_option=no 8690fi 8691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8692fi 8693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8696 CFLAGS="$xorg_testset_save_CFLAGS" 8697fi 8698 8699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8702 fi 8703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8707 $as_echo_n "(cached) " >&6 8708else 8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8710/* end confdefs.h. */ 8711int i; 8712_ACEOF 8713if ac_fn_c_try_compile "$LINENO"; then : 8714 xorg_cv_cc_flag_unused_command_line_argument=yes 8715else 8716 xorg_cv_cc_flag_unused_command_line_argument=no 8717fi 8718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8719fi 8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8723 CFLAGS="$xorg_testset_save_CFLAGS" 8724fi 8725 8726found="no" 8727 8728 if test $found = "no" ; then 8729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8731 fi 8732 8733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8735 fi 8736 8737 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8738 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8740$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8741 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8742 if eval \${$cacheid+:} false; then : 8743 $as_echo_n "(cached) " >&6 8744else 8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8746/* end confdefs.h. */ 8747int i; 8748int 8749main () 8750{ 8751 8752 ; 8753 return 0; 8754} 8755_ACEOF 8756if ac_fn_c_try_link "$LINENO"; then : 8757 eval $cacheid=yes 8758else 8759 eval $cacheid=no 8760fi 8761rm -f core conftest.err conftest.$ac_objext \ 8762 conftest$ac_exeext conftest.$ac_ext 8763fi 8764 8765 8766 CFLAGS="$xorg_testset_save_CFLAGS" 8767 8768 eval supported=\$$cacheid 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8770$as_echo "$supported" >&6; } 8771 if test "$supported" = "yes" ; then 8772 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8773 found="yes" 8774 fi 8775 fi 8776 8777 if test $found = "no" ; then 8778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8780 fi 8781 8782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8784 fi 8785 8786 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8787 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8789$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8790 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8791 if eval \${$cacheid+:} false; then : 8792 $as_echo_n "(cached) " >&6 8793else 8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8795/* end confdefs.h. */ 8796int i; 8797int 8798main () 8799{ 8800 8801 ; 8802 return 0; 8803} 8804_ACEOF 8805if ac_fn_c_try_link "$LINENO"; then : 8806 eval $cacheid=yes 8807else 8808 eval $cacheid=no 8809fi 8810rm -f core conftest.err conftest.$ac_objext \ 8811 conftest$ac_exeext conftest.$ac_ext 8812fi 8813 8814 8815 CFLAGS="$xorg_testset_save_CFLAGS" 8816 8817 eval supported=\$$cacheid 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8819$as_echo "$supported" >&6; } 8820 if test "$supported" = "yes" ; then 8821 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8822 found="yes" 8823 fi 8824 fi 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840xorg_testset_save_CFLAGS="$CFLAGS" 8841 8842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8847 $as_echo_n "(cached) " >&6 8848else 8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8850/* end confdefs.h. */ 8851int i; 8852_ACEOF 8853if ac_fn_c_try_compile "$LINENO"; then : 8854 xorg_cv_cc_flag_unknown_warning_option=yes 8855else 8856 xorg_cv_cc_flag_unknown_warning_option=no 8857fi 8858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8859fi 8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8863 CFLAGS="$xorg_testset_save_CFLAGS" 8864fi 8865 8866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8869 fi 8870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875else 8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8877/* end confdefs.h. */ 8878int i; 8879_ACEOF 8880if ac_fn_c_try_compile "$LINENO"; then : 8881 xorg_cv_cc_flag_unused_command_line_argument=yes 8882else 8883 xorg_cv_cc_flag_unused_command_line_argument=no 8884fi 8885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8886fi 8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8890 CFLAGS="$xorg_testset_save_CFLAGS" 8891fi 8892 8893found="no" 8894 8895 if test $found = "no" ; then 8896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8898 fi 8899 8900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8902 fi 8903 8904 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8905 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8907$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8908 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8909 if eval \${$cacheid+:} false; then : 8910 $as_echo_n "(cached) " >&6 8911else 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913/* end confdefs.h. */ 8914int i; 8915int 8916main () 8917{ 8918 8919 ; 8920 return 0; 8921} 8922_ACEOF 8923if ac_fn_c_try_link "$LINENO"; then : 8924 eval $cacheid=yes 8925else 8926 eval $cacheid=no 8927fi 8928rm -f core conftest.err conftest.$ac_objext \ 8929 conftest$ac_exeext conftest.$ac_ext 8930fi 8931 8932 8933 CFLAGS="$xorg_testset_save_CFLAGS" 8934 8935 eval supported=\$$cacheid 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8937$as_echo "$supported" >&6; } 8938 if test "$supported" = "yes" ; then 8939 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8940 found="yes" 8941 fi 8942 fi 8943 8944 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8945else 8946{ $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 8947$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;} 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961xorg_testset_save_CFLAGS="$CFLAGS" 8962 8963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969else 8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8971/* end confdefs.h. */ 8972int i; 8973_ACEOF 8974if ac_fn_c_try_compile "$LINENO"; then : 8975 xorg_cv_cc_flag_unknown_warning_option=yes 8976else 8977 xorg_cv_cc_flag_unknown_warning_option=no 8978fi 8979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8980fi 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985fi 8986 8987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 fi 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8995 $as_echo_n "(cached) " >&6 8996else 8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8998/* end confdefs.h. */ 8999int i; 9000_ACEOF 9001if ac_fn_c_try_compile "$LINENO"; then : 9002 xorg_cv_cc_flag_unused_command_line_argument=yes 9003else 9004 xorg_cv_cc_flag_unused_command_line_argument=no 9005fi 9006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9007fi 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9011 CFLAGS="$xorg_testset_save_CFLAGS" 9012fi 9013 9014found="no" 9015 9016 if test $found = "no" ; then 9017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9019 fi 9020 9021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9023 fi 9024 9025 CFLAGS="$CFLAGS -Wimplicit" 9026 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9028$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 9029 cacheid=xorg_cv_cc_flag__Wimplicit 9030 if eval \${$cacheid+:} false; then : 9031 $as_echo_n "(cached) " >&6 9032else 9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9034/* end confdefs.h. */ 9035int i; 9036int 9037main () 9038{ 9039 9040 ; 9041 return 0; 9042} 9043_ACEOF 9044if ac_fn_c_try_link "$LINENO"; then : 9045 eval $cacheid=yes 9046else 9047 eval $cacheid=no 9048fi 9049rm -f core conftest.err conftest.$ac_objext \ 9050 conftest$ac_exeext conftest.$ac_ext 9051fi 9052 9053 9054 CFLAGS="$xorg_testset_save_CFLAGS" 9055 9056 eval supported=\$$cacheid 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9058$as_echo "$supported" >&6; } 9059 if test "$supported" = "yes" ; then 9060 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9061 found="yes" 9062 fi 9063 fi 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079xorg_testset_save_CFLAGS="$CFLAGS" 9080 9081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9086 $as_echo_n "(cached) " >&6 9087else 9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9089/* end confdefs.h. */ 9090int i; 9091_ACEOF 9092if ac_fn_c_try_compile "$LINENO"; then : 9093 xorg_cv_cc_flag_unknown_warning_option=yes 9094else 9095 xorg_cv_cc_flag_unknown_warning_option=no 9096fi 9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9098fi 9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9102 CFLAGS="$xorg_testset_save_CFLAGS" 9103fi 9104 9105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9108 fi 9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9113 $as_echo_n "(cached) " >&6 9114else 9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116/* end confdefs.h. */ 9117int i; 9118_ACEOF 9119if ac_fn_c_try_compile "$LINENO"; then : 9120 xorg_cv_cc_flag_unused_command_line_argument=yes 9121else 9122 xorg_cv_cc_flag_unused_command_line_argument=no 9123fi 9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9125fi 9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9129 CFLAGS="$xorg_testset_save_CFLAGS" 9130fi 9131 9132found="no" 9133 9134 if test $found = "no" ; then 9135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9137 fi 9138 9139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9141 fi 9142 9143 CFLAGS="$CFLAGS -Wnonnull" 9144 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9146$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9147 cacheid=xorg_cv_cc_flag__Wnonnull 9148 if eval \${$cacheid+:} false; then : 9149 $as_echo_n "(cached) " >&6 9150else 9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9152/* end confdefs.h. */ 9153int i; 9154int 9155main () 9156{ 9157 9158 ; 9159 return 0; 9160} 9161_ACEOF 9162if ac_fn_c_try_link "$LINENO"; then : 9163 eval $cacheid=yes 9164else 9165 eval $cacheid=no 9166fi 9167rm -f core conftest.err conftest.$ac_objext \ 9168 conftest$ac_exeext conftest.$ac_ext 9169fi 9170 9171 9172 CFLAGS="$xorg_testset_save_CFLAGS" 9173 9174 eval supported=\$$cacheid 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9176$as_echo "$supported" >&6; } 9177 if test "$supported" = "yes" ; then 9178 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9179 found="yes" 9180 fi 9181 fi 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197xorg_testset_save_CFLAGS="$CFLAGS" 9198 9199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205else 9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207/* end confdefs.h. */ 9208int i; 9209_ACEOF 9210if ac_fn_c_try_compile "$LINENO"; then : 9211 xorg_cv_cc_flag_unknown_warning_option=yes 9212else 9213 xorg_cv_cc_flag_unknown_warning_option=no 9214fi 9215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9216fi 9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9220 CFLAGS="$xorg_testset_save_CFLAGS" 9221fi 9222 9223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9226 fi 9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9231 $as_echo_n "(cached) " >&6 9232else 9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9234/* end confdefs.h. */ 9235int i; 9236_ACEOF 9237if ac_fn_c_try_compile "$LINENO"; then : 9238 xorg_cv_cc_flag_unused_command_line_argument=yes 9239else 9240 xorg_cv_cc_flag_unused_command_line_argument=no 9241fi 9242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9243fi 9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9247 CFLAGS="$xorg_testset_save_CFLAGS" 9248fi 9249 9250found="no" 9251 9252 if test $found = "no" ; then 9253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9255 fi 9256 9257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9259 fi 9260 9261 CFLAGS="$CFLAGS -Winit-self" 9262 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9264$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9265 cacheid=xorg_cv_cc_flag__Winit_self 9266 if eval \${$cacheid+:} false; then : 9267 $as_echo_n "(cached) " >&6 9268else 9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270/* end confdefs.h. */ 9271int i; 9272int 9273main () 9274{ 9275 9276 ; 9277 return 0; 9278} 9279_ACEOF 9280if ac_fn_c_try_link "$LINENO"; then : 9281 eval $cacheid=yes 9282else 9283 eval $cacheid=no 9284fi 9285rm -f core conftest.err conftest.$ac_objext \ 9286 conftest$ac_exeext conftest.$ac_ext 9287fi 9288 9289 9290 CFLAGS="$xorg_testset_save_CFLAGS" 9291 9292 eval supported=\$$cacheid 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9294$as_echo "$supported" >&6; } 9295 if test "$supported" = "yes" ; then 9296 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9297 found="yes" 9298 fi 9299 fi 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315xorg_testset_save_CFLAGS="$CFLAGS" 9316 9317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323else 9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9325/* end confdefs.h. */ 9326int i; 9327_ACEOF 9328if ac_fn_c_try_compile "$LINENO"; then : 9329 xorg_cv_cc_flag_unknown_warning_option=yes 9330else 9331 xorg_cv_cc_flag_unknown_warning_option=no 9332fi 9333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9334fi 9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9338 CFLAGS="$xorg_testset_save_CFLAGS" 9339fi 9340 9341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9344 fi 9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9349 $as_echo_n "(cached) " >&6 9350else 9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352/* end confdefs.h. */ 9353int i; 9354_ACEOF 9355if ac_fn_c_try_compile "$LINENO"; then : 9356 xorg_cv_cc_flag_unused_command_line_argument=yes 9357else 9358 xorg_cv_cc_flag_unused_command_line_argument=no 9359fi 9360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9361fi 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9365 CFLAGS="$xorg_testset_save_CFLAGS" 9366fi 9367 9368found="no" 9369 9370 if test $found = "no" ; then 9371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9373 fi 9374 9375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9377 fi 9378 9379 CFLAGS="$CFLAGS -Wmain" 9380 9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9382$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9383 cacheid=xorg_cv_cc_flag__Wmain 9384 if eval \${$cacheid+:} false; then : 9385 $as_echo_n "(cached) " >&6 9386else 9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388/* end confdefs.h. */ 9389int i; 9390int 9391main () 9392{ 9393 9394 ; 9395 return 0; 9396} 9397_ACEOF 9398if ac_fn_c_try_link "$LINENO"; then : 9399 eval $cacheid=yes 9400else 9401 eval $cacheid=no 9402fi 9403rm -f core conftest.err conftest.$ac_objext \ 9404 conftest$ac_exeext conftest.$ac_ext 9405fi 9406 9407 9408 CFLAGS="$xorg_testset_save_CFLAGS" 9409 9410 eval supported=\$$cacheid 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9412$as_echo "$supported" >&6; } 9413 if test "$supported" = "yes" ; then 9414 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9415 found="yes" 9416 fi 9417 fi 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433xorg_testset_save_CFLAGS="$CFLAGS" 9434 9435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443/* end confdefs.h. */ 9444int i; 9445_ACEOF 9446if ac_fn_c_try_compile "$LINENO"; then : 9447 xorg_cv_cc_flag_unknown_warning_option=yes 9448else 9449 xorg_cv_cc_flag_unknown_warning_option=no 9450fi 9451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9452fi 9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9456 CFLAGS="$xorg_testset_save_CFLAGS" 9457fi 9458 9459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9462 fi 9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9467 $as_echo_n "(cached) " >&6 9468else 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471int i; 9472_ACEOF 9473if ac_fn_c_try_compile "$LINENO"; then : 9474 xorg_cv_cc_flag_unused_command_line_argument=yes 9475else 9476 xorg_cv_cc_flag_unused_command_line_argument=no 9477fi 9478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9479fi 9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9483 CFLAGS="$xorg_testset_save_CFLAGS" 9484fi 9485 9486found="no" 9487 9488 if test $found = "no" ; then 9489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9491 fi 9492 9493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9495 fi 9496 9497 CFLAGS="$CFLAGS -Wmissing-braces" 9498 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9500$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9501 cacheid=xorg_cv_cc_flag__Wmissing_braces 9502 if eval \${$cacheid+:} false; then : 9503 $as_echo_n "(cached) " >&6 9504else 9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9506/* end confdefs.h. */ 9507int i; 9508int 9509main () 9510{ 9511 9512 ; 9513 return 0; 9514} 9515_ACEOF 9516if ac_fn_c_try_link "$LINENO"; then : 9517 eval $cacheid=yes 9518else 9519 eval $cacheid=no 9520fi 9521rm -f core conftest.err conftest.$ac_objext \ 9522 conftest$ac_exeext conftest.$ac_ext 9523fi 9524 9525 9526 CFLAGS="$xorg_testset_save_CFLAGS" 9527 9528 eval supported=\$$cacheid 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9530$as_echo "$supported" >&6; } 9531 if test "$supported" = "yes" ; then 9532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9533 found="yes" 9534 fi 9535 fi 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551xorg_testset_save_CFLAGS="$CFLAGS" 9552 9553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9558 $as_echo_n "(cached) " >&6 9559else 9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9561/* end confdefs.h. */ 9562int i; 9563_ACEOF 9564if ac_fn_c_try_compile "$LINENO"; then : 9565 xorg_cv_cc_flag_unknown_warning_option=yes 9566else 9567 xorg_cv_cc_flag_unknown_warning_option=no 9568fi 9569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9570fi 9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9574 CFLAGS="$xorg_testset_save_CFLAGS" 9575fi 9576 9577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9580 fi 9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9585 $as_echo_n "(cached) " >&6 9586else 9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9588/* end confdefs.h. */ 9589int i; 9590_ACEOF 9591if ac_fn_c_try_compile "$LINENO"; then : 9592 xorg_cv_cc_flag_unused_command_line_argument=yes 9593else 9594 xorg_cv_cc_flag_unused_command_line_argument=no 9595fi 9596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9597fi 9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602fi 9603 9604found="no" 9605 9606 if test $found = "no" ; then 9607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9609 fi 9610 9611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9613 fi 9614 9615 CFLAGS="$CFLAGS -Wsequence-point" 9616 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9618$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9619 cacheid=xorg_cv_cc_flag__Wsequence_point 9620 if eval \${$cacheid+:} false; then : 9621 $as_echo_n "(cached) " >&6 9622else 9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9624/* end confdefs.h. */ 9625int i; 9626int 9627main () 9628{ 9629 9630 ; 9631 return 0; 9632} 9633_ACEOF 9634if ac_fn_c_try_link "$LINENO"; then : 9635 eval $cacheid=yes 9636else 9637 eval $cacheid=no 9638fi 9639rm -f core conftest.err conftest.$ac_objext \ 9640 conftest$ac_exeext conftest.$ac_ext 9641fi 9642 9643 9644 CFLAGS="$xorg_testset_save_CFLAGS" 9645 9646 eval supported=\$$cacheid 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9648$as_echo "$supported" >&6; } 9649 if test "$supported" = "yes" ; then 9650 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9651 found="yes" 9652 fi 9653 fi 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669xorg_testset_save_CFLAGS="$CFLAGS" 9670 9671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677else 9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9679/* end confdefs.h. */ 9680int i; 9681_ACEOF 9682if ac_fn_c_try_compile "$LINENO"; then : 9683 xorg_cv_cc_flag_unknown_warning_option=yes 9684else 9685 xorg_cv_cc_flag_unknown_warning_option=no 9686fi 9687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9688fi 9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9692 CFLAGS="$xorg_testset_save_CFLAGS" 9693fi 9694 9695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9698 fi 9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9703 $as_echo_n "(cached) " >&6 9704else 9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9706/* end confdefs.h. */ 9707int i; 9708_ACEOF 9709if ac_fn_c_try_compile "$LINENO"; then : 9710 xorg_cv_cc_flag_unused_command_line_argument=yes 9711else 9712 xorg_cv_cc_flag_unused_command_line_argument=no 9713fi 9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9715fi 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9719 CFLAGS="$xorg_testset_save_CFLAGS" 9720fi 9721 9722found="no" 9723 9724 if test $found = "no" ; then 9725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9727 fi 9728 9729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9731 fi 9732 9733 CFLAGS="$CFLAGS -Wreturn-type" 9734 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9736$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9737 cacheid=xorg_cv_cc_flag__Wreturn_type 9738 if eval \${$cacheid+:} false; then : 9739 $as_echo_n "(cached) " >&6 9740else 9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9742/* end confdefs.h. */ 9743int i; 9744int 9745main () 9746{ 9747 9748 ; 9749 return 0; 9750} 9751_ACEOF 9752if ac_fn_c_try_link "$LINENO"; then : 9753 eval $cacheid=yes 9754else 9755 eval $cacheid=no 9756fi 9757rm -f core conftest.err conftest.$ac_objext \ 9758 conftest$ac_exeext conftest.$ac_ext 9759fi 9760 9761 9762 CFLAGS="$xorg_testset_save_CFLAGS" 9763 9764 eval supported=\$$cacheid 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9766$as_echo "$supported" >&6; } 9767 if test "$supported" = "yes" ; then 9768 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9769 found="yes" 9770 fi 9771 fi 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787xorg_testset_save_CFLAGS="$CFLAGS" 9788 9789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9794 $as_echo_n "(cached) " >&6 9795else 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798int i; 9799_ACEOF 9800if ac_fn_c_try_compile "$LINENO"; then : 9801 xorg_cv_cc_flag_unknown_warning_option=yes 9802else 9803 xorg_cv_cc_flag_unknown_warning_option=no 9804fi 9805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9806fi 9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9810 CFLAGS="$xorg_testset_save_CFLAGS" 9811fi 9812 9813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9816 fi 9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822else 9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9824/* end confdefs.h. */ 9825int i; 9826_ACEOF 9827if ac_fn_c_try_compile "$LINENO"; then : 9828 xorg_cv_cc_flag_unused_command_line_argument=yes 9829else 9830 xorg_cv_cc_flag_unused_command_line_argument=no 9831fi 9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9833fi 9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9837 CFLAGS="$xorg_testset_save_CFLAGS" 9838fi 9839 9840found="no" 9841 9842 if test $found = "no" ; then 9843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9845 fi 9846 9847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9849 fi 9850 9851 CFLAGS="$CFLAGS -Wtrigraphs" 9852 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9854$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9855 cacheid=xorg_cv_cc_flag__Wtrigraphs 9856 if eval \${$cacheid+:} false; then : 9857 $as_echo_n "(cached) " >&6 9858else 9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9860/* end confdefs.h. */ 9861int i; 9862int 9863main () 9864{ 9865 9866 ; 9867 return 0; 9868} 9869_ACEOF 9870if ac_fn_c_try_link "$LINENO"; then : 9871 eval $cacheid=yes 9872else 9873 eval $cacheid=no 9874fi 9875rm -f core conftest.err conftest.$ac_objext \ 9876 conftest$ac_exeext conftest.$ac_ext 9877fi 9878 9879 9880 CFLAGS="$xorg_testset_save_CFLAGS" 9881 9882 eval supported=\$$cacheid 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9884$as_echo "$supported" >&6; } 9885 if test "$supported" = "yes" ; then 9886 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9887 found="yes" 9888 fi 9889 fi 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905xorg_testset_save_CFLAGS="$CFLAGS" 9906 9907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9912 $as_echo_n "(cached) " >&6 9913else 9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9915/* end confdefs.h. */ 9916int i; 9917_ACEOF 9918if ac_fn_c_try_compile "$LINENO"; then : 9919 xorg_cv_cc_flag_unknown_warning_option=yes 9920else 9921 xorg_cv_cc_flag_unknown_warning_option=no 9922fi 9923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9924fi 9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9928 CFLAGS="$xorg_testset_save_CFLAGS" 9929fi 9930 9931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9934 fi 9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9939 $as_echo_n "(cached) " >&6 9940else 9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9942/* end confdefs.h. */ 9943int i; 9944_ACEOF 9945if ac_fn_c_try_compile "$LINENO"; then : 9946 xorg_cv_cc_flag_unused_command_line_argument=yes 9947else 9948 xorg_cv_cc_flag_unused_command_line_argument=no 9949fi 9950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9951fi 9952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9955 CFLAGS="$xorg_testset_save_CFLAGS" 9956fi 9957 9958found="no" 9959 9960 if test $found = "no" ; then 9961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9963 fi 9964 9965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9967 fi 9968 9969 CFLAGS="$CFLAGS -Warray-bounds" 9970 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9972$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9973 cacheid=xorg_cv_cc_flag__Warray_bounds 9974 if eval \${$cacheid+:} false; then : 9975 $as_echo_n "(cached) " >&6 9976else 9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9978/* end confdefs.h. */ 9979int i; 9980int 9981main () 9982{ 9983 9984 ; 9985 return 0; 9986} 9987_ACEOF 9988if ac_fn_c_try_link "$LINENO"; then : 9989 eval $cacheid=yes 9990else 9991 eval $cacheid=no 9992fi 9993rm -f core conftest.err conftest.$ac_objext \ 9994 conftest$ac_exeext conftest.$ac_ext 9995fi 9996 9997 9998 CFLAGS="$xorg_testset_save_CFLAGS" 9999 10000 eval supported=\$$cacheid 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10002$as_echo "$supported" >&6; } 10003 if test "$supported" = "yes" ; then 10004 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10005 found="yes" 10006 fi 10007 fi 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023xorg_testset_save_CFLAGS="$CFLAGS" 10024 10025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10030 $as_echo_n "(cached) " >&6 10031else 10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10033/* end confdefs.h. */ 10034int i; 10035_ACEOF 10036if ac_fn_c_try_compile "$LINENO"; then : 10037 xorg_cv_cc_flag_unknown_warning_option=yes 10038else 10039 xorg_cv_cc_flag_unknown_warning_option=no 10040fi 10041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10042fi 10043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10046 CFLAGS="$xorg_testset_save_CFLAGS" 10047fi 10048 10049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10052 fi 10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10057 $as_echo_n "(cached) " >&6 10058else 10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10060/* end confdefs.h. */ 10061int i; 10062_ACEOF 10063if ac_fn_c_try_compile "$LINENO"; then : 10064 xorg_cv_cc_flag_unused_command_line_argument=yes 10065else 10066 xorg_cv_cc_flag_unused_command_line_argument=no 10067fi 10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10069fi 10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10073 CFLAGS="$xorg_testset_save_CFLAGS" 10074fi 10075 10076found="no" 10077 10078 if test $found = "no" ; then 10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10081 fi 10082 10083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10085 fi 10086 10087 CFLAGS="$CFLAGS -Wwrite-strings" 10088 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10090$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 10091 cacheid=xorg_cv_cc_flag__Wwrite_strings 10092 if eval \${$cacheid+:} false; then : 10093 $as_echo_n "(cached) " >&6 10094else 10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10096/* end confdefs.h. */ 10097int i; 10098int 10099main () 10100{ 10101 10102 ; 10103 return 0; 10104} 10105_ACEOF 10106if ac_fn_c_try_link "$LINENO"; then : 10107 eval $cacheid=yes 10108else 10109 eval $cacheid=no 10110fi 10111rm -f core conftest.err conftest.$ac_objext \ 10112 conftest$ac_exeext conftest.$ac_ext 10113fi 10114 10115 10116 CFLAGS="$xorg_testset_save_CFLAGS" 10117 10118 eval supported=\$$cacheid 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10120$as_echo "$supported" >&6; } 10121 if test "$supported" = "yes" ; then 10122 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10123 found="yes" 10124 fi 10125 fi 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141xorg_testset_save_CFLAGS="$CFLAGS" 10142 10143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10148 $as_echo_n "(cached) " >&6 10149else 10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10151/* end confdefs.h. */ 10152int i; 10153_ACEOF 10154if ac_fn_c_try_compile "$LINENO"; then : 10155 xorg_cv_cc_flag_unknown_warning_option=yes 10156else 10157 xorg_cv_cc_flag_unknown_warning_option=no 10158fi 10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10160fi 10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10164 CFLAGS="$xorg_testset_save_CFLAGS" 10165fi 10166 10167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10170 fi 10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10175 $as_echo_n "(cached) " >&6 10176else 10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10178/* end confdefs.h. */ 10179int i; 10180_ACEOF 10181if ac_fn_c_try_compile "$LINENO"; then : 10182 xorg_cv_cc_flag_unused_command_line_argument=yes 10183else 10184 xorg_cv_cc_flag_unused_command_line_argument=no 10185fi 10186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10187fi 10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10191 CFLAGS="$xorg_testset_save_CFLAGS" 10192fi 10193 10194found="no" 10195 10196 if test $found = "no" ; then 10197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10199 fi 10200 10201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10203 fi 10204 10205 CFLAGS="$CFLAGS -Waddress" 10206 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10208$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10209 cacheid=xorg_cv_cc_flag__Waddress 10210 if eval \${$cacheid+:} false; then : 10211 $as_echo_n "(cached) " >&6 10212else 10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214/* end confdefs.h. */ 10215int i; 10216int 10217main () 10218{ 10219 10220 ; 10221 return 0; 10222} 10223_ACEOF 10224if ac_fn_c_try_link "$LINENO"; then : 10225 eval $cacheid=yes 10226else 10227 eval $cacheid=no 10228fi 10229rm -f core conftest.err conftest.$ac_objext \ 10230 conftest$ac_exeext conftest.$ac_ext 10231fi 10232 10233 10234 CFLAGS="$xorg_testset_save_CFLAGS" 10235 10236 eval supported=\$$cacheid 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10238$as_echo "$supported" >&6; } 10239 if test "$supported" = "yes" ; then 10240 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10241 found="yes" 10242 fi 10243 fi 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259xorg_testset_save_CFLAGS="$CFLAGS" 10260 10261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10266 $as_echo_n "(cached) " >&6 10267else 10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10269/* end confdefs.h. */ 10270int i; 10271_ACEOF 10272if ac_fn_c_try_compile "$LINENO"; then : 10273 xorg_cv_cc_flag_unknown_warning_option=yes 10274else 10275 xorg_cv_cc_flag_unknown_warning_option=no 10276fi 10277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10278fi 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10282 CFLAGS="$xorg_testset_save_CFLAGS" 10283fi 10284 10285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10288 fi 10289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10293 $as_echo_n "(cached) " >&6 10294else 10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10296/* end confdefs.h. */ 10297int i; 10298_ACEOF 10299if ac_fn_c_try_compile "$LINENO"; then : 10300 xorg_cv_cc_flag_unused_command_line_argument=yes 10301else 10302 xorg_cv_cc_flag_unused_command_line_argument=no 10303fi 10304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10305fi 10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10309 CFLAGS="$xorg_testset_save_CFLAGS" 10310fi 10311 10312found="no" 10313 10314 if test $found = "no" ; then 10315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10317 fi 10318 10319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10321 fi 10322 10323 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10324 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10326$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10327 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10328 if eval \${$cacheid+:} false; then : 10329 $as_echo_n "(cached) " >&6 10330else 10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10332/* end confdefs.h. */ 10333int i; 10334int 10335main () 10336{ 10337 10338 ; 10339 return 0; 10340} 10341_ACEOF 10342if ac_fn_c_try_link "$LINENO"; then : 10343 eval $cacheid=yes 10344else 10345 eval $cacheid=no 10346fi 10347rm -f core conftest.err conftest.$ac_objext \ 10348 conftest$ac_exeext conftest.$ac_ext 10349fi 10350 10351 10352 CFLAGS="$xorg_testset_save_CFLAGS" 10353 10354 eval supported=\$$cacheid 10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10356$as_echo "$supported" >&6; } 10357 if test "$supported" = "yes" ; then 10358 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10359 found="yes" 10360 fi 10361 fi 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377xorg_testset_save_CFLAGS="$CFLAGS" 10378 10379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10384 $as_echo_n "(cached) " >&6 10385else 10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10387/* end confdefs.h. */ 10388int i; 10389_ACEOF 10390if ac_fn_c_try_compile "$LINENO"; then : 10391 xorg_cv_cc_flag_unknown_warning_option=yes 10392else 10393 xorg_cv_cc_flag_unknown_warning_option=no 10394fi 10395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10396fi 10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10400 CFLAGS="$xorg_testset_save_CFLAGS" 10401fi 10402 10403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10406 fi 10407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10411 $as_echo_n "(cached) " >&6 10412else 10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10414/* end confdefs.h. */ 10415int i; 10416_ACEOF 10417if ac_fn_c_try_compile "$LINENO"; then : 10418 xorg_cv_cc_flag_unused_command_line_argument=yes 10419else 10420 xorg_cv_cc_flag_unused_command_line_argument=no 10421fi 10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10423fi 10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10427 CFLAGS="$xorg_testset_save_CFLAGS" 10428fi 10429 10430found="no" 10431 10432 if test $found = "no" ; then 10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10435 fi 10436 10437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10439 fi 10440 10441 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10442 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10444$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10445 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10446 if eval \${$cacheid+:} false; then : 10447 $as_echo_n "(cached) " >&6 10448else 10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10450/* end confdefs.h. */ 10451int i; 10452int 10453main () 10454{ 10455 10456 ; 10457 return 0; 10458} 10459_ACEOF 10460if ac_fn_c_try_link "$LINENO"; then : 10461 eval $cacheid=yes 10462else 10463 eval $cacheid=no 10464fi 10465rm -f core conftest.err conftest.$ac_objext \ 10466 conftest$ac_exeext conftest.$ac_ext 10467fi 10468 10469 10470 CFLAGS="$xorg_testset_save_CFLAGS" 10471 10472 eval supported=\$$cacheid 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10474$as_echo "$supported" >&6; } 10475 if test "$supported" = "yes" ; then 10476 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10477 found="yes" 10478 fi 10479 fi 10480 10481 10482fi 10483 10484 10485 10486 10487 10488 10489 10490 CWARNFLAGS="$BASE_CFLAGS" 10491 if test "x$GCC" = xyes ; then 10492 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10493 fi 10494 10495 10496 10497 10498 10499 10500 10501 10502# Check whether --enable-strict-compilation was given. 10503if test "${enable_strict_compilation+set}" = set; then : 10504 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10505else 10506 STRICT_COMPILE=no 10507fi 10508 10509 10510 10511 10512 10513 10514STRICT_CFLAGS="" 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528xorg_testset_save_CFLAGS="$CFLAGS" 10529 10530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10535 $as_echo_n "(cached) " >&6 10536else 10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10538/* end confdefs.h. */ 10539int i; 10540_ACEOF 10541if ac_fn_c_try_compile "$LINENO"; then : 10542 xorg_cv_cc_flag_unknown_warning_option=yes 10543else 10544 xorg_cv_cc_flag_unknown_warning_option=no 10545fi 10546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10547fi 10548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10551 CFLAGS="$xorg_testset_save_CFLAGS" 10552fi 10553 10554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10557 fi 10558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10562 $as_echo_n "(cached) " >&6 10563else 10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10565/* end confdefs.h. */ 10566int i; 10567_ACEOF 10568if ac_fn_c_try_compile "$LINENO"; then : 10569 xorg_cv_cc_flag_unused_command_line_argument=yes 10570else 10571 xorg_cv_cc_flag_unused_command_line_argument=no 10572fi 10573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10574fi 10575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10578 CFLAGS="$xorg_testset_save_CFLAGS" 10579fi 10580 10581found="no" 10582 10583 if test $found = "no" ; then 10584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10586 fi 10587 10588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10590 fi 10591 10592 CFLAGS="$CFLAGS -pedantic" 10593 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10595$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10596 cacheid=xorg_cv_cc_flag__pedantic 10597 if eval \${$cacheid+:} false; then : 10598 $as_echo_n "(cached) " >&6 10599else 10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10601/* end confdefs.h. */ 10602int i; 10603int 10604main () 10605{ 10606 10607 ; 10608 return 0; 10609} 10610_ACEOF 10611if ac_fn_c_try_link "$LINENO"; then : 10612 eval $cacheid=yes 10613else 10614 eval $cacheid=no 10615fi 10616rm -f core conftest.err conftest.$ac_objext \ 10617 conftest$ac_exeext conftest.$ac_ext 10618fi 10619 10620 10621 CFLAGS="$xorg_testset_save_CFLAGS" 10622 10623 eval supported=\$$cacheid 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10625$as_echo "$supported" >&6; } 10626 if test "$supported" = "yes" ; then 10627 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10628 found="yes" 10629 fi 10630 fi 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646xorg_testset_save_CFLAGS="$CFLAGS" 10647 10648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10653 $as_echo_n "(cached) " >&6 10654else 10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10656/* end confdefs.h. */ 10657int i; 10658_ACEOF 10659if ac_fn_c_try_compile "$LINENO"; then : 10660 xorg_cv_cc_flag_unknown_warning_option=yes 10661else 10662 xorg_cv_cc_flag_unknown_warning_option=no 10663fi 10664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10665fi 10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10669 CFLAGS="$xorg_testset_save_CFLAGS" 10670fi 10671 10672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10675 fi 10676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10680 $as_echo_n "(cached) " >&6 10681else 10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10683/* end confdefs.h. */ 10684int i; 10685_ACEOF 10686if ac_fn_c_try_compile "$LINENO"; then : 10687 xorg_cv_cc_flag_unused_command_line_argument=yes 10688else 10689 xorg_cv_cc_flag_unused_command_line_argument=no 10690fi 10691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10692fi 10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10696 CFLAGS="$xorg_testset_save_CFLAGS" 10697fi 10698 10699found="no" 10700 10701 if test $found = "no" ; then 10702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10704 fi 10705 10706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10708 fi 10709 10710 CFLAGS="$CFLAGS -Werror" 10711 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10713$as_echo_n "checking if $CC supports -Werror... " >&6; } 10714 cacheid=xorg_cv_cc_flag__Werror 10715 if eval \${$cacheid+:} false; then : 10716 $as_echo_n "(cached) " >&6 10717else 10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10719/* end confdefs.h. */ 10720int i; 10721int 10722main () 10723{ 10724 10725 ; 10726 return 0; 10727} 10728_ACEOF 10729if ac_fn_c_try_link "$LINENO"; then : 10730 eval $cacheid=yes 10731else 10732 eval $cacheid=no 10733fi 10734rm -f core conftest.err conftest.$ac_objext \ 10735 conftest$ac_exeext conftest.$ac_ext 10736fi 10737 10738 10739 CFLAGS="$xorg_testset_save_CFLAGS" 10740 10741 eval supported=\$$cacheid 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10743$as_echo "$supported" >&6; } 10744 if test "$supported" = "yes" ; then 10745 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10746 found="yes" 10747 fi 10748 fi 10749 10750 if test $found = "no" ; then 10751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10753 fi 10754 10755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10757 fi 10758 10759 CFLAGS="$CFLAGS -errwarn" 10760 10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10762$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10763 cacheid=xorg_cv_cc_flag__errwarn 10764 if eval \${$cacheid+:} false; then : 10765 $as_echo_n "(cached) " >&6 10766else 10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10768/* end confdefs.h. */ 10769int i; 10770int 10771main () 10772{ 10773 10774 ; 10775 return 0; 10776} 10777_ACEOF 10778if ac_fn_c_try_link "$LINENO"; then : 10779 eval $cacheid=yes 10780else 10781 eval $cacheid=no 10782fi 10783rm -f core conftest.err conftest.$ac_objext \ 10784 conftest$ac_exeext conftest.$ac_ext 10785fi 10786 10787 10788 CFLAGS="$xorg_testset_save_CFLAGS" 10789 10790 eval supported=\$$cacheid 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10792$as_echo "$supported" >&6; } 10793 if test "$supported" = "yes" ; then 10794 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10795 found="yes" 10796 fi 10797 fi 10798 10799 10800 10801# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10802# activate it with -Werror, so we add it here explicitly. 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816xorg_testset_save_CFLAGS="$CFLAGS" 10817 10818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10823 $as_echo_n "(cached) " >&6 10824else 10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10826/* end confdefs.h. */ 10827int i; 10828_ACEOF 10829if ac_fn_c_try_compile "$LINENO"; then : 10830 xorg_cv_cc_flag_unknown_warning_option=yes 10831else 10832 xorg_cv_cc_flag_unknown_warning_option=no 10833fi 10834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10835fi 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10839 CFLAGS="$xorg_testset_save_CFLAGS" 10840fi 10841 10842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10845 fi 10846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10850 $as_echo_n "(cached) " >&6 10851else 10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10853/* end confdefs.h. */ 10854int i; 10855_ACEOF 10856if ac_fn_c_try_compile "$LINENO"; then : 10857 xorg_cv_cc_flag_unused_command_line_argument=yes 10858else 10859 xorg_cv_cc_flag_unused_command_line_argument=no 10860fi 10861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10862fi 10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10866 CFLAGS="$xorg_testset_save_CFLAGS" 10867fi 10868 10869found="no" 10870 10871 if test $found = "no" ; then 10872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10874 fi 10875 10876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10878 fi 10879 10880 CFLAGS="$CFLAGS -Werror=attributes" 10881 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10883$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10884 cacheid=xorg_cv_cc_flag__Werror_attributes 10885 if eval \${$cacheid+:} false; then : 10886 $as_echo_n "(cached) " >&6 10887else 10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10889/* end confdefs.h. */ 10890int i; 10891int 10892main () 10893{ 10894 10895 ; 10896 return 0; 10897} 10898_ACEOF 10899if ac_fn_c_try_link "$LINENO"; then : 10900 eval $cacheid=yes 10901else 10902 eval $cacheid=no 10903fi 10904rm -f core conftest.err conftest.$ac_objext \ 10905 conftest$ac_exeext conftest.$ac_ext 10906fi 10907 10908 10909 CFLAGS="$xorg_testset_save_CFLAGS" 10910 10911 eval supported=\$$cacheid 10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10913$as_echo "$supported" >&6; } 10914 if test "$supported" = "yes" ; then 10915 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10916 found="yes" 10917 fi 10918 fi 10919 10920 10921 10922if test "x$STRICT_COMPILE" = "xyes"; then 10923 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10924 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10925fi 10926 10927 10928 10929 10930 10931 10932cat >>confdefs.h <<_ACEOF 10933#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10934_ACEOF 10935 10936 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10937 if test "x$PVM" = "x"; then 10938 PVM="0" 10939 fi 10940 10941cat >>confdefs.h <<_ACEOF 10942#define PACKAGE_VERSION_MINOR $PVM 10943_ACEOF 10944 10945 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10946 if test "x$PVP" = "x"; then 10947 PVP="0" 10948 fi 10949 10950cat >>confdefs.h <<_ACEOF 10951#define PACKAGE_VERSION_PATCHLEVEL $PVP 10952_ACEOF 10953 10954 10955 10956CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10957mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10958|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10959touch \$(top_srcdir)/ChangeLog; \ 10960echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10961 10962 10963 10964 10965macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10966INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10967mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10968|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10969touch \$(top_srcdir)/INSTALL; \ 10970echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10971 10972 10973 10974 10975 10976 10977case $host_os in 10978 solaris*) 10979 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10980 # check for a man page file found in later versions that use 10981 # traditional section numbers instead 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10983$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 10984if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 10985 $as_echo_n "(cached) " >&6 10986else 10987 test "$cross_compiling" = yes && 10988 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10989if test -r "/usr/share/man/man7/attributes.7"; then 10990 ac_cv_file__usr_share_man_man7_attributes_7=yes 10991else 10992 ac_cv_file__usr_share_man_man7_attributes_7=no 10993fi 10994fi 10995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10996$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10997if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 10998 SYSV_MAN_SECTIONS=false 10999else 11000 SYSV_MAN_SECTIONS=true 11001fi 11002 11003 ;; 11004 *) SYSV_MAN_SECTIONS=false ;; 11005esac 11006 11007if test x$APP_MAN_SUFFIX = x ; then 11008 APP_MAN_SUFFIX=1 11009fi 11010if test x$APP_MAN_DIR = x ; then 11011 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11012fi 11013 11014if test x$LIB_MAN_SUFFIX = x ; then 11015 LIB_MAN_SUFFIX=3 11016fi 11017if test x$LIB_MAN_DIR = x ; then 11018 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11019fi 11020 11021if test x$FILE_MAN_SUFFIX = x ; then 11022 case $SYSV_MAN_SECTIONS in 11023 true) FILE_MAN_SUFFIX=4 ;; 11024 *) FILE_MAN_SUFFIX=5 ;; 11025 esac 11026fi 11027if test x$FILE_MAN_DIR = x ; then 11028 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11029fi 11030 11031if test x$MISC_MAN_SUFFIX = x ; then 11032 case $SYSV_MAN_SECTIONS in 11033 true) MISC_MAN_SUFFIX=5 ;; 11034 *) MISC_MAN_SUFFIX=7 ;; 11035 esac 11036fi 11037if test x$MISC_MAN_DIR = x ; then 11038 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11039fi 11040 11041if test x$DRIVER_MAN_SUFFIX = x ; then 11042 case $SYSV_MAN_SECTIONS in 11043 true) DRIVER_MAN_SUFFIX=7 ;; 11044 *) DRIVER_MAN_SUFFIX=4 ;; 11045 esac 11046fi 11047if test x$DRIVER_MAN_DIR = x ; then 11048 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11049fi 11050 11051if test x$ADMIN_MAN_SUFFIX = x ; then 11052 case $SYSV_MAN_SECTIONS in 11053 true) ADMIN_MAN_SUFFIX=1m ;; 11054 *) ADMIN_MAN_SUFFIX=8 ;; 11055 esac 11056fi 11057if test x$ADMIN_MAN_DIR = x ; then 11058 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11059fi 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075XORG_MAN_PAGE="X Version 11" 11076 11077MAN_SUBSTS="\ 11078 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11079 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11080 -e 's|__xservername__|Xorg|g' \ 11081 -e 's|__xconfigfile__|xorg.conf|g' \ 11082 -e 's|__projectroot__|\$(prefix)|g' \ 11083 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11084 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11085 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11086 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11087 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11088 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11089 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11090 11091 11092 11093# Check whether --enable-silent-rules was given. 11094if test "${enable_silent_rules+set}" = set; then : 11095 enableval=$enable_silent_rules; 11096fi 11097 11098case $enable_silent_rules in # ((( 11099 yes) AM_DEFAULT_VERBOSITY=0;; 11100 no) AM_DEFAULT_VERBOSITY=1;; 11101 *) AM_DEFAULT_VERBOSITY=0;; 11102esac 11103am_make=${MAKE-make} 11104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11105$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11106if ${am_cv_make_support_nested_variables+:} false; then : 11107 $as_echo_n "(cached) " >&6 11108else 11109 if $as_echo 'TRUE=$(BAR$(V)) 11110BAR0=false 11111BAR1=true 11112V=1 11113am__doit: 11114 @$(TRUE) 11115.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11116 am_cv_make_support_nested_variables=yes 11117else 11118 am_cv_make_support_nested_variables=no 11119fi 11120fi 11121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11122$as_echo "$am_cv_make_support_nested_variables" >&6; } 11123if test $am_cv_make_support_nested_variables = yes; then 11124 AM_V='$(V)' 11125 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11126else 11127 AM_V=$AM_DEFAULT_VERBOSITY 11128 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11129fi 11130AM_BACKSLASH='\' 11131 11132 11133 11134# Initialize libtool 11135# Check whether --enable-static was given. 11136if test "${enable_static+set}" = set; then : 11137 enableval=$enable_static; p=${PACKAGE-default} 11138 case $enableval in 11139 yes) enable_static=yes ;; 11140 no) enable_static=no ;; 11141 *) 11142 enable_static=no 11143 # Look at the argument we got. We use all the common list separators. 11144 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11145 for pkg in $enableval; do 11146 IFS=$lt_save_ifs 11147 if test "X$pkg" = "X$p"; then 11148 enable_static=yes 11149 fi 11150 done 11151 IFS=$lt_save_ifs 11152 ;; 11153 esac 11154else 11155 enable_static=no 11156fi 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166case `pwd` in 11167 *\ * | *\ *) 11168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11169$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11170esac 11171 11172 11173 11174macro_version='2.4.6' 11175macro_revision='2.4.6' 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189ltmain=$ac_aux_dir/ltmain.sh 11190 11191# Backslashify metacharacters that are still active within 11192# double-quoted strings. 11193sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11194 11195# Same as above, but do not quote variable references. 11196double_quote_subst='s/\(["`\\]\)/\\\1/g' 11197 11198# Sed substitution to delay expansion of an escaped shell variable in a 11199# double_quote_subst'ed string. 11200delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11201 11202# Sed substitution to delay expansion of an escaped single quote. 11203delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11204 11205# Sed substitution to avoid accidental globbing in evaled expressions 11206no_glob_subst='s/\*/\\\*/g' 11207 11208ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11209ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11210ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11211 11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11213$as_echo_n "checking how to print strings... " >&6; } 11214# Test print first, because it will be a builtin if present. 11215if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11216 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11217 ECHO='print -r --' 11218elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11219 ECHO='printf %s\n' 11220else 11221 # Use this function as a fallback that always works. 11222 func_fallback_echo () 11223 { 11224 eval 'cat <<_LTECHO_EOF 11225$1 11226_LTECHO_EOF' 11227 } 11228 ECHO='func_fallback_echo' 11229fi 11230 11231# func_echo_all arg... 11232# Invoke $ECHO with all args, space-separated. 11233func_echo_all () 11234{ 11235 $ECHO "" 11236} 11237 11238case $ECHO in 11239 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11240$as_echo "printf" >&6; } ;; 11241 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11242$as_echo "print -r" >&6; } ;; 11243 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11244$as_echo "cat" >&6; } ;; 11245esac 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11261$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11262if ${ac_cv_path_SED+:} false; then : 11263 $as_echo_n "(cached) " >&6 11264else 11265 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11266 for ac_i in 1 2 3 4 5 6 7; do 11267 ac_script="$ac_script$as_nl$ac_script" 11268 done 11269 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11270 { ac_script=; unset ac_script;} 11271 if test -z "$SED"; then 11272 ac_path_SED_found=false 11273 # Loop through the user's path and test for each of PROGNAME-LIST 11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11275for as_dir in $PATH 11276do 11277 IFS=$as_save_IFS 11278 test -z "$as_dir" && as_dir=. 11279 for ac_prog in sed gsed; do 11280 for ac_exec_ext in '' $ac_executable_extensions; do 11281 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11282 as_fn_executable_p "$ac_path_SED" || continue 11283# Check for GNU ac_path_SED and select it if it is found. 11284 # Check for GNU $ac_path_SED 11285case `"$ac_path_SED" --version 2>&1` in 11286*GNU*) 11287 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11288*) 11289 ac_count=0 11290 $as_echo_n 0123456789 >"conftest.in" 11291 while : 11292 do 11293 cat "conftest.in" "conftest.in" >"conftest.tmp" 11294 mv "conftest.tmp" "conftest.in" 11295 cp "conftest.in" "conftest.nl" 11296 $as_echo '' >> "conftest.nl" 11297 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11299 as_fn_arith $ac_count + 1 && ac_count=$as_val 11300 if test $ac_count -gt ${ac_path_SED_max-0}; then 11301 # Best one so far, save it but keep looking for a better one 11302 ac_cv_path_SED="$ac_path_SED" 11303 ac_path_SED_max=$ac_count 11304 fi 11305 # 10*(2^10) chars as input seems more than enough 11306 test $ac_count -gt 10 && break 11307 done 11308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11309esac 11310 11311 $ac_path_SED_found && break 3 11312 done 11313 done 11314 done 11315IFS=$as_save_IFS 11316 if test -z "$ac_cv_path_SED"; then 11317 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11318 fi 11319else 11320 ac_cv_path_SED=$SED 11321fi 11322 11323fi 11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11325$as_echo "$ac_cv_path_SED" >&6; } 11326 SED="$ac_cv_path_SED" 11327 rm -f conftest.sed 11328 11329test -z "$SED" && SED=sed 11330Xsed="$SED -e 1s/^X//" 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11343$as_echo_n "checking for fgrep... " >&6; } 11344if ${ac_cv_path_FGREP+:} false; then : 11345 $as_echo_n "(cached) " >&6 11346else 11347 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11348 then ac_cv_path_FGREP="$GREP -F" 11349 else 11350 if test -z "$FGREP"; then 11351 ac_path_FGREP_found=false 11352 # Loop through the user's path and test for each of PROGNAME-LIST 11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11355do 11356 IFS=$as_save_IFS 11357 test -z "$as_dir" && as_dir=. 11358 for ac_prog in fgrep; do 11359 for ac_exec_ext in '' $ac_executable_extensions; do 11360 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11361 as_fn_executable_p "$ac_path_FGREP" || continue 11362# Check for GNU ac_path_FGREP and select it if it is found. 11363 # Check for GNU $ac_path_FGREP 11364case `"$ac_path_FGREP" --version 2>&1` in 11365*GNU*) 11366 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11367*) 11368 ac_count=0 11369 $as_echo_n 0123456789 >"conftest.in" 11370 while : 11371 do 11372 cat "conftest.in" "conftest.in" >"conftest.tmp" 11373 mv "conftest.tmp" "conftest.in" 11374 cp "conftest.in" "conftest.nl" 11375 $as_echo 'FGREP' >> "conftest.nl" 11376 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11378 as_fn_arith $ac_count + 1 && ac_count=$as_val 11379 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11380 # Best one so far, save it but keep looking for a better one 11381 ac_cv_path_FGREP="$ac_path_FGREP" 11382 ac_path_FGREP_max=$ac_count 11383 fi 11384 # 10*(2^10) chars as input seems more than enough 11385 test $ac_count -gt 10 && break 11386 done 11387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11388esac 11389 11390 $ac_path_FGREP_found && break 3 11391 done 11392 done 11393 done 11394IFS=$as_save_IFS 11395 if test -z "$ac_cv_path_FGREP"; then 11396 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11397 fi 11398else 11399 ac_cv_path_FGREP=$FGREP 11400fi 11401 11402 fi 11403fi 11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11405$as_echo "$ac_cv_path_FGREP" >&6; } 11406 FGREP="$ac_cv_path_FGREP" 11407 11408 11409test -z "$GREP" && GREP=grep 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429# Check whether --with-gnu-ld was given. 11430if test "${with_gnu_ld+set}" = set; then : 11431 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11432else 11433 with_gnu_ld=no 11434fi 11435 11436ac_prog=ld 11437if test yes = "$GCC"; then 11438 # Check if gcc -print-prog-name=ld gives a path. 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11440$as_echo_n "checking for ld used by $CC... " >&6; } 11441 case $host in 11442 *-*-mingw*) 11443 # gcc leaves a trailing carriage return, which upsets mingw 11444 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11445 *) 11446 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11447 esac 11448 case $ac_prog in 11449 # Accept absolute paths. 11450 [\\/]* | ?:[\\/]*) 11451 re_direlt='/[^/][^/]*/\.\./' 11452 # Canonicalize the pathname of ld 11453 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11454 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11455 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11456 done 11457 test -z "$LD" && LD=$ac_prog 11458 ;; 11459 "") 11460 # If it fails, then pretend we aren't using GCC. 11461 ac_prog=ld 11462 ;; 11463 *) 11464 # If it is relative, then search for the first ld in PATH. 11465 with_gnu_ld=unknown 11466 ;; 11467 esac 11468elif test yes = "$with_gnu_ld"; then 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11470$as_echo_n "checking for GNU ld... " >&6; } 11471else 11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11473$as_echo_n "checking for non-GNU ld... " >&6; } 11474fi 11475if ${lt_cv_path_LD+:} false; then : 11476 $as_echo_n "(cached) " >&6 11477else 11478 if test -z "$LD"; then 11479 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11480 for ac_dir in $PATH; do 11481 IFS=$lt_save_ifs 11482 test -z "$ac_dir" && ac_dir=. 11483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11484 lt_cv_path_LD=$ac_dir/$ac_prog 11485 # Check to see if the program is GNU ld. I'd rather use --version, 11486 # but apparently some variants of GNU ld only accept -v. 11487 # Break only if it was the GNU/non-GNU ld that we prefer. 11488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11489 *GNU* | *'with BFD'*) 11490 test no != "$with_gnu_ld" && break 11491 ;; 11492 *) 11493 test yes != "$with_gnu_ld" && break 11494 ;; 11495 esac 11496 fi 11497 done 11498 IFS=$lt_save_ifs 11499else 11500 lt_cv_path_LD=$LD # Let the user override the test with a path. 11501fi 11502fi 11503 11504LD=$lt_cv_path_LD 11505if test -n "$LD"; then 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11507$as_echo "$LD" >&6; } 11508else 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11510$as_echo "no" >&6; } 11511fi 11512test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11514$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11515if ${lt_cv_prog_gnu_ld+:} false; then : 11516 $as_echo_n "(cached) " >&6 11517else 11518 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11519case `$LD -v 2>&1 </dev/null` in 11520*GNU* | *'with BFD'*) 11521 lt_cv_prog_gnu_ld=yes 11522 ;; 11523*) 11524 lt_cv_prog_gnu_ld=no 11525 ;; 11526esac 11527fi 11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11529$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11530with_gnu_ld=$lt_cv_prog_gnu_ld 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11541$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11542if ${lt_cv_path_NM+:} false; then : 11543 $as_echo_n "(cached) " >&6 11544else 11545 if test -n "$NM"; then 11546 # Let the user override the test. 11547 lt_cv_path_NM=$NM 11548else 11549 lt_nm_to_check=${ac_tool_prefix}nm 11550 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11551 lt_nm_to_check="$lt_nm_to_check nm" 11552 fi 11553 for lt_tmp_nm in $lt_nm_to_check; do 11554 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11555 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11556 IFS=$lt_save_ifs 11557 test -z "$ac_dir" && ac_dir=. 11558 tmp_nm=$ac_dir/$lt_tmp_nm 11559 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11560 # Check to see if the nm accepts a BSD-compat flag. 11561 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11562 # nm: unknown option "B" ignored 11563 # Tru64's nm complains that /dev/null is an invalid object file 11564 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11565 case $build_os in 11566 mingw*) lt_bad_file=conftest.nm/nofile ;; 11567 *) lt_bad_file=/dev/null ;; 11568 esac 11569 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11570 *$lt_bad_file* | *'Invalid file or object type'*) 11571 lt_cv_path_NM="$tmp_nm -B" 11572 break 2 11573 ;; 11574 *) 11575 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11576 */dev/null*) 11577 lt_cv_path_NM="$tmp_nm -p" 11578 break 2 11579 ;; 11580 *) 11581 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11582 continue # so that we can try to find one that supports BSD flags 11583 ;; 11584 esac 11585 ;; 11586 esac 11587 fi 11588 done 11589 IFS=$lt_save_ifs 11590 done 11591 : ${lt_cv_path_NM=no} 11592fi 11593fi 11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11595$as_echo "$lt_cv_path_NM" >&6; } 11596if test no != "$lt_cv_path_NM"; then 11597 NM=$lt_cv_path_NM 11598else 11599 # Didn't find any BSD compatible name lister, look for dumpbin. 11600 if test -n "$DUMPBIN"; then : 11601 # Let the user override the test. 11602 else 11603 if test -n "$ac_tool_prefix"; then 11604 for ac_prog in dumpbin "link -dump" 11605 do 11606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11607set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11609$as_echo_n "checking for $ac_word... " >&6; } 11610if ${ac_cv_prog_DUMPBIN+:} false; then : 11611 $as_echo_n "(cached) " >&6 11612else 11613 if test -n "$DUMPBIN"; then 11614 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11615else 11616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11617for as_dir in $PATH 11618do 11619 IFS=$as_save_IFS 11620 test -z "$as_dir" && as_dir=. 11621 for ac_exec_ext in '' $ac_executable_extensions; do 11622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11623 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11625 break 2 11626 fi 11627done 11628 done 11629IFS=$as_save_IFS 11630 11631fi 11632fi 11633DUMPBIN=$ac_cv_prog_DUMPBIN 11634if test -n "$DUMPBIN"; then 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11636$as_echo "$DUMPBIN" >&6; } 11637else 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11639$as_echo "no" >&6; } 11640fi 11641 11642 11643 test -n "$DUMPBIN" && break 11644 done 11645fi 11646if test -z "$DUMPBIN"; then 11647 ac_ct_DUMPBIN=$DUMPBIN 11648 for ac_prog in dumpbin "link -dump" 11649do 11650 # Extract the first word of "$ac_prog", so it can be a program name with args. 11651set dummy $ac_prog; ac_word=$2 11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11653$as_echo_n "checking for $ac_word... " >&6; } 11654if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11655 $as_echo_n "(cached) " >&6 11656else 11657 if test -n "$ac_ct_DUMPBIN"; then 11658 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11659else 11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11661for as_dir in $PATH 11662do 11663 IFS=$as_save_IFS 11664 test -z "$as_dir" && as_dir=. 11665 for ac_exec_ext in '' $ac_executable_extensions; do 11666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11667 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11669 break 2 11670 fi 11671done 11672 done 11673IFS=$as_save_IFS 11674 11675fi 11676fi 11677ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11678if test -n "$ac_ct_DUMPBIN"; then 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11680$as_echo "$ac_ct_DUMPBIN" >&6; } 11681else 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11683$as_echo "no" >&6; } 11684fi 11685 11686 11687 test -n "$ac_ct_DUMPBIN" && break 11688done 11689 11690 if test "x$ac_ct_DUMPBIN" = x; then 11691 DUMPBIN=":" 11692 else 11693 case $cross_compiling:$ac_tool_warned in 11694yes:) 11695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11697ac_tool_warned=yes ;; 11698esac 11699 DUMPBIN=$ac_ct_DUMPBIN 11700 fi 11701fi 11702 11703 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11704 *COFF*) 11705 DUMPBIN="$DUMPBIN -symbols -headers" 11706 ;; 11707 *) 11708 DUMPBIN=: 11709 ;; 11710 esac 11711 fi 11712 11713 if test : != "$DUMPBIN"; then 11714 NM=$DUMPBIN 11715 fi 11716fi 11717test -z "$NM" && NM=nm 11718 11719 11720 11721 11722 11723 11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11725$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11726if ${lt_cv_nm_interface+:} false; then : 11727 $as_echo_n "(cached) " >&6 11728else 11729 lt_cv_nm_interface="BSD nm" 11730 echo "int some_variable = 0;" > conftest.$ac_ext 11731 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11732 (eval "$ac_compile" 2>conftest.err) 11733 cat conftest.err >&5 11734 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11735 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11736 cat conftest.err >&5 11737 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11738 cat conftest.out >&5 11739 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11740 lt_cv_nm_interface="MS dumpbin" 11741 fi 11742 rm -f conftest* 11743fi 11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11745$as_echo "$lt_cv_nm_interface" >&6; } 11746 11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11748$as_echo_n "checking whether ln -s works... " >&6; } 11749LN_S=$as_ln_s 11750if test "$LN_S" = "ln -s"; then 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11752$as_echo "yes" >&6; } 11753else 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11755$as_echo "no, using $LN_S" >&6; } 11756fi 11757 11758# find the maximum length of command line arguments 11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11760$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11761if ${lt_cv_sys_max_cmd_len+:} false; then : 11762 $as_echo_n "(cached) " >&6 11763else 11764 i=0 11765 teststring=ABCD 11766 11767 case $build_os in 11768 msdosdjgpp*) 11769 # On DJGPP, this test can blow up pretty badly due to problems in libc 11770 # (any single argument exceeding 2000 bytes causes a buffer overrun 11771 # during glob expansion). Even if it were fixed, the result of this 11772 # check would be larger than it should be. 11773 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11774 ;; 11775 11776 gnu*) 11777 # Under GNU Hurd, this test is not required because there is 11778 # no limit to the length of command line arguments. 11779 # Libtool will interpret -1 as no limit whatsoever 11780 lt_cv_sys_max_cmd_len=-1; 11781 ;; 11782 11783 cygwin* | mingw* | cegcc*) 11784 # On Win9x/ME, this test blows up -- it succeeds, but takes 11785 # about 5 minutes as the teststring grows exponentially. 11786 # Worse, since 9x/ME are not pre-emptively multitasking, 11787 # you end up with a "frozen" computer, even though with patience 11788 # the test eventually succeeds (with a max line length of 256k). 11789 # Instead, let's just punt: use the minimum linelength reported by 11790 # all of the supported platforms: 8192 (on NT/2K/XP). 11791 lt_cv_sys_max_cmd_len=8192; 11792 ;; 11793 11794 mint*) 11795 # On MiNT this can take a long time and run out of memory. 11796 lt_cv_sys_max_cmd_len=8192; 11797 ;; 11798 11799 amigaos*) 11800 # On AmigaOS with pdksh, this test takes hours, literally. 11801 # So we just punt and use a minimum line length of 8192. 11802 lt_cv_sys_max_cmd_len=8192; 11803 ;; 11804 11805 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11806 # This has been around since 386BSD, at least. Likely further. 11807 if test -x /sbin/sysctl; then 11808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11809 elif test -x /usr/sbin/sysctl; then 11810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11811 else 11812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11813 fi 11814 # And add a safety zone 11815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11817 ;; 11818 11819 interix*) 11820 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11821 lt_cv_sys_max_cmd_len=196608 11822 ;; 11823 11824 os2*) 11825 # The test takes a long time on OS/2. 11826 lt_cv_sys_max_cmd_len=8192 11827 ;; 11828 11829 osf*) 11830 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11831 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11832 # nice to cause kernel panics so lets avoid the loop below. 11833 # First set a reasonable default. 11834 lt_cv_sys_max_cmd_len=16384 11835 # 11836 if test -x /sbin/sysconfig; then 11837 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11838 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11839 esac 11840 fi 11841 ;; 11842 sco3.2v5*) 11843 lt_cv_sys_max_cmd_len=102400 11844 ;; 11845 sysv5* | sco5v6* | sysv4.2uw2*) 11846 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11847 if test -n "$kargmax"; then 11848 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11849 else 11850 lt_cv_sys_max_cmd_len=32768 11851 fi 11852 ;; 11853 *) 11854 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11855 if test -n "$lt_cv_sys_max_cmd_len" && \ 11856 test undefined != "$lt_cv_sys_max_cmd_len"; then 11857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11859 else 11860 # Make teststring a little bigger before we do anything with it. 11861 # a 1K string should be a reasonable start. 11862 for i in 1 2 3 4 5 6 7 8; do 11863 teststring=$teststring$teststring 11864 done 11865 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11866 # If test is not a shell built-in, we'll probably end up computing a 11867 # maximum length that is only half of the actual maximum length, but 11868 # we can't tell. 11869 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11870 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11871 test 17 != "$i" # 1/2 MB should be enough 11872 do 11873 i=`expr $i + 1` 11874 teststring=$teststring$teststring 11875 done 11876 # Only check the string length outside the loop. 11877 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11878 teststring= 11879 # Add a significant safety factor because C++ compilers can tack on 11880 # massive amounts of additional arguments before passing them to the 11881 # linker. It appears as though 1/2 is a usable value. 11882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11883 fi 11884 ;; 11885 esac 11886 11887fi 11888 11889if test -n "$lt_cv_sys_max_cmd_len"; then 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11891$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11892else 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11894$as_echo "none" >&6; } 11895fi 11896max_cmd_len=$lt_cv_sys_max_cmd_len 11897 11898 11899 11900 11901 11902 11903: ${CP="cp -f"} 11904: ${MV="mv -f"} 11905: ${RM="rm -f"} 11906 11907if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11908 lt_unset=unset 11909else 11910 lt_unset=false 11911fi 11912 11913 11914 11915 11916 11917# test EBCDIC or ASCII 11918case `echo X|tr X '\101'` in 11919 A) # ASCII based system 11920 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11921 lt_SP2NL='tr \040 \012' 11922 lt_NL2SP='tr \015\012 \040\040' 11923 ;; 11924 *) # EBCDIC based system 11925 lt_SP2NL='tr \100 \n' 11926 lt_NL2SP='tr \r\n \100\100' 11927 ;; 11928esac 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11939$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11940if ${lt_cv_to_host_file_cmd+:} false; then : 11941 $as_echo_n "(cached) " >&6 11942else 11943 case $host in 11944 *-*-mingw* ) 11945 case $build in 11946 *-*-mingw* ) # actually msys 11947 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11948 ;; 11949 *-*-cygwin* ) 11950 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11951 ;; 11952 * ) # otherwise, assume *nix 11953 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11954 ;; 11955 esac 11956 ;; 11957 *-*-cygwin* ) 11958 case $build in 11959 *-*-mingw* ) # actually msys 11960 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11961 ;; 11962 *-*-cygwin* ) 11963 lt_cv_to_host_file_cmd=func_convert_file_noop 11964 ;; 11965 * ) # otherwise, assume *nix 11966 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11967 ;; 11968 esac 11969 ;; 11970 * ) # unhandled hosts (and "normal" native builds) 11971 lt_cv_to_host_file_cmd=func_convert_file_noop 11972 ;; 11973esac 11974 11975fi 11976 11977to_host_file_cmd=$lt_cv_to_host_file_cmd 11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11979$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11980 11981 11982 11983 11984 11985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11986$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11987if ${lt_cv_to_tool_file_cmd+:} false; then : 11988 $as_echo_n "(cached) " >&6 11989else 11990 #assume ordinary cross tools, or native build. 11991lt_cv_to_tool_file_cmd=func_convert_file_noop 11992case $host in 11993 *-*-mingw* ) 11994 case $build in 11995 *-*-mingw* ) # actually msys 11996 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11997 ;; 11998 esac 11999 ;; 12000esac 12001 12002fi 12003 12004to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12006$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 12007 12008 12009 12010 12011 12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12013$as_echo_n "checking for $LD option to reload object files... " >&6; } 12014if ${lt_cv_ld_reload_flag+:} false; then : 12015 $as_echo_n "(cached) " >&6 12016else 12017 lt_cv_ld_reload_flag='-r' 12018fi 12019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12020$as_echo "$lt_cv_ld_reload_flag" >&6; } 12021reload_flag=$lt_cv_ld_reload_flag 12022case $reload_flag in 12023"" | " "*) ;; 12024*) reload_flag=" $reload_flag" ;; 12025esac 12026reload_cmds='$LD$reload_flag -o $output$reload_objs' 12027case $host_os in 12028 cygwin* | mingw* | pw32* | cegcc*) 12029 if test yes != "$GCC"; then 12030 reload_cmds=false 12031 fi 12032 ;; 12033 darwin*) 12034 if test yes = "$GCC"; then 12035 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12036 else 12037 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12038 fi 12039 ;; 12040esac 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050if test -n "$ac_tool_prefix"; then 12051 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12052set dummy ${ac_tool_prefix}objdump; ac_word=$2 12053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12054$as_echo_n "checking for $ac_word... " >&6; } 12055if ${ac_cv_prog_OBJDUMP+:} false; then : 12056 $as_echo_n "(cached) " >&6 12057else 12058 if test -n "$OBJDUMP"; then 12059 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12060else 12061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12062for as_dir in $PATH 12063do 12064 IFS=$as_save_IFS 12065 test -z "$as_dir" && as_dir=. 12066 for ac_exec_ext in '' $ac_executable_extensions; do 12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12068 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12070 break 2 12071 fi 12072done 12073 done 12074IFS=$as_save_IFS 12075 12076fi 12077fi 12078OBJDUMP=$ac_cv_prog_OBJDUMP 12079if test -n "$OBJDUMP"; then 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12081$as_echo "$OBJDUMP" >&6; } 12082else 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12084$as_echo "no" >&6; } 12085fi 12086 12087 12088fi 12089if test -z "$ac_cv_prog_OBJDUMP"; then 12090 ac_ct_OBJDUMP=$OBJDUMP 12091 # Extract the first word of "objdump", so it can be a program name with args. 12092set dummy objdump; ac_word=$2 12093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12094$as_echo_n "checking for $ac_word... " >&6; } 12095if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12096 $as_echo_n "(cached) " >&6 12097else 12098 if test -n "$ac_ct_OBJDUMP"; then 12099 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12100else 12101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12102for as_dir in $PATH 12103do 12104 IFS=$as_save_IFS 12105 test -z "$as_dir" && as_dir=. 12106 for ac_exec_ext in '' $ac_executable_extensions; do 12107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12108 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12110 break 2 12111 fi 12112done 12113 done 12114IFS=$as_save_IFS 12115 12116fi 12117fi 12118ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12119if test -n "$ac_ct_OBJDUMP"; then 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12121$as_echo "$ac_ct_OBJDUMP" >&6; } 12122else 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12124$as_echo "no" >&6; } 12125fi 12126 12127 if test "x$ac_ct_OBJDUMP" = x; then 12128 OBJDUMP="false" 12129 else 12130 case $cross_compiling:$ac_tool_warned in 12131yes:) 12132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12134ac_tool_warned=yes ;; 12135esac 12136 OBJDUMP=$ac_ct_OBJDUMP 12137 fi 12138else 12139 OBJDUMP="$ac_cv_prog_OBJDUMP" 12140fi 12141 12142test -z "$OBJDUMP" && OBJDUMP=objdump 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12153$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12154if ${lt_cv_deplibs_check_method+:} false; then : 12155 $as_echo_n "(cached) " >&6 12156else 12157 lt_cv_file_magic_cmd='$MAGIC_CMD' 12158lt_cv_file_magic_test_file= 12159lt_cv_deplibs_check_method='unknown' 12160# Need to set the preceding variable on all platforms that support 12161# interlibrary dependencies. 12162# 'none' -- dependencies not supported. 12163# 'unknown' -- same as none, but documents that we really don't know. 12164# 'pass_all' -- all dependencies passed with no checks. 12165# 'test_compile' -- check by making test program. 12166# 'file_magic [[regex]]' -- check by looking for files in library path 12167# that responds to the $file_magic_cmd with a given extended regex. 12168# If you have 'file' or equivalent on your system and you're not sure 12169# whether 'pass_all' will *always* work, you probably want this one. 12170 12171case $host_os in 12172aix[4-9]*) 12173 lt_cv_deplibs_check_method=pass_all 12174 ;; 12175 12176beos*) 12177 lt_cv_deplibs_check_method=pass_all 12178 ;; 12179 12180bsdi[45]*) 12181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12182 lt_cv_file_magic_cmd='/usr/bin/file -L' 12183 lt_cv_file_magic_test_file=/shlib/libc.so 12184 ;; 12185 12186cygwin*) 12187 # func_win32_libid is a shell function defined in ltmain.sh 12188 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12189 lt_cv_file_magic_cmd='func_win32_libid' 12190 ;; 12191 12192mingw* | pw32*) 12193 # Base MSYS/MinGW do not provide the 'file' command needed by 12194 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12195 # unless we find 'file', for example because we are cross-compiling. 12196 if ( file / ) >/dev/null 2>&1; then 12197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12198 lt_cv_file_magic_cmd='func_win32_libid' 12199 else 12200 # Keep this pattern in sync with the one in func_win32_libid. 12201 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12202 lt_cv_file_magic_cmd='$OBJDUMP -f' 12203 fi 12204 ;; 12205 12206cegcc*) 12207 # use the weaker test based on 'objdump'. See mingw*. 12208 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12209 lt_cv_file_magic_cmd='$OBJDUMP -f' 12210 ;; 12211 12212darwin* | rhapsody*) 12213 lt_cv_deplibs_check_method=pass_all 12214 ;; 12215 12216freebsd* | dragonfly*) 12217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12218 case $host_cpu in 12219 i*86 ) 12220 # Not sure whether the presence of OpenBSD here was a mistake. 12221 # Let's accept both of them until this is cleared up. 12222 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12223 lt_cv_file_magic_cmd=/usr/bin/file 12224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12225 ;; 12226 esac 12227 else 12228 lt_cv_deplibs_check_method=pass_all 12229 fi 12230 ;; 12231 12232haiku*) 12233 lt_cv_deplibs_check_method=pass_all 12234 ;; 12235 12236hpux10.20* | hpux11*) 12237 lt_cv_file_magic_cmd=/usr/bin/file 12238 case $host_cpu in 12239 ia64*) 12240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12241 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12242 ;; 12243 hppa*64*) 12244 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]' 12245 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12246 ;; 12247 *) 12248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12249 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12250 ;; 12251 esac 12252 ;; 12253 12254interix[3-9]*) 12255 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12257 ;; 12258 12259irix5* | irix6* | nonstopux*) 12260 case $LD in 12261 *-32|*"-32 ") libmagic=32-bit;; 12262 *-n32|*"-n32 ") libmagic=N32;; 12263 *-64|*"-64 ") libmagic=64-bit;; 12264 *) libmagic=never-match;; 12265 esac 12266 lt_cv_deplibs_check_method=pass_all 12267 ;; 12268 12269# This must be glibc/ELF. 12270linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12271 lt_cv_deplibs_check_method=pass_all 12272 ;; 12273 12274netbsd*) 12275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12277 else 12278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12279 fi 12280 ;; 12281 12282newos6*) 12283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12284 lt_cv_file_magic_cmd=/usr/bin/file 12285 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12286 ;; 12287 12288*nto* | *qnx*) 12289 lt_cv_deplibs_check_method=pass_all 12290 ;; 12291 12292openbsd* | bitrig*) 12293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12295 else 12296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12297 fi 12298 ;; 12299 12300osf3* | osf4* | osf5*) 12301 lt_cv_deplibs_check_method=pass_all 12302 ;; 12303 12304rdos*) 12305 lt_cv_deplibs_check_method=pass_all 12306 ;; 12307 12308solaris*) 12309 lt_cv_deplibs_check_method=pass_all 12310 ;; 12311 12312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12313 lt_cv_deplibs_check_method=pass_all 12314 ;; 12315 12316sysv4 | sysv4.3*) 12317 case $host_vendor in 12318 motorola) 12319 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]' 12320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12321 ;; 12322 ncr) 12323 lt_cv_deplibs_check_method=pass_all 12324 ;; 12325 sequent) 12326 lt_cv_file_magic_cmd='/bin/file' 12327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12328 ;; 12329 sni) 12330 lt_cv_file_magic_cmd='/bin/file' 12331 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12332 lt_cv_file_magic_test_file=/lib/libc.so 12333 ;; 12334 siemens) 12335 lt_cv_deplibs_check_method=pass_all 12336 ;; 12337 pc) 12338 lt_cv_deplibs_check_method=pass_all 12339 ;; 12340 esac 12341 ;; 12342 12343tpf*) 12344 lt_cv_deplibs_check_method=pass_all 12345 ;; 12346os2*) 12347 lt_cv_deplibs_check_method=pass_all 12348 ;; 12349esac 12350 12351fi 12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12353$as_echo "$lt_cv_deplibs_check_method" >&6; } 12354 12355file_magic_glob= 12356want_nocaseglob=no 12357if test "$build" = "$host"; then 12358 case $host_os in 12359 mingw* | pw32*) 12360 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12361 want_nocaseglob=yes 12362 else 12363 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12364 fi 12365 ;; 12366 esac 12367fi 12368 12369file_magic_cmd=$lt_cv_file_magic_cmd 12370deplibs_check_method=$lt_cv_deplibs_check_method 12371test -z "$deplibs_check_method" && deplibs_check_method=unknown 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394if test -n "$ac_tool_prefix"; then 12395 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12396set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12398$as_echo_n "checking for $ac_word... " >&6; } 12399if ${ac_cv_prog_DLLTOOL+:} false; then : 12400 $as_echo_n "(cached) " >&6 12401else 12402 if test -n "$DLLTOOL"; then 12403 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12404else 12405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12406for as_dir in $PATH 12407do 12408 IFS=$as_save_IFS 12409 test -z "$as_dir" && as_dir=. 12410 for ac_exec_ext in '' $ac_executable_extensions; do 12411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12412 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12414 break 2 12415 fi 12416done 12417 done 12418IFS=$as_save_IFS 12419 12420fi 12421fi 12422DLLTOOL=$ac_cv_prog_DLLTOOL 12423if test -n "$DLLTOOL"; then 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12425$as_echo "$DLLTOOL" >&6; } 12426else 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12428$as_echo "no" >&6; } 12429fi 12430 12431 12432fi 12433if test -z "$ac_cv_prog_DLLTOOL"; then 12434 ac_ct_DLLTOOL=$DLLTOOL 12435 # Extract the first word of "dlltool", so it can be a program name with args. 12436set dummy dlltool; ac_word=$2 12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12438$as_echo_n "checking for $ac_word... " >&6; } 12439if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 if test -n "$ac_ct_DLLTOOL"; then 12443 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12444else 12445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12446for as_dir in $PATH 12447do 12448 IFS=$as_save_IFS 12449 test -z "$as_dir" && as_dir=. 12450 for ac_exec_ext in '' $ac_executable_extensions; do 12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12452 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12454 break 2 12455 fi 12456done 12457 done 12458IFS=$as_save_IFS 12459 12460fi 12461fi 12462ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12463if test -n "$ac_ct_DLLTOOL"; then 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12465$as_echo "$ac_ct_DLLTOOL" >&6; } 12466else 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12468$as_echo "no" >&6; } 12469fi 12470 12471 if test "x$ac_ct_DLLTOOL" = x; then 12472 DLLTOOL="false" 12473 else 12474 case $cross_compiling:$ac_tool_warned in 12475yes:) 12476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12478ac_tool_warned=yes ;; 12479esac 12480 DLLTOOL=$ac_ct_DLLTOOL 12481 fi 12482else 12483 DLLTOOL="$ac_cv_prog_DLLTOOL" 12484fi 12485 12486test -z "$DLLTOOL" && DLLTOOL=dlltool 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12498$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12499if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12500 $as_echo_n "(cached) " >&6 12501else 12502 lt_cv_sharedlib_from_linklib_cmd='unknown' 12503 12504case $host_os in 12505cygwin* | mingw* | pw32* | cegcc*) 12506 # two different shell functions defined in ltmain.sh; 12507 # decide which one to use based on capabilities of $DLLTOOL 12508 case `$DLLTOOL --help 2>&1` in 12509 *--identify-strict*) 12510 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12511 ;; 12512 *) 12513 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12514 ;; 12515 esac 12516 ;; 12517*) 12518 # fallback: assume linklib IS sharedlib 12519 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12520 ;; 12521esac 12522 12523fi 12524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12525$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12526sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12527test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12528 12529 12530 12531 12532 12533 12534 12535if test -n "$ac_tool_prefix"; then 12536 for ac_prog in ar 12537 do 12538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12539set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12541$as_echo_n "checking for $ac_word... " >&6; } 12542if ${ac_cv_prog_AR+:} false; then : 12543 $as_echo_n "(cached) " >&6 12544else 12545 if test -n "$AR"; then 12546 ac_cv_prog_AR="$AR" # Let the user override the test. 12547else 12548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12549for as_dir in $PATH 12550do 12551 IFS=$as_save_IFS 12552 test -z "$as_dir" && as_dir=. 12553 for ac_exec_ext in '' $ac_executable_extensions; do 12554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12555 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12557 break 2 12558 fi 12559done 12560 done 12561IFS=$as_save_IFS 12562 12563fi 12564fi 12565AR=$ac_cv_prog_AR 12566if test -n "$AR"; then 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12568$as_echo "$AR" >&6; } 12569else 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12571$as_echo "no" >&6; } 12572fi 12573 12574 12575 test -n "$AR" && break 12576 done 12577fi 12578if test -z "$AR"; then 12579 ac_ct_AR=$AR 12580 for ac_prog in ar 12581do 12582 # Extract the first word of "$ac_prog", so it can be a program name with args. 12583set dummy $ac_prog; ac_word=$2 12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12585$as_echo_n "checking for $ac_word... " >&6; } 12586if ${ac_cv_prog_ac_ct_AR+:} false; then : 12587 $as_echo_n "(cached) " >&6 12588else 12589 if test -n "$ac_ct_AR"; then 12590 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12591else 12592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12593for as_dir in $PATH 12594do 12595 IFS=$as_save_IFS 12596 test -z "$as_dir" && as_dir=. 12597 for ac_exec_ext in '' $ac_executable_extensions; do 12598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12599 ac_cv_prog_ac_ct_AR="$ac_prog" 12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12601 break 2 12602 fi 12603done 12604 done 12605IFS=$as_save_IFS 12606 12607fi 12608fi 12609ac_ct_AR=$ac_cv_prog_ac_ct_AR 12610if test -n "$ac_ct_AR"; then 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12612$as_echo "$ac_ct_AR" >&6; } 12613else 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12615$as_echo "no" >&6; } 12616fi 12617 12618 12619 test -n "$ac_ct_AR" && break 12620done 12621 12622 if test "x$ac_ct_AR" = x; then 12623 AR="false" 12624 else 12625 case $cross_compiling:$ac_tool_warned in 12626yes:) 12627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12629ac_tool_warned=yes ;; 12630esac 12631 AR=$ac_ct_AR 12632 fi 12633fi 12634 12635: ${AR=ar} 12636: ${AR_FLAGS=cru} 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12649$as_echo_n "checking for archiver @FILE support... " >&6; } 12650if ${lt_cv_ar_at_file+:} false; then : 12651 $as_echo_n "(cached) " >&6 12652else 12653 lt_cv_ar_at_file=no 12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12655/* end confdefs.h. */ 12656 12657int 12658main () 12659{ 12660 12661 ; 12662 return 0; 12663} 12664_ACEOF 12665if ac_fn_c_try_compile "$LINENO"; then : 12666 echo conftest.$ac_objext > conftest.lst 12667 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12669 (eval $lt_ar_try) 2>&5 12670 ac_status=$? 12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12672 test $ac_status = 0; } 12673 if test 0 -eq "$ac_status"; then 12674 # Ensure the archiver fails upon bogus file names. 12675 rm -f conftest.$ac_objext libconftest.a 12676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12677 (eval $lt_ar_try) 2>&5 12678 ac_status=$? 12679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12680 test $ac_status = 0; } 12681 if test 0 -ne "$ac_status"; then 12682 lt_cv_ar_at_file=@ 12683 fi 12684 fi 12685 rm -f conftest.* libconftest.a 12686 12687fi 12688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12689 12690fi 12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12692$as_echo "$lt_cv_ar_at_file" >&6; } 12693 12694if test no = "$lt_cv_ar_at_file"; then 12695 archiver_list_spec= 12696else 12697 archiver_list_spec=$lt_cv_ar_at_file 12698fi 12699 12700 12701 12702 12703 12704 12705 12706if test -n "$ac_tool_prefix"; then 12707 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12708set dummy ${ac_tool_prefix}strip; ac_word=$2 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12710$as_echo_n "checking for $ac_word... " >&6; } 12711if ${ac_cv_prog_STRIP+:} false; then : 12712 $as_echo_n "(cached) " >&6 12713else 12714 if test -n "$STRIP"; then 12715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12716else 12717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12718for as_dir in $PATH 12719do 12720 IFS=$as_save_IFS 12721 test -z "$as_dir" && as_dir=. 12722 for ac_exec_ext in '' $ac_executable_extensions; do 12723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12724 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12726 break 2 12727 fi 12728done 12729 done 12730IFS=$as_save_IFS 12731 12732fi 12733fi 12734STRIP=$ac_cv_prog_STRIP 12735if test -n "$STRIP"; then 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12737$as_echo "$STRIP" >&6; } 12738else 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12740$as_echo "no" >&6; } 12741fi 12742 12743 12744fi 12745if test -z "$ac_cv_prog_STRIP"; then 12746 ac_ct_STRIP=$STRIP 12747 # Extract the first word of "strip", so it can be a program name with args. 12748set dummy strip; ac_word=$2 12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12750$as_echo_n "checking for $ac_word... " >&6; } 12751if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12752 $as_echo_n "(cached) " >&6 12753else 12754 if test -n "$ac_ct_STRIP"; then 12755 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12756else 12757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12758for as_dir in $PATH 12759do 12760 IFS=$as_save_IFS 12761 test -z "$as_dir" && as_dir=. 12762 for ac_exec_ext in '' $ac_executable_extensions; do 12763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12764 ac_cv_prog_ac_ct_STRIP="strip" 12765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12766 break 2 12767 fi 12768done 12769 done 12770IFS=$as_save_IFS 12771 12772fi 12773fi 12774ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12775if test -n "$ac_ct_STRIP"; then 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12777$as_echo "$ac_ct_STRIP" >&6; } 12778else 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12780$as_echo "no" >&6; } 12781fi 12782 12783 if test "x$ac_ct_STRIP" = x; then 12784 STRIP=":" 12785 else 12786 case $cross_compiling:$ac_tool_warned in 12787yes:) 12788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12790ac_tool_warned=yes ;; 12791esac 12792 STRIP=$ac_ct_STRIP 12793 fi 12794else 12795 STRIP="$ac_cv_prog_STRIP" 12796fi 12797 12798test -z "$STRIP" && STRIP=: 12799 12800 12801 12802 12803 12804 12805if test -n "$ac_tool_prefix"; then 12806 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12807set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12809$as_echo_n "checking for $ac_word... " >&6; } 12810if ${ac_cv_prog_RANLIB+:} false; then : 12811 $as_echo_n "(cached) " >&6 12812else 12813 if test -n "$RANLIB"; then 12814 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12815else 12816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12817for as_dir in $PATH 12818do 12819 IFS=$as_save_IFS 12820 test -z "$as_dir" && as_dir=. 12821 for ac_exec_ext in '' $ac_executable_extensions; do 12822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12823 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12825 break 2 12826 fi 12827done 12828 done 12829IFS=$as_save_IFS 12830 12831fi 12832fi 12833RANLIB=$ac_cv_prog_RANLIB 12834if test -n "$RANLIB"; then 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12836$as_echo "$RANLIB" >&6; } 12837else 12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12839$as_echo "no" >&6; } 12840fi 12841 12842 12843fi 12844if test -z "$ac_cv_prog_RANLIB"; then 12845 ac_ct_RANLIB=$RANLIB 12846 # Extract the first word of "ranlib", so it can be a program name with args. 12847set dummy ranlib; ac_word=$2 12848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12849$as_echo_n "checking for $ac_word... " >&6; } 12850if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12851 $as_echo_n "(cached) " >&6 12852else 12853 if test -n "$ac_ct_RANLIB"; then 12854 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12855else 12856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12857for as_dir in $PATH 12858do 12859 IFS=$as_save_IFS 12860 test -z "$as_dir" && as_dir=. 12861 for ac_exec_ext in '' $ac_executable_extensions; do 12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12863 ac_cv_prog_ac_ct_RANLIB="ranlib" 12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12865 break 2 12866 fi 12867done 12868 done 12869IFS=$as_save_IFS 12870 12871fi 12872fi 12873ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12874if test -n "$ac_ct_RANLIB"; then 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12876$as_echo "$ac_ct_RANLIB" >&6; } 12877else 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12879$as_echo "no" >&6; } 12880fi 12881 12882 if test "x$ac_ct_RANLIB" = x; then 12883 RANLIB=":" 12884 else 12885 case $cross_compiling:$ac_tool_warned in 12886yes:) 12887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12889ac_tool_warned=yes ;; 12890esac 12891 RANLIB=$ac_ct_RANLIB 12892 fi 12893else 12894 RANLIB="$ac_cv_prog_RANLIB" 12895fi 12896 12897test -z "$RANLIB" && RANLIB=: 12898 12899 12900 12901 12902 12903 12904# Determine commands to create old-style static archives. 12905old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12906old_postinstall_cmds='chmod 644 $oldlib' 12907old_postuninstall_cmds= 12908 12909if test -n "$RANLIB"; then 12910 case $host_os in 12911 bitrig* | openbsd*) 12912 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12913 ;; 12914 *) 12915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12916 ;; 12917 esac 12918 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12919fi 12920 12921case $host_os in 12922 darwin*) 12923 lock_old_archive_extraction=yes ;; 12924 *) 12925 lock_old_archive_extraction=no ;; 12926esac 12927 12928 12929 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# If no C compiler was specified, use CC. 12967LTCC=${LTCC-"$CC"} 12968 12969# If no C compiler flags were specified, use CFLAGS. 12970LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12971 12972# Allow CC to be a program name with arguments. 12973compiler=$CC 12974 12975 12976# Check for command to grab the raw symbol name followed by C symbol from nm. 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12978$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12979if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12980 $as_echo_n "(cached) " >&6 12981else 12982 12983# These are sane defaults that work on at least a few old systems. 12984# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12985 12986# Character class describing NM global symbol codes. 12987symcode='[BCDEGRST]' 12988 12989# Regexp to match symbols that can be accessed directly from C. 12990sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12991 12992# Define system-specific variables. 12993case $host_os in 12994aix*) 12995 symcode='[BCDT]' 12996 ;; 12997cygwin* | mingw* | pw32* | cegcc*) 12998 symcode='[ABCDGISTW]' 12999 ;; 13000hpux*) 13001 if test ia64 = "$host_cpu"; then 13002 symcode='[ABCDEGRST]' 13003 fi 13004 ;; 13005irix* | nonstopux*) 13006 symcode='[BCDEGRST]' 13007 ;; 13008osf*) 13009 symcode='[BCDEGQRST]' 13010 ;; 13011solaris*) 13012 symcode='[BDRT]' 13013 ;; 13014sco3.2v5*) 13015 symcode='[DT]' 13016 ;; 13017sysv4.2uw2*) 13018 symcode='[DT]' 13019 ;; 13020sysv5* | sco5v6* | unixware* | OpenUNIX*) 13021 symcode='[ABDT]' 13022 ;; 13023sysv4) 13024 symcode='[DFNSTU]' 13025 ;; 13026esac 13027 13028# If we're using GNU nm, then use its standard symbol codes. 13029case `$NM -V 2>&1` in 13030*GNU* | *'with BFD'*) 13031 symcode='[ABCDGIRSTW]' ;; 13032esac 13033 13034if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13035 # Gets list of data symbols to import. 13036 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 13037 # Adjust the below global symbol transforms to fixup imported variables. 13038 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13039 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13040 lt_c_name_lib_hook="\ 13041 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13042 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13043else 13044 # Disable hooks by default. 13045 lt_cv_sys_global_symbol_to_import= 13046 lt_cdecl_hook= 13047 lt_c_name_hook= 13048 lt_c_name_lib_hook= 13049fi 13050 13051# Transform an extracted symbol line into a proper C declaration. 13052# Some systems (esp. on ia64) link data and code symbols differently, 13053# so use this general approach. 13054lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13055$lt_cdecl_hook\ 13056" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13057" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13058 13059# Transform an extracted symbol line into symbol name and symbol address 13060lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13061$lt_c_name_hook\ 13062" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13063" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13064 13065# Transform an extracted symbol line into symbol name with lib prefix and 13066# symbol address. 13067lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13068$lt_c_name_lib_hook\ 13069" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13070" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13071" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13072 13073# Handle CRLF in mingw tool chain 13074opt_cr= 13075case $build_os in 13076mingw*) 13077 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13078 ;; 13079esac 13080 13081# Try without a prefix underscore, then with it. 13082for ac_symprfx in "" "_"; do 13083 13084 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13085 symxfrm="\\1 $ac_symprfx\\2 \\2" 13086 13087 # Write the raw and C identifiers. 13088 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13089 # Fake it for dumpbin and say T for any non-static function, 13090 # D for any global variable and I for any imported variable. 13091 # Also find C++ and __fastcall symbols from MSVC++, 13092 # which start with @ or ?. 13093 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13094" {last_section=section; section=\$ 3};"\ 13095" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13096" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13097" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13098" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13099" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13100" \$ 0!~/External *\|/{next};"\ 13101" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13102" {if(hide[section]) next};"\ 13103" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13104" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13105" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13106" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13107" ' prfx=^$ac_symprfx" 13108 else 13109 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13110 fi 13111 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13112 13113 # Check to see that the pipe works correctly. 13114 pipe_works=no 13115 13116 rm -f conftest* 13117 cat > conftest.$ac_ext <<_LT_EOF 13118#ifdef __cplusplus 13119extern "C" { 13120#endif 13121char nm_test_var; 13122void nm_test_func(void); 13123void nm_test_func(void){} 13124#ifdef __cplusplus 13125} 13126#endif 13127int main(){nm_test_var='a';nm_test_func();return(0);} 13128_LT_EOF 13129 13130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13131 (eval $ac_compile) 2>&5 13132 ac_status=$? 13133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13134 test $ac_status = 0; }; then 13135 # Now try to grab the symbols. 13136 nlist=conftest.nm 13137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13138 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13139 ac_status=$? 13140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13141 test $ac_status = 0; } && test -s "$nlist"; then 13142 # Try sorting and uniquifying the output. 13143 if sort "$nlist" | uniq > "$nlist"T; then 13144 mv -f "$nlist"T "$nlist" 13145 else 13146 rm -f "$nlist"T 13147 fi 13148 13149 # Make sure that we snagged all the symbols we need. 13150 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13151 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13152 cat <<_LT_EOF > conftest.$ac_ext 13153/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13154#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13155/* DATA imports from DLLs on WIN32 can't be const, because runtime 13156 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13157# define LT_DLSYM_CONST 13158#elif defined __osf__ 13159/* This system does not cope well with relocations in const data. */ 13160# define LT_DLSYM_CONST 13161#else 13162# define LT_DLSYM_CONST const 13163#endif 13164 13165#ifdef __cplusplus 13166extern "C" { 13167#endif 13168 13169_LT_EOF 13170 # Now generate the symbol file. 13171 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13172 13173 cat <<_LT_EOF >> conftest.$ac_ext 13174 13175/* The mapping between symbol names and symbols. */ 13176LT_DLSYM_CONST struct { 13177 const char *name; 13178 void *address; 13179} 13180lt__PROGRAM__LTX_preloaded_symbols[] = 13181{ 13182 { "@PROGRAM@", (void *) 0 }, 13183_LT_EOF 13184 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13185 cat <<\_LT_EOF >> conftest.$ac_ext 13186 {0, (void *) 0} 13187}; 13188 13189/* This works around a problem in FreeBSD linker */ 13190#ifdef FREEBSD_WORKAROUND 13191static const void *lt_preloaded_setup() { 13192 return lt__PROGRAM__LTX_preloaded_symbols; 13193} 13194#endif 13195 13196#ifdef __cplusplus 13197} 13198#endif 13199_LT_EOF 13200 # Now try linking the two files. 13201 mv conftest.$ac_objext conftstm.$ac_objext 13202 lt_globsym_save_LIBS=$LIBS 13203 lt_globsym_save_CFLAGS=$CFLAGS 13204 LIBS=conftstm.$ac_objext 13205 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13207 (eval $ac_link) 2>&5 13208 ac_status=$? 13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13210 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13211 pipe_works=yes 13212 fi 13213 LIBS=$lt_globsym_save_LIBS 13214 CFLAGS=$lt_globsym_save_CFLAGS 13215 else 13216 echo "cannot find nm_test_func in $nlist" >&5 13217 fi 13218 else 13219 echo "cannot find nm_test_var in $nlist" >&5 13220 fi 13221 else 13222 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13223 fi 13224 else 13225 echo "$progname: failed program was:" >&5 13226 cat conftest.$ac_ext >&5 13227 fi 13228 rm -rf conftest* conftst* 13229 13230 # Do not use the global_symbol_pipe unless it works. 13231 if test yes = "$pipe_works"; then 13232 break 13233 else 13234 lt_cv_sys_global_symbol_pipe= 13235 fi 13236done 13237 13238fi 13239 13240if test -z "$lt_cv_sys_global_symbol_pipe"; then 13241 lt_cv_sys_global_symbol_to_cdecl= 13242fi 13243if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13245$as_echo "failed" >&6; } 13246else 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13248$as_echo "ok" >&6; } 13249fi 13250 13251# Response file support. 13252if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13253 nm_file_list_spec='@' 13254elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13255 nm_file_list_spec='@' 13256fi 13257 13258 13259 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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13295$as_echo_n "checking for sysroot... " >&6; } 13296 13297# Check whether --with-sysroot was given. 13298if test "${with_sysroot+set}" = set; then : 13299 withval=$with_sysroot; 13300else 13301 with_sysroot=no 13302fi 13303 13304 13305lt_sysroot= 13306case $with_sysroot in #( 13307 yes) 13308 if test yes = "$GCC"; then 13309 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13310 fi 13311 ;; #( 13312 /*) 13313 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13314 ;; #( 13315 no|'') 13316 ;; #( 13317 *) 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13319$as_echo "$with_sysroot" >&6; } 13320 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13321 ;; 13322esac 13323 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13325$as_echo "${lt_sysroot:-no}" >&6; } 13326 13327 13328 13329 13330 13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13332$as_echo_n "checking for a working dd... " >&6; } 13333if ${ac_cv_path_lt_DD+:} false; then : 13334 $as_echo_n "(cached) " >&6 13335else 13336 printf 0123456789abcdef0123456789abcdef >conftest.i 13337cat conftest.i conftest.i >conftest2.i 13338: ${lt_DD:=$DD} 13339if test -z "$lt_DD"; then 13340 ac_path_lt_DD_found=false 13341 # Loop through the user's path and test for each of PROGNAME-LIST 13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13343for as_dir in $PATH 13344do 13345 IFS=$as_save_IFS 13346 test -z "$as_dir" && as_dir=. 13347 for ac_prog in dd; do 13348 for ac_exec_ext in '' $ac_executable_extensions; do 13349 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13350 as_fn_executable_p "$ac_path_lt_DD" || continue 13351if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13352 cmp -s conftest.i conftest.out \ 13353 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13354fi 13355 $ac_path_lt_DD_found && break 3 13356 done 13357 done 13358 done 13359IFS=$as_save_IFS 13360 if test -z "$ac_cv_path_lt_DD"; then 13361 : 13362 fi 13363else 13364 ac_cv_path_lt_DD=$lt_DD 13365fi 13366 13367rm -f conftest.i conftest2.i conftest.out 13368fi 13369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13370$as_echo "$ac_cv_path_lt_DD" >&6; } 13371 13372 13373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13374$as_echo_n "checking how to truncate binary pipes... " >&6; } 13375if ${lt_cv_truncate_bin+:} false; then : 13376 $as_echo_n "(cached) " >&6 13377else 13378 printf 0123456789abcdef0123456789abcdef >conftest.i 13379cat conftest.i conftest.i >conftest2.i 13380lt_cv_truncate_bin= 13381if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13382 cmp -s conftest.i conftest.out \ 13383 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13384fi 13385rm -f conftest.i conftest2.i conftest.out 13386test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13387fi 13388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13389$as_echo "$lt_cv_truncate_bin" >&6; } 13390 13391 13392 13393 13394 13395 13396 13397# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13398func_cc_basename () 13399{ 13400 for cc_temp in $*""; do 13401 case $cc_temp in 13402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13404 \-*) ;; 13405 *) break;; 13406 esac 13407 done 13408 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13409} 13410 13411# Check whether --enable-libtool-lock was given. 13412if test "${enable_libtool_lock+set}" = set; then : 13413 enableval=$enable_libtool_lock; 13414fi 13415 13416test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13417 13418# Some flags need to be propagated to the compiler or linker for good 13419# libtool support. 13420case $host in 13421ia64-*-hpux*) 13422 # Find out what ABI is being produced by ac_compile, and set mode 13423 # options accordingly. 13424 echo 'int i;' > conftest.$ac_ext 13425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13426 (eval $ac_compile) 2>&5 13427 ac_status=$? 13428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13429 test $ac_status = 0; }; then 13430 case `/usr/bin/file conftest.$ac_objext` in 13431 *ELF-32*) 13432 HPUX_IA64_MODE=32 13433 ;; 13434 *ELF-64*) 13435 HPUX_IA64_MODE=64 13436 ;; 13437 esac 13438 fi 13439 rm -rf conftest* 13440 ;; 13441*-*-irix6*) 13442 # Find out what ABI is being produced by ac_compile, and set linker 13443 # options accordingly. 13444 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13446 (eval $ac_compile) 2>&5 13447 ac_status=$? 13448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13449 test $ac_status = 0; }; then 13450 if test yes = "$lt_cv_prog_gnu_ld"; then 13451 case `/usr/bin/file conftest.$ac_objext` in 13452 *32-bit*) 13453 LD="${LD-ld} -melf32bsmip" 13454 ;; 13455 *N32*) 13456 LD="${LD-ld} -melf32bmipn32" 13457 ;; 13458 *64-bit*) 13459 LD="${LD-ld} -melf64bmip" 13460 ;; 13461 esac 13462 else 13463 case `/usr/bin/file conftest.$ac_objext` in 13464 *32-bit*) 13465 LD="${LD-ld} -32" 13466 ;; 13467 *N32*) 13468 LD="${LD-ld} -n32" 13469 ;; 13470 *64-bit*) 13471 LD="${LD-ld} -64" 13472 ;; 13473 esac 13474 fi 13475 fi 13476 rm -rf conftest* 13477 ;; 13478 13479mips64*-*linux*) 13480 # Find out what ABI is being produced by ac_compile, and set linker 13481 # options accordingly. 13482 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13484 (eval $ac_compile) 2>&5 13485 ac_status=$? 13486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13487 test $ac_status = 0; }; then 13488 emul=elf 13489 case `/usr/bin/file conftest.$ac_objext` in 13490 *32-bit*) 13491 emul="${emul}32" 13492 ;; 13493 *64-bit*) 13494 emul="${emul}64" 13495 ;; 13496 esac 13497 case `/usr/bin/file conftest.$ac_objext` in 13498 *MSB*) 13499 emul="${emul}btsmip" 13500 ;; 13501 *LSB*) 13502 emul="${emul}ltsmip" 13503 ;; 13504 esac 13505 case `/usr/bin/file conftest.$ac_objext` in 13506 *N32*) 13507 emul="${emul}n32" 13508 ;; 13509 esac 13510 LD="${LD-ld} -m $emul" 13511 fi 13512 rm -rf conftest* 13513 ;; 13514 13515x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13516s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13517 # Find out what ABI is being produced by ac_compile, and set linker 13518 # options accordingly. Note that the listed cases only cover the 13519 # situations where additional linker options are needed (such as when 13520 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13521 # vice versa); the common cases where no linker options are needed do 13522 # not appear in the list. 13523 echo 'int i;' > conftest.$ac_ext 13524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13525 (eval $ac_compile) 2>&5 13526 ac_status=$? 13527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13528 test $ac_status = 0; }; then 13529 case `/usr/bin/file conftest.o` in 13530 *32-bit*) 13531 case $host in 13532 x86_64-*kfreebsd*-gnu) 13533 LD="${LD-ld} -m elf_i386_fbsd" 13534 ;; 13535 x86_64-*linux*) 13536 case `/usr/bin/file conftest.o` in 13537 *x86-64*) 13538 LD="${LD-ld} -m elf32_x86_64" 13539 ;; 13540 *) 13541 LD="${LD-ld} -m elf_i386" 13542 ;; 13543 esac 13544 ;; 13545 powerpc64le-*linux*) 13546 LD="${LD-ld} -m elf32lppclinux" 13547 ;; 13548 powerpc64-*linux*) 13549 LD="${LD-ld} -m elf32ppclinux" 13550 ;; 13551 s390x-*linux*) 13552 LD="${LD-ld} -m elf_s390" 13553 ;; 13554 sparc64-*linux*) 13555 LD="${LD-ld} -m elf32_sparc" 13556 ;; 13557 esac 13558 ;; 13559 *64-bit*) 13560 case $host in 13561 x86_64-*kfreebsd*-gnu) 13562 LD="${LD-ld} -m elf_x86_64_fbsd" 13563 ;; 13564 x86_64-*linux*) 13565 LD="${LD-ld} -m elf_x86_64" 13566 ;; 13567 powerpcle-*linux*) 13568 LD="${LD-ld} -m elf64lppc" 13569 ;; 13570 powerpc-*linux*) 13571 LD="${LD-ld} -m elf64ppc" 13572 ;; 13573 s390*-*linux*|s390*-*tpf*) 13574 LD="${LD-ld} -m elf64_s390" 13575 ;; 13576 sparc*-*linux*) 13577 LD="${LD-ld} -m elf64_sparc" 13578 ;; 13579 esac 13580 ;; 13581 esac 13582 fi 13583 rm -rf conftest* 13584 ;; 13585 13586*-*-sco3.2v5*) 13587 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13588 SAVE_CFLAGS=$CFLAGS 13589 CFLAGS="$CFLAGS -belf" 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13591$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13592if ${lt_cv_cc_needs_belf+:} false; then : 13593 $as_echo_n "(cached) " >&6 13594else 13595 ac_ext=c 13596ac_cpp='$CPP $CPPFLAGS' 13597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13599ac_compiler_gnu=$ac_cv_c_compiler_gnu 13600 13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13602/* end confdefs.h. */ 13603 13604int 13605main () 13606{ 13607 13608 ; 13609 return 0; 13610} 13611_ACEOF 13612if ac_fn_c_try_link "$LINENO"; then : 13613 lt_cv_cc_needs_belf=yes 13614else 13615 lt_cv_cc_needs_belf=no 13616fi 13617rm -f core conftest.err conftest.$ac_objext \ 13618 conftest$ac_exeext conftest.$ac_ext 13619 ac_ext=c 13620ac_cpp='$CPP $CPPFLAGS' 13621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13623ac_compiler_gnu=$ac_cv_c_compiler_gnu 13624 13625fi 13626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13627$as_echo "$lt_cv_cc_needs_belf" >&6; } 13628 if test yes != "$lt_cv_cc_needs_belf"; then 13629 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13630 CFLAGS=$SAVE_CFLAGS 13631 fi 13632 ;; 13633*-*solaris*) 13634 # Find out what ABI is being produced by ac_compile, and set linker 13635 # options accordingly. 13636 echo 'int i;' > conftest.$ac_ext 13637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13638 (eval $ac_compile) 2>&5 13639 ac_status=$? 13640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13641 test $ac_status = 0; }; then 13642 case `/usr/bin/file conftest.o` in 13643 *64-bit*) 13644 case $lt_cv_prog_gnu_ld in 13645 yes*) 13646 case $host in 13647 i?86-*-solaris*|x86_64-*-solaris*) 13648 LD="${LD-ld} -m elf_x86_64" 13649 ;; 13650 sparc*-*-solaris*) 13651 LD="${LD-ld} -m elf64_sparc" 13652 ;; 13653 esac 13654 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13655 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13656 LD=${LD-ld}_sol2 13657 fi 13658 ;; 13659 *) 13660 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13661 LD="${LD-ld} -64" 13662 fi 13663 ;; 13664 esac 13665 ;; 13666 esac 13667 fi 13668 rm -rf conftest* 13669 ;; 13670esac 13671 13672need_locks=$enable_libtool_lock 13673 13674if test -n "$ac_tool_prefix"; then 13675 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13676set dummy ${ac_tool_prefix}mt; ac_word=$2 13677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13678$as_echo_n "checking for $ac_word... " >&6; } 13679if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13680 $as_echo_n "(cached) " >&6 13681else 13682 if test -n "$MANIFEST_TOOL"; then 13683 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13684else 13685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13686for as_dir in $PATH 13687do 13688 IFS=$as_save_IFS 13689 test -z "$as_dir" && as_dir=. 13690 for ac_exec_ext in '' $ac_executable_extensions; do 13691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13692 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13694 break 2 13695 fi 13696done 13697 done 13698IFS=$as_save_IFS 13699 13700fi 13701fi 13702MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13703if test -n "$MANIFEST_TOOL"; then 13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13705$as_echo "$MANIFEST_TOOL" >&6; } 13706else 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13708$as_echo "no" >&6; } 13709fi 13710 13711 13712fi 13713if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13714 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13715 # Extract the first word of "mt", so it can be a program name with args. 13716set dummy mt; ac_word=$2 13717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13718$as_echo_n "checking for $ac_word... " >&6; } 13719if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13720 $as_echo_n "(cached) " >&6 13721else 13722 if test -n "$ac_ct_MANIFEST_TOOL"; then 13723 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13724else 13725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13726for as_dir in $PATH 13727do 13728 IFS=$as_save_IFS 13729 test -z "$as_dir" && as_dir=. 13730 for ac_exec_ext in '' $ac_executable_extensions; do 13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13732 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13734 break 2 13735 fi 13736done 13737 done 13738IFS=$as_save_IFS 13739 13740fi 13741fi 13742ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13743if test -n "$ac_ct_MANIFEST_TOOL"; then 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13745$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13746else 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13748$as_echo "no" >&6; } 13749fi 13750 13751 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13752 MANIFEST_TOOL=":" 13753 else 13754 case $cross_compiling:$ac_tool_warned in 13755yes:) 13756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13758ac_tool_warned=yes ;; 13759esac 13760 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13761 fi 13762else 13763 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13764fi 13765 13766test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13768$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13769if ${lt_cv_path_mainfest_tool+:} false; then : 13770 $as_echo_n "(cached) " >&6 13771else 13772 lt_cv_path_mainfest_tool=no 13773 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13774 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13775 cat conftest.err >&5 13776 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13777 lt_cv_path_mainfest_tool=yes 13778 fi 13779 rm -f conftest* 13780fi 13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13782$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13783if test yes != "$lt_cv_path_mainfest_tool"; then 13784 MANIFEST_TOOL=: 13785fi 13786 13787 13788 13789 13790 13791 13792 case $host_os in 13793 rhapsody* | darwin*) 13794 if test -n "$ac_tool_prefix"; then 13795 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13796set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13798$as_echo_n "checking for $ac_word... " >&6; } 13799if ${ac_cv_prog_DSYMUTIL+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 if test -n "$DSYMUTIL"; then 13803 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13804else 13805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13806for as_dir in $PATH 13807do 13808 IFS=$as_save_IFS 13809 test -z "$as_dir" && as_dir=. 13810 for ac_exec_ext in '' $ac_executable_extensions; do 13811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13812 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13814 break 2 13815 fi 13816done 13817 done 13818IFS=$as_save_IFS 13819 13820fi 13821fi 13822DSYMUTIL=$ac_cv_prog_DSYMUTIL 13823if test -n "$DSYMUTIL"; then 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13825$as_echo "$DSYMUTIL" >&6; } 13826else 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13828$as_echo "no" >&6; } 13829fi 13830 13831 13832fi 13833if test -z "$ac_cv_prog_DSYMUTIL"; then 13834 ac_ct_DSYMUTIL=$DSYMUTIL 13835 # Extract the first word of "dsymutil", so it can be a program name with args. 13836set dummy dsymutil; ac_word=$2 13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13838$as_echo_n "checking for $ac_word... " >&6; } 13839if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13840 $as_echo_n "(cached) " >&6 13841else 13842 if test -n "$ac_ct_DSYMUTIL"; then 13843 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13844else 13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13846for as_dir in $PATH 13847do 13848 IFS=$as_save_IFS 13849 test -z "$as_dir" && as_dir=. 13850 for ac_exec_ext in '' $ac_executable_extensions; do 13851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13852 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13854 break 2 13855 fi 13856done 13857 done 13858IFS=$as_save_IFS 13859 13860fi 13861fi 13862ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13863if test -n "$ac_ct_DSYMUTIL"; then 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13865$as_echo "$ac_ct_DSYMUTIL" >&6; } 13866else 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13868$as_echo "no" >&6; } 13869fi 13870 13871 if test "x$ac_ct_DSYMUTIL" = x; then 13872 DSYMUTIL=":" 13873 else 13874 case $cross_compiling:$ac_tool_warned in 13875yes:) 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13878ac_tool_warned=yes ;; 13879esac 13880 DSYMUTIL=$ac_ct_DSYMUTIL 13881 fi 13882else 13883 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13884fi 13885 13886 if test -n "$ac_tool_prefix"; then 13887 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13888set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13890$as_echo_n "checking for $ac_word... " >&6; } 13891if ${ac_cv_prog_NMEDIT+:} false; then : 13892 $as_echo_n "(cached) " >&6 13893else 13894 if test -n "$NMEDIT"; then 13895 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13896else 13897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13898for as_dir in $PATH 13899do 13900 IFS=$as_save_IFS 13901 test -z "$as_dir" && as_dir=. 13902 for ac_exec_ext in '' $ac_executable_extensions; do 13903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13904 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13906 break 2 13907 fi 13908done 13909 done 13910IFS=$as_save_IFS 13911 13912fi 13913fi 13914NMEDIT=$ac_cv_prog_NMEDIT 13915if test -n "$NMEDIT"; then 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13917$as_echo "$NMEDIT" >&6; } 13918else 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13920$as_echo "no" >&6; } 13921fi 13922 13923 13924fi 13925if test -z "$ac_cv_prog_NMEDIT"; then 13926 ac_ct_NMEDIT=$NMEDIT 13927 # Extract the first word of "nmedit", so it can be a program name with args. 13928set dummy nmedit; ac_word=$2 13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13930$as_echo_n "checking for $ac_word... " >&6; } 13931if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13932 $as_echo_n "(cached) " >&6 13933else 13934 if test -n "$ac_ct_NMEDIT"; then 13935 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13936else 13937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13938for as_dir in $PATH 13939do 13940 IFS=$as_save_IFS 13941 test -z "$as_dir" && as_dir=. 13942 for ac_exec_ext in '' $ac_executable_extensions; do 13943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13944 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13946 break 2 13947 fi 13948done 13949 done 13950IFS=$as_save_IFS 13951 13952fi 13953fi 13954ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13955if test -n "$ac_ct_NMEDIT"; then 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13957$as_echo "$ac_ct_NMEDIT" >&6; } 13958else 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13960$as_echo "no" >&6; } 13961fi 13962 13963 if test "x$ac_ct_NMEDIT" = x; then 13964 NMEDIT=":" 13965 else 13966 case $cross_compiling:$ac_tool_warned in 13967yes:) 13968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13970ac_tool_warned=yes ;; 13971esac 13972 NMEDIT=$ac_ct_NMEDIT 13973 fi 13974else 13975 NMEDIT="$ac_cv_prog_NMEDIT" 13976fi 13977 13978 if test -n "$ac_tool_prefix"; then 13979 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13980set dummy ${ac_tool_prefix}lipo; ac_word=$2 13981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13982$as_echo_n "checking for $ac_word... " >&6; } 13983if ${ac_cv_prog_LIPO+:} false; then : 13984 $as_echo_n "(cached) " >&6 13985else 13986 if test -n "$LIPO"; then 13987 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13988else 13989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13990for as_dir in $PATH 13991do 13992 IFS=$as_save_IFS 13993 test -z "$as_dir" && as_dir=. 13994 for ac_exec_ext in '' $ac_executable_extensions; do 13995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13996 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13998 break 2 13999 fi 14000done 14001 done 14002IFS=$as_save_IFS 14003 14004fi 14005fi 14006LIPO=$ac_cv_prog_LIPO 14007if test -n "$LIPO"; then 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14009$as_echo "$LIPO" >&6; } 14010else 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14012$as_echo "no" >&6; } 14013fi 14014 14015 14016fi 14017if test -z "$ac_cv_prog_LIPO"; then 14018 ac_ct_LIPO=$LIPO 14019 # Extract the first word of "lipo", so it can be a program name with args. 14020set dummy lipo; ac_word=$2 14021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14022$as_echo_n "checking for $ac_word... " >&6; } 14023if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14024 $as_echo_n "(cached) " >&6 14025else 14026 if test -n "$ac_ct_LIPO"; then 14027 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14028else 14029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14030for as_dir in $PATH 14031do 14032 IFS=$as_save_IFS 14033 test -z "$as_dir" && as_dir=. 14034 for ac_exec_ext in '' $ac_executable_extensions; do 14035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14036 ac_cv_prog_ac_ct_LIPO="lipo" 14037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14038 break 2 14039 fi 14040done 14041 done 14042IFS=$as_save_IFS 14043 14044fi 14045fi 14046ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14047if test -n "$ac_ct_LIPO"; then 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14049$as_echo "$ac_ct_LIPO" >&6; } 14050else 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14052$as_echo "no" >&6; } 14053fi 14054 14055 if test "x$ac_ct_LIPO" = x; then 14056 LIPO=":" 14057 else 14058 case $cross_compiling:$ac_tool_warned in 14059yes:) 14060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14062ac_tool_warned=yes ;; 14063esac 14064 LIPO=$ac_ct_LIPO 14065 fi 14066else 14067 LIPO="$ac_cv_prog_LIPO" 14068fi 14069 14070 if test -n "$ac_tool_prefix"; then 14071 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14072set dummy ${ac_tool_prefix}otool; ac_word=$2 14073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14074$as_echo_n "checking for $ac_word... " >&6; } 14075if ${ac_cv_prog_OTOOL+:} false; then : 14076 $as_echo_n "(cached) " >&6 14077else 14078 if test -n "$OTOOL"; then 14079 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14080else 14081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14082for as_dir in $PATH 14083do 14084 IFS=$as_save_IFS 14085 test -z "$as_dir" && as_dir=. 14086 for ac_exec_ext in '' $ac_executable_extensions; do 14087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14088 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14090 break 2 14091 fi 14092done 14093 done 14094IFS=$as_save_IFS 14095 14096fi 14097fi 14098OTOOL=$ac_cv_prog_OTOOL 14099if test -n "$OTOOL"; then 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14101$as_echo "$OTOOL" >&6; } 14102else 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14104$as_echo "no" >&6; } 14105fi 14106 14107 14108fi 14109if test -z "$ac_cv_prog_OTOOL"; then 14110 ac_ct_OTOOL=$OTOOL 14111 # Extract the first word of "otool", so it can be a program name with args. 14112set dummy otool; ac_word=$2 14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14114$as_echo_n "checking for $ac_word... " >&6; } 14115if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14116 $as_echo_n "(cached) " >&6 14117else 14118 if test -n "$ac_ct_OTOOL"; then 14119 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14120else 14121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14122for as_dir in $PATH 14123do 14124 IFS=$as_save_IFS 14125 test -z "$as_dir" && as_dir=. 14126 for ac_exec_ext in '' $ac_executable_extensions; do 14127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14128 ac_cv_prog_ac_ct_OTOOL="otool" 14129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14130 break 2 14131 fi 14132done 14133 done 14134IFS=$as_save_IFS 14135 14136fi 14137fi 14138ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14139if test -n "$ac_ct_OTOOL"; then 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14141$as_echo "$ac_ct_OTOOL" >&6; } 14142else 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14144$as_echo "no" >&6; } 14145fi 14146 14147 if test "x$ac_ct_OTOOL" = x; then 14148 OTOOL=":" 14149 else 14150 case $cross_compiling:$ac_tool_warned in 14151yes:) 14152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14154ac_tool_warned=yes ;; 14155esac 14156 OTOOL=$ac_ct_OTOOL 14157 fi 14158else 14159 OTOOL="$ac_cv_prog_OTOOL" 14160fi 14161 14162 if test -n "$ac_tool_prefix"; then 14163 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14164set dummy ${ac_tool_prefix}otool64; ac_word=$2 14165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14166$as_echo_n "checking for $ac_word... " >&6; } 14167if ${ac_cv_prog_OTOOL64+:} false; then : 14168 $as_echo_n "(cached) " >&6 14169else 14170 if test -n "$OTOOL64"; then 14171 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14172else 14173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14174for as_dir in $PATH 14175do 14176 IFS=$as_save_IFS 14177 test -z "$as_dir" && as_dir=. 14178 for ac_exec_ext in '' $ac_executable_extensions; do 14179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14180 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14182 break 2 14183 fi 14184done 14185 done 14186IFS=$as_save_IFS 14187 14188fi 14189fi 14190OTOOL64=$ac_cv_prog_OTOOL64 14191if test -n "$OTOOL64"; then 14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14193$as_echo "$OTOOL64" >&6; } 14194else 14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14196$as_echo "no" >&6; } 14197fi 14198 14199 14200fi 14201if test -z "$ac_cv_prog_OTOOL64"; then 14202 ac_ct_OTOOL64=$OTOOL64 14203 # Extract the first word of "otool64", so it can be a program name with args. 14204set dummy otool64; ac_word=$2 14205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14206$as_echo_n "checking for $ac_word... " >&6; } 14207if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14208 $as_echo_n "(cached) " >&6 14209else 14210 if test -n "$ac_ct_OTOOL64"; then 14211 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14212else 14213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14214for as_dir in $PATH 14215do 14216 IFS=$as_save_IFS 14217 test -z "$as_dir" && as_dir=. 14218 for ac_exec_ext in '' $ac_executable_extensions; do 14219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14220 ac_cv_prog_ac_ct_OTOOL64="otool64" 14221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14222 break 2 14223 fi 14224done 14225 done 14226IFS=$as_save_IFS 14227 14228fi 14229fi 14230ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14231if test -n "$ac_ct_OTOOL64"; then 14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14233$as_echo "$ac_ct_OTOOL64" >&6; } 14234else 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14236$as_echo "no" >&6; } 14237fi 14238 14239 if test "x$ac_ct_OTOOL64" = x; then 14240 OTOOL64=":" 14241 else 14242 case $cross_compiling:$ac_tool_warned in 14243yes:) 14244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14246ac_tool_warned=yes ;; 14247esac 14248 OTOOL64=$ac_ct_OTOOL64 14249 fi 14250else 14251 OTOOL64="$ac_cv_prog_OTOOL64" 14252fi 14253 14254 14255 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14281$as_echo_n "checking for -single_module linker flag... " >&6; } 14282if ${lt_cv_apple_cc_single_mod+:} false; then : 14283 $as_echo_n "(cached) " >&6 14284else 14285 lt_cv_apple_cc_single_mod=no 14286 if test -z "$LT_MULTI_MODULE"; then 14287 # By default we will add the -single_module flag. You can override 14288 # by either setting the environment variable LT_MULTI_MODULE 14289 # non-empty at configure time, or by adding -multi_module to the 14290 # link flags. 14291 rm -rf libconftest.dylib* 14292 echo "int foo(void){return 1;}" > conftest.c 14293 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14294-dynamiclib -Wl,-single_module conftest.c" >&5 14295 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14296 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14297 _lt_result=$? 14298 # If there is a non-empty error log, and "single_module" 14299 # appears in it, assume the flag caused a linker warning 14300 if test -s conftest.err && $GREP single_module conftest.err; then 14301 cat conftest.err >&5 14302 # Otherwise, if the output was created with a 0 exit code from 14303 # the compiler, it worked. 14304 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14305 lt_cv_apple_cc_single_mod=yes 14306 else 14307 cat conftest.err >&5 14308 fi 14309 rm -rf libconftest.dylib* 14310 rm -f conftest.* 14311 fi 14312fi 14313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14314$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14315 14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14317$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14318if ${lt_cv_ld_exported_symbols_list+:} false; then : 14319 $as_echo_n "(cached) " >&6 14320else 14321 lt_cv_ld_exported_symbols_list=no 14322 save_LDFLAGS=$LDFLAGS 14323 echo "_main" > conftest.sym 14324 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14326/* end confdefs.h. */ 14327 14328int 14329main () 14330{ 14331 14332 ; 14333 return 0; 14334} 14335_ACEOF 14336if ac_fn_c_try_link "$LINENO"; then : 14337 lt_cv_ld_exported_symbols_list=yes 14338else 14339 lt_cv_ld_exported_symbols_list=no 14340fi 14341rm -f core conftest.err conftest.$ac_objext \ 14342 conftest$ac_exeext conftest.$ac_ext 14343 LDFLAGS=$save_LDFLAGS 14344 14345fi 14346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14347$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14348 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14350$as_echo_n "checking for -force_load linker flag... " >&6; } 14351if ${lt_cv_ld_force_load+:} false; then : 14352 $as_echo_n "(cached) " >&6 14353else 14354 lt_cv_ld_force_load=no 14355 cat > conftest.c << _LT_EOF 14356int forced_loaded() { return 2;} 14357_LT_EOF 14358 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14359 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14360 echo "$AR cru libconftest.a conftest.o" >&5 14361 $AR cru libconftest.a conftest.o 2>&5 14362 echo "$RANLIB libconftest.a" >&5 14363 $RANLIB libconftest.a 2>&5 14364 cat > conftest.c << _LT_EOF 14365int main() { return 0;} 14366_LT_EOF 14367 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14368 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14369 _lt_result=$? 14370 if test -s conftest.err && $GREP force_load conftest.err; then 14371 cat conftest.err >&5 14372 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14373 lt_cv_ld_force_load=yes 14374 else 14375 cat conftest.err >&5 14376 fi 14377 rm -f conftest.err libconftest.a conftest conftest.c 14378 rm -rf conftest.dSYM 14379 14380fi 14381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14382$as_echo "$lt_cv_ld_force_load" >&6; } 14383 case $host_os in 14384 rhapsody* | darwin1.[012]) 14385 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14386 darwin1.*) 14387 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14388 darwin*) # darwin 5.x on 14389 # if running on 10.5 or later, the deployment target defaults 14390 # to the OS version, if on x86, and 10.4, the deployment 14391 # target defaults to 10.4. Don't you love it? 14392 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14393 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14394 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14395 10.[012][,.]*) 14396 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14397 10.*) 14398 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14399 esac 14400 ;; 14401 esac 14402 if test yes = "$lt_cv_apple_cc_single_mod"; then 14403 _lt_dar_single_mod='$single_module' 14404 fi 14405 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14406 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14407 else 14408 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14409 fi 14410 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14411 _lt_dsymutil='~$DSYMUTIL $lib || :' 14412 else 14413 _lt_dsymutil= 14414 fi 14415 ;; 14416 esac 14417 14418# func_munge_path_list VARIABLE PATH 14419# ----------------------------------- 14420# VARIABLE is name of variable containing _space_ separated list of 14421# directories to be munged by the contents of PATH, which is string 14422# having a format: 14423# "DIR[:DIR]:" 14424# string "DIR[ DIR]" will be prepended to VARIABLE 14425# ":DIR[:DIR]" 14426# string "DIR[ DIR]" will be appended to VARIABLE 14427# "DIRP[:DIRP]::[DIRA:]DIRA" 14428# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14429# "DIRA[ DIRA]" will be appended to VARIABLE 14430# "DIR[:DIR]" 14431# VARIABLE will be replaced by "DIR[ DIR]" 14432func_munge_path_list () 14433{ 14434 case x$2 in 14435 x) 14436 ;; 14437 *:) 14438 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14439 ;; 14440 x:*) 14441 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14442 ;; 14443 *::*) 14444 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14445 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14446 ;; 14447 *) 14448 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14449 ;; 14450 esac 14451} 14452 14453for ac_header in dlfcn.h 14454do : 14455 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14456" 14457if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14458 cat >>confdefs.h <<_ACEOF 14459#define HAVE_DLFCN_H 1 14460_ACEOF 14461 14462fi 14463 14464done 14465 14466 14467 14468 14469 14470# Set options 14471 14472 14473 14474 enable_dlopen=no 14475 14476 14477 enable_win32_dll=no 14478 14479 14480 # Check whether --enable-shared was given. 14481if test "${enable_shared+set}" = set; then : 14482 enableval=$enable_shared; p=${PACKAGE-default} 14483 case $enableval in 14484 yes) enable_shared=yes ;; 14485 no) enable_shared=no ;; 14486 *) 14487 enable_shared=no 14488 # Look at the argument we got. We use all the common list separators. 14489 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14490 for pkg in $enableval; do 14491 IFS=$lt_save_ifs 14492 if test "X$pkg" = "X$p"; then 14493 enable_shared=yes 14494 fi 14495 done 14496 IFS=$lt_save_ifs 14497 ;; 14498 esac 14499else 14500 enable_shared=yes 14501fi 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513# Check whether --with-pic was given. 14514if test "${with_pic+set}" = set; then : 14515 withval=$with_pic; lt_p=${PACKAGE-default} 14516 case $withval in 14517 yes|no) pic_mode=$withval ;; 14518 *) 14519 pic_mode=default 14520 # Look at the argument we got. We use all the common list separators. 14521 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14522 for lt_pkg in $withval; do 14523 IFS=$lt_save_ifs 14524 if test "X$lt_pkg" = "X$lt_p"; then 14525 pic_mode=yes 14526 fi 14527 done 14528 IFS=$lt_save_ifs 14529 ;; 14530 esac 14531else 14532 pic_mode=default 14533fi 14534 14535 14536 14537 14538 14539 14540 14541 14542 # Check whether --enable-fast-install was given. 14543if test "${enable_fast_install+set}" = set; then : 14544 enableval=$enable_fast_install; p=${PACKAGE-default} 14545 case $enableval in 14546 yes) enable_fast_install=yes ;; 14547 no) enable_fast_install=no ;; 14548 *) 14549 enable_fast_install=no 14550 # Look at the argument we got. We use all the common list separators. 14551 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14552 for pkg in $enableval; do 14553 IFS=$lt_save_ifs 14554 if test "X$pkg" = "X$p"; then 14555 enable_fast_install=yes 14556 fi 14557 done 14558 IFS=$lt_save_ifs 14559 ;; 14560 esac 14561else 14562 enable_fast_install=yes 14563fi 14564 14565 14566 14567 14568 14569 14570 14571 14572 shared_archive_member_spec= 14573case $host,$enable_shared in 14574power*-*-aix[5-9]*,yes) 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14576$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14577 14578# Check whether --with-aix-soname was given. 14579if test "${with_aix_soname+set}" = set; then : 14580 withval=$with_aix_soname; case $withval in 14581 aix|svr4|both) 14582 ;; 14583 *) 14584 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14585 ;; 14586 esac 14587 lt_cv_with_aix_soname=$with_aix_soname 14588else 14589 if ${lt_cv_with_aix_soname+:} false; then : 14590 $as_echo_n "(cached) " >&6 14591else 14592 lt_cv_with_aix_soname=aix 14593fi 14594 14595 with_aix_soname=$lt_cv_with_aix_soname 14596fi 14597 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14599$as_echo "$with_aix_soname" >&6; } 14600 if test aix != "$with_aix_soname"; then 14601 # For the AIX way of multilib, we name the shared archive member 14602 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14603 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14604 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14605 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14606 if test 64 = "${OBJECT_MODE-32}"; then 14607 shared_archive_member_spec=shr_64 14608 else 14609 shared_archive_member_spec=shr 14610 fi 14611 fi 14612 ;; 14613*) 14614 with_aix_soname=aix 14615 ;; 14616esac 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627# This can be used to rebuild libtool when needed 14628LIBTOOL_DEPS=$ltmain 14629 14630# Always use our own libtool. 14631LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14632 14633 14634 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 14662test -z "$LN_S" && LN_S="ln -s" 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677if test -n "${ZSH_VERSION+set}"; then 14678 setopt NO_GLOB_SUBST 14679fi 14680 14681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14682$as_echo_n "checking for objdir... " >&6; } 14683if ${lt_cv_objdir+:} false; then : 14684 $as_echo_n "(cached) " >&6 14685else 14686 rm -f .libs 2>/dev/null 14687mkdir .libs 2>/dev/null 14688if test -d .libs; then 14689 lt_cv_objdir=.libs 14690else 14691 # MS-DOS does not allow filenames that begin with a dot. 14692 lt_cv_objdir=_libs 14693fi 14694rmdir .libs 2>/dev/null 14695fi 14696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14697$as_echo "$lt_cv_objdir" >&6; } 14698objdir=$lt_cv_objdir 14699 14700 14701 14702 14703 14704cat >>confdefs.h <<_ACEOF 14705#define LT_OBJDIR "$lt_cv_objdir/" 14706_ACEOF 14707 14708 14709 14710 14711case $host_os in 14712aix3*) 14713 # AIX sometimes has problems with the GCC collect2 program. For some 14714 # reason, if we set the COLLECT_NAMES environment variable, the problems 14715 # vanish in a puff of smoke. 14716 if test set != "${COLLECT_NAMES+set}"; then 14717 COLLECT_NAMES= 14718 export COLLECT_NAMES 14719 fi 14720 ;; 14721esac 14722 14723# Global variables: 14724ofile=libtool 14725can_build_shared=yes 14726 14727# All known linkers require a '.a' archive for static linking (except MSVC, 14728# which needs '.lib'). 14729libext=a 14730 14731with_gnu_ld=$lt_cv_prog_gnu_ld 14732 14733old_CC=$CC 14734old_CFLAGS=$CFLAGS 14735 14736# Set sane defaults for various variables 14737test -z "$CC" && CC=cc 14738test -z "$LTCC" && LTCC=$CC 14739test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14740test -z "$LD" && LD=ld 14741test -z "$ac_objext" && ac_objext=o 14742 14743func_cc_basename $compiler 14744cc_basename=$func_cc_basename_result 14745 14746 14747# Only perform the check for file, if the check method requires it 14748test -z "$MAGIC_CMD" && MAGIC_CMD=file 14749case $deplibs_check_method in 14750file_magic*) 14751 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14753$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14754if ${lt_cv_path_MAGIC_CMD+:} false; then : 14755 $as_echo_n "(cached) " >&6 14756else 14757 case $MAGIC_CMD in 14758[\\/*] | ?:[\\/]*) 14759 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14760 ;; 14761*) 14762 lt_save_MAGIC_CMD=$MAGIC_CMD 14763 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14764 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14765 for ac_dir in $ac_dummy; do 14766 IFS=$lt_save_ifs 14767 test -z "$ac_dir" && ac_dir=. 14768 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14769 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14770 if test -n "$file_magic_test_file"; then 14771 case $deplibs_check_method in 14772 "file_magic "*) 14773 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14774 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14776 $EGREP "$file_magic_regex" > /dev/null; then 14777 : 14778 else 14779 cat <<_LT_EOF 1>&2 14780 14781*** Warning: the command libtool uses to detect shared libraries, 14782*** $file_magic_cmd, produces output that libtool cannot recognize. 14783*** The result is that libtool may fail to recognize shared libraries 14784*** as such. This will affect the creation of libtool libraries that 14785*** depend on shared libraries, but programs linked with such libtool 14786*** libraries will work regardless of this problem. Nevertheless, you 14787*** may want to report the problem to your system manager and/or to 14788*** bug-libtool@gnu.org 14789 14790_LT_EOF 14791 fi ;; 14792 esac 14793 fi 14794 break 14795 fi 14796 done 14797 IFS=$lt_save_ifs 14798 MAGIC_CMD=$lt_save_MAGIC_CMD 14799 ;; 14800esac 14801fi 14802 14803MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14804if test -n "$MAGIC_CMD"; then 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14806$as_echo "$MAGIC_CMD" >&6; } 14807else 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14809$as_echo "no" >&6; } 14810fi 14811 14812 14813 14814 14815 14816if test -z "$lt_cv_path_MAGIC_CMD"; then 14817 if test -n "$ac_tool_prefix"; then 14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14819$as_echo_n "checking for file... " >&6; } 14820if ${lt_cv_path_MAGIC_CMD+:} false; then : 14821 $as_echo_n "(cached) " >&6 14822else 14823 case $MAGIC_CMD in 14824[\\/*] | ?:[\\/]*) 14825 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14826 ;; 14827*) 14828 lt_save_MAGIC_CMD=$MAGIC_CMD 14829 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14831 for ac_dir in $ac_dummy; do 14832 IFS=$lt_save_ifs 14833 test -z "$ac_dir" && ac_dir=. 14834 if test -f "$ac_dir/file"; then 14835 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14836 if test -n "$file_magic_test_file"; then 14837 case $deplibs_check_method in 14838 "file_magic "*) 14839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14840 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14842 $EGREP "$file_magic_regex" > /dev/null; then 14843 : 14844 else 14845 cat <<_LT_EOF 1>&2 14846 14847*** Warning: the command libtool uses to detect shared libraries, 14848*** $file_magic_cmd, produces output that libtool cannot recognize. 14849*** The result is that libtool may fail to recognize shared libraries 14850*** as such. This will affect the creation of libtool libraries that 14851*** depend on shared libraries, but programs linked with such libtool 14852*** libraries will work regardless of this problem. Nevertheless, you 14853*** may want to report the problem to your system manager and/or to 14854*** bug-libtool@gnu.org 14855 14856_LT_EOF 14857 fi ;; 14858 esac 14859 fi 14860 break 14861 fi 14862 done 14863 IFS=$lt_save_ifs 14864 MAGIC_CMD=$lt_save_MAGIC_CMD 14865 ;; 14866esac 14867fi 14868 14869MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14870if test -n "$MAGIC_CMD"; then 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14872$as_echo "$MAGIC_CMD" >&6; } 14873else 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14875$as_echo "no" >&6; } 14876fi 14877 14878 14879 else 14880 MAGIC_CMD=: 14881 fi 14882fi 14883 14884 fi 14885 ;; 14886esac 14887 14888# Use C for the default configuration in the libtool script 14889 14890lt_save_CC=$CC 14891ac_ext=c 14892ac_cpp='$CPP $CPPFLAGS' 14893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14895ac_compiler_gnu=$ac_cv_c_compiler_gnu 14896 14897 14898# Source file extension for C test sources. 14899ac_ext=c 14900 14901# Object file extension for compiled C test sources. 14902objext=o 14903objext=$objext 14904 14905# Code to be used in simple compile tests 14906lt_simple_compile_test_code="int some_variable = 0;" 14907 14908# Code to be used in simple link tests 14909lt_simple_link_test_code='int main(){return(0);}' 14910 14911 14912 14913 14914 14915 14916 14917# If no C compiler was specified, use CC. 14918LTCC=${LTCC-"$CC"} 14919 14920# If no C compiler flags were specified, use CFLAGS. 14921LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14922 14923# Allow CC to be a program name with arguments. 14924compiler=$CC 14925 14926# Save the default compiler, since it gets overwritten when the other 14927# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14928compiler_DEFAULT=$CC 14929 14930# save warnings/boilerplate of simple test code 14931ac_outfile=conftest.$ac_objext 14932echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14933eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14934_lt_compiler_boilerplate=`cat conftest.err` 14935$RM conftest* 14936 14937ac_outfile=conftest.$ac_objext 14938echo "$lt_simple_link_test_code" >conftest.$ac_ext 14939eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14940_lt_linker_boilerplate=`cat conftest.err` 14941$RM -r conftest* 14942 14943 14944## CAVEAT EMPTOR: 14945## There is no encapsulation within the following macros, do not change 14946## the running order or otherwise move them around unless you know exactly 14947## what you are doing... 14948if test -n "$compiler"; then 14949 14950lt_prog_compiler_no_builtin_flag= 14951 14952if test yes = "$GCC"; then 14953 case $cc_basename in 14954 nvcc*) 14955 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14956 *) 14957 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14958 esac 14959 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14961$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14962if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14963 $as_echo_n "(cached) " >&6 14964else 14965 lt_cv_prog_compiler_rtti_exceptions=no 14966 ac_outfile=conftest.$ac_objext 14967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14968 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14969 # Insert the option either (1) after the last *FLAGS variable, or 14970 # (2) before a word containing "conftest.", or (3) at the end. 14971 # Note that $ac_compile itself does not contain backslashes and begins 14972 # with a dollar sign (not a hyphen), so the echo should work correctly. 14973 # The option is referenced via a variable to avoid confusing sed. 14974 lt_compile=`echo "$ac_compile" | $SED \ 14975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14977 -e 's:$: $lt_compiler_flag:'` 14978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14979 (eval "$lt_compile" 2>conftest.err) 14980 ac_status=$? 14981 cat conftest.err >&5 14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14983 if (exit $ac_status) && test -s "$ac_outfile"; then 14984 # The compiler can only warn and ignore the option if not recognized 14985 # So say no if there are warnings other than the usual output. 14986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14989 lt_cv_prog_compiler_rtti_exceptions=yes 14990 fi 14991 fi 14992 $RM conftest* 14993 14994fi 14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14996$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14997 14998if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14999 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15000else 15001 : 15002fi 15003 15004fi 15005 15006 15007 15008 15009 15010 15011 lt_prog_compiler_wl= 15012lt_prog_compiler_pic= 15013lt_prog_compiler_static= 15014 15015 15016 if test yes = "$GCC"; then 15017 lt_prog_compiler_wl='-Wl,' 15018 lt_prog_compiler_static='-static' 15019 15020 case $host_os in 15021 aix*) 15022 # All AIX code is PIC. 15023 if test ia64 = "$host_cpu"; then 15024 # AIX 5 now supports IA64 processor 15025 lt_prog_compiler_static='-Bstatic' 15026 fi 15027 lt_prog_compiler_pic='-fPIC' 15028 ;; 15029 15030 amigaos*) 15031 case $host_cpu in 15032 powerpc) 15033 # see comment about AmigaOS4 .so support 15034 lt_prog_compiler_pic='-fPIC' 15035 ;; 15036 m68k) 15037 # FIXME: we need at least 68020 code to build shared libraries, but 15038 # adding the '-m68020' flag to GCC prevents building anything better, 15039 # like '-m68040'. 15040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15041 ;; 15042 esac 15043 ;; 15044 15045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15046 # PIC is the default for these OSes. 15047 ;; 15048 15049 mingw* | cygwin* | pw32* | os2* | cegcc*) 15050 # This hack is so that the source file can tell whether it is being 15051 # built for inclusion in a dll (and should export symbols for example). 15052 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15053 # (--disable-auto-import) libraries 15054 lt_prog_compiler_pic='-DDLL_EXPORT' 15055 case $host_os in 15056 os2*) 15057 lt_prog_compiler_static='$wl-static' 15058 ;; 15059 esac 15060 ;; 15061 15062 darwin* | rhapsody*) 15063 # PIC is the default on this platform 15064 # Common symbols not allowed in MH_DYLIB files 15065 lt_prog_compiler_pic='-fno-common' 15066 ;; 15067 15068 haiku*) 15069 # PIC is the default for Haiku. 15070 # The "-static" flag exists, but is broken. 15071 lt_prog_compiler_static= 15072 ;; 15073 15074 hpux*) 15075 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15076 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15077 # sets the default TLS model and affects inlining. 15078 case $host_cpu in 15079 hppa*64*) 15080 # +Z the default 15081 ;; 15082 *) 15083 lt_prog_compiler_pic='-fPIC' 15084 ;; 15085 esac 15086 ;; 15087 15088 interix[3-9]*) 15089 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15090 # Instead, we relocate shared libraries at runtime. 15091 ;; 15092 15093 msdosdjgpp*) 15094 # Just because we use GCC doesn't mean we suddenly get shared libraries 15095 # on systems that don't support them. 15096 lt_prog_compiler_can_build_shared=no 15097 enable_shared=no 15098 ;; 15099 15100 *nto* | *qnx*) 15101 # QNX uses GNU C++, but need to define -shared option too, otherwise 15102 # it will coredump. 15103 lt_prog_compiler_pic='-fPIC -shared' 15104 ;; 15105 15106 sysv4*MP*) 15107 if test -d /usr/nec; then 15108 lt_prog_compiler_pic=-Kconform_pic 15109 fi 15110 ;; 15111 15112 *) 15113 lt_prog_compiler_pic='-fPIC' 15114 ;; 15115 esac 15116 15117 case $cc_basename in 15118 nvcc*) # Cuda Compiler Driver 2.2 15119 lt_prog_compiler_wl='-Xlinker ' 15120 if test -n "$lt_prog_compiler_pic"; then 15121 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15122 fi 15123 ;; 15124 esac 15125 else 15126 # PORTME Check for flag to pass linker flags through the system compiler. 15127 case $host_os in 15128 aix*) 15129 lt_prog_compiler_wl='-Wl,' 15130 if test ia64 = "$host_cpu"; then 15131 # AIX 5 now supports IA64 processor 15132 lt_prog_compiler_static='-Bstatic' 15133 else 15134 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15135 fi 15136 ;; 15137 15138 darwin* | rhapsody*) 15139 # PIC is the default on this platform 15140 # Common symbols not allowed in MH_DYLIB files 15141 lt_prog_compiler_pic='-fno-common' 15142 case $cc_basename in 15143 nagfor*) 15144 # NAG Fortran compiler 15145 lt_prog_compiler_wl='-Wl,-Wl,,' 15146 lt_prog_compiler_pic='-PIC' 15147 lt_prog_compiler_static='-Bstatic' 15148 ;; 15149 esac 15150 ;; 15151 15152 mingw* | cygwin* | pw32* | os2* | cegcc*) 15153 # This hack is so that the source file can tell whether it is being 15154 # built for inclusion in a dll (and should export symbols for example). 15155 lt_prog_compiler_pic='-DDLL_EXPORT' 15156 case $host_os in 15157 os2*) 15158 lt_prog_compiler_static='$wl-static' 15159 ;; 15160 esac 15161 ;; 15162 15163 hpux9* | hpux10* | hpux11*) 15164 lt_prog_compiler_wl='-Wl,' 15165 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15166 # not for PA HP-UX. 15167 case $host_cpu in 15168 hppa*64*|ia64*) 15169 # +Z the default 15170 ;; 15171 *) 15172 lt_prog_compiler_pic='+Z' 15173 ;; 15174 esac 15175 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15176 lt_prog_compiler_static='$wl-a ${wl}archive' 15177 ;; 15178 15179 irix5* | irix6* | nonstopux*) 15180 lt_prog_compiler_wl='-Wl,' 15181 # PIC (with -KPIC) is the default. 15182 lt_prog_compiler_static='-non_shared' 15183 ;; 15184 15185 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15186 case $cc_basename in 15187 # old Intel for x86_64, which still supported -KPIC. 15188 ecc*) 15189 lt_prog_compiler_wl='-Wl,' 15190 lt_prog_compiler_pic='-KPIC' 15191 lt_prog_compiler_static='-static' 15192 ;; 15193 # icc used to be incompatible with GCC. 15194 # ICC 10 doesn't accept -KPIC any more. 15195 icc* | ifort*) 15196 lt_prog_compiler_wl='-Wl,' 15197 lt_prog_compiler_pic='-fPIC' 15198 lt_prog_compiler_static='-static' 15199 ;; 15200 # Lahey Fortran 8.1. 15201 lf95*) 15202 lt_prog_compiler_wl='-Wl,' 15203 lt_prog_compiler_pic='--shared' 15204 lt_prog_compiler_static='--static' 15205 ;; 15206 nagfor*) 15207 # NAG Fortran compiler 15208 lt_prog_compiler_wl='-Wl,-Wl,,' 15209 lt_prog_compiler_pic='-PIC' 15210 lt_prog_compiler_static='-Bstatic' 15211 ;; 15212 tcc*) 15213 # Fabrice Bellard et al's Tiny C Compiler 15214 lt_prog_compiler_wl='-Wl,' 15215 lt_prog_compiler_pic='-fPIC' 15216 lt_prog_compiler_static='-static' 15217 ;; 15218 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15219 # Portland Group compilers (*not* the Pentium gcc compiler, 15220 # which looks to be a dead project) 15221 lt_prog_compiler_wl='-Wl,' 15222 lt_prog_compiler_pic='-fpic' 15223 lt_prog_compiler_static='-Bstatic' 15224 ;; 15225 ccc*) 15226 lt_prog_compiler_wl='-Wl,' 15227 # All Alpha code is PIC. 15228 lt_prog_compiler_static='-non_shared' 15229 ;; 15230 xl* | bgxl* | bgf* | mpixl*) 15231 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15232 lt_prog_compiler_wl='-Wl,' 15233 lt_prog_compiler_pic='-qpic' 15234 lt_prog_compiler_static='-qstaticlink' 15235 ;; 15236 *) 15237 case `$CC -V 2>&1 | sed 5q` in 15238 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15239 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15240 lt_prog_compiler_pic='-KPIC' 15241 lt_prog_compiler_static='-Bstatic' 15242 lt_prog_compiler_wl='' 15243 ;; 15244 *Sun\ F* | *Sun*Fortran*) 15245 lt_prog_compiler_pic='-KPIC' 15246 lt_prog_compiler_static='-Bstatic' 15247 lt_prog_compiler_wl='-Qoption ld ' 15248 ;; 15249 *Sun\ C*) 15250 # Sun C 5.9 15251 lt_prog_compiler_pic='-KPIC' 15252 lt_prog_compiler_static='-Bstatic' 15253 lt_prog_compiler_wl='-Wl,' 15254 ;; 15255 *Intel*\ [CF]*Compiler*) 15256 lt_prog_compiler_wl='-Wl,' 15257 lt_prog_compiler_pic='-fPIC' 15258 lt_prog_compiler_static='-static' 15259 ;; 15260 *Portland\ Group*) 15261 lt_prog_compiler_wl='-Wl,' 15262 lt_prog_compiler_pic='-fpic' 15263 lt_prog_compiler_static='-Bstatic' 15264 ;; 15265 esac 15266 ;; 15267 esac 15268 ;; 15269 15270 newsos6) 15271 lt_prog_compiler_pic='-KPIC' 15272 lt_prog_compiler_static='-Bstatic' 15273 ;; 15274 15275 *nto* | *qnx*) 15276 # QNX uses GNU C++, but need to define -shared option too, otherwise 15277 # it will coredump. 15278 lt_prog_compiler_pic='-fPIC -shared' 15279 ;; 15280 15281 osf3* | osf4* | osf5*) 15282 lt_prog_compiler_wl='-Wl,' 15283 # All OSF/1 code is PIC. 15284 lt_prog_compiler_static='-non_shared' 15285 ;; 15286 15287 rdos*) 15288 lt_prog_compiler_static='-non_shared' 15289 ;; 15290 15291 solaris*) 15292 lt_prog_compiler_pic='-KPIC' 15293 lt_prog_compiler_static='-Bstatic' 15294 case $cc_basename in 15295 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15296 lt_prog_compiler_wl='-Qoption ld ';; 15297 *) 15298 lt_prog_compiler_wl='-Wl,';; 15299 esac 15300 ;; 15301 15302 sunos4*) 15303 lt_prog_compiler_wl='-Qoption ld ' 15304 lt_prog_compiler_pic='-PIC' 15305 lt_prog_compiler_static='-Bstatic' 15306 ;; 15307 15308 sysv4 | sysv4.2uw2* | sysv4.3*) 15309 lt_prog_compiler_wl='-Wl,' 15310 lt_prog_compiler_pic='-KPIC' 15311 lt_prog_compiler_static='-Bstatic' 15312 ;; 15313 15314 sysv4*MP*) 15315 if test -d /usr/nec; then 15316 lt_prog_compiler_pic='-Kconform_pic' 15317 lt_prog_compiler_static='-Bstatic' 15318 fi 15319 ;; 15320 15321 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15322 lt_prog_compiler_wl='-Wl,' 15323 lt_prog_compiler_pic='-KPIC' 15324 lt_prog_compiler_static='-Bstatic' 15325 ;; 15326 15327 unicos*) 15328 lt_prog_compiler_wl='-Wl,' 15329 lt_prog_compiler_can_build_shared=no 15330 ;; 15331 15332 uts4*) 15333 lt_prog_compiler_pic='-pic' 15334 lt_prog_compiler_static='-Bstatic' 15335 ;; 15336 15337 *) 15338 lt_prog_compiler_can_build_shared=no 15339 ;; 15340 esac 15341 fi 15342 15343case $host_os in 15344 # For platforms that do not support PIC, -DPIC is meaningless: 15345 *djgpp*) 15346 lt_prog_compiler_pic= 15347 ;; 15348 *) 15349 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15350 ;; 15351esac 15352 15353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15354$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15355if ${lt_cv_prog_compiler_pic+:} false; then : 15356 $as_echo_n "(cached) " >&6 15357else 15358 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15359fi 15360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15361$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15362lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15363 15364# 15365# Check to make sure the PIC flag actually works. 15366# 15367if test -n "$lt_prog_compiler_pic"; then 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15369$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15370if ${lt_cv_prog_compiler_pic_works+:} false; then : 15371 $as_echo_n "(cached) " >&6 15372else 15373 lt_cv_prog_compiler_pic_works=no 15374 ac_outfile=conftest.$ac_objext 15375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15376 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15377 # Insert the option either (1) after the last *FLAGS variable, or 15378 # (2) before a word containing "conftest.", or (3) at the end. 15379 # Note that $ac_compile itself does not contain backslashes and begins 15380 # with a dollar sign (not a hyphen), so the echo should work correctly. 15381 # The option is referenced via a variable to avoid confusing sed. 15382 lt_compile=`echo "$ac_compile" | $SED \ 15383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15385 -e 's:$: $lt_compiler_flag:'` 15386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15387 (eval "$lt_compile" 2>conftest.err) 15388 ac_status=$? 15389 cat conftest.err >&5 15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15391 if (exit $ac_status) && test -s "$ac_outfile"; then 15392 # The compiler can only warn and ignore the option if not recognized 15393 # So say no if there are warnings other than the usual output. 15394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15397 lt_cv_prog_compiler_pic_works=yes 15398 fi 15399 fi 15400 $RM conftest* 15401 15402fi 15403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15404$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15405 15406if test yes = "$lt_cv_prog_compiler_pic_works"; then 15407 case $lt_prog_compiler_pic in 15408 "" | " "*) ;; 15409 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15410 esac 15411else 15412 lt_prog_compiler_pic= 15413 lt_prog_compiler_can_build_shared=no 15414fi 15415 15416fi 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428# 15429# Check to make sure the static flag actually works. 15430# 15431wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15433$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15434if ${lt_cv_prog_compiler_static_works+:} false; then : 15435 $as_echo_n "(cached) " >&6 15436else 15437 lt_cv_prog_compiler_static_works=no 15438 save_LDFLAGS=$LDFLAGS 15439 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15440 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15441 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15442 # The linker can only warn and ignore the option if not recognized 15443 # So say no if there are warnings 15444 if test -s conftest.err; then 15445 # Append any errors to the config.log. 15446 cat conftest.err 1>&5 15447 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15449 if diff conftest.exp conftest.er2 >/dev/null; then 15450 lt_cv_prog_compiler_static_works=yes 15451 fi 15452 else 15453 lt_cv_prog_compiler_static_works=yes 15454 fi 15455 fi 15456 $RM -r conftest* 15457 LDFLAGS=$save_LDFLAGS 15458 15459fi 15460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15461$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15462 15463if test yes = "$lt_cv_prog_compiler_static_works"; then 15464 : 15465else 15466 lt_prog_compiler_static= 15467fi 15468 15469 15470 15471 15472 15473 15474 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15477if ${lt_cv_prog_compiler_c_o+:} false; then : 15478 $as_echo_n "(cached) " >&6 15479else 15480 lt_cv_prog_compiler_c_o=no 15481 $RM -r conftest 2>/dev/null 15482 mkdir conftest 15483 cd conftest 15484 mkdir out 15485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15486 15487 lt_compiler_flag="-o out/conftest2.$ac_objext" 15488 # Insert the option either (1) after the last *FLAGS variable, or 15489 # (2) before a word containing "conftest.", or (3) at the end. 15490 # Note that $ac_compile itself does not contain backslashes and begins 15491 # with a dollar sign (not a hyphen), so the echo should work correctly. 15492 lt_compile=`echo "$ac_compile" | $SED \ 15493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15495 -e 's:$: $lt_compiler_flag:'` 15496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15497 (eval "$lt_compile" 2>out/conftest.err) 15498 ac_status=$? 15499 cat out/conftest.err >&5 15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15501 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15502 then 15503 # The compiler can only warn and ignore the option if not recognized 15504 # So say no if there are warnings 15505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15508 lt_cv_prog_compiler_c_o=yes 15509 fi 15510 fi 15511 chmod u+w . 2>&5 15512 $RM conftest* 15513 # SGI C++ compiler will create directory out/ii_files/ for 15514 # template instantiation 15515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15516 $RM out/* && rmdir out 15517 cd .. 15518 $RM -r conftest 15519 $RM conftest* 15520 15521fi 15522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15523$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15524 15525 15526 15527 15528 15529 15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15531$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15532if ${lt_cv_prog_compiler_c_o+:} false; then : 15533 $as_echo_n "(cached) " >&6 15534else 15535 lt_cv_prog_compiler_c_o=no 15536 $RM -r conftest 2>/dev/null 15537 mkdir conftest 15538 cd conftest 15539 mkdir out 15540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15541 15542 lt_compiler_flag="-o out/conftest2.$ac_objext" 15543 # Insert the option either (1) after the last *FLAGS variable, or 15544 # (2) before a word containing "conftest.", or (3) at the end. 15545 # Note that $ac_compile itself does not contain backslashes and begins 15546 # with a dollar sign (not a hyphen), so the echo should work correctly. 15547 lt_compile=`echo "$ac_compile" | $SED \ 15548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15550 -e 's:$: $lt_compiler_flag:'` 15551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15552 (eval "$lt_compile" 2>out/conftest.err) 15553 ac_status=$? 15554 cat out/conftest.err >&5 15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15556 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15557 then 15558 # The compiler can only warn and ignore the option if not recognized 15559 # So say no if there are warnings 15560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15563 lt_cv_prog_compiler_c_o=yes 15564 fi 15565 fi 15566 chmod u+w . 2>&5 15567 $RM conftest* 15568 # SGI C++ compiler will create directory out/ii_files/ for 15569 # template instantiation 15570 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15571 $RM out/* && rmdir out 15572 cd .. 15573 $RM -r conftest 15574 $RM conftest* 15575 15576fi 15577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15578$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15579 15580 15581 15582 15583hard_links=nottested 15584if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15585 # do not overwrite the value of need_locks provided by the user 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15587$as_echo_n "checking if we can lock with hard links... " >&6; } 15588 hard_links=yes 15589 $RM conftest* 15590 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15591 touch conftest.a 15592 ln conftest.a conftest.b 2>&5 || hard_links=no 15593 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15595$as_echo "$hard_links" >&6; } 15596 if test no = "$hard_links"; then 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15598$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15599 need_locks=warn 15600 fi 15601else 15602 need_locks=no 15603fi 15604 15605 15606 15607 15608 15609 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15611$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15612 15613 runpath_var= 15614 allow_undefined_flag= 15615 always_export_symbols=no 15616 archive_cmds= 15617 archive_expsym_cmds= 15618 compiler_needs_object=no 15619 enable_shared_with_static_runtimes=no 15620 export_dynamic_flag_spec= 15621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15622 hardcode_automatic=no 15623 hardcode_direct=no 15624 hardcode_direct_absolute=no 15625 hardcode_libdir_flag_spec= 15626 hardcode_libdir_separator= 15627 hardcode_minus_L=no 15628 hardcode_shlibpath_var=unsupported 15629 inherit_rpath=no 15630 link_all_deplibs=unknown 15631 module_cmds= 15632 module_expsym_cmds= 15633 old_archive_from_new_cmds= 15634 old_archive_from_expsyms_cmds= 15635 thread_safe_flag_spec= 15636 whole_archive_flag_spec= 15637 # include_expsyms should be a list of space-separated symbols to be *always* 15638 # included in the symbol list 15639 include_expsyms= 15640 # exclude_expsyms can be an extended regexp of symbols to exclude 15641 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15642 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15643 # as well as any symbol that contains 'd'. 15644 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15645 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15646 # platforms (ab)use it in PIC code, but their linkers get confused if 15647 # the symbol is explicitly referenced. Since portable code cannot 15648 # rely on this symbol name, it's probably fine to never include it in 15649 # preloaded symbol tables. 15650 # Exclude shared library initialization/finalization symbols. 15651 extract_expsyms_cmds= 15652 15653 case $host_os in 15654 cygwin* | mingw* | pw32* | cegcc*) 15655 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15656 # When not using gcc, we currently assume that we are using 15657 # Microsoft Visual C++. 15658 if test yes != "$GCC"; then 15659 with_gnu_ld=no 15660 fi 15661 ;; 15662 interix*) 15663 # we just hope/assume this is gcc and not c89 (= MSVC++) 15664 with_gnu_ld=yes 15665 ;; 15666 openbsd* | bitrig*) 15667 with_gnu_ld=no 15668 ;; 15669 esac 15670 15671 ld_shlibs=yes 15672 15673 # On some targets, GNU ld is compatible enough with the native linker 15674 # that we're better off using the native interface for both. 15675 lt_use_gnu_ld_interface=no 15676 if test yes = "$with_gnu_ld"; then 15677 case $host_os in 15678 aix*) 15679 # The AIX port of GNU ld has always aspired to compatibility 15680 # with the native linker. However, as the warning in the GNU ld 15681 # block says, versions before 2.19.5* couldn't really create working 15682 # shared libraries, regardless of the interface used. 15683 case `$LD -v 2>&1` in 15684 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15685 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15686 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15687 *) 15688 lt_use_gnu_ld_interface=yes 15689 ;; 15690 esac 15691 ;; 15692 *) 15693 lt_use_gnu_ld_interface=yes 15694 ;; 15695 esac 15696 fi 15697 15698 if test yes = "$lt_use_gnu_ld_interface"; then 15699 # If archive_cmds runs LD, not CC, wlarc should be empty 15700 wlarc='$wl' 15701 15702 # Set some defaults for GNU ld with shared library support. These 15703 # are reset later if shared libraries are not supported. Putting them 15704 # here allows them to be overridden if necessary. 15705 runpath_var=LD_RUN_PATH 15706 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15707 export_dynamic_flag_spec='$wl--export-dynamic' 15708 # ancient GNU ld didn't support --whole-archive et. al. 15709 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15710 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15711 else 15712 whole_archive_flag_spec= 15713 fi 15714 supports_anon_versioning=no 15715 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15716 *GNU\ gold*) supports_anon_versioning=yes ;; 15717 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15718 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15719 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15720 *\ 2.11.*) ;; # other 2.11 versions 15721 *) supports_anon_versioning=yes ;; 15722 esac 15723 15724 # See if GNU ld supports shared libraries. 15725 case $host_os in 15726 aix[3-9]*) 15727 # On AIX/PPC, the GNU linker is very broken 15728 if test ia64 != "$host_cpu"; then 15729 ld_shlibs=no 15730 cat <<_LT_EOF 1>&2 15731 15732*** Warning: the GNU linker, at least up to release 2.19, is reported 15733*** to be unable to reliably create shared libraries on AIX. 15734*** Therefore, libtool is disabling shared libraries support. If you 15735*** really care for shared libraries, you may want to install binutils 15736*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15737*** You will then need to restart the configuration process. 15738 15739_LT_EOF 15740 fi 15741 ;; 15742 15743 amigaos*) 15744 case $host_cpu in 15745 powerpc) 15746 # see comment about AmigaOS4 .so support 15747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15748 archive_expsym_cmds='' 15749 ;; 15750 m68k) 15751 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)' 15752 hardcode_libdir_flag_spec='-L$libdir' 15753 hardcode_minus_L=yes 15754 ;; 15755 esac 15756 ;; 15757 15758 beos*) 15759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15760 allow_undefined_flag=unsupported 15761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15762 # support --undefined. This deserves some investigation. FIXME 15763 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15764 else 15765 ld_shlibs=no 15766 fi 15767 ;; 15768 15769 cygwin* | mingw* | pw32* | cegcc*) 15770 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15771 # as there is no search path for DLLs. 15772 hardcode_libdir_flag_spec='-L$libdir' 15773 export_dynamic_flag_spec='$wl--export-all-symbols' 15774 allow_undefined_flag=unsupported 15775 always_export_symbols=no 15776 enable_shared_with_static_runtimes=yes 15777 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' 15778 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15779 15780 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15782 # If the export-symbols file already is a .def file, use it as 15783 # is; otherwise, prepend EXPORTS... 15784 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15785 cp $export_symbols $output_objdir/$soname.def; 15786 else 15787 echo EXPORTS > $output_objdir/$soname.def; 15788 cat $export_symbols >> $output_objdir/$soname.def; 15789 fi~ 15790 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15791 else 15792 ld_shlibs=no 15793 fi 15794 ;; 15795 15796 haiku*) 15797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15798 link_all_deplibs=yes 15799 ;; 15800 15801 os2*) 15802 hardcode_libdir_flag_spec='-L$libdir' 15803 hardcode_minus_L=yes 15804 allow_undefined_flag=unsupported 15805 shrext_cmds=.dll 15806 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15807 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15808 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15809 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15810 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15811 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15812 emximp -o $lib $output_objdir/$libname.def' 15813 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15814 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15815 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15816 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15817 prefix_cmds="$SED"~ 15818 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15819 prefix_cmds="$prefix_cmds -e 1d"; 15820 fi~ 15821 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15822 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15823 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15824 emximp -o $lib $output_objdir/$libname.def' 15825 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15826 enable_shared_with_static_runtimes=yes 15827 ;; 15828 15829 interix[3-9]*) 15830 hardcode_direct=no 15831 hardcode_shlibpath_var=no 15832 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15833 export_dynamic_flag_spec='$wl-E' 15834 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15835 # Instead, shared libraries are loaded at an image base (0x10000000 by 15836 # default) and relocated if they conflict, which is a slow very memory 15837 # consuming and fragmenting process. To avoid this, we pick a random, 15838 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15839 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15841 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' 15842 ;; 15843 15844 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15845 tmp_diet=no 15846 if test linux-dietlibc = "$host_os"; then 15847 case $cc_basename in 15848 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15849 esac 15850 fi 15851 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15852 && test no = "$tmp_diet" 15853 then 15854 tmp_addflag=' $pic_flag' 15855 tmp_sharedflag='-shared' 15856 case $cc_basename,$host_cpu in 15857 pgcc*) # Portland Group C compiler 15858 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' 15859 tmp_addflag=' $pic_flag' 15860 ;; 15861 pgf77* | pgf90* | pgf95* | pgfortran*) 15862 # Portland Group f77 and f90 compilers 15863 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' 15864 tmp_addflag=' $pic_flag -Mnomain' ;; 15865 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15866 tmp_addflag=' -i_dynamic' ;; 15867 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15868 tmp_addflag=' -i_dynamic -nofor_main' ;; 15869 ifc* | ifort*) # Intel Fortran compiler 15870 tmp_addflag=' -nofor_main' ;; 15871 lf95*) # Lahey Fortran 8.1 15872 whole_archive_flag_spec= 15873 tmp_sharedflag='--shared' ;; 15874 nagfor*) # NAGFOR 5.3 15875 tmp_sharedflag='-Wl,-shared' ;; 15876 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15877 tmp_sharedflag='-qmkshrobj' 15878 tmp_addflag= ;; 15879 nvcc*) # Cuda Compiler Driver 2.2 15880 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' 15881 compiler_needs_object=yes 15882 ;; 15883 esac 15884 case `$CC -V 2>&1 | sed 5q` in 15885 *Sun\ C*) # Sun C 5.9 15886 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' 15887 compiler_needs_object=yes 15888 tmp_sharedflag='-G' ;; 15889 *Sun\ F*) # Sun Fortran 8.3 15890 tmp_sharedflag='-G' ;; 15891 esac 15892 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15893 15894 if test yes = "$supports_anon_versioning"; then 15895 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15897 echo "local: *; };" >> $output_objdir/$libname.ver~ 15898 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15899 fi 15900 15901 case $cc_basename in 15902 tcc*) 15903 export_dynamic_flag_spec='-rdynamic' 15904 ;; 15905 xlf* | bgf* | bgxlf* | mpixlf*) 15906 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15907 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15909 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15910 if test yes = "$supports_anon_versioning"; then 15911 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15913 echo "local: *; };" >> $output_objdir/$libname.ver~ 15914 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15915 fi 15916 ;; 15917 esac 15918 else 15919 ld_shlibs=no 15920 fi 15921 ;; 15922 15923 netbsd*) 15924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15925 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15926 wlarc= 15927 else 15928 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15929 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15930 fi 15931 ;; 15932 15933 solaris*) 15934 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15935 ld_shlibs=no 15936 cat <<_LT_EOF 1>&2 15937 15938*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15939*** create shared libraries on Solaris systems. Therefore, libtool 15940*** is disabling shared libraries support. We urge you to upgrade GNU 15941*** binutils to release 2.9.1 or newer. Another option is to modify 15942*** your PATH or compiler configuration so that the native linker is 15943*** used, and then restart. 15944 15945_LT_EOF 15946 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15947 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15948 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15949 else 15950 ld_shlibs=no 15951 fi 15952 ;; 15953 15954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15955 case `$LD -v 2>&1` in 15956 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15957 ld_shlibs=no 15958 cat <<_LT_EOF 1>&2 15959 15960*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15961*** reliably create shared libraries on SCO systems. Therefore, libtool 15962*** is disabling shared libraries support. We urge you to upgrade GNU 15963*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15964*** your PATH or compiler configuration so that the native linker is 15965*** used, and then restart. 15966 15967_LT_EOF 15968 ;; 15969 *) 15970 # For security reasons, it is highly recommended that you always 15971 # use absolute paths for naming shared libraries, and exclude the 15972 # DT_RUNPATH tag from executables and libraries. But doing so 15973 # requires that you compile everything twice, which is a pain. 15974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15978 else 15979 ld_shlibs=no 15980 fi 15981 ;; 15982 esac 15983 ;; 15984 15985 sunos4*) 15986 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15987 wlarc= 15988 hardcode_direct=yes 15989 hardcode_shlibpath_var=no 15990 ;; 15991 15992 *) 15993 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15996 else 15997 ld_shlibs=no 15998 fi 15999 ;; 16000 esac 16001 16002 if test no = "$ld_shlibs"; then 16003 runpath_var= 16004 hardcode_libdir_flag_spec= 16005 export_dynamic_flag_spec= 16006 whole_archive_flag_spec= 16007 fi 16008 else 16009 # PORTME fill in a description of your system's linker (not GNU ld) 16010 case $host_os in 16011 aix3*) 16012 allow_undefined_flag=unsupported 16013 always_export_symbols=yes 16014 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' 16015 # Note: this linker hardcodes the directories in LIBPATH if there 16016 # are no directories specified by -L. 16017 hardcode_minus_L=yes 16018 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16019 # Neither direct hardcoding nor static linking is supported with a 16020 # broken collect2. 16021 hardcode_direct=unsupported 16022 fi 16023 ;; 16024 16025 aix[4-9]*) 16026 if test ia64 = "$host_cpu"; then 16027 # On IA64, the linker does run time linking by default, so we don't 16028 # have to do anything special. 16029 aix_use_runtimelinking=no 16030 exp_sym_flag='-Bexport' 16031 no_entry_flag= 16032 else 16033 # If we're using GNU nm, then we don't want the "-C" option. 16034 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16035 # Without the "-l" option, or with the "-B" option, AIX nm treats 16036 # weak defined symbols like other global defined symbols, whereas 16037 # GNU nm marks them as "W". 16038 # While the 'weak' keyword is ignored in the Export File, we need 16039 # it in the Import File for the 'aix-soname' feature, so we have 16040 # to replace the "-B" option with "-P" for AIX nm. 16041 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16042 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' 16043 else 16044 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16045 fi 16046 aix_use_runtimelinking=no 16047 16048 # Test if we are trying to use run time linking or normal 16049 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16050 # have runtime linking enabled, and use it for executables. 16051 # For shared libraries, we enable/disable runtime linking 16052 # depending on the kind of the shared library created - 16053 # when "with_aix_soname,aix_use_runtimelinking" is: 16054 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16055 # "aix,yes" lib.so shared, rtl:yes, for executables 16056 # lib.a static archive 16057 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16058 # lib.a(lib.so.V) shared, rtl:no, for executables 16059 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16060 # lib.a(lib.so.V) shared, rtl:no 16061 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16062 # lib.a static archive 16063 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16064 for ld_flag in $LDFLAGS; do 16065 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16066 aix_use_runtimelinking=yes 16067 break 16068 fi 16069 done 16070 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16071 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16072 # so we don't have lib.a shared libs to link our executables. 16073 # We have to force runtime linking in this case. 16074 aix_use_runtimelinking=yes 16075 LDFLAGS="$LDFLAGS -Wl,-brtl" 16076 fi 16077 ;; 16078 esac 16079 16080 exp_sym_flag='-bexport' 16081 no_entry_flag='-bnoentry' 16082 fi 16083 16084 # When large executables or shared objects are built, AIX ld can 16085 # have problems creating the table of contents. If linking a library 16086 # or program results in "error TOC overflow" add -mminimal-toc to 16087 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16088 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16089 16090 archive_cmds='' 16091 hardcode_direct=yes 16092 hardcode_direct_absolute=yes 16093 hardcode_libdir_separator=':' 16094 link_all_deplibs=yes 16095 file_list_spec='$wl-f,' 16096 case $with_aix_soname,$aix_use_runtimelinking in 16097 aix,*) ;; # traditional, no import file 16098 svr4,* | *,yes) # use import file 16099 # The Import File defines what to hardcode. 16100 hardcode_direct=no 16101 hardcode_direct_absolute=no 16102 ;; 16103 esac 16104 16105 if test yes = "$GCC"; then 16106 case $host_os in aix4.[012]|aix4.[012].*) 16107 # We only want to do this on AIX 4.2 and lower, the check 16108 # below for broken collect2 doesn't work under 4.3+ 16109 collect2name=`$CC -print-prog-name=collect2` 16110 if test -f "$collect2name" && 16111 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16112 then 16113 # We have reworked collect2 16114 : 16115 else 16116 # We have old collect2 16117 hardcode_direct=unsupported 16118 # It fails to find uninstalled libraries when the uninstalled 16119 # path is not listed in the libpath. Setting hardcode_minus_L 16120 # to unsupported forces relinking 16121 hardcode_minus_L=yes 16122 hardcode_libdir_flag_spec='-L$libdir' 16123 hardcode_libdir_separator= 16124 fi 16125 ;; 16126 esac 16127 shared_flag='-shared' 16128 if test yes = "$aix_use_runtimelinking"; then 16129 shared_flag="$shared_flag "'$wl-G' 16130 fi 16131 # Need to ensure runtime linking is disabled for the traditional 16132 # shared library, or the linker may eventually find shared libraries 16133 # /with/ Import File - we do not want to mix them. 16134 shared_flag_aix='-shared' 16135 shared_flag_svr4='-shared $wl-G' 16136 else 16137 # not using gcc 16138 if test ia64 = "$host_cpu"; then 16139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16140 # chokes on -Wl,-G. The following line is correct: 16141 shared_flag='-G' 16142 else 16143 if test yes = "$aix_use_runtimelinking"; then 16144 shared_flag='$wl-G' 16145 else 16146 shared_flag='$wl-bM:SRE' 16147 fi 16148 shared_flag_aix='$wl-bM:SRE' 16149 shared_flag_svr4='$wl-G' 16150 fi 16151 fi 16152 16153 export_dynamic_flag_spec='$wl-bexpall' 16154 # It seems that -bexpall does not export symbols beginning with 16155 # underscore (_), so it is better to generate a list of symbols to export. 16156 always_export_symbols=yes 16157 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16158 # Warning - without using the other runtime loading flags (-brtl), 16159 # -berok will link without error, but may produce a broken library. 16160 allow_undefined_flag='-berok' 16161 # Determine the default libpath from the value encoded in an 16162 # empty executable. 16163 if test set = "${lt_cv_aix_libpath+set}"; then 16164 aix_libpath=$lt_cv_aix_libpath 16165else 16166 if ${lt_cv_aix_libpath_+:} false; then : 16167 $as_echo_n "(cached) " >&6 16168else 16169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16170/* end confdefs.h. */ 16171 16172int 16173main () 16174{ 16175 16176 ; 16177 return 0; 16178} 16179_ACEOF 16180if ac_fn_c_try_link "$LINENO"; then : 16181 16182 lt_aix_libpath_sed=' 16183 /Import File Strings/,/^$/ { 16184 /^0/ { 16185 s/^0 *\([^ ]*\) *$/\1/ 16186 p 16187 } 16188 }' 16189 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16190 # Check for a 64-bit object if we didn't find anything. 16191 if test -z "$lt_cv_aix_libpath_"; then 16192 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16193 fi 16194fi 16195rm -f core conftest.err conftest.$ac_objext \ 16196 conftest$ac_exeext conftest.$ac_ext 16197 if test -z "$lt_cv_aix_libpath_"; then 16198 lt_cv_aix_libpath_=/usr/lib:/lib 16199 fi 16200 16201fi 16202 16203 aix_libpath=$lt_cv_aix_libpath_ 16204fi 16205 16206 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16207 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 16208 else 16209 if test ia64 = "$host_cpu"; then 16210 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16211 allow_undefined_flag="-z nodefs" 16212 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" 16213 else 16214 # Determine the default libpath from the value encoded in an 16215 # empty executable. 16216 if test set = "${lt_cv_aix_libpath+set}"; then 16217 aix_libpath=$lt_cv_aix_libpath 16218else 16219 if ${lt_cv_aix_libpath_+:} false; then : 16220 $as_echo_n "(cached) " >&6 16221else 16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16223/* end confdefs.h. */ 16224 16225int 16226main () 16227{ 16228 16229 ; 16230 return 0; 16231} 16232_ACEOF 16233if ac_fn_c_try_link "$LINENO"; then : 16234 16235 lt_aix_libpath_sed=' 16236 /Import File Strings/,/^$/ { 16237 /^0/ { 16238 s/^0 *\([^ ]*\) *$/\1/ 16239 p 16240 } 16241 }' 16242 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16243 # Check for a 64-bit object if we didn't find anything. 16244 if test -z "$lt_cv_aix_libpath_"; then 16245 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16246 fi 16247fi 16248rm -f core conftest.err conftest.$ac_objext \ 16249 conftest$ac_exeext conftest.$ac_ext 16250 if test -z "$lt_cv_aix_libpath_"; then 16251 lt_cv_aix_libpath_=/usr/lib:/lib 16252 fi 16253 16254fi 16255 16256 aix_libpath=$lt_cv_aix_libpath_ 16257fi 16258 16259 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16260 # Warning - without using the other run time loading flags, 16261 # -berok will link without error, but may produce a broken library. 16262 no_undefined_flag=' $wl-bernotok' 16263 allow_undefined_flag=' $wl-berok' 16264 if test yes = "$with_gnu_ld"; then 16265 # We only use this code for GNU lds that support --whole-archive. 16266 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16267 else 16268 # Exported symbols can be pulled into shared objects from archives 16269 whole_archive_flag_spec='$convenience' 16270 fi 16271 archive_cmds_need_lc=yes 16272 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16273 # -brtl affects multiple linker settings, -berok does not and is overridden later 16274 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16275 if test svr4 != "$with_aix_soname"; then 16276 # This is similar to how AIX traditionally builds its shared libraries. 16277 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' 16278 fi 16279 if test aix != "$with_aix_soname"; then 16280 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' 16281 else 16282 # used by -dlpreopen to get the symbols 16283 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16284 fi 16285 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16286 fi 16287 fi 16288 ;; 16289 16290 amigaos*) 16291 case $host_cpu in 16292 powerpc) 16293 # see comment about AmigaOS4 .so support 16294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16295 archive_expsym_cmds='' 16296 ;; 16297 m68k) 16298 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)' 16299 hardcode_libdir_flag_spec='-L$libdir' 16300 hardcode_minus_L=yes 16301 ;; 16302 esac 16303 ;; 16304 16305 bsdi[45]*) 16306 export_dynamic_flag_spec=-rdynamic 16307 ;; 16308 16309 cygwin* | mingw* | pw32* | cegcc*) 16310 # When not using gcc, we currently assume that we are using 16311 # Microsoft Visual C++. 16312 # hardcode_libdir_flag_spec is actually meaningless, as there is 16313 # no search path for DLLs. 16314 case $cc_basename in 16315 cl*) 16316 # Native MSVC 16317 hardcode_libdir_flag_spec=' ' 16318 allow_undefined_flag=unsupported 16319 always_export_symbols=yes 16320 file_list_spec='@' 16321 # Tell ltmain to make .lib files, not .a files. 16322 libext=lib 16323 # Tell ltmain to make .dll files, not .so files. 16324 shrext_cmds=.dll 16325 # FIXME: Setting linknames here is a bad hack. 16326 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16327 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16328 cp "$export_symbols" "$output_objdir/$soname.def"; 16329 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16330 else 16331 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16332 fi~ 16333 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16334 linknames=' 16335 # The linker will not automatically build a static lib if we build a DLL. 16336 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16337 enable_shared_with_static_runtimes=yes 16338 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16340 # Don't use ranlib 16341 old_postinstall_cmds='chmod 644 $oldlib' 16342 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16343 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16344 case $lt_outputfile in 16345 *.exe|*.EXE) ;; 16346 *) 16347 lt_outputfile=$lt_outputfile.exe 16348 lt_tool_outputfile=$lt_tool_outputfile.exe 16349 ;; 16350 esac~ 16351 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16352 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16353 $RM "$lt_outputfile.manifest"; 16354 fi' 16355 ;; 16356 *) 16357 # Assume MSVC wrapper 16358 hardcode_libdir_flag_spec=' ' 16359 allow_undefined_flag=unsupported 16360 # Tell ltmain to make .lib files, not .a files. 16361 libext=lib 16362 # Tell ltmain to make .dll files, not .so files. 16363 shrext_cmds=.dll 16364 # FIXME: Setting linknames here is a bad hack. 16365 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16366 # The linker will automatically build a .lib file if we build a DLL. 16367 old_archive_from_new_cmds='true' 16368 # FIXME: Should let the user specify the lib program. 16369 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16370 enable_shared_with_static_runtimes=yes 16371 ;; 16372 esac 16373 ;; 16374 16375 darwin* | rhapsody*) 16376 16377 16378 archive_cmds_need_lc=no 16379 hardcode_direct=no 16380 hardcode_automatic=yes 16381 hardcode_shlibpath_var=unsupported 16382 if test yes = "$lt_cv_ld_force_load"; then 16383 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\"`' 16384 16385 else 16386 whole_archive_flag_spec='' 16387 fi 16388 link_all_deplibs=yes 16389 allow_undefined_flag=$_lt_dar_allow_undefined 16390 case $cc_basename in 16391 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16392 *) _lt_dar_can_shared=$GCC ;; 16393 esac 16394 if test yes = "$_lt_dar_can_shared"; then 16395 output_verbose_link_cmd=func_echo_all 16396 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16397 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16398 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" 16399 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" 16400 16401 else 16402 ld_shlibs=no 16403 fi 16404 16405 ;; 16406 16407 dgux*) 16408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16409 hardcode_libdir_flag_spec='-L$libdir' 16410 hardcode_shlibpath_var=no 16411 ;; 16412 16413 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16414 # support. Future versions do this automatically, but an explicit c++rt0.o 16415 # does not break anything, and helps significantly (at the cost of a little 16416 # extra space). 16417 freebsd2.2*) 16418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16419 hardcode_libdir_flag_spec='-R$libdir' 16420 hardcode_direct=yes 16421 hardcode_shlibpath_var=no 16422 ;; 16423 16424 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16425 freebsd2.*) 16426 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16427 hardcode_direct=yes 16428 hardcode_minus_L=yes 16429 hardcode_shlibpath_var=no 16430 ;; 16431 16432 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16433 freebsd* | dragonfly*) 16434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16435 hardcode_libdir_flag_spec='-R$libdir' 16436 hardcode_direct=yes 16437 hardcode_shlibpath_var=no 16438 ;; 16439 16440 hpux9*) 16441 if test yes = "$GCC"; then 16442 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' 16443 else 16444 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' 16445 fi 16446 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16447 hardcode_libdir_separator=: 16448 hardcode_direct=yes 16449 16450 # hardcode_minus_L: Not really in the search PATH, 16451 # but as the default location of the library. 16452 hardcode_minus_L=yes 16453 export_dynamic_flag_spec='$wl-E' 16454 ;; 16455 16456 hpux10*) 16457 if test yes,no = "$GCC,$with_gnu_ld"; then 16458 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16459 else 16460 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16461 fi 16462 if test no = "$with_gnu_ld"; then 16463 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16464 hardcode_libdir_separator=: 16465 hardcode_direct=yes 16466 hardcode_direct_absolute=yes 16467 export_dynamic_flag_spec='$wl-E' 16468 # hardcode_minus_L: Not really in the search PATH, 16469 # but as the default location of the library. 16470 hardcode_minus_L=yes 16471 fi 16472 ;; 16473 16474 hpux11*) 16475 if test yes,no = "$GCC,$with_gnu_ld"; then 16476 case $host_cpu in 16477 hppa*64*) 16478 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16479 ;; 16480 ia64*) 16481 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16482 ;; 16483 *) 16484 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16485 ;; 16486 esac 16487 else 16488 case $host_cpu in 16489 hppa*64*) 16490 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16491 ;; 16492 ia64*) 16493 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16494 ;; 16495 *) 16496 16497 # Older versions of the 11.00 compiler do not understand -b yet 16498 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16500$as_echo_n "checking if $CC understands -b... " >&6; } 16501if ${lt_cv_prog_compiler__b+:} false; then : 16502 $as_echo_n "(cached) " >&6 16503else 16504 lt_cv_prog_compiler__b=no 16505 save_LDFLAGS=$LDFLAGS 16506 LDFLAGS="$LDFLAGS -b" 16507 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16509 # The linker can only warn and ignore the option if not recognized 16510 # So say no if there are warnings 16511 if test -s conftest.err; then 16512 # Append any errors to the config.log. 16513 cat conftest.err 1>&5 16514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16516 if diff conftest.exp conftest.er2 >/dev/null; then 16517 lt_cv_prog_compiler__b=yes 16518 fi 16519 else 16520 lt_cv_prog_compiler__b=yes 16521 fi 16522 fi 16523 $RM -r conftest* 16524 LDFLAGS=$save_LDFLAGS 16525 16526fi 16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16528$as_echo "$lt_cv_prog_compiler__b" >&6; } 16529 16530if test yes = "$lt_cv_prog_compiler__b"; then 16531 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16532else 16533 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16534fi 16535 16536 ;; 16537 esac 16538 fi 16539 if test no = "$with_gnu_ld"; then 16540 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16541 hardcode_libdir_separator=: 16542 16543 case $host_cpu in 16544 hppa*64*|ia64*) 16545 hardcode_direct=no 16546 hardcode_shlibpath_var=no 16547 ;; 16548 *) 16549 hardcode_direct=yes 16550 hardcode_direct_absolute=yes 16551 export_dynamic_flag_spec='$wl-E' 16552 16553 # hardcode_minus_L: Not really in the search PATH, 16554 # but as the default location of the library. 16555 hardcode_minus_L=yes 16556 ;; 16557 esac 16558 fi 16559 ;; 16560 16561 irix5* | irix6* | nonstopux*) 16562 if test yes = "$GCC"; then 16563 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' 16564 # Try to use the -exported_symbol ld option, if it does not 16565 # work, assume that -exports_file does not work either and 16566 # implicitly export all symbols. 16567 # This should be the same for all languages, so no per-tag cache variable. 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16569$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16570if ${lt_cv_irix_exported_symbol+:} false; then : 16571 $as_echo_n "(cached) " >&6 16572else 16573 save_LDFLAGS=$LDFLAGS 16574 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16576/* end confdefs.h. */ 16577int foo (void) { return 0; } 16578_ACEOF 16579if ac_fn_c_try_link "$LINENO"; then : 16580 lt_cv_irix_exported_symbol=yes 16581else 16582 lt_cv_irix_exported_symbol=no 16583fi 16584rm -f core conftest.err conftest.$ac_objext \ 16585 conftest$ac_exeext conftest.$ac_ext 16586 LDFLAGS=$save_LDFLAGS 16587fi 16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16589$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16590 if test yes = "$lt_cv_irix_exported_symbol"; then 16591 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' 16592 fi 16593 else 16594 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' 16595 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' 16596 fi 16597 archive_cmds_need_lc='no' 16598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16599 hardcode_libdir_separator=: 16600 inherit_rpath=yes 16601 link_all_deplibs=yes 16602 ;; 16603 16604 linux*) 16605 case $cc_basename in 16606 tcc*) 16607 # Fabrice Bellard et al's Tiny C Compiler 16608 ld_shlibs=yes 16609 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16610 ;; 16611 esac 16612 ;; 16613 16614 netbsd*) 16615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16617 else 16618 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16619 fi 16620 hardcode_libdir_flag_spec='-R$libdir' 16621 hardcode_direct=yes 16622 hardcode_shlibpath_var=no 16623 ;; 16624 16625 newsos6) 16626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16627 hardcode_direct=yes 16628 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16629 hardcode_libdir_separator=: 16630 hardcode_shlibpath_var=no 16631 ;; 16632 16633 *nto* | *qnx*) 16634 ;; 16635 16636 openbsd* | bitrig*) 16637 if test -f /usr/libexec/ld.so; then 16638 hardcode_direct=yes 16639 hardcode_shlibpath_var=no 16640 hardcode_direct_absolute=yes 16641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16643 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16644 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16645 export_dynamic_flag_spec='$wl-E' 16646 else 16647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16648 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16649 fi 16650 else 16651 ld_shlibs=no 16652 fi 16653 ;; 16654 16655 os2*) 16656 hardcode_libdir_flag_spec='-L$libdir' 16657 hardcode_minus_L=yes 16658 allow_undefined_flag=unsupported 16659 shrext_cmds=.dll 16660 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16661 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16662 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16663 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16664 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16665 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16666 emximp -o $lib $output_objdir/$libname.def' 16667 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16670 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16671 prefix_cmds="$SED"~ 16672 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16673 prefix_cmds="$prefix_cmds -e 1d"; 16674 fi~ 16675 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16676 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16678 emximp -o $lib $output_objdir/$libname.def' 16679 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16680 enable_shared_with_static_runtimes=yes 16681 ;; 16682 16683 osf3*) 16684 if test yes = "$GCC"; then 16685 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16686 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' 16687 else 16688 allow_undefined_flag=' -expect_unresolved \*' 16689 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' 16690 fi 16691 archive_cmds_need_lc='no' 16692 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16693 hardcode_libdir_separator=: 16694 ;; 16695 16696 osf4* | osf5*) # as osf3* with the addition of -msym flag 16697 if test yes = "$GCC"; then 16698 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16699 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' 16700 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16701 else 16702 allow_undefined_flag=' -expect_unresolved \*' 16703 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' 16704 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~ 16705 $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' 16706 16707 # Both c and cxx compiler support -rpath directly 16708 hardcode_libdir_flag_spec='-rpath $libdir' 16709 fi 16710 archive_cmds_need_lc='no' 16711 hardcode_libdir_separator=: 16712 ;; 16713 16714 solaris*) 16715 no_undefined_flag=' -z defs' 16716 if test yes = "$GCC"; then 16717 wlarc='$wl' 16718 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16719 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16720 $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' 16721 else 16722 case `$CC -V 2>&1` in 16723 *"Compilers 5.0"*) 16724 wlarc='' 16725 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16726 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16727 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16728 ;; 16729 *) 16730 wlarc='$wl' 16731 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16733 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16734 ;; 16735 esac 16736 fi 16737 hardcode_libdir_flag_spec='-R$libdir' 16738 hardcode_shlibpath_var=no 16739 case $host_os in 16740 solaris2.[0-5] | solaris2.[0-5].*) ;; 16741 *) 16742 # The compiler driver will combine and reorder linker options, 16743 # but understands '-z linker_flag'. GCC discards it without '$wl', 16744 # but is careful enough not to reorder. 16745 # Supported since Solaris 2.6 (maybe 2.5.1?) 16746 if test yes = "$GCC"; then 16747 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16748 else 16749 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16750 fi 16751 ;; 16752 esac 16753 link_all_deplibs=yes 16754 ;; 16755 16756 sunos4*) 16757 if test sequent = "$host_vendor"; then 16758 # Use $CC to link under sequent, because it throws in some extra .o 16759 # files that make .init and .fini sections work. 16760 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16761 else 16762 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16763 fi 16764 hardcode_libdir_flag_spec='-L$libdir' 16765 hardcode_direct=yes 16766 hardcode_minus_L=yes 16767 hardcode_shlibpath_var=no 16768 ;; 16769 16770 sysv4) 16771 case $host_vendor in 16772 sni) 16773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16774 hardcode_direct=yes # is this really true??? 16775 ;; 16776 siemens) 16777 ## LD is ld it makes a PLAMLIB 16778 ## CC just makes a GrossModule. 16779 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16780 reload_cmds='$CC -r -o $output$reload_objs' 16781 hardcode_direct=no 16782 ;; 16783 motorola) 16784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16785 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16786 ;; 16787 esac 16788 runpath_var='LD_RUN_PATH' 16789 hardcode_shlibpath_var=no 16790 ;; 16791 16792 sysv4.3*) 16793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16794 hardcode_shlibpath_var=no 16795 export_dynamic_flag_spec='-Bexport' 16796 ;; 16797 16798 sysv4*MP*) 16799 if test -d /usr/nec; then 16800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16801 hardcode_shlibpath_var=no 16802 runpath_var=LD_RUN_PATH 16803 hardcode_runpath_var=yes 16804 ld_shlibs=yes 16805 fi 16806 ;; 16807 16808 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16809 no_undefined_flag='$wl-z,text' 16810 archive_cmds_need_lc=no 16811 hardcode_shlibpath_var=no 16812 runpath_var='LD_RUN_PATH' 16813 16814 if test yes = "$GCC"; then 16815 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16816 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16817 else 16818 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16819 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16820 fi 16821 ;; 16822 16823 sysv5* | sco3.2v5* | sco5v6*) 16824 # Note: We CANNOT use -z defs as we might desire, because we do not 16825 # link with -lc, and that would cause any symbols used from libc to 16826 # always be unresolved, which means just about no library would 16827 # ever link correctly. If we're not using GNU ld we use -z text 16828 # though, which does catch some bad symbols but isn't as heavy-handed 16829 # as -z defs. 16830 no_undefined_flag='$wl-z,text' 16831 allow_undefined_flag='$wl-z,nodefs' 16832 archive_cmds_need_lc=no 16833 hardcode_shlibpath_var=no 16834 hardcode_libdir_flag_spec='$wl-R,$libdir' 16835 hardcode_libdir_separator=':' 16836 link_all_deplibs=yes 16837 export_dynamic_flag_spec='$wl-Bexport' 16838 runpath_var='LD_RUN_PATH' 16839 16840 if test yes = "$GCC"; then 16841 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16842 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16843 else 16844 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16845 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16846 fi 16847 ;; 16848 16849 uts4*) 16850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16851 hardcode_libdir_flag_spec='-L$libdir' 16852 hardcode_shlibpath_var=no 16853 ;; 16854 16855 *) 16856 ld_shlibs=no 16857 ;; 16858 esac 16859 16860 if test sni = "$host_vendor"; then 16861 case $host in 16862 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16863 export_dynamic_flag_spec='$wl-Blargedynsym' 16864 ;; 16865 esac 16866 fi 16867 fi 16868 16869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16870$as_echo "$ld_shlibs" >&6; } 16871test no = "$ld_shlibs" && can_build_shared=no 16872 16873with_gnu_ld=$with_gnu_ld 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889# 16890# Do we need to explicitly link libc? 16891# 16892case "x$archive_cmds_need_lc" in 16893x|xyes) 16894 # Assume -lc should be added 16895 archive_cmds_need_lc=yes 16896 16897 if test yes,yes = "$GCC,$enable_shared"; then 16898 case $archive_cmds in 16899 *'~'*) 16900 # FIXME: we may have to deal with multi-command sequences. 16901 ;; 16902 '$CC '*) 16903 # Test whether the compiler implicitly links with -lc since on some 16904 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16905 # to ld, don't add -lc before -lgcc. 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16907$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16908if ${lt_cv_archive_cmds_need_lc+:} false; then : 16909 $as_echo_n "(cached) " >&6 16910else 16911 $RM conftest* 16912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16913 16914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16915 (eval $ac_compile) 2>&5 16916 ac_status=$? 16917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16918 test $ac_status = 0; } 2>conftest.err; then 16919 soname=conftest 16920 lib=conftest 16921 libobjs=conftest.$ac_objext 16922 deplibs= 16923 wl=$lt_prog_compiler_wl 16924 pic_flag=$lt_prog_compiler_pic 16925 compiler_flags=-v 16926 linker_flags=-v 16927 verstring= 16928 output_objdir=. 16929 libname=conftest 16930 lt_save_allow_undefined_flag=$allow_undefined_flag 16931 allow_undefined_flag= 16932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16933 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16934 ac_status=$? 16935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16936 test $ac_status = 0; } 16937 then 16938 lt_cv_archive_cmds_need_lc=no 16939 else 16940 lt_cv_archive_cmds_need_lc=yes 16941 fi 16942 allow_undefined_flag=$lt_save_allow_undefined_flag 16943 else 16944 cat conftest.err 1>&5 16945 fi 16946 $RM conftest* 16947 16948fi 16949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16950$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16951 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16952 ;; 16953 esac 16954 fi 16955 ;; 16956esac 16957 16958 16959 16960 16961 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17110$as_echo_n "checking dynamic linker characteristics... " >&6; } 17111 17112if test yes = "$GCC"; then 17113 case $host_os in 17114 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17115 *) lt_awk_arg='/^libraries:/' ;; 17116 esac 17117 case $host_os in 17118 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17119 *) lt_sed_strip_eq='s|=/|/|g' ;; 17120 esac 17121 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17122 case $lt_search_path_spec in 17123 *\;*) 17124 # if the path contains ";" then we assume it to be the separator 17125 # otherwise default to the standard path separator (i.e. ":") - it is 17126 # assumed that no part of a normal pathname contains ";" but that should 17127 # okay in the real world where ";" in dirpaths is itself problematic. 17128 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17129 ;; 17130 *) 17131 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17132 ;; 17133 esac 17134 # Ok, now we have the path, separated by spaces, we can step through it 17135 # and add multilib dir if necessary... 17136 lt_tmp_lt_search_path_spec= 17137 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17138 # ...but if some path component already ends with the multilib dir we assume 17139 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17140 case "$lt_multi_os_dir; $lt_search_path_spec " in 17141 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17142 lt_multi_os_dir= 17143 ;; 17144 esac 17145 for lt_sys_path in $lt_search_path_spec; do 17146 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17147 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17148 elif test -n "$lt_multi_os_dir"; then 17149 test -d "$lt_sys_path" && \ 17150 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17151 fi 17152 done 17153 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17154BEGIN {RS = " "; FS = "/|\n";} { 17155 lt_foo = ""; 17156 lt_count = 0; 17157 for (lt_i = NF; lt_i > 0; lt_i--) { 17158 if ($lt_i != "" && $lt_i != ".") { 17159 if ($lt_i == "..") { 17160 lt_count++; 17161 } else { 17162 if (lt_count == 0) { 17163 lt_foo = "/" $lt_i lt_foo; 17164 } else { 17165 lt_count--; 17166 } 17167 } 17168 } 17169 } 17170 if (lt_foo != "") { lt_freq[lt_foo]++; } 17171 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17172}'` 17173 # AWK program above erroneously prepends '/' to C:/dos/paths 17174 # for these hosts. 17175 case $host_os in 17176 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17177 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17178 esac 17179 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17180else 17181 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17182fi 17183library_names_spec= 17184libname_spec='lib$name' 17185soname_spec= 17186shrext_cmds=.so 17187postinstall_cmds= 17188postuninstall_cmds= 17189finish_cmds= 17190finish_eval= 17191shlibpath_var= 17192shlibpath_overrides_runpath=unknown 17193version_type=none 17194dynamic_linker="$host_os ld.so" 17195sys_lib_dlsearch_path_spec="/lib /usr/lib" 17196need_lib_prefix=unknown 17197hardcode_into_libs=no 17198 17199# when you set need_version to no, make sure it does not cause -set_version 17200# flags to be left without arguments 17201need_version=unknown 17202 17203 17204 17205case $host_os in 17206aix3*) 17207 version_type=linux # correct to gnu/linux during the next big refactor 17208 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17209 shlibpath_var=LIBPATH 17210 17211 # AIX 3 has no versioning support, so we append a major version to the name. 17212 soname_spec='$libname$release$shared_ext$major' 17213 ;; 17214 17215aix[4-9]*) 17216 version_type=linux # correct to gnu/linux during the next big refactor 17217 need_lib_prefix=no 17218 need_version=no 17219 hardcode_into_libs=yes 17220 if test ia64 = "$host_cpu"; then 17221 # AIX 5 supports IA64 17222 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17223 shlibpath_var=LD_LIBRARY_PATH 17224 else 17225 # With GCC up to 2.95.x, collect2 would create an import file 17226 # for dependence libraries. The import file would start with 17227 # the line '#! .'. This would cause the generated library to 17228 # depend on '.', always an invalid library. This was fixed in 17229 # development snapshots of GCC prior to 3.0. 17230 case $host_os in 17231 aix4 | aix4.[01] | aix4.[01].*) 17232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17233 echo ' yes ' 17234 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17235 : 17236 else 17237 can_build_shared=no 17238 fi 17239 ;; 17240 esac 17241 # Using Import Files as archive members, it is possible to support 17242 # filename-based versioning of shared library archives on AIX. While 17243 # this would work for both with and without runtime linking, it will 17244 # prevent static linking of such archives. So we do filename-based 17245 # shared library versioning with .so extension only, which is used 17246 # when both runtime linking and shared linking is enabled. 17247 # Unfortunately, runtime linking may impact performance, so we do 17248 # not want this to be the default eventually. Also, we use the 17249 # versioned .so libs for executables only if there is the -brtl 17250 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17251 # To allow for filename-based versioning support, we need to create 17252 # libNAME.so.V as an archive file, containing: 17253 # *) an Import File, referring to the versioned filename of the 17254 # archive as well as the shared archive member, telling the 17255 # bitwidth (32 or 64) of that shared object, and providing the 17256 # list of exported symbols of that shared object, eventually 17257 # decorated with the 'weak' keyword 17258 # *) the shared object with the F_LOADONLY flag set, to really avoid 17259 # it being seen by the linker. 17260 # At run time we better use the real file rather than another symlink, 17261 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17262 17263 case $with_aix_soname,$aix_use_runtimelinking in 17264 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17265 # soname into executable. Probably we can add versioning support to 17266 # collect2, so additional links can be useful in future. 17267 aix,yes) # traditional libtool 17268 dynamic_linker='AIX unversionable lib.so' 17269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17270 # instead of lib<name>.a to let people know that these are not 17271 # typical AIX shared libraries. 17272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17273 ;; 17274 aix,no) # traditional AIX only 17275 dynamic_linker='AIX lib.a(lib.so.V)' 17276 # We preserve .a as extension for shared libraries through AIX4.2 17277 # and later when we are not doing run time linking. 17278 library_names_spec='$libname$release.a $libname.a' 17279 soname_spec='$libname$release$shared_ext$major' 17280 ;; 17281 svr4,*) # full svr4 only 17282 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17283 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17284 # We do not specify a path in Import Files, so LIBPATH fires. 17285 shlibpath_overrides_runpath=yes 17286 ;; 17287 *,yes) # both, prefer svr4 17288 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17289 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17290 # unpreferred sharedlib libNAME.a needs extra handling 17291 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"' 17292 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"' 17293 # We do not specify a path in Import Files, so LIBPATH fires. 17294 shlibpath_overrides_runpath=yes 17295 ;; 17296 *,no) # both, prefer aix 17297 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17298 library_names_spec='$libname$release.a $libname.a' 17299 soname_spec='$libname$release$shared_ext$major' 17300 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17301 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)' 17302 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"' 17303 ;; 17304 esac 17305 shlibpath_var=LIBPATH 17306 fi 17307 ;; 17308 17309amigaos*) 17310 case $host_cpu in 17311 powerpc) 17312 # Since July 2007 AmigaOS4 officially supports .so libraries. 17313 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17315 ;; 17316 m68k) 17317 library_names_spec='$libname.ixlibrary $libname.a' 17318 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17319 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' 17320 ;; 17321 esac 17322 ;; 17323 17324beos*) 17325 library_names_spec='$libname$shared_ext' 17326 dynamic_linker="$host_os ld.so" 17327 shlibpath_var=LIBRARY_PATH 17328 ;; 17329 17330bsdi[45]*) 17331 version_type=linux # correct to gnu/linux during the next big refactor 17332 need_version=no 17333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17334 soname_spec='$libname$release$shared_ext$major' 17335 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17336 shlibpath_var=LD_LIBRARY_PATH 17337 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17338 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17339 # the default ld.so.conf also contains /usr/contrib/lib and 17340 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17341 # libtool to hard-code these into programs 17342 ;; 17343 17344cygwin* | mingw* | pw32* | cegcc*) 17345 version_type=windows 17346 shrext_cmds=.dll 17347 need_version=no 17348 need_lib_prefix=no 17349 17350 case $GCC,$cc_basename in 17351 yes,*) 17352 # gcc 17353 library_names_spec='$libname.dll.a' 17354 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17355 postinstall_cmds='base_file=`basename \$file`~ 17356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17357 dldir=$destdir/`dirname \$dlpath`~ 17358 test -d \$dldir || mkdir -p \$dldir~ 17359 $install_prog $dir/$dlname \$dldir/$dlname~ 17360 chmod a+x \$dldir/$dlname~ 17361 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17362 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17363 fi' 17364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17365 dlpath=$dir/\$dldll~ 17366 $RM \$dlpath' 17367 shlibpath_overrides_runpath=yes 17368 17369 case $host_os in 17370 cygwin*) 17371 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17372 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17373 17374 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17375 ;; 17376 mingw* | cegcc*) 17377 # MinGW DLLs use traditional 'lib' prefix 17378 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17379 ;; 17380 pw32*) 17381 # pw32 DLLs use 'pw' prefix rather than 'lib' 17382 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17383 ;; 17384 esac 17385 dynamic_linker='Win32 ld.exe' 17386 ;; 17387 17388 *,cl*) 17389 # Native MSVC 17390 libname_spec='$name' 17391 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17392 library_names_spec='$libname.dll.lib' 17393 17394 case $build_os in 17395 mingw*) 17396 sys_lib_search_path_spec= 17397 lt_save_ifs=$IFS 17398 IFS=';' 17399 for lt_path in $LIB 17400 do 17401 IFS=$lt_save_ifs 17402 # Let DOS variable expansion print the short 8.3 style file name. 17403 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17404 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17405 done 17406 IFS=$lt_save_ifs 17407 # Convert to MSYS style. 17408 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17409 ;; 17410 cygwin*) 17411 # Convert to unix form, then to dos form, then back to unix form 17412 # but this time dos style (no spaces!) so that the unix form looks 17413 # like /cygdrive/c/PROGRA~1:/cygdr... 17414 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17415 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17416 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17417 ;; 17418 *) 17419 sys_lib_search_path_spec=$LIB 17420 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17421 # It is most probably a Windows format PATH. 17422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17423 else 17424 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17425 fi 17426 # FIXME: find the short name or the path components, as spaces are 17427 # common. (e.g. "Program Files" -> "PROGRA~1") 17428 ;; 17429 esac 17430 17431 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17432 postinstall_cmds='base_file=`basename \$file`~ 17433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17434 dldir=$destdir/`dirname \$dlpath`~ 17435 test -d \$dldir || mkdir -p \$dldir~ 17436 $install_prog $dir/$dlname \$dldir/$dlname' 17437 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17438 dlpath=$dir/\$dldll~ 17439 $RM \$dlpath' 17440 shlibpath_overrides_runpath=yes 17441 dynamic_linker='Win32 link.exe' 17442 ;; 17443 17444 *) 17445 # Assume MSVC wrapper 17446 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17447 dynamic_linker='Win32 ld.exe' 17448 ;; 17449 esac 17450 # FIXME: first we should search . and the directory the executable is in 17451 shlibpath_var=PATH 17452 ;; 17453 17454darwin* | rhapsody*) 17455 dynamic_linker="$host_os dyld" 17456 version_type=darwin 17457 need_lib_prefix=no 17458 need_version=no 17459 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17460 soname_spec='$libname$release$major$shared_ext' 17461 shlibpath_overrides_runpath=yes 17462 shlibpath_var=DYLD_LIBRARY_PATH 17463 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17464 17465 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17467 ;; 17468 17469dgux*) 17470 version_type=linux # correct to gnu/linux during the next big refactor 17471 need_lib_prefix=no 17472 need_version=no 17473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17474 soname_spec='$libname$release$shared_ext$major' 17475 shlibpath_var=LD_LIBRARY_PATH 17476 ;; 17477 17478freebsd* | dragonfly*) 17479 # DragonFly does not have aout. When/if they implement a new 17480 # versioning mechanism, adjust this. 17481 if test -x /usr/bin/objformat; then 17482 objformat=`/usr/bin/objformat` 17483 else 17484 case $host_os in 17485 freebsd[23].*) objformat=aout ;; 17486 *) objformat=elf ;; 17487 esac 17488 fi 17489 version_type=freebsd-$objformat 17490 case $version_type in 17491 freebsd-elf*) 17492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17493 soname_spec='$libname$release$shared_ext$major' 17494 need_version=no 17495 need_lib_prefix=no 17496 ;; 17497 freebsd-*) 17498 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17499 need_version=yes 17500 ;; 17501 esac 17502 shlibpath_var=LD_LIBRARY_PATH 17503 case $host_os in 17504 freebsd2.*) 17505 shlibpath_overrides_runpath=yes 17506 ;; 17507 freebsd3.[01]* | freebsdelf3.[01]*) 17508 shlibpath_overrides_runpath=yes 17509 hardcode_into_libs=yes 17510 ;; 17511 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17512 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17513 shlibpath_overrides_runpath=no 17514 hardcode_into_libs=yes 17515 ;; 17516 *) # from 4.6 on, and DragonFly 17517 shlibpath_overrides_runpath=yes 17518 hardcode_into_libs=yes 17519 ;; 17520 esac 17521 ;; 17522 17523haiku*) 17524 version_type=linux # correct to gnu/linux during the next big refactor 17525 need_lib_prefix=no 17526 need_version=no 17527 dynamic_linker="$host_os runtime_loader" 17528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17529 soname_spec='$libname$release$shared_ext$major' 17530 shlibpath_var=LIBRARY_PATH 17531 shlibpath_overrides_runpath=no 17532 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17533 hardcode_into_libs=yes 17534 ;; 17535 17536hpux9* | hpux10* | hpux11*) 17537 # Give a soname corresponding to the major version so that dld.sl refuses to 17538 # link against other versions. 17539 version_type=sunos 17540 need_lib_prefix=no 17541 need_version=no 17542 case $host_cpu in 17543 ia64*) 17544 shrext_cmds='.so' 17545 hardcode_into_libs=yes 17546 dynamic_linker="$host_os dld.so" 17547 shlibpath_var=LD_LIBRARY_PATH 17548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17550 soname_spec='$libname$release$shared_ext$major' 17551 if test 32 = "$HPUX_IA64_MODE"; then 17552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17553 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17554 else 17555 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17556 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17557 fi 17558 ;; 17559 hppa*64*) 17560 shrext_cmds='.sl' 17561 hardcode_into_libs=yes 17562 dynamic_linker="$host_os dld.sl" 17563 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17566 soname_spec='$libname$release$shared_ext$major' 17567 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17569 ;; 17570 *) 17571 shrext_cmds='.sl' 17572 dynamic_linker="$host_os dld.sl" 17573 shlibpath_var=SHLIB_PATH 17574 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17576 soname_spec='$libname$release$shared_ext$major' 17577 ;; 17578 esac 17579 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17580 postinstall_cmds='chmod 555 $lib' 17581 # or fails outright, so override atomically: 17582 install_override_mode=555 17583 ;; 17584 17585interix[3-9]*) 17586 version_type=linux # correct to gnu/linux during the next big refactor 17587 need_lib_prefix=no 17588 need_version=no 17589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17590 soname_spec='$libname$release$shared_ext$major' 17591 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17592 shlibpath_var=LD_LIBRARY_PATH 17593 shlibpath_overrides_runpath=no 17594 hardcode_into_libs=yes 17595 ;; 17596 17597irix5* | irix6* | nonstopux*) 17598 case $host_os in 17599 nonstopux*) version_type=nonstopux ;; 17600 *) 17601 if test yes = "$lt_cv_prog_gnu_ld"; then 17602 version_type=linux # correct to gnu/linux during the next big refactor 17603 else 17604 version_type=irix 17605 fi ;; 17606 esac 17607 need_lib_prefix=no 17608 need_version=no 17609 soname_spec='$libname$release$shared_ext$major' 17610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17611 case $host_os in 17612 irix5* | nonstopux*) 17613 libsuff= shlibsuff= 17614 ;; 17615 *) 17616 case $LD in # libtool.m4 will add one of these switches to LD 17617 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17618 libsuff= shlibsuff= libmagic=32-bit;; 17619 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17620 libsuff=32 shlibsuff=N32 libmagic=N32;; 17621 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17622 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17623 *) libsuff= shlibsuff= libmagic=never-match;; 17624 esac 17625 ;; 17626 esac 17627 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17628 shlibpath_overrides_runpath=no 17629 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17630 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17631 hardcode_into_libs=yes 17632 ;; 17633 17634# No shared lib support for Linux oldld, aout, or coff. 17635linux*oldld* | linux*aout* | linux*coff*) 17636 dynamic_linker=no 17637 ;; 17638 17639linux*android*) 17640 version_type=none # Android doesn't support versioned libraries. 17641 need_lib_prefix=no 17642 need_version=no 17643 library_names_spec='$libname$release$shared_ext' 17644 soname_spec='$libname$release$shared_ext' 17645 finish_cmds= 17646 shlibpath_var=LD_LIBRARY_PATH 17647 shlibpath_overrides_runpath=yes 17648 17649 # This implies no fast_install, which is unacceptable. 17650 # Some rework will be needed to allow for fast_install 17651 # before this can be enabled. 17652 hardcode_into_libs=yes 17653 17654 dynamic_linker='Android linker' 17655 # Don't embed -rpath directories since the linker doesn't support them. 17656 hardcode_libdir_flag_spec='-L$libdir' 17657 ;; 17658 17659# This must be glibc/ELF. 17660linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17661 version_type=linux # correct to gnu/linux during the next big refactor 17662 need_lib_prefix=no 17663 need_version=no 17664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17665 soname_spec='$libname$release$shared_ext$major' 17666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17667 shlibpath_var=LD_LIBRARY_PATH 17668 shlibpath_overrides_runpath=no 17669 17670 # Some binutils ld are patched to set DT_RUNPATH 17671 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17672 $as_echo_n "(cached) " >&6 17673else 17674 lt_cv_shlibpath_overrides_runpath=no 17675 save_LDFLAGS=$LDFLAGS 17676 save_libdir=$libdir 17677 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17678 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17680/* end confdefs.h. */ 17681 17682int 17683main () 17684{ 17685 17686 ; 17687 return 0; 17688} 17689_ACEOF 17690if ac_fn_c_try_link "$LINENO"; then : 17691 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17692 lt_cv_shlibpath_overrides_runpath=yes 17693fi 17694fi 17695rm -f core conftest.err conftest.$ac_objext \ 17696 conftest$ac_exeext conftest.$ac_ext 17697 LDFLAGS=$save_LDFLAGS 17698 libdir=$save_libdir 17699 17700fi 17701 17702 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17703 17704 # This implies no fast_install, which is unacceptable. 17705 # Some rework will be needed to allow for fast_install 17706 # before this can be enabled. 17707 hardcode_into_libs=yes 17708 17709 # Add ABI-specific directories to the system library path. 17710 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 17711 17712 # Ideally, we could use ldconfig to report *all* directores which are 17713 # searched for libraries, however this is still not possible. Aside from not 17714 # being certain /sbin/ldconfig is available, command 17715 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17716 # even though it is searched at run-time. Try to do the best guess by 17717 # appending ld.so.conf contents (and includes) to the search path. 17718 if test -f /etc/ld.so.conf; then 17719 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' ' '` 17720 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 17721 fi 17722 17723 # We used to test for /lib/ld.so.1 and disable shared libraries on 17724 # powerpc, because MkLinux only supported shared libraries with the 17725 # GNU dynamic linker. Since this was broken with cross compilers, 17726 # most powerpc-linux boxes support dynamic linking these days and 17727 # people can always --disable-shared, the test was removed, and we 17728 # assume the GNU/Linux dynamic linker is in use. 17729 dynamic_linker='GNU/Linux ld.so' 17730 ;; 17731 17732netbsd*) 17733 version_type=sunos 17734 need_lib_prefix=no 17735 need_version=no 17736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17737 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17739 dynamic_linker='NetBSD (a.out) ld.so' 17740 else 17741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17742 soname_spec='$libname$release$shared_ext$major' 17743 dynamic_linker='NetBSD ld.elf_so' 17744 fi 17745 shlibpath_var=LD_LIBRARY_PATH 17746 shlibpath_overrides_runpath=yes 17747 hardcode_into_libs=yes 17748 ;; 17749 17750newsos6) 17751 version_type=linux # correct to gnu/linux during the next big refactor 17752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17753 shlibpath_var=LD_LIBRARY_PATH 17754 shlibpath_overrides_runpath=yes 17755 ;; 17756 17757*nto* | *qnx*) 17758 version_type=qnx 17759 need_lib_prefix=no 17760 need_version=no 17761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17762 soname_spec='$libname$release$shared_ext$major' 17763 shlibpath_var=LD_LIBRARY_PATH 17764 shlibpath_overrides_runpath=no 17765 hardcode_into_libs=yes 17766 dynamic_linker='ldqnx.so' 17767 ;; 17768 17769openbsd* | bitrig*) 17770 version_type=sunos 17771 sys_lib_dlsearch_path_spec=/usr/lib 17772 need_lib_prefix=no 17773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17774 need_version=no 17775 else 17776 need_version=yes 17777 fi 17778 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17780 shlibpath_var=LD_LIBRARY_PATH 17781 shlibpath_overrides_runpath=yes 17782 ;; 17783 17784os2*) 17785 libname_spec='$name' 17786 version_type=windows 17787 shrext_cmds=.dll 17788 need_version=no 17789 need_lib_prefix=no 17790 # OS/2 can only load a DLL with a base name of 8 characters or less. 17791 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17792 v=$($ECHO $release$versuffix | tr -d .-); 17793 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17794 $ECHO $n$v`$shared_ext' 17795 library_names_spec='${libname}_dll.$libext' 17796 dynamic_linker='OS/2 ld.exe' 17797 shlibpath_var=BEGINLIBPATH 17798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17800 postinstall_cmds='base_file=`basename \$file`~ 17801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17802 dldir=$destdir/`dirname \$dlpath`~ 17803 test -d \$dldir || mkdir -p \$dldir~ 17804 $install_prog $dir/$dlname \$dldir/$dlname~ 17805 chmod a+x \$dldir/$dlname~ 17806 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17807 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17808 fi' 17809 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17810 dlpath=$dir/\$dldll~ 17811 $RM \$dlpath' 17812 ;; 17813 17814osf3* | osf4* | osf5*) 17815 version_type=osf 17816 need_lib_prefix=no 17817 need_version=no 17818 soname_spec='$libname$release$shared_ext$major' 17819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17820 shlibpath_var=LD_LIBRARY_PATH 17821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17823 ;; 17824 17825rdos*) 17826 dynamic_linker=no 17827 ;; 17828 17829solaris*) 17830 version_type=linux # correct to gnu/linux during the next big refactor 17831 need_lib_prefix=no 17832 need_version=no 17833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17834 soname_spec='$libname$release$shared_ext$major' 17835 shlibpath_var=LD_LIBRARY_PATH 17836 shlibpath_overrides_runpath=yes 17837 hardcode_into_libs=yes 17838 # ldd complains unless libraries are executable 17839 postinstall_cmds='chmod +x $lib' 17840 ;; 17841 17842sunos4*) 17843 version_type=sunos 17844 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17846 shlibpath_var=LD_LIBRARY_PATH 17847 shlibpath_overrides_runpath=yes 17848 if test yes = "$with_gnu_ld"; then 17849 need_lib_prefix=no 17850 fi 17851 need_version=yes 17852 ;; 17853 17854sysv4 | sysv4.3*) 17855 version_type=linux # correct to gnu/linux during the next big refactor 17856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17857 soname_spec='$libname$release$shared_ext$major' 17858 shlibpath_var=LD_LIBRARY_PATH 17859 case $host_vendor in 17860 sni) 17861 shlibpath_overrides_runpath=no 17862 need_lib_prefix=no 17863 runpath_var=LD_RUN_PATH 17864 ;; 17865 siemens) 17866 need_lib_prefix=no 17867 ;; 17868 motorola) 17869 need_lib_prefix=no 17870 need_version=no 17871 shlibpath_overrides_runpath=no 17872 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17873 ;; 17874 esac 17875 ;; 17876 17877sysv4*MP*) 17878 if test -d /usr/nec; then 17879 version_type=linux # correct to gnu/linux during the next big refactor 17880 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17881 soname_spec='$libname$shared_ext.$major' 17882 shlibpath_var=LD_LIBRARY_PATH 17883 fi 17884 ;; 17885 17886sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17887 version_type=sco 17888 need_lib_prefix=no 17889 need_version=no 17890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17891 soname_spec='$libname$release$shared_ext$major' 17892 shlibpath_var=LD_LIBRARY_PATH 17893 shlibpath_overrides_runpath=yes 17894 hardcode_into_libs=yes 17895 if test yes = "$with_gnu_ld"; then 17896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17897 else 17898 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17899 case $host_os in 17900 sco3.2v5*) 17901 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17902 ;; 17903 esac 17904 fi 17905 sys_lib_dlsearch_path_spec='/usr/lib' 17906 ;; 17907 17908tpf*) 17909 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17910 version_type=linux # correct to gnu/linux during the next big refactor 17911 need_lib_prefix=no 17912 need_version=no 17913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17914 shlibpath_var=LD_LIBRARY_PATH 17915 shlibpath_overrides_runpath=no 17916 hardcode_into_libs=yes 17917 ;; 17918 17919uts4*) 17920 version_type=linux # correct to gnu/linux during the next big refactor 17921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17922 soname_spec='$libname$release$shared_ext$major' 17923 shlibpath_var=LD_LIBRARY_PATH 17924 ;; 17925 17926*) 17927 dynamic_linker=no 17928 ;; 17929esac 17930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17931$as_echo "$dynamic_linker" >&6; } 17932test no = "$dynamic_linker" && can_build_shared=no 17933 17934variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17935if test yes = "$GCC"; then 17936 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17937fi 17938 17939if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17940 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17941fi 17942 17943if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17944 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17945fi 17946 17947# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17948configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17949 17950# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17951func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17952 17953# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17954configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17955 17956 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18053$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18054hardcode_action= 18055if test -n "$hardcode_libdir_flag_spec" || 18056 test -n "$runpath_var" || 18057 test yes = "$hardcode_automatic"; then 18058 18059 # We can hardcode non-existent directories. 18060 if test no != "$hardcode_direct" && 18061 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18062 # have to relink, otherwise we might link with an installed library 18063 # when we should be linking with a yet-to-be-installed one 18064 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18065 test no != "$hardcode_minus_L"; then 18066 # Linking always hardcodes the temporary library directory. 18067 hardcode_action=relink 18068 else 18069 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18070 hardcode_action=immediate 18071 fi 18072else 18073 # We cannot hardcode anything, or else we can only hardcode existing 18074 # directories. 18075 hardcode_action=unsupported 18076fi 18077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18078$as_echo "$hardcode_action" >&6; } 18079 18080if test relink = "$hardcode_action" || 18081 test yes = "$inherit_rpath"; then 18082 # Fast installation is not supported 18083 enable_fast_install=no 18084elif test yes = "$shlibpath_overrides_runpath" || 18085 test no = "$enable_shared"; then 18086 # Fast installation is not necessary 18087 enable_fast_install=needless 18088fi 18089 18090 18091 18092 18093 18094 18095 if test yes != "$enable_dlopen"; then 18096 enable_dlopen=unknown 18097 enable_dlopen_self=unknown 18098 enable_dlopen_self_static=unknown 18099else 18100 lt_cv_dlopen=no 18101 lt_cv_dlopen_libs= 18102 18103 case $host_os in 18104 beos*) 18105 lt_cv_dlopen=load_add_on 18106 lt_cv_dlopen_libs= 18107 lt_cv_dlopen_self=yes 18108 ;; 18109 18110 mingw* | pw32* | cegcc*) 18111 lt_cv_dlopen=LoadLibrary 18112 lt_cv_dlopen_libs= 18113 ;; 18114 18115 cygwin*) 18116 lt_cv_dlopen=dlopen 18117 lt_cv_dlopen_libs= 18118 ;; 18119 18120 darwin*) 18121 # if libdl is installed we need to link against it 18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18123$as_echo_n "checking for dlopen in -ldl... " >&6; } 18124if ${ac_cv_lib_dl_dlopen+:} false; then : 18125 $as_echo_n "(cached) " >&6 18126else 18127 ac_check_lib_save_LIBS=$LIBS 18128LIBS="-ldl $LIBS" 18129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18130/* end confdefs.h. */ 18131 18132/* Override any GCC internal prototype to avoid an error. 18133 Use char because int might match the return type of a GCC 18134 builtin and then its argument prototype would still apply. */ 18135#ifdef __cplusplus 18136extern "C" 18137#endif 18138char dlopen (); 18139int 18140main () 18141{ 18142return dlopen (); 18143 ; 18144 return 0; 18145} 18146_ACEOF 18147if ac_fn_c_try_link "$LINENO"; then : 18148 ac_cv_lib_dl_dlopen=yes 18149else 18150 ac_cv_lib_dl_dlopen=no 18151fi 18152rm -f core conftest.err conftest.$ac_objext \ 18153 conftest$ac_exeext conftest.$ac_ext 18154LIBS=$ac_check_lib_save_LIBS 18155fi 18156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18157$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18158if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18159 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18160else 18161 18162 lt_cv_dlopen=dyld 18163 lt_cv_dlopen_libs= 18164 lt_cv_dlopen_self=yes 18165 18166fi 18167 18168 ;; 18169 18170 tpf*) 18171 # Don't try to run any link tests for TPF. We know it's impossible 18172 # because TPF is a cross-compiler, and we know how we open DSOs. 18173 lt_cv_dlopen=dlopen 18174 lt_cv_dlopen_libs= 18175 lt_cv_dlopen_self=no 18176 ;; 18177 18178 *) 18179 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18180if test "x$ac_cv_func_shl_load" = xyes; then : 18181 lt_cv_dlopen=shl_load 18182else 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18184$as_echo_n "checking for shl_load in -ldld... " >&6; } 18185if ${ac_cv_lib_dld_shl_load+:} false; then : 18186 $as_echo_n "(cached) " >&6 18187else 18188 ac_check_lib_save_LIBS=$LIBS 18189LIBS="-ldld $LIBS" 18190cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18191/* end confdefs.h. */ 18192 18193/* Override any GCC internal prototype to avoid an error. 18194 Use char because int might match the return type of a GCC 18195 builtin and then its argument prototype would still apply. */ 18196#ifdef __cplusplus 18197extern "C" 18198#endif 18199char shl_load (); 18200int 18201main () 18202{ 18203return shl_load (); 18204 ; 18205 return 0; 18206} 18207_ACEOF 18208if ac_fn_c_try_link "$LINENO"; then : 18209 ac_cv_lib_dld_shl_load=yes 18210else 18211 ac_cv_lib_dld_shl_load=no 18212fi 18213rm -f core conftest.err conftest.$ac_objext \ 18214 conftest$ac_exeext conftest.$ac_ext 18215LIBS=$ac_check_lib_save_LIBS 18216fi 18217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18218$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18219if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18220 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18221else 18222 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18223if test "x$ac_cv_func_dlopen" = xyes; then : 18224 lt_cv_dlopen=dlopen 18225else 18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18227$as_echo_n "checking for dlopen in -ldl... " >&6; } 18228if ${ac_cv_lib_dl_dlopen+:} false; then : 18229 $as_echo_n "(cached) " >&6 18230else 18231 ac_check_lib_save_LIBS=$LIBS 18232LIBS="-ldl $LIBS" 18233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18234/* end confdefs.h. */ 18235 18236/* Override any GCC internal prototype to avoid an error. 18237 Use char because int might match the return type of a GCC 18238 builtin and then its argument prototype would still apply. */ 18239#ifdef __cplusplus 18240extern "C" 18241#endif 18242char dlopen (); 18243int 18244main () 18245{ 18246return dlopen (); 18247 ; 18248 return 0; 18249} 18250_ACEOF 18251if ac_fn_c_try_link "$LINENO"; then : 18252 ac_cv_lib_dl_dlopen=yes 18253else 18254 ac_cv_lib_dl_dlopen=no 18255fi 18256rm -f core conftest.err conftest.$ac_objext \ 18257 conftest$ac_exeext conftest.$ac_ext 18258LIBS=$ac_check_lib_save_LIBS 18259fi 18260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18261$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18262if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18263 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18264else 18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18266$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18267if ${ac_cv_lib_svld_dlopen+:} false; then : 18268 $as_echo_n "(cached) " >&6 18269else 18270 ac_check_lib_save_LIBS=$LIBS 18271LIBS="-lsvld $LIBS" 18272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18273/* end confdefs.h. */ 18274 18275/* Override any GCC internal prototype to avoid an error. 18276 Use char because int might match the return type of a GCC 18277 builtin and then its argument prototype would still apply. */ 18278#ifdef __cplusplus 18279extern "C" 18280#endif 18281char dlopen (); 18282int 18283main () 18284{ 18285return dlopen (); 18286 ; 18287 return 0; 18288} 18289_ACEOF 18290if ac_fn_c_try_link "$LINENO"; then : 18291 ac_cv_lib_svld_dlopen=yes 18292else 18293 ac_cv_lib_svld_dlopen=no 18294fi 18295rm -f core conftest.err conftest.$ac_objext \ 18296 conftest$ac_exeext conftest.$ac_ext 18297LIBS=$ac_check_lib_save_LIBS 18298fi 18299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18300$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18301if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18302 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18303else 18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18305$as_echo_n "checking for dld_link in -ldld... " >&6; } 18306if ${ac_cv_lib_dld_dld_link+:} false; then : 18307 $as_echo_n "(cached) " >&6 18308else 18309 ac_check_lib_save_LIBS=$LIBS 18310LIBS="-ldld $LIBS" 18311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18312/* end confdefs.h. */ 18313 18314/* Override any GCC internal prototype to avoid an error. 18315 Use char because int might match the return type of a GCC 18316 builtin and then its argument prototype would still apply. */ 18317#ifdef __cplusplus 18318extern "C" 18319#endif 18320char dld_link (); 18321int 18322main () 18323{ 18324return dld_link (); 18325 ; 18326 return 0; 18327} 18328_ACEOF 18329if ac_fn_c_try_link "$LINENO"; then : 18330 ac_cv_lib_dld_dld_link=yes 18331else 18332 ac_cv_lib_dld_dld_link=no 18333fi 18334rm -f core conftest.err conftest.$ac_objext \ 18335 conftest$ac_exeext conftest.$ac_ext 18336LIBS=$ac_check_lib_save_LIBS 18337fi 18338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18339$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18340if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18341 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18342fi 18343 18344 18345fi 18346 18347 18348fi 18349 18350 18351fi 18352 18353 18354fi 18355 18356 18357fi 18358 18359 ;; 18360 esac 18361 18362 if test no = "$lt_cv_dlopen"; then 18363 enable_dlopen=no 18364 else 18365 enable_dlopen=yes 18366 fi 18367 18368 case $lt_cv_dlopen in 18369 dlopen) 18370 save_CPPFLAGS=$CPPFLAGS 18371 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18372 18373 save_LDFLAGS=$LDFLAGS 18374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18375 18376 save_LIBS=$LIBS 18377 LIBS="$lt_cv_dlopen_libs $LIBS" 18378 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18380$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18381if ${lt_cv_dlopen_self+:} false; then : 18382 $as_echo_n "(cached) " >&6 18383else 18384 if test yes = "$cross_compiling"; then : 18385 lt_cv_dlopen_self=cross 18386else 18387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18388 lt_status=$lt_dlunknown 18389 cat > conftest.$ac_ext <<_LT_EOF 18390#line $LINENO "configure" 18391#include "confdefs.h" 18392 18393#if HAVE_DLFCN_H 18394#include <dlfcn.h> 18395#endif 18396 18397#include <stdio.h> 18398 18399#ifdef RTLD_GLOBAL 18400# define LT_DLGLOBAL RTLD_GLOBAL 18401#else 18402# ifdef DL_GLOBAL 18403# define LT_DLGLOBAL DL_GLOBAL 18404# else 18405# define LT_DLGLOBAL 0 18406# endif 18407#endif 18408 18409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18410 find out it does not work in some platform. */ 18411#ifndef LT_DLLAZY_OR_NOW 18412# ifdef RTLD_LAZY 18413# define LT_DLLAZY_OR_NOW RTLD_LAZY 18414# else 18415# ifdef DL_LAZY 18416# define LT_DLLAZY_OR_NOW DL_LAZY 18417# else 18418# ifdef RTLD_NOW 18419# define LT_DLLAZY_OR_NOW RTLD_NOW 18420# else 18421# ifdef DL_NOW 18422# define LT_DLLAZY_OR_NOW DL_NOW 18423# else 18424# define LT_DLLAZY_OR_NOW 0 18425# endif 18426# endif 18427# endif 18428# endif 18429#endif 18430 18431/* When -fvisibility=hidden is used, assume the code has been annotated 18432 correspondingly for the symbols needed. */ 18433#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18434int fnord () __attribute__((visibility("default"))); 18435#endif 18436 18437int fnord () { return 42; } 18438int main () 18439{ 18440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18441 int status = $lt_dlunknown; 18442 18443 if (self) 18444 { 18445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18446 else 18447 { 18448 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18449 else puts (dlerror ()); 18450 } 18451 /* dlclose (self); */ 18452 } 18453 else 18454 puts (dlerror ()); 18455 18456 return status; 18457} 18458_LT_EOF 18459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18460 (eval $ac_link) 2>&5 18461 ac_status=$? 18462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18463 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18464 (./conftest; exit; ) >&5 2>/dev/null 18465 lt_status=$? 18466 case x$lt_status in 18467 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18468 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18469 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18470 esac 18471 else : 18472 # compilation failed 18473 lt_cv_dlopen_self=no 18474 fi 18475fi 18476rm -fr conftest* 18477 18478 18479fi 18480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18481$as_echo "$lt_cv_dlopen_self" >&6; } 18482 18483 if test yes = "$lt_cv_dlopen_self"; then 18484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18486$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18487if ${lt_cv_dlopen_self_static+:} false; then : 18488 $as_echo_n "(cached) " >&6 18489else 18490 if test yes = "$cross_compiling"; then : 18491 lt_cv_dlopen_self_static=cross 18492else 18493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18494 lt_status=$lt_dlunknown 18495 cat > conftest.$ac_ext <<_LT_EOF 18496#line $LINENO "configure" 18497#include "confdefs.h" 18498 18499#if HAVE_DLFCN_H 18500#include <dlfcn.h> 18501#endif 18502 18503#include <stdio.h> 18504 18505#ifdef RTLD_GLOBAL 18506# define LT_DLGLOBAL RTLD_GLOBAL 18507#else 18508# ifdef DL_GLOBAL 18509# define LT_DLGLOBAL DL_GLOBAL 18510# else 18511# define LT_DLGLOBAL 0 18512# endif 18513#endif 18514 18515/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18516 find out it does not work in some platform. */ 18517#ifndef LT_DLLAZY_OR_NOW 18518# ifdef RTLD_LAZY 18519# define LT_DLLAZY_OR_NOW RTLD_LAZY 18520# else 18521# ifdef DL_LAZY 18522# define LT_DLLAZY_OR_NOW DL_LAZY 18523# else 18524# ifdef RTLD_NOW 18525# define LT_DLLAZY_OR_NOW RTLD_NOW 18526# else 18527# ifdef DL_NOW 18528# define LT_DLLAZY_OR_NOW DL_NOW 18529# else 18530# define LT_DLLAZY_OR_NOW 0 18531# endif 18532# endif 18533# endif 18534# endif 18535#endif 18536 18537/* When -fvisibility=hidden is used, assume the code has been annotated 18538 correspondingly for the symbols needed. */ 18539#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18540int fnord () __attribute__((visibility("default"))); 18541#endif 18542 18543int fnord () { return 42; } 18544int main () 18545{ 18546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18547 int status = $lt_dlunknown; 18548 18549 if (self) 18550 { 18551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18552 else 18553 { 18554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18555 else puts (dlerror ()); 18556 } 18557 /* dlclose (self); */ 18558 } 18559 else 18560 puts (dlerror ()); 18561 18562 return status; 18563} 18564_LT_EOF 18565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18566 (eval $ac_link) 2>&5 18567 ac_status=$? 18568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18569 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18570 (./conftest; exit; ) >&5 2>/dev/null 18571 lt_status=$? 18572 case x$lt_status in 18573 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18574 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18575 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18576 esac 18577 else : 18578 # compilation failed 18579 lt_cv_dlopen_self_static=no 18580 fi 18581fi 18582rm -fr conftest* 18583 18584 18585fi 18586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18587$as_echo "$lt_cv_dlopen_self_static" >&6; } 18588 fi 18589 18590 CPPFLAGS=$save_CPPFLAGS 18591 LDFLAGS=$save_LDFLAGS 18592 LIBS=$save_LIBS 18593 ;; 18594 esac 18595 18596 case $lt_cv_dlopen_self in 18597 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18598 *) enable_dlopen_self=unknown ;; 18599 esac 18600 18601 case $lt_cv_dlopen_self_static in 18602 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18603 *) enable_dlopen_self_static=unknown ;; 18604 esac 18605fi 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623striplib= 18624old_striplib= 18625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18626$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18627if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18628 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18629 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18631$as_echo "yes" >&6; } 18632else 18633# FIXME - insert some real tests, host_os isn't really good enough 18634 case $host_os in 18635 darwin*) 18636 if test -n "$STRIP"; then 18637 striplib="$STRIP -x" 18638 old_striplib="$STRIP -S" 18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18640$as_echo "yes" >&6; } 18641 else 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18643$as_echo "no" >&6; } 18644 fi 18645 ;; 18646 *) 18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18648$as_echo "no" >&6; } 18649 ;; 18650 esac 18651fi 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 # Report what library types will actually be built 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18666$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18668$as_echo "$can_build_shared" >&6; } 18669 18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18671$as_echo_n "checking whether to build shared libraries... " >&6; } 18672 test no = "$can_build_shared" && enable_shared=no 18673 18674 # On AIX, shared libraries and static libraries use the same namespace, and 18675 # are all built from PIC. 18676 case $host_os in 18677 aix3*) 18678 test yes = "$enable_shared" && enable_static=no 18679 if test -n "$RANLIB"; then 18680 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18681 postinstall_cmds='$RANLIB $lib' 18682 fi 18683 ;; 18684 18685 aix[4-9]*) 18686 if test ia64 != "$host_cpu"; then 18687 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18688 yes,aix,yes) ;; # shared object as lib.so file only 18689 yes,svr4,*) ;; # shared object as lib.so archive member only 18690 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18691 esac 18692 fi 18693 ;; 18694 esac 18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18696$as_echo "$enable_shared" >&6; } 18697 18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18699$as_echo_n "checking whether to build static libraries... " >&6; } 18700 # Make sure either enable_shared or enable_static is yes. 18701 test yes = "$enable_shared" || enable_static=yes 18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18703$as_echo "$enable_static" >&6; } 18704 18705 18706 18707 18708fi 18709ac_ext=c 18710ac_cpp='$CPP $CPPFLAGS' 18711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18713ac_compiler_gnu=$ac_cv_c_compiler_gnu 18714 18715CC=$lt_save_CC 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 ac_config_commands="$ac_config_commands libtool" 18732 18733 18734 18735 18736# Only expand once: 18737 18738 18739 18740# Checks for programs. 18741 18742 18743if test "x$GCC" = "xyes"; then 18744 CPPFLAGS="$CPPFLAGS -Wall" 18745fi 18746 18747 18748 18749# Define a configure option for an alternate module directory 18750 18751# Check whether --with-xorg-module-dir was given. 18752if test "${with_xorg_module_dir+set}" = set; then : 18753 withval=$with_xorg_module_dir; moduledir="$withval" 18754else 18755 moduledir="$libdir/xorg/modules" 18756fi 18757 18758 18759# Store the list of server defined optional extensions in REQUIRED_MODULES 18760 18761 18762 SAVE_CFLAGS="$CFLAGS" 18763 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18765/* end confdefs.h. */ 18766 18767#include "xorg-server.h" 18768#if !defined RANDR 18769#error RANDR not defined 18770#endif 18771 18772int 18773main () 18774{ 18775 18776 ; 18777 return 0; 18778} 18779_ACEOF 18780if ac_fn_c_try_compile "$LINENO"; then : 18781 _EXT_CHECK=yes 18782else 18783 _EXT_CHECK=no 18784fi 18785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18786 CFLAGS="$SAVE_CFLAGS" 18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18788$as_echo_n "checking if RANDR is defined... " >&6; } 18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18790$as_echo "$_EXT_CHECK" >&6; } 18791 if test "$_EXT_CHECK" != no; then 18792 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18793 fi 18794 18795 18796 18797 SAVE_CFLAGS="$CFLAGS" 18798 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18800/* end confdefs.h. */ 18801 18802#include "xorg-server.h" 18803#if !defined RENDER 18804#error RENDER not defined 18805#endif 18806 18807int 18808main () 18809{ 18810 18811 ; 18812 return 0; 18813} 18814_ACEOF 18815if ac_fn_c_try_compile "$LINENO"; then : 18816 _EXT_CHECK=yes 18817else 18818 _EXT_CHECK=no 18819fi 18820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18821 CFLAGS="$SAVE_CFLAGS" 18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18823$as_echo_n "checking if RENDER is defined... " >&6; } 18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18825$as_echo "$_EXT_CHECK" >&6; } 18826 if test "$_EXT_CHECK" != no; then 18827 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18828 fi 18829 18830 18831 18832 SAVE_CFLAGS="$CFLAGS" 18833 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18835/* end confdefs.h. */ 18836 18837#include "xorg-server.h" 18838#if !defined XV 18839#error XV not defined 18840#endif 18841 18842int 18843main () 18844{ 18845 18846 ; 18847 return 0; 18848} 18849_ACEOF 18850if ac_fn_c_try_compile "$LINENO"; then : 18851 _EXT_CHECK=yes 18852else 18853 _EXT_CHECK=no 18854fi 18855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18856 CFLAGS="$SAVE_CFLAGS" 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18858$as_echo_n "checking if XV is defined... " >&6; } 18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18860$as_echo "$_EXT_CHECK" >&6; } 18861 if test "$_EXT_CHECK" != no; then 18862 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18863 fi 18864 18865 18866 18867 SAVE_CFLAGS="$CFLAGS" 18868 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18870/* end confdefs.h. */ 18871 18872#include "xorg-server.h" 18873#if !defined DPMSExtension 18874#error DPMSExtension not defined 18875#endif 18876 18877int 18878main () 18879{ 18880 18881 ; 18882 return 0; 18883} 18884_ACEOF 18885if ac_fn_c_try_compile "$LINENO"; then : 18886 _EXT_CHECK=yes 18887else 18888 _EXT_CHECK=no 18889fi 18890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18891 CFLAGS="$SAVE_CFLAGS" 18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18893$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18895$as_echo "$_EXT_CHECK" >&6; } 18896 if test "$_EXT_CHECK" != no; then 18897 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18898 fi 18899 18900 18901# Checks for libraries. 18902 18903pkg_failed=no 18904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 18905$as_echo_n "checking for LIBDRM... " >&6; } 18906 18907if test -n "$LIBDRM_CFLAGS"; then 18908 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 18909 elif test -n "$PKG_CONFIG"; then 18910 if test -n "$PKG_CONFIG" && \ 18911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5 18912 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5 18913 ac_status=$? 18914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18915 test $ac_status = 0; }; then 18916 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.89" 2>/dev/null` 18917 test "x$?" != "x0" && pkg_failed=yes 18918else 18919 pkg_failed=yes 18920fi 18921 else 18922 pkg_failed=untried 18923fi 18924if test -n "$LIBDRM_LIBS"; then 18925 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 18926 elif test -n "$PKG_CONFIG"; then 18927 if test -n "$PKG_CONFIG" && \ 18928 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5 18929 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5 18930 ac_status=$? 18931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18932 test $ac_status = 0; }; then 18933 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.89" 2>/dev/null` 18934 test "x$?" != "x0" && pkg_failed=yes 18935else 18936 pkg_failed=yes 18937fi 18938 else 18939 pkg_failed=untried 18940fi 18941 18942 18943 18944if test $pkg_failed = yes; then 18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18946$as_echo "no" >&6; } 18947 18948if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18949 _pkg_short_errors_supported=yes 18950else 18951 _pkg_short_errors_supported=no 18952fi 18953 if test $_pkg_short_errors_supported = yes; then 18954 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1` 18955 else 18956 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1` 18957 fi 18958 # Put the nasty error message in config.log where it belongs 18959 echo "$LIBDRM_PKG_ERRORS" >&5 18960 18961 as_fn_error $? "Package requirements (libdrm >= 2.4.89) were not met: 18962 18963$LIBDRM_PKG_ERRORS 18964 18965Consider adjusting the PKG_CONFIG_PATH environment variable if you 18966installed software in a non-standard prefix. 18967 18968Alternatively, you may set the environment variables LIBDRM_CFLAGS 18969and LIBDRM_LIBS to avoid the need to call pkg-config. 18970See the pkg-config man page for more details." "$LINENO" 5 18971elif test $pkg_failed = untried; then 18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18973$as_echo "no" >&6; } 18974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18976as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18977is in your PATH or set the PKG_CONFIG environment variable to the full 18978path to pkg-config. 18979 18980Alternatively, you may set the environment variables LIBDRM_CFLAGS 18981and LIBDRM_LIBS to avoid the need to call pkg-config. 18982See the pkg-config man page for more details. 18983 18984To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18985See \`config.log' for more details" "$LINENO" 5; } 18986else 18987 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 18988 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18990$as_echo "yes" >&6; } 18991 18992fi 18993 18994pkg_failed=no 18995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_AMDGPU" >&5 18996$as_echo_n "checking for LIBDRM_AMDGPU... " >&6; } 18997 18998if test -n "$LIBDRM_AMDGPU_CFLAGS"; then 18999 pkg_cv_LIBDRM_AMDGPU_CFLAGS="$LIBDRM_AMDGPU_CFLAGS" 19000 elif test -n "$PKG_CONFIG"; then 19001 if test -n "$PKG_CONFIG" && \ 19002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu >= 2.4.76\""; } >&5 19003 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.76") 2>&5 19004 ac_status=$? 19005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19006 test $ac_status = 0; }; then 19007 pkg_cv_LIBDRM_AMDGPU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_amdgpu >= 2.4.76" 2>/dev/null` 19008 test "x$?" != "x0" && pkg_failed=yes 19009else 19010 pkg_failed=yes 19011fi 19012 else 19013 pkg_failed=untried 19014fi 19015if test -n "$LIBDRM_AMDGPU_LIBS"; then 19016 pkg_cv_LIBDRM_AMDGPU_LIBS="$LIBDRM_AMDGPU_LIBS" 19017 elif test -n "$PKG_CONFIG"; then 19018 if test -n "$PKG_CONFIG" && \ 19019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu >= 2.4.76\""; } >&5 19020 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.76") 2>&5 19021 ac_status=$? 19022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19023 test $ac_status = 0; }; then 19024 pkg_cv_LIBDRM_AMDGPU_LIBS=`$PKG_CONFIG --libs "libdrm_amdgpu >= 2.4.76" 2>/dev/null` 19025 test "x$?" != "x0" && pkg_failed=yes 19026else 19027 pkg_failed=yes 19028fi 19029 else 19030 pkg_failed=untried 19031fi 19032 19033 19034 19035if test $pkg_failed = yes; then 19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19037$as_echo "no" >&6; } 19038 19039if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19040 _pkg_short_errors_supported=yes 19041else 19042 _pkg_short_errors_supported=no 19043fi 19044 if test $_pkg_short_errors_supported = yes; then 19045 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.76" 2>&1` 19046 else 19047 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.76" 2>&1` 19048 fi 19049 # Put the nasty error message in config.log where it belongs 19050 echo "$LIBDRM_AMDGPU_PKG_ERRORS" >&5 19051 19052 as_fn_error $? "Package requirements (libdrm_amdgpu >= 2.4.76) were not met: 19053 19054$LIBDRM_AMDGPU_PKG_ERRORS 19055 19056Consider adjusting the PKG_CONFIG_PATH environment variable if you 19057installed software in a non-standard prefix. 19058 19059Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS 19060and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config. 19061See the pkg-config man page for more details." "$LINENO" 5 19062elif test $pkg_failed = untried; then 19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19064$as_echo "no" >&6; } 19065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19067as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19068is in your PATH or set the PKG_CONFIG environment variable to the full 19069path to pkg-config. 19070 19071Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS 19072and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config. 19073See the pkg-config man page for more details. 19074 19075To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19076See \`config.log' for more details" "$LINENO" 5; } 19077else 19078 LIBDRM_AMDGPU_CFLAGS=$pkg_cv_LIBDRM_AMDGPU_CFLAGS 19079 LIBDRM_AMDGPU_LIBS=$pkg_cv_LIBDRM_AMDGPU_LIBS 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19081$as_echo "yes" >&6; } 19082 19083fi 19084 19085pkg_failed=no 19086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 19087$as_echo_n "checking for GBM... " >&6; } 19088 19089if test -n "$GBM_CFLAGS"; then 19090 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 19091 elif test -n "$PKG_CONFIG"; then 19092 if test -n "$PKG_CONFIG" && \ 19093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 19094 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 19095 ac_status=$? 19096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19097 test $ac_status = 0; }; then 19098 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm" 2>/dev/null` 19099 test "x$?" != "x0" && pkg_failed=yes 19100else 19101 pkg_failed=yes 19102fi 19103 else 19104 pkg_failed=untried 19105fi 19106if test -n "$GBM_LIBS"; then 19107 pkg_cv_GBM_LIBS="$GBM_LIBS" 19108 elif test -n "$PKG_CONFIG"; then 19109 if test -n "$PKG_CONFIG" && \ 19110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 19111 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 19112 ac_status=$? 19113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19114 test $ac_status = 0; }; then 19115 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm" 2>/dev/null` 19116 test "x$?" != "x0" && pkg_failed=yes 19117else 19118 pkg_failed=yes 19119fi 19120 else 19121 pkg_failed=untried 19122fi 19123 19124 19125 19126if test $pkg_failed = yes; then 19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19128$as_echo "no" >&6; } 19129 19130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19131 _pkg_short_errors_supported=yes 19132else 19133 _pkg_short_errors_supported=no 19134fi 19135 if test $_pkg_short_errors_supported = yes; then 19136 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm" 2>&1` 19137 else 19138 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm" 2>&1` 19139 fi 19140 # Put the nasty error message in config.log where it belongs 19141 echo "$GBM_PKG_ERRORS" >&5 19142 19143 as_fn_error $? "Package requirements (gbm) were not met: 19144 19145$GBM_PKG_ERRORS 19146 19147Consider adjusting the PKG_CONFIG_PATH environment variable if you 19148installed software in a non-standard prefix. 19149 19150Alternatively, you may set the environment variables GBM_CFLAGS 19151and GBM_LIBS to avoid the need to call pkg-config. 19152See the pkg-config man page for more details." "$LINENO" 5 19153elif test $pkg_failed = untried; then 19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19155$as_echo "no" >&6; } 19156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19158as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19159is in your PATH or set the PKG_CONFIG environment variable to the full 19160path to pkg-config. 19161 19162Alternatively, you may set the environment variables GBM_CFLAGS 19163and GBM_LIBS to avoid the need to call pkg-config. 19164See the pkg-config man page for more details. 19165 19166To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19167See \`config.log' for more details" "$LINENO" 5; } 19168else 19169 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 19170 GBM_LIBS=$pkg_cv_GBM_LIBS 19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19172$as_echo "yes" >&6; } 19173 19174fi 19175 19176# Obtain compiler/linker options for the driver dependencies 19177 19178pkg_failed=no 19179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19180$as_echo_n "checking for XORG... " >&6; } 19181 19182if test -n "$XORG_CFLAGS"; then 19183 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19184 elif test -n "$PKG_CONFIG"; then 19185 if test -n "$PKG_CONFIG" && \ 19186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19187 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19188 ac_status=$? 19189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19190 test $ac_status = 0; }; then 19191 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19192 test "x$?" != "x0" && pkg_failed=yes 19193else 19194 pkg_failed=yes 19195fi 19196 else 19197 pkg_failed=untried 19198fi 19199if test -n "$XORG_LIBS"; then 19200 pkg_cv_XORG_LIBS="$XORG_LIBS" 19201 elif test -n "$PKG_CONFIG"; then 19202 if test -n "$PKG_CONFIG" && \ 19203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19204 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19205 ac_status=$? 19206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19207 test $ac_status = 0; }; then 19208 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19209 test "x$?" != "x0" && pkg_failed=yes 19210else 19211 pkg_failed=yes 19212fi 19213 else 19214 pkg_failed=untried 19215fi 19216 19217 19218 19219if test $pkg_failed = yes; then 19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19221$as_echo "no" >&6; } 19222 19223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19224 _pkg_short_errors_supported=yes 19225else 19226 _pkg_short_errors_supported=no 19227fi 19228 if test $_pkg_short_errors_supported = yes; then 19229 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19230 else 19231 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19232 fi 19233 # Put the nasty error message in config.log where it belongs 19234 echo "$XORG_PKG_ERRORS" >&5 19235 19236 as_fn_error $? "Package requirements (xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met: 19237 19238$XORG_PKG_ERRORS 19239 19240Consider adjusting the PKG_CONFIG_PATH environment variable if you 19241installed software in a non-standard prefix. 19242 19243Alternatively, you may set the environment variables XORG_CFLAGS 19244and XORG_LIBS to avoid the need to call pkg-config. 19245See the pkg-config man page for more details." "$LINENO" 5 19246elif test $pkg_failed = untried; then 19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19248$as_echo "no" >&6; } 19249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19251as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19252is in your PATH or set the PKG_CONFIG environment variable to the full 19253path to pkg-config. 19254 19255Alternatively, you may set the environment variables XORG_CFLAGS 19256and XORG_LIBS to avoid the need to call pkg-config. 19257See the pkg-config man page for more details. 19258 19259To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19260See \`config.log' for more details" "$LINENO" 5; } 19261else 19262 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19263 XORG_LIBS=$pkg_cv_XORG_LIBS 19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19265$as_echo "yes" >&6; } 19266 19267fi 19268 19269pkg_failed=no 19270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19271$as_echo_n "checking for XEXT... " >&6; } 19272 19273if test -n "$XEXT_CFLAGS"; then 19274 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19275 elif test -n "$PKG_CONFIG"; then 19276 if test -n "$PKG_CONFIG" && \ 19277 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19278 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19279 ac_status=$? 19280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19281 test $ac_status = 0; }; then 19282 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19283 test "x$?" != "x0" && pkg_failed=yes 19284else 19285 pkg_failed=yes 19286fi 19287 else 19288 pkg_failed=untried 19289fi 19290if test -n "$XEXT_LIBS"; then 19291 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19292 elif test -n "$PKG_CONFIG"; then 19293 if test -n "$PKG_CONFIG" && \ 19294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19295 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19296 ac_status=$? 19297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19298 test $ac_status = 0; }; then 19299 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19300 test "x$?" != "x0" && pkg_failed=yes 19301else 19302 pkg_failed=yes 19303fi 19304 else 19305 pkg_failed=untried 19306fi 19307 19308 19309 19310if test $pkg_failed = yes; then 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19312$as_echo "no" >&6; } 19313 19314if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19315 _pkg_short_errors_supported=yes 19316else 19317 _pkg_short_errors_supported=no 19318fi 19319 if test $_pkg_short_errors_supported = yes; then 19320 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19321 else 19322 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19323 fi 19324 # Put the nasty error message in config.log where it belongs 19325 echo "$XEXT_PKG_ERRORS" >&5 19326 19327 HAVE_XEXTPROTO_71="no" 19328elif test $pkg_failed = untried; then 19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19330$as_echo "no" >&6; } 19331 HAVE_XEXTPROTO_71="no" 19332else 19333 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19334 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19336$as_echo "yes" >&6; } 19337 HAVE_XEXTPROTO_71="yes"; 19338$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19339 19340fi 19341 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19342 HAVE_XEXTPROTO_71_TRUE= 19343 HAVE_XEXTPROTO_71_FALSE='#' 19344else 19345 HAVE_XEXTPROTO_71_TRUE='#' 19346 HAVE_XEXTPROTO_71_FALSE= 19347fi 19348 19349 19350# Section "OutputClass" is only supported as of xserver 1.16 19351if test -n "$PKG_CONFIG" && \ 19352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5 19353 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5 19354 ac_status=$? 19355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19356 test $ac_status = 0; }; then 19357 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server` 19358else 19359 sysconfigdir="" 19360fi 19361 if test "x$sysconfigdir" != "x"; then 19362 HAS_XORG_CONF_DIR_TRUE= 19363 HAS_XORG_CONF_DIR_FALSE='#' 19364else 19365 HAS_XORG_CONF_DIR_TRUE='#' 19366 HAS_XORG_CONF_DIR_FALSE= 19367fi 19368 19369 19370# Define a configure option for an alternate X Server configuration directory 19371 19372# Check whether --with-xorg-conf-dir was given. 19373if test "${with_xorg_conf_dir+set}" = set; then : 19374 withval=$with_xorg_conf_dir; configdir="$withval" 19375else 19376 configdir='${prefix}/share/X11/xorg.conf.d' 19377fi 19378 19379 19380 19381# Check whether --enable-udev was given. 19382if test "${enable_udev+set}" = set; then : 19383 enableval=$enable_udev; enable_udev="$enableval" 19384else 19385 enable_udev=auto 19386fi 19387 19388if test "x$enable_udev" != "xno"; then 19389 19390pkg_failed=no 19391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 19392$as_echo_n "checking for LIBUDEV... " >&6; } 19393 19394if test -n "$LIBUDEV_CFLAGS"; then 19395 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 19396 elif test -n "$PKG_CONFIG"; then 19397 if test -n "$PKG_CONFIG" && \ 19398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19399 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19400 ac_status=$? 19401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19402 test $ac_status = 0; }; then 19403 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 19404 test "x$?" != "x0" && pkg_failed=yes 19405else 19406 pkg_failed=yes 19407fi 19408 else 19409 pkg_failed=untried 19410fi 19411if test -n "$LIBUDEV_LIBS"; then 19412 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 19413 elif test -n "$PKG_CONFIG"; then 19414 if test -n "$PKG_CONFIG" && \ 19415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19416 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19417 ac_status=$? 19418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19419 test $ac_status = 0; }; then 19420 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 19421 test "x$?" != "x0" && pkg_failed=yes 19422else 19423 pkg_failed=yes 19424fi 19425 else 19426 pkg_failed=untried 19427fi 19428 19429 19430 19431if test $pkg_failed = yes; then 19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19433$as_echo "no" >&6; } 19434 19435if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19436 _pkg_short_errors_supported=yes 19437else 19438 _pkg_short_errors_supported=no 19439fi 19440 if test $_pkg_short_errors_supported = yes; then 19441 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 19442 else 19443 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 19444 fi 19445 # Put the nasty error message in config.log where it belongs 19446 echo "$LIBUDEV_PKG_ERRORS" >&5 19447 19448 LIBUDEV=no 19449elif test $pkg_failed = untried; then 19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19451$as_echo "no" >&6; } 19452 LIBUDEV=no 19453else 19454 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 19455 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19457$as_echo "yes" >&6; } 19458 LIBUDEV=yes 19459fi 19460 if test "x$LIBUDEV" = xyes; then 19461 19462$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 19463 19464 elif test "x$enable_udev" != "xauto"; then 19465 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5 19466 fi 19467fi 19468 if test x$LIBUDEV = xyes; then 19469 LIBUDEV_TRUE= 19470 LIBUDEV_FALSE='#' 19471else 19472 LIBUDEV_TRUE='#' 19473 LIBUDEV_FALSE= 19474fi 19475 19476 19477SAVE_CPPFLAGS="$CPPFLAGS" 19478CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19479 19480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5 19481$as_echo_n "checking whether to include GLAMOR support... " >&6; } 19482# Check whether --enable-glamor was given. 19483if test "${enable_glamor+set}" = set; then : 19484 enableval=$enable_glamor; GLAMOR="$enableval" 19485else 19486 GLAMOR=yes 19487fi 19488 19489 19490if test "x$GLAMOR" != "xno"; then 19491 for ac_header in glamor.h 19492do : 19493 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\" 19494" 19495if test "x$ac_cv_header_glamor_h" = xyes; then : 19496 cat >>confdefs.h <<_ACEOF 19497#define HAVE_GLAMOR_H 1 19498_ACEOF 19499 GLAMOR_H="yes" 19500else 19501 GLAMOR_H="no" 19502fi 19503 19504done 19505 19506 19507 if test "x$GLAMOR_H" = xyes; then 19508 ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\" 19509 #include \"glamor.h\" 19510" 19511if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then : 19512 GLAMOR_XSERVER="yes" 19513else 19514 GLAMOR_XSERVER="no" 19515fi 19516 19517 19518 ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\" 19519 #include \"glamor.h\" 19520" 19521if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then : 19522 19523$as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h 19524 19525fi 19526 19527 19528 ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\" 19529 #include \"glamor.h\" 19530" 19531if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then : 19532 19533$as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h 19534 19535fi 19536 19537 19538 ac_fn_c_check_decl "$LINENO" "glamor_finish" "ac_cv_have_decl_glamor_finish" "#include \"xorg-server.h\" 19539 #include \"glamor.h\" 19540" 19541if test "x$ac_cv_have_decl_glamor_finish" = xyes; then : 19542 19543$as_echo "#define HAVE_GLAMOR_FINISH 1" >>confdefs.h 19544 19545else 19546 19547pkg_failed=no 19548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGL" >&5 19549$as_echo_n "checking for LIBGL... " >&6; } 19550 19551if test -n "$LIBGL_CFLAGS"; then 19552 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS" 19553 elif test -n "$PKG_CONFIG"; then 19554 if test -n "$PKG_CONFIG" && \ 19555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 19556 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 19557 ac_status=$? 19558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19559 test $ac_status = 0; }; then 19560 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null` 19561 test "x$?" != "x0" && pkg_failed=yes 19562else 19563 pkg_failed=yes 19564fi 19565 else 19566 pkg_failed=untried 19567fi 19568if test -n "$LIBGL_LIBS"; then 19569 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS" 19570 elif test -n "$PKG_CONFIG"; then 19571 if test -n "$PKG_CONFIG" && \ 19572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 19573 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 19574 ac_status=$? 19575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19576 test $ac_status = 0; }; then 19577 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null` 19578 test "x$?" != "x0" && pkg_failed=yes 19579else 19580 pkg_failed=yes 19581fi 19582 else 19583 pkg_failed=untried 19584fi 19585 19586 19587 19588if test $pkg_failed = yes; then 19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19590$as_echo "no" >&6; } 19591 19592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19593 _pkg_short_errors_supported=yes 19594else 19595 _pkg_short_errors_supported=no 19596fi 19597 if test $_pkg_short_errors_supported = yes; then 19598 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` 19599 else 19600 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` 19601 fi 19602 # Put the nasty error message in config.log where it belongs 19603 echo "$LIBGL_PKG_ERRORS" >&5 19604 19605 as_fn_error $? "Package requirements (gl) were not met: 19606 19607$LIBGL_PKG_ERRORS 19608 19609Consider adjusting the PKG_CONFIG_PATH environment variable if you 19610installed software in a non-standard prefix. 19611 19612Alternatively, you may set the environment variables LIBGL_CFLAGS 19613and LIBGL_LIBS to avoid the need to call pkg-config. 19614See the pkg-config man page for more details." "$LINENO" 5 19615elif test $pkg_failed = untried; then 19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19617$as_echo "no" >&6; } 19618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19620as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19621is in your PATH or set the PKG_CONFIG environment variable to the full 19622path to pkg-config. 19623 19624Alternatively, you may set the environment variables LIBGL_CFLAGS 19625and LIBGL_LIBS to avoid the need to call pkg-config. 19626See the pkg-config man page for more details. 19627 19628To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19629See \`config.log' for more details" "$LINENO" 5; } 19630else 19631 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS 19632 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS 19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19634$as_echo "yes" >&6; } 19635 19636fi 19637fi 19638 19639 fi 19640 19641 if test "x$GLAMOR_XSERVER" != xyes; then 19642 19643pkg_failed=no 19644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5 19645$as_echo_n "checking for LIBGLAMOR... " >&6; } 19646 19647if test -n "$LIBGLAMOR_CFLAGS"; then 19648 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS" 19649 elif test -n "$PKG_CONFIG"; then 19650 if test -n "$PKG_CONFIG" && \ 19651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19652 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19653 ac_status=$? 19654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19655 test $ac_status = 0; }; then 19656 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null` 19657 test "x$?" != "x0" && pkg_failed=yes 19658else 19659 pkg_failed=yes 19660fi 19661 else 19662 pkg_failed=untried 19663fi 19664if test -n "$LIBGLAMOR_LIBS"; then 19665 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS" 19666 elif test -n "$PKG_CONFIG"; then 19667 if test -n "$PKG_CONFIG" && \ 19668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19669 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19670 ac_status=$? 19671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19672 test $ac_status = 0; }; then 19673 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null` 19674 test "x$?" != "x0" && pkg_failed=yes 19675else 19676 pkg_failed=yes 19677fi 19678 else 19679 pkg_failed=untried 19680fi 19681 19682 19683 19684if test $pkg_failed = yes; then 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19686$as_echo "no" >&6; } 19687 19688if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19689 _pkg_short_errors_supported=yes 19690else 19691 _pkg_short_errors_supported=no 19692fi 19693 if test $_pkg_short_errors_supported = yes; then 19694 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19695 else 19696 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19697 fi 19698 # Put the nasty error message in config.log where it belongs 19699 echo "$LIBGLAMOR_PKG_ERRORS" >&5 19700 19701 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met: 19702 19703$LIBGLAMOR_PKG_ERRORS 19704 19705Consider adjusting the PKG_CONFIG_PATH environment variable if you 19706installed software in a non-standard prefix. 19707 19708Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19709and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19710See the pkg-config man page for more details." "$LINENO" 5 19711elif test $pkg_failed = untried; then 19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19713$as_echo "no" >&6; } 19714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19716as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19717is in your PATH or set the PKG_CONFIG environment variable to the full 19718path to pkg-config. 19719 19720Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19721and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19722See the pkg-config man page for more details. 19723 19724To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19725See \`config.log' for more details" "$LINENO" 5; } 19726else 19727 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS 19728 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS 19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19730$as_echo "yes" >&6; } 19731 19732fi 19733 19734pkg_failed=no 19735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5 19736$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; } 19737 19738if test -n "$LIBGLAMOR_EGL_CFLAGS"; then 19739 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS" 19740 elif test -n "$PKG_CONFIG"; then 19741 if test -n "$PKG_CONFIG" && \ 19742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19743 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19744 ac_status=$? 19745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19746 test $ac_status = 0; }; then 19747 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null` 19748 test "x$?" != "x0" && pkg_failed=yes 19749else 19750 pkg_failed=yes 19751fi 19752 else 19753 pkg_failed=untried 19754fi 19755if test -n "$LIBGLAMOR_EGL_LIBS"; then 19756 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS" 19757 elif test -n "$PKG_CONFIG"; then 19758 if test -n "$PKG_CONFIG" && \ 19759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19760 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19761 ac_status=$? 19762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19763 test $ac_status = 0; }; then 19764 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null` 19765 test "x$?" != "x0" && pkg_failed=yes 19766else 19767 pkg_failed=yes 19768fi 19769 else 19770 pkg_failed=untried 19771fi 19772 19773 19774 19775if test $pkg_failed = yes; then 19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19777$as_echo "no" >&6; } 19778 19779if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19780 _pkg_short_errors_supported=yes 19781else 19782 _pkg_short_errors_supported=no 19783fi 19784 if test $_pkg_short_errors_supported = yes; then 19785 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1` 19786 else 19787 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1` 19788 fi 19789 # Put the nasty error message in config.log where it belongs 19790 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5 19791 19792 as_fn_error $? "Package requirements (glamor-egl) were not met: 19793 19794$LIBGLAMOR_EGL_PKG_ERRORS 19795 19796Consider adjusting the PKG_CONFIG_PATH environment variable if you 19797installed software in a non-standard prefix. 19798 19799Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19800and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19801See the pkg-config man page for more details." "$LINENO" 5 19802elif test $pkg_failed = untried; then 19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19804$as_echo "no" >&6; } 19805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19807as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19808is in your PATH or set the PKG_CONFIG environment variable to the full 19809path to pkg-config. 19810 19811Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19812and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19813See the pkg-config man page for more details. 19814 19815To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19816See \`config.log' for more details" "$LINENO" 5; } 19817else 19818 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS 19819 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS 19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19821$as_echo "yes" >&6; } 19822 19823fi 19824 fi 19825 19826$as_echo "#define USE_GLAMOR 1" >>confdefs.h 19827 19828else 19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5 19830$as_echo "$GLAMOR" >&6; } 19831fi 19832 if test x$GLAMOR != xno; then 19833 GLAMOR_TRUE= 19834 GLAMOR_FALSE='#' 19835else 19836 GLAMOR_TRUE='#' 19837 GLAMOR_FALSE= 19838fi 19839 19840 19841ac_fn_c_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h> 19842 #include <regionstr.h> 19843" 19844if test "x$ac_cv_have_decl_RegionDuplicate" = xyes; then : 19845 19846$as_echo "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h 19847 19848fi 19849 19850 19851ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h> 19852 #include <X11/Xfuncproto.h> 19853 #include <X11/extensions/renderproto.h> 19854 #include <xorg-server.h> 19855 #include <picture.h> 19856 #include <glyphstr.h> 19857 #include <fbpict.h> 19858" 19859if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then : 19860 19861$as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h 19862 19863fi 19864 19865 19866ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h> 19867 #include <xf86Cursor.h> 19868" 19869if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then : 19870 19871$as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h 19872 19873fi 19874 19875 19876ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 19877 #include <gbm.h> 19878" 19879if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then : 19880 19881$as_echo "#define HAVE_GBM_BO_USE_LINEAR 1" >>confdefs.h 19882 19883fi 19884 19885 19886for ac_header in misyncshm.h 19887do : 19888 ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h> 19889 #include <X11/Xfuncproto.h> 19890 #include <xorg-server.h> 19891 #include <screenint.h> 19892" 19893if test "x$ac_cv_header_misyncshm_h" = xyes; then : 19894 cat >>confdefs.h <<_ACEOF 19895#define HAVE_MISYNCSHM_H 1 19896_ACEOF 19897 19898fi 19899 19900done 19901 19902 19903for ac_header in present.h 19904do : 19905 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h> 19906 #include <X11/Xproto.h> 19907 #include \"xorg-server.h\" 19908 #include <X11/X.h> 19909" 19910if test "x$ac_cv_header_present_h" = xyes; then : 19911 cat >>confdefs.h <<_ACEOF 19912#define HAVE_PRESENT_H 1 19913_ACEOF 19914 19915fi 19916 19917done 19918 19919 19920for ac_header in dri3.h 19921do : 19922 ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h> 19923 #include <xorg-server.h> 19924" 19925if test "x$ac_cv_header_dri3_h" = xyes; then : 19926 cat >>confdefs.h <<_ACEOF 19927#define HAVE_DRI3_H 1 19928_ACEOF 19929 19930fi 19931 19932done 19933 19934 19935CPPFLAGS="$SAVE_CPPFLAGS" 19936 19937# Checks for headers/macros for byte swapping 19938# Known variants: 19939# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 19940# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 19941# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 19942# and a fallback to local macros if none of the above are found 19943 19944# if <byteswap.h> is found, assume it's the correct version 19945for ac_header in byteswap.h 19946do : 19947 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 19948if test "x$ac_cv_header_byteswap_h" = xyes; then : 19949 cat >>confdefs.h <<_ACEOF 19950#define HAVE_BYTESWAP_H 1 19951_ACEOF 19952 19953fi 19954 19955done 19956 19957 19958# if <sys/endian.h> is found, have to check which version 19959ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 19960if test "x$ac_cv_header_sys_endian_h" = xyes; then : 19961 HAVE_SYS_ENDIAN_H="yes" 19962else 19963 HAVE_SYS_ENDIAN_H="no" 19964fi 19965 19966 19967 19968if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 19970$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 19971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19972/* end confdefs.h. */ 19973 19974#include <sys/types.h> 19975#include <sys/endian.h> 19976 19977int 19978main () 19979{ 19980 19981int a = 1, b; 19982b = __swap16(a); 19983 19984 ; 19985 return 0; 19986} 19987 19988_ACEOF 19989if ac_fn_c_try_link "$LINENO"; then : 19990 SYS_ENDIAN__SWAP='yes' 19991else 19992 SYS_ENDIAN__SWAP='no' 19993fi 19994rm -f core conftest.err conftest.$ac_objext \ 19995 conftest$ac_exeext conftest.$ac_ext 19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 19997$as_echo "$SYS_ENDIAN__SWAP" >&6; } 19998 19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 20000$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20002/* end confdefs.h. */ 20003 20004#include <sys/types.h> 20005#include <sys/endian.h> 20006 20007int 20008main () 20009{ 20010 20011int a = 1, b; 20012b = bswap16(a); 20013 20014 ; 20015 return 0; 20016} 20017 20018_ACEOF 20019if ac_fn_c_try_link "$LINENO"; then : 20020 SYS_ENDIAN_BSWAP='yes' 20021else 20022 SYS_ENDIAN_BSWAP='no' 20023fi 20024rm -f core conftest.err conftest.$ac_objext \ 20025 conftest$ac_exeext conftest.$ac_ext 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 20027$as_echo "$SYS_ENDIAN_BSWAP" >&6; } 20028 20029 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 20030 USE_SYS_ENDIAN_H=yes 20031 BSWAP=bswap 20032 else 20033 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 20034 USE_SYS_ENDIAN_H=yes 20035 BSWAP=__swap 20036 else 20037 USE_SYS_ENDIAN_H=no 20038 fi 20039 fi 20040 20041 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 20042 20043$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h 20044 20045 20046cat >>confdefs.h <<_ACEOF 20047#define bswap_16 ${BSWAP}16 20048_ACEOF 20049 20050 20051cat >>confdefs.h <<_ACEOF 20052#define bswap_32 ${BSWAP}32 20053_ACEOF 20054 20055 20056cat >>confdefs.h <<_ACEOF 20057#define bswap_64 ${BSWAP}64 20058_ACEOF 20059 20060 fi 20061fi 20062 20063 20064 20065DRIVER_NAME=amdgpu 20066 20067 20068ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile" 20069 20070cat >confcache <<\_ACEOF 20071# This file is a shell script that caches the results of configure 20072# tests run on this system so they can be shared between configure 20073# scripts and configure runs, see configure's option --config-cache. 20074# It is not useful on other systems. If it contains results you don't 20075# want to keep, you may remove or edit it. 20076# 20077# config.status only pays attention to the cache file if you give it 20078# the --recheck option to rerun configure. 20079# 20080# `ac_cv_env_foo' variables (set or unset) will be overridden when 20081# loading this file, other *unset* `ac_cv_foo' will be assigned the 20082# following values. 20083 20084_ACEOF 20085 20086# The following way of writing the cache mishandles newlines in values, 20087# but we know of no workaround that is simple, portable, and efficient. 20088# So, we kill variables containing newlines. 20089# Ultrix sh set writes to stderr and can't be redirected directly, 20090# and sets the high bit in the cache file unless we assign to the vars. 20091( 20092 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20093 eval ac_val=\$$ac_var 20094 case $ac_val in #( 20095 *${as_nl}*) 20096 case $ac_var in #( 20097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20099 esac 20100 case $ac_var in #( 20101 _ | IFS | as_nl) ;; #( 20102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20103 *) { eval $ac_var=; unset $ac_var;} ;; 20104 esac ;; 20105 esac 20106 done 20107 20108 (set) 2>&1 | 20109 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20110 *${as_nl}ac_space=\ *) 20111 # `set' does not quote correctly, so add quotes: double-quote 20112 # substitution turns \\\\ into \\, and sed turns \\ into \. 20113 sed -n \ 20114 "s/'/'\\\\''/g; 20115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20116 ;; #( 20117 *) 20118 # `set' quotes correctly as required by POSIX, so do not add quotes. 20119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20120 ;; 20121 esac | 20122 sort 20123) | 20124 sed ' 20125 /^ac_cv_env_/b end 20126 t clear 20127 :clear 20128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20129 t end 20130 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20131 :end' >>confcache 20132if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20133 if test -w "$cache_file"; then 20134 if test "x$cache_file" != "x/dev/null"; then 20135 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20136$as_echo "$as_me: updating cache $cache_file" >&6;} 20137 if test ! -f "$cache_file" || test -h "$cache_file"; then 20138 cat confcache >"$cache_file" 20139 else 20140 case $cache_file in #( 20141 */* | ?:*) 20142 mv -f confcache "$cache_file"$$ && 20143 mv -f "$cache_file"$$ "$cache_file" ;; #( 20144 *) 20145 mv -f confcache "$cache_file" ;; 20146 esac 20147 fi 20148 fi 20149 else 20150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20151$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20152 fi 20153fi 20154rm -f confcache 20155 20156test "x$prefix" = xNONE && prefix=$ac_default_prefix 20157# Let make expand exec_prefix. 20158test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20159 20160DEFS=-DHAVE_CONFIG_H 20161 20162ac_libobjs= 20163ac_ltlibobjs= 20164U= 20165for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20166 # 1. Remove the extension, and $U if already installed. 20167 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20168 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20170 # will be set to the directory where LIBOBJS objects are built. 20171 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20172 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20173done 20174LIBOBJS=$ac_libobjs 20175 20176LTLIBOBJS=$ac_ltlibobjs 20177 20178 20179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20180$as_echo_n "checking that generated files are newer than configure... " >&6; } 20181 if test -n "$am_sleep_pid"; then 20182 # Hide warnings about reused PIDs. 20183 wait $am_sleep_pid 2>/dev/null 20184 fi 20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20186$as_echo "done" >&6; } 20187 if test -n "$EXEEXT"; then 20188 am__EXEEXT_TRUE= 20189 am__EXEEXT_FALSE='#' 20190else 20191 am__EXEEXT_TRUE='#' 20192 am__EXEEXT_FALSE= 20193fi 20194 20195if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20196 as_fn_error $? "conditional \"AMDEP\" was never defined. 20197Usually this means the macro was only invoked conditionally." "$LINENO" 5 20198fi 20199if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20200 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20201Usually this means the macro was only invoked conditionally." "$LINENO" 5 20202fi 20203if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20204 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20205Usually this means the macro was only invoked conditionally." "$LINENO" 5 20206fi 20207if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then 20208 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined. 20209Usually this means the macro was only invoked conditionally." "$LINENO" 5 20210fi 20211if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20212 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20213Usually this means the macro was only invoked conditionally." "$LINENO" 5 20214fi 20215if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 20216 as_fn_error $? "conditional \"GLAMOR\" was never defined. 20217Usually this means the macro was only invoked conditionally." "$LINENO" 5 20218fi 20219 20220: "${CONFIG_STATUS=./config.status}" 20221ac_write_fail=0 20222ac_clean_files_save=$ac_clean_files 20223ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20224{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20225$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20226as_write_fail=0 20227cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20228#! $SHELL 20229# Generated by $as_me. 20230# Run this file to recreate the current configuration. 20231# Compiler output produced by configure, useful for debugging 20232# configure, is in config.log if it exists. 20233 20234debug=false 20235ac_cs_recheck=false 20236ac_cs_silent=false 20237 20238SHELL=\${CONFIG_SHELL-$SHELL} 20239export SHELL 20240_ASEOF 20241cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20242## -------------------- ## 20243## M4sh Initialization. ## 20244## -------------------- ## 20245 20246# Be more Bourne compatible 20247DUALCASE=1; export DUALCASE # for MKS sh 20248if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20249 emulate sh 20250 NULLCMD=: 20251 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20252 # is contrary to our usage. Disable this feature. 20253 alias -g '${1+"$@"}'='"$@"' 20254 setopt NO_GLOB_SUBST 20255else 20256 case `(set -o) 2>/dev/null` in #( 20257 *posix*) : 20258 set -o posix ;; #( 20259 *) : 20260 ;; 20261esac 20262fi 20263 20264 20265as_nl=' 20266' 20267export as_nl 20268# Printing a long string crashes Solaris 7 /usr/bin/printf. 20269as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20271as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20272# Prefer a ksh shell builtin over an external printf program on Solaris, 20273# but without wasting forks for bash or zsh. 20274if test -z "$BASH_VERSION$ZSH_VERSION" \ 20275 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20276 as_echo='print -r --' 20277 as_echo_n='print -rn --' 20278elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20279 as_echo='printf %s\n' 20280 as_echo_n='printf %s' 20281else 20282 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20283 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20284 as_echo_n='/usr/ucb/echo -n' 20285 else 20286 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20287 as_echo_n_body='eval 20288 arg=$1; 20289 case $arg in #( 20290 *"$as_nl"*) 20291 expr "X$arg" : "X\\(.*\\)$as_nl"; 20292 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20293 esac; 20294 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20295 ' 20296 export as_echo_n_body 20297 as_echo_n='sh -c $as_echo_n_body as_echo' 20298 fi 20299 export as_echo_body 20300 as_echo='sh -c $as_echo_body as_echo' 20301fi 20302 20303# The user is always right. 20304if test "${PATH_SEPARATOR+set}" != set; then 20305 PATH_SEPARATOR=: 20306 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20307 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20308 PATH_SEPARATOR=';' 20309 } 20310fi 20311 20312 20313# IFS 20314# We need space, tab and new line, in precisely that order. Quoting is 20315# there to prevent editors from complaining about space-tab. 20316# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20317# splitting by setting IFS to empty value.) 20318IFS=" "" $as_nl" 20319 20320# Find who we are. Look in the path if we contain no directory separator. 20321as_myself= 20322case $0 in #(( 20323 *[\\/]* ) as_myself=$0 ;; 20324 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20325for as_dir in $PATH 20326do 20327 IFS=$as_save_IFS 20328 test -z "$as_dir" && as_dir=. 20329 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20330 done 20331IFS=$as_save_IFS 20332 20333 ;; 20334esac 20335# We did not find ourselves, most probably we were run as `sh COMMAND' 20336# in which case we are not to be found in the path. 20337if test "x$as_myself" = x; then 20338 as_myself=$0 20339fi 20340if test ! -f "$as_myself"; then 20341 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20342 exit 1 20343fi 20344 20345# Unset variables that we do not need and which cause bugs (e.g. in 20346# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20347# suppresses any "Segmentation fault" message there. '((' could 20348# trigger a bug in pdksh 5.2.14. 20349for as_var in BASH_ENV ENV MAIL MAILPATH 20350do eval test x\${$as_var+set} = xset \ 20351 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20352done 20353PS1='$ ' 20354PS2='> ' 20355PS4='+ ' 20356 20357# NLS nuisances. 20358LC_ALL=C 20359export LC_ALL 20360LANGUAGE=C 20361export LANGUAGE 20362 20363# CDPATH. 20364(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20365 20366 20367# as_fn_error STATUS ERROR [LINENO LOG_FD] 20368# ---------------------------------------- 20369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20371# script with STATUS, using 1 if that was 0. 20372as_fn_error () 20373{ 20374 as_status=$1; test $as_status -eq 0 && as_status=1 20375 if test "$4"; then 20376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20378 fi 20379 $as_echo "$as_me: error: $2" >&2 20380 as_fn_exit $as_status 20381} # as_fn_error 20382 20383 20384# as_fn_set_status STATUS 20385# ----------------------- 20386# Set $? to STATUS, without forking. 20387as_fn_set_status () 20388{ 20389 return $1 20390} # as_fn_set_status 20391 20392# as_fn_exit STATUS 20393# ----------------- 20394# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20395as_fn_exit () 20396{ 20397 set +e 20398 as_fn_set_status $1 20399 exit $1 20400} # as_fn_exit 20401 20402# as_fn_unset VAR 20403# --------------- 20404# Portably unset VAR. 20405as_fn_unset () 20406{ 20407 { eval $1=; unset $1;} 20408} 20409as_unset=as_fn_unset 20410# as_fn_append VAR VALUE 20411# ---------------------- 20412# Append the text in VALUE to the end of the definition contained in VAR. Take 20413# advantage of any shell optimizations that allow amortized linear growth over 20414# repeated appends, instead of the typical quadratic growth present in naive 20415# implementations. 20416if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20417 eval 'as_fn_append () 20418 { 20419 eval $1+=\$2 20420 }' 20421else 20422 as_fn_append () 20423 { 20424 eval $1=\$$1\$2 20425 } 20426fi # as_fn_append 20427 20428# as_fn_arith ARG... 20429# ------------------ 20430# Perform arithmetic evaluation on the ARGs, and store the result in the 20431# global $as_val. Take advantage of shells that can avoid forks. The arguments 20432# must be portable across $(()) and expr. 20433if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20434 eval 'as_fn_arith () 20435 { 20436 as_val=$(( $* )) 20437 }' 20438else 20439 as_fn_arith () 20440 { 20441 as_val=`expr "$@" || test $? -eq 1` 20442 } 20443fi # as_fn_arith 20444 20445 20446if expr a : '\(a\)' >/dev/null 2>&1 && 20447 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20448 as_expr=expr 20449else 20450 as_expr=false 20451fi 20452 20453if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20454 as_basename=basename 20455else 20456 as_basename=false 20457fi 20458 20459if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20460 as_dirname=dirname 20461else 20462 as_dirname=false 20463fi 20464 20465as_me=`$as_basename -- "$0" || 20466$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20467 X"$0" : 'X\(//\)$' \| \ 20468 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20469$as_echo X/"$0" | 20470 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20471 s//\1/ 20472 q 20473 } 20474 /^X\/\(\/\/\)$/{ 20475 s//\1/ 20476 q 20477 } 20478 /^X\/\(\/\).*/{ 20479 s//\1/ 20480 q 20481 } 20482 s/.*/./; q'` 20483 20484# Avoid depending upon Character Ranges. 20485as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20487as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20488as_cr_digits='0123456789' 20489as_cr_alnum=$as_cr_Letters$as_cr_digits 20490 20491ECHO_C= ECHO_N= ECHO_T= 20492case `echo -n x` in #((((( 20493-n*) 20494 case `echo 'xy\c'` in 20495 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20496 xy) ECHO_C='\c';; 20497 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20498 ECHO_T=' ';; 20499 esac;; 20500*) 20501 ECHO_N='-n';; 20502esac 20503 20504rm -f conf$$ conf$$.exe conf$$.file 20505if test -d conf$$.dir; then 20506 rm -f conf$$.dir/conf$$.file 20507else 20508 rm -f conf$$.dir 20509 mkdir conf$$.dir 2>/dev/null 20510fi 20511if (echo >conf$$.file) 2>/dev/null; then 20512 if ln -s conf$$.file conf$$ 2>/dev/null; then 20513 as_ln_s='ln -s' 20514 # ... but there are two gotchas: 20515 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20516 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20517 # In both cases, we have to default to `cp -pR'. 20518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20519 as_ln_s='cp -pR' 20520 elif ln conf$$.file conf$$ 2>/dev/null; then 20521 as_ln_s=ln 20522 else 20523 as_ln_s='cp -pR' 20524 fi 20525else 20526 as_ln_s='cp -pR' 20527fi 20528rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20529rmdir conf$$.dir 2>/dev/null 20530 20531 20532# as_fn_mkdir_p 20533# ------------- 20534# Create "$as_dir" as a directory, including parents if necessary. 20535as_fn_mkdir_p () 20536{ 20537 20538 case $as_dir in #( 20539 -*) as_dir=./$as_dir;; 20540 esac 20541 test -d "$as_dir" || eval $as_mkdir_p || { 20542 as_dirs= 20543 while :; do 20544 case $as_dir in #( 20545 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20546 *) as_qdir=$as_dir;; 20547 esac 20548 as_dirs="'$as_qdir' $as_dirs" 20549 as_dir=`$as_dirname -- "$as_dir" || 20550$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20551 X"$as_dir" : 'X\(//\)[^/]' \| \ 20552 X"$as_dir" : 'X\(//\)$' \| \ 20553 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20554$as_echo X"$as_dir" | 20555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20556 s//\1/ 20557 q 20558 } 20559 /^X\(\/\/\)[^/].*/{ 20560 s//\1/ 20561 q 20562 } 20563 /^X\(\/\/\)$/{ 20564 s//\1/ 20565 q 20566 } 20567 /^X\(\/\).*/{ 20568 s//\1/ 20569 q 20570 } 20571 s/.*/./; q'` 20572 test -d "$as_dir" && break 20573 done 20574 test -z "$as_dirs" || eval "mkdir $as_dirs" 20575 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20576 20577 20578} # as_fn_mkdir_p 20579if mkdir -p . 2>/dev/null; then 20580 as_mkdir_p='mkdir -p "$as_dir"' 20581else 20582 test -d ./-p && rmdir ./-p 20583 as_mkdir_p=false 20584fi 20585 20586 20587# as_fn_executable_p FILE 20588# ----------------------- 20589# Test if FILE is an executable regular file. 20590as_fn_executable_p () 20591{ 20592 test -f "$1" && test -x "$1" 20593} # as_fn_executable_p 20594as_test_x='test -x' 20595as_executable_p=as_fn_executable_p 20596 20597# Sed expression to map a string onto a valid CPP name. 20598as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20599 20600# Sed expression to map a string onto a valid variable name. 20601as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20602 20603 20604exec 6>&1 20605## ----------------------------------- ## 20606## Main body of $CONFIG_STATUS script. ## 20607## ----------------------------------- ## 20608_ASEOF 20609test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20610 20611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20612# Save the log message, to keep $0 and so on meaningful, and to 20613# report actual input values of CONFIG_FILES etc. instead of their 20614# values after options handling. 20615ac_log=" 20616This file was extended by xf86-video-amdgpu $as_me 21.0.0, which was 20617generated by GNU Autoconf 2.69. Invocation command line was 20618 20619 CONFIG_FILES = $CONFIG_FILES 20620 CONFIG_HEADERS = $CONFIG_HEADERS 20621 CONFIG_LINKS = $CONFIG_LINKS 20622 CONFIG_COMMANDS = $CONFIG_COMMANDS 20623 $ $0 $@ 20624 20625on `(hostname || uname -n) 2>/dev/null | sed 1q` 20626" 20627 20628_ACEOF 20629 20630case $ac_config_files in *" 20631"*) set x $ac_config_files; shift; ac_config_files=$*;; 20632esac 20633 20634case $ac_config_headers in *" 20635"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20636esac 20637 20638 20639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20640# Files that config.status was made for. 20641config_files="$ac_config_files" 20642config_headers="$ac_config_headers" 20643config_commands="$ac_config_commands" 20644 20645_ACEOF 20646 20647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20648ac_cs_usage="\ 20649\`$as_me' instantiates files and other configuration actions 20650from templates according to the current configuration. Unless the files 20651and actions are specified as TAGs, all are instantiated by default. 20652 20653Usage: $0 [OPTION]... [TAG]... 20654 20655 -h, --help print this help, then exit 20656 -V, --version print version number and configuration settings, then exit 20657 --config print configuration, then exit 20658 -q, --quiet, --silent 20659 do not print progress messages 20660 -d, --debug don't remove temporary files 20661 --recheck update $as_me by reconfiguring in the same conditions 20662 --file=FILE[:TEMPLATE] 20663 instantiate the configuration file FILE 20664 --header=FILE[:TEMPLATE] 20665 instantiate the configuration header FILE 20666 20667Configuration files: 20668$config_files 20669 20670Configuration headers: 20671$config_headers 20672 20673Configuration commands: 20674$config_commands 20675 20676Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu>." 20677 20678_ACEOF 20679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20680ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20681ac_cs_version="\\ 20682xf86-video-amdgpu config.status 21.0.0 20683configured by $0, generated by GNU Autoconf 2.69, 20684 with options \\"\$ac_cs_config\\" 20685 20686Copyright (C) 2012 Free Software Foundation, Inc. 20687This config.status script is free software; the Free Software Foundation 20688gives unlimited permission to copy, distribute and modify it." 20689 20690ac_pwd='$ac_pwd' 20691srcdir='$srcdir' 20692INSTALL='$INSTALL' 20693MKDIR_P='$MKDIR_P' 20694AWK='$AWK' 20695test -n "\$AWK" || AWK=awk 20696_ACEOF 20697 20698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20699# The default lists apply if the user does not specify any file. 20700ac_need_defaults=: 20701while test $# != 0 20702do 20703 case $1 in 20704 --*=?*) 20705 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20706 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20707 ac_shift=: 20708 ;; 20709 --*=) 20710 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20711 ac_optarg= 20712 ac_shift=: 20713 ;; 20714 *) 20715 ac_option=$1 20716 ac_optarg=$2 20717 ac_shift=shift 20718 ;; 20719 esac 20720 20721 case $ac_option in 20722 # Handling of the options. 20723 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20724 ac_cs_recheck=: ;; 20725 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20726 $as_echo "$ac_cs_version"; exit ;; 20727 --config | --confi | --conf | --con | --co | --c ) 20728 $as_echo "$ac_cs_config"; exit ;; 20729 --debug | --debu | --deb | --de | --d | -d ) 20730 debug=: ;; 20731 --file | --fil | --fi | --f ) 20732 $ac_shift 20733 case $ac_optarg in 20734 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20735 '') as_fn_error $? "missing file argument" ;; 20736 esac 20737 as_fn_append CONFIG_FILES " '$ac_optarg'" 20738 ac_need_defaults=false;; 20739 --header | --heade | --head | --hea ) 20740 $ac_shift 20741 case $ac_optarg in 20742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20743 esac 20744 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20745 ac_need_defaults=false;; 20746 --he | --h) 20747 # Conflict between --help and --header 20748 as_fn_error $? "ambiguous option: \`$1' 20749Try \`$0 --help' for more information.";; 20750 --help | --hel | -h ) 20751 $as_echo "$ac_cs_usage"; exit ;; 20752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20753 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20754 ac_cs_silent=: ;; 20755 20756 # This is an error. 20757 -*) as_fn_error $? "unrecognized option: \`$1' 20758Try \`$0 --help' for more information." ;; 20759 20760 *) as_fn_append ac_config_targets " $1" 20761 ac_need_defaults=false ;; 20762 20763 esac 20764 shift 20765done 20766 20767ac_configure_extra_args= 20768 20769if $ac_cs_silent; then 20770 exec 6>/dev/null 20771 ac_configure_extra_args="$ac_configure_extra_args --silent" 20772fi 20773 20774_ACEOF 20775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20776if \$ac_cs_recheck; then 20777 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20778 shift 20779 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20780 CONFIG_SHELL='$SHELL' 20781 export CONFIG_SHELL 20782 exec "\$@" 20783fi 20784 20785_ACEOF 20786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20787exec 5>>config.log 20788{ 20789 echo 20790 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20791## Running $as_me. ## 20792_ASBOX 20793 $as_echo "$ac_log" 20794} >&5 20795 20796_ACEOF 20797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20798# 20799# INIT-COMMANDS 20800# 20801AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20802 20803 20804# The HP-UX ksh and POSIX shell print the target directory to stdout 20805# if CDPATH is set. 20806(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20807 20808sed_quote_subst='$sed_quote_subst' 20809double_quote_subst='$double_quote_subst' 20810delay_variable_subst='$delay_variable_subst' 20811enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20812macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20813macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20814enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20815pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20816enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20817shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20818SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20819ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20820PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20821host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20822host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20823host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20824build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20825build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20826build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20827SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20828Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20829GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20830EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20831FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20832LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20833NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20834LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20835max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20836ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20837exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20838lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20839lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20840lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20841lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20842lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20843reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20844reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20845OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20846deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20847file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20848file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20849want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20850DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20851sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20852AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20853AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20854archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20855STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20856RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20857old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20858old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20859old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20860lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20861CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20862CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20863compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20864GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20865lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20866lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20867lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20868lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20869lt_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"`' 20870lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20871nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20872lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20873lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20874objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20875MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20876lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20877lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20878lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20879lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20880lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20881need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20882MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20883DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20884NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20885LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20886OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20887OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20888libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20889shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20890extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20891archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20892enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20893export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20894whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20895compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20896old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20897old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20898archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20899archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20900module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20901module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20902with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20903allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20904no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20905hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20906hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20907hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20908hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20909hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20910hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20911hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20912inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20913link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20914always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20915export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20916exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20917include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20918prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20919postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20920file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20921variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20922need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20923need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20924version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20925runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20926shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20927shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20928libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20929library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20930soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20931install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20932postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20933postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20934finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20935finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20936hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20937sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20938configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20939configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20940hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20941enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20942enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20943enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20944old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20945striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20946 20947LTCC='$LTCC' 20948LTCFLAGS='$LTCFLAGS' 20949compiler='$compiler_DEFAULT' 20950 20951# A function that is used when there is no print builtin or printf. 20952func_fallback_echo () 20953{ 20954 eval 'cat <<_LTECHO_EOF 20955\$1 20956_LTECHO_EOF' 20957} 20958 20959# Quote evaled strings. 20960for var in SHELL \ 20961ECHO \ 20962PATH_SEPARATOR \ 20963SED \ 20964GREP \ 20965EGREP \ 20966FGREP \ 20967LD \ 20968NM \ 20969LN_S \ 20970lt_SP2NL \ 20971lt_NL2SP \ 20972reload_flag \ 20973OBJDUMP \ 20974deplibs_check_method \ 20975file_magic_cmd \ 20976file_magic_glob \ 20977want_nocaseglob \ 20978DLLTOOL \ 20979sharedlib_from_linklib_cmd \ 20980AR \ 20981AR_FLAGS \ 20982archiver_list_spec \ 20983STRIP \ 20984RANLIB \ 20985CC \ 20986CFLAGS \ 20987compiler \ 20988lt_cv_sys_global_symbol_pipe \ 20989lt_cv_sys_global_symbol_to_cdecl \ 20990lt_cv_sys_global_symbol_to_import \ 20991lt_cv_sys_global_symbol_to_c_name_address \ 20992lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20993lt_cv_nm_interface \ 20994nm_file_list_spec \ 20995lt_cv_truncate_bin \ 20996lt_prog_compiler_no_builtin_flag \ 20997lt_prog_compiler_pic \ 20998lt_prog_compiler_wl \ 20999lt_prog_compiler_static \ 21000lt_cv_prog_compiler_c_o \ 21001need_locks \ 21002MANIFEST_TOOL \ 21003DSYMUTIL \ 21004NMEDIT \ 21005LIPO \ 21006OTOOL \ 21007OTOOL64 \ 21008shrext_cmds \ 21009export_dynamic_flag_spec \ 21010whole_archive_flag_spec \ 21011compiler_needs_object \ 21012with_gnu_ld \ 21013allow_undefined_flag \ 21014no_undefined_flag \ 21015hardcode_libdir_flag_spec \ 21016hardcode_libdir_separator \ 21017exclude_expsyms \ 21018include_expsyms \ 21019file_list_spec \ 21020variables_saved_for_relink \ 21021libname_spec \ 21022library_names_spec \ 21023soname_spec \ 21024install_override_mode \ 21025finish_eval \ 21026old_striplib \ 21027striplib; do 21028 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21029 *[\\\\\\\`\\"\\\$]*) 21030 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21031 ;; 21032 *) 21033 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21034 ;; 21035 esac 21036done 21037 21038# Double-quote double-evaled strings. 21039for var in reload_cmds \ 21040old_postinstall_cmds \ 21041old_postuninstall_cmds \ 21042old_archive_cmds \ 21043extract_expsyms_cmds \ 21044old_archive_from_new_cmds \ 21045old_archive_from_expsyms_cmds \ 21046archive_cmds \ 21047archive_expsym_cmds \ 21048module_cmds \ 21049module_expsym_cmds \ 21050export_symbols_cmds \ 21051prelink_cmds \ 21052postlink_cmds \ 21053postinstall_cmds \ 21054postuninstall_cmds \ 21055finish_cmds \ 21056sys_lib_search_path_spec \ 21057configure_time_dlsearch_path \ 21058configure_time_lt_sys_library_path; do 21059 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21060 *[\\\\\\\`\\"\\\$]*) 21061 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21062 ;; 21063 *) 21064 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21065 ;; 21066 esac 21067done 21068 21069ac_aux_dir='$ac_aux_dir' 21070 21071# See if we are running on zsh, and set the options that allow our 21072# commands through without removal of \ escapes INIT. 21073if test -n "\${ZSH_VERSION+set}"; then 21074 setopt NO_GLOB_SUBST 21075fi 21076 21077 21078 PACKAGE='$PACKAGE' 21079 VERSION='$VERSION' 21080 RM='$RM' 21081 ofile='$ofile' 21082 21083 21084 21085 21086_ACEOF 21087 21088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21089 21090# Handling of arguments. 21091for ac_config_target in $ac_config_targets 21092do 21093 case $ac_config_target in 21094 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21095 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21096 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21097 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21098 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21099 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21100 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 21101 21102 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21103 esac 21104done 21105 21106 21107# If the user did not use the arguments to specify the items to instantiate, 21108# then the envvar interface is used. Set only those that are not. 21109# We use the long form for the default assignment because of an extremely 21110# bizarre bug on SunOS 4.1.3. 21111if $ac_need_defaults; then 21112 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21113 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21114 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21115fi 21116 21117# Have a temporary directory for convenience. Make it in the build tree 21118# simply because there is no reason against having it here, and in addition, 21119# creating and moving files from /tmp can sometimes cause problems. 21120# Hook for its removal unless debugging. 21121# Note that there is a small window in which the directory will not be cleaned: 21122# after its creation but before its name has been assigned to `$tmp'. 21123$debug || 21124{ 21125 tmp= ac_tmp= 21126 trap 'exit_status=$? 21127 : "${ac_tmp:=$tmp}" 21128 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21129' 0 21130 trap 'as_fn_exit 1' 1 2 13 15 21131} 21132# Create a (secure) tmp directory for tmp files. 21133 21134{ 21135 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21136 test -d "$tmp" 21137} || 21138{ 21139 tmp=./conf$$-$RANDOM 21140 (umask 077 && mkdir "$tmp") 21141} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21142ac_tmp=$tmp 21143 21144# Set up the scripts for CONFIG_FILES section. 21145# No need to generate them if there are no CONFIG_FILES. 21146# This happens for instance with `./config.status config.h'. 21147if test -n "$CONFIG_FILES"; then 21148 21149 21150ac_cr=`echo X | tr X '\015'` 21151# On cygwin, bash can eat \r inside `` if the user requested igncr. 21152# But we know of no other shell where ac_cr would be empty at this 21153# point, so we can use a bashism as a fallback. 21154if test "x$ac_cr" = x; then 21155 eval ac_cr=\$\'\\r\' 21156fi 21157ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21158if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21159 ac_cs_awk_cr='\\r' 21160else 21161 ac_cs_awk_cr=$ac_cr 21162fi 21163 21164echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21165_ACEOF 21166 21167 21168{ 21169 echo "cat >conf$$subs.awk <<_ACEOF" && 21170 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21171 echo "_ACEOF" 21172} >conf$$subs.sh || 21173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21174ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21175ac_delim='%!_!# ' 21176for ac_last_try in false false false false false :; do 21177 . ./conf$$subs.sh || 21178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21179 21180 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21181 if test $ac_delim_n = $ac_delim_num; then 21182 break 21183 elif $ac_last_try; then 21184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21185 else 21186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21187 fi 21188done 21189rm -f conf$$subs.sh 21190 21191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21192cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21193_ACEOF 21194sed -n ' 21195h 21196s/^/S["/; s/!.*/"]=/ 21197p 21198g 21199s/^[^!]*!// 21200:repl 21201t repl 21202s/'"$ac_delim"'$// 21203t delim 21204:nl 21205h 21206s/\(.\{148\}\)..*/\1/ 21207t more1 21208s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21209p 21210n 21211b repl 21212:more1 21213s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21214p 21215g 21216s/.\{148\}// 21217t nl 21218:delim 21219h 21220s/\(.\{148\}\)..*/\1/ 21221t more2 21222s/["\\]/\\&/g; s/^/"/; s/$/"/ 21223p 21224b 21225:more2 21226s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21227p 21228g 21229s/.\{148\}// 21230t delim 21231' <conf$$subs.awk | sed ' 21232/^[^""]/{ 21233 N 21234 s/\n// 21235} 21236' >>$CONFIG_STATUS || ac_write_fail=1 21237rm -f conf$$subs.awk 21238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21239_ACAWK 21240cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21241 for (key in S) S_is_set[key] = 1 21242 FS = "" 21243 21244} 21245{ 21246 line = $ 0 21247 nfields = split(line, field, "@") 21248 substed = 0 21249 len = length(field[1]) 21250 for (i = 2; i < nfields; i++) { 21251 key = field[i] 21252 keylen = length(key) 21253 if (S_is_set[key]) { 21254 value = S[key] 21255 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21256 len += length(value) + length(field[++i]) 21257 substed = 1 21258 } else 21259 len += 1 + keylen 21260 } 21261 21262 print line 21263} 21264 21265_ACAWK 21266_ACEOF 21267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21268if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21269 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21270else 21271 cat 21272fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21273 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21274_ACEOF 21275 21276# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21277# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21278# trailing colons and then remove the whole line if VPATH becomes empty 21279# (actually we leave an empty line to preserve line numbers). 21280if test "x$srcdir" = x.; then 21281 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21282h 21283s/// 21284s/^/:/ 21285s/[ ]*$/:/ 21286s/:\$(srcdir):/:/g 21287s/:\${srcdir}:/:/g 21288s/:@srcdir@:/:/g 21289s/^:*// 21290s/:*$// 21291x 21292s/\(=[ ]*\).*/\1/ 21293G 21294s/\n// 21295s/^[^=]*=[ ]*$// 21296}' 21297fi 21298 21299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21300fi # test -n "$CONFIG_FILES" 21301 21302# Set up the scripts for CONFIG_HEADERS section. 21303# No need to generate them if there are no CONFIG_HEADERS. 21304# This happens for instance with `./config.status Makefile'. 21305if test -n "$CONFIG_HEADERS"; then 21306cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21307BEGIN { 21308_ACEOF 21309 21310# Transform confdefs.h into an awk script `defines.awk', embedded as 21311# here-document in config.status, that substitutes the proper values into 21312# config.h.in to produce config.h. 21313 21314# Create a delimiter string that does not exist in confdefs.h, to ease 21315# handling of long lines. 21316ac_delim='%!_!# ' 21317for ac_last_try in false false :; do 21318 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21319 if test -z "$ac_tt"; then 21320 break 21321 elif $ac_last_try; then 21322 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21323 else 21324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21325 fi 21326done 21327 21328# For the awk script, D is an array of macro values keyed by name, 21329# likewise P contains macro parameters if any. Preserve backslash 21330# newline sequences. 21331 21332ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21333sed -n ' 21334s/.\{148\}/&'"$ac_delim"'/g 21335t rset 21336:rset 21337s/^[ ]*#[ ]*define[ ][ ]*/ / 21338t def 21339d 21340:def 21341s/\\$// 21342t bsnl 21343s/["\\]/\\&/g 21344s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21345D["\1"]=" \3"/p 21346s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21347d 21348:bsnl 21349s/["\\]/\\&/g 21350s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21351D["\1"]=" \3\\\\\\n"\\/p 21352t cont 21353s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21354t cont 21355d 21356:cont 21357n 21358s/.\{148\}/&'"$ac_delim"'/g 21359t clear 21360:clear 21361s/\\$// 21362t bsnlc 21363s/["\\]/\\&/g; s/^/"/; s/$/"/p 21364d 21365:bsnlc 21366s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21367b cont 21368' <confdefs.h | sed ' 21369s/'"$ac_delim"'/"\\\ 21370"/g' >>$CONFIG_STATUS || ac_write_fail=1 21371 21372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21373 for (key in D) D_is_set[key] = 1 21374 FS = "" 21375} 21376/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21377 line = \$ 0 21378 split(line, arg, " ") 21379 if (arg[1] == "#") { 21380 defundef = arg[2] 21381 mac1 = arg[3] 21382 } else { 21383 defundef = substr(arg[1], 2) 21384 mac1 = arg[2] 21385 } 21386 split(mac1, mac2, "(") #) 21387 macro = mac2[1] 21388 prefix = substr(line, 1, index(line, defundef) - 1) 21389 if (D_is_set[macro]) { 21390 # Preserve the white space surrounding the "#". 21391 print prefix "define", macro P[macro] D[macro] 21392 next 21393 } else { 21394 # Replace #undef with comments. This is necessary, for example, 21395 # in the case of _POSIX_SOURCE, which is predefined and required 21396 # on some systems where configure will not decide to define it. 21397 if (defundef == "undef") { 21398 print "/*", prefix defundef, macro, "*/" 21399 next 21400 } 21401 } 21402} 21403{ print } 21404_ACAWK 21405_ACEOF 21406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21407 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21408fi # test -n "$CONFIG_HEADERS" 21409 21410 21411eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21412shift 21413for ac_tag 21414do 21415 case $ac_tag in 21416 :[FHLC]) ac_mode=$ac_tag; continue;; 21417 esac 21418 case $ac_mode$ac_tag in 21419 :[FHL]*:*);; 21420 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21421 :[FH]-) ac_tag=-:-;; 21422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21423 esac 21424 ac_save_IFS=$IFS 21425 IFS=: 21426 set x $ac_tag 21427 IFS=$ac_save_IFS 21428 shift 21429 ac_file=$1 21430 shift 21431 21432 case $ac_mode in 21433 :L) ac_source=$1;; 21434 :[FH]) 21435 ac_file_inputs= 21436 for ac_f 21437 do 21438 case $ac_f in 21439 -) ac_f="$ac_tmp/stdin";; 21440 *) # Look for the file first in the build tree, then in the source tree 21441 # (if the path is not absolute). The absolute path cannot be DOS-style, 21442 # because $ac_f cannot contain `:'. 21443 test -f "$ac_f" || 21444 case $ac_f in 21445 [\\/$]*) false;; 21446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21447 esac || 21448 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21449 esac 21450 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21451 as_fn_append ac_file_inputs " '$ac_f'" 21452 done 21453 21454 # Let's still pretend it is `configure' which instantiates (i.e., don't 21455 # use $as_me), people would be surprised to read: 21456 # /* config.h. Generated by config.status. */ 21457 configure_input='Generated from '` 21458 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21459 `' by configure.' 21460 if test x"$ac_file" != x-; then 21461 configure_input="$ac_file. $configure_input" 21462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21463$as_echo "$as_me: creating $ac_file" >&6;} 21464 fi 21465 # Neutralize special characters interpreted by sed in replacement strings. 21466 case $configure_input in #( 21467 *\&* | *\|* | *\\* ) 21468 ac_sed_conf_input=`$as_echo "$configure_input" | 21469 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21470 *) ac_sed_conf_input=$configure_input;; 21471 esac 21472 21473 case $ac_tag in 21474 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21475 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21476 esac 21477 ;; 21478 esac 21479 21480 ac_dir=`$as_dirname -- "$ac_file" || 21481$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21482 X"$ac_file" : 'X\(//\)[^/]' \| \ 21483 X"$ac_file" : 'X\(//\)$' \| \ 21484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21485$as_echo X"$ac_file" | 21486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21487 s//\1/ 21488 q 21489 } 21490 /^X\(\/\/\)[^/].*/{ 21491 s//\1/ 21492 q 21493 } 21494 /^X\(\/\/\)$/{ 21495 s//\1/ 21496 q 21497 } 21498 /^X\(\/\).*/{ 21499 s//\1/ 21500 q 21501 } 21502 s/.*/./; q'` 21503 as_dir="$ac_dir"; as_fn_mkdir_p 21504 ac_builddir=. 21505 21506case "$ac_dir" in 21507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21508*) 21509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21510 # A ".." for each directory in $ac_dir_suffix. 21511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21512 case $ac_top_builddir_sub in 21513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21515 esac ;; 21516esac 21517ac_abs_top_builddir=$ac_pwd 21518ac_abs_builddir=$ac_pwd$ac_dir_suffix 21519# for backward compatibility: 21520ac_top_builddir=$ac_top_build_prefix 21521 21522case $srcdir in 21523 .) # We are building in place. 21524 ac_srcdir=. 21525 ac_top_srcdir=$ac_top_builddir_sub 21526 ac_abs_top_srcdir=$ac_pwd ;; 21527 [\\/]* | ?:[\\/]* ) # Absolute name. 21528 ac_srcdir=$srcdir$ac_dir_suffix; 21529 ac_top_srcdir=$srcdir 21530 ac_abs_top_srcdir=$srcdir ;; 21531 *) # Relative name. 21532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21533 ac_top_srcdir=$ac_top_build_prefix$srcdir 21534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21535esac 21536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21537 21538 21539 case $ac_mode in 21540 :F) 21541 # 21542 # CONFIG_FILE 21543 # 21544 21545 case $INSTALL in 21546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21547 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21548 esac 21549 ac_MKDIR_P=$MKDIR_P 21550 case $MKDIR_P in 21551 [\\/$]* | ?:[\\/]* ) ;; 21552 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21553 esac 21554_ACEOF 21555 21556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21557# If the template does not know about datarootdir, expand it. 21558# FIXME: This hack should be removed a few years after 2.60. 21559ac_datarootdir_hack=; ac_datarootdir_seen= 21560ac_sed_dataroot=' 21561/datarootdir/ { 21562 p 21563 q 21564} 21565/@datadir@/p 21566/@docdir@/p 21567/@infodir@/p 21568/@localedir@/p 21569/@mandir@/p' 21570case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21571*datarootdir*) ac_datarootdir_seen=yes;; 21572*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21574$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21575_ACEOF 21576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21577 ac_datarootdir_hack=' 21578 s&@datadir@&$datadir&g 21579 s&@docdir@&$docdir&g 21580 s&@infodir@&$infodir&g 21581 s&@localedir@&$localedir&g 21582 s&@mandir@&$mandir&g 21583 s&\\\${datarootdir}&$datarootdir&g' ;; 21584esac 21585_ACEOF 21586 21587# Neutralize VPATH when `$srcdir' = `.'. 21588# Shell code in configure.ac might set extrasub. 21589# FIXME: do we really want to maintain this feature? 21590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21591ac_sed_extra="$ac_vpsub 21592$extrasub 21593_ACEOF 21594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21595:t 21596/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21597s|@configure_input@|$ac_sed_conf_input|;t t 21598s&@top_builddir@&$ac_top_builddir_sub&;t t 21599s&@top_build_prefix@&$ac_top_build_prefix&;t t 21600s&@srcdir@&$ac_srcdir&;t t 21601s&@abs_srcdir@&$ac_abs_srcdir&;t t 21602s&@top_srcdir@&$ac_top_srcdir&;t t 21603s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21604s&@builddir@&$ac_builddir&;t t 21605s&@abs_builddir@&$ac_abs_builddir&;t t 21606s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21607s&@INSTALL@&$ac_INSTALL&;t t 21608s&@MKDIR_P@&$ac_MKDIR_P&;t t 21609$ac_datarootdir_hack 21610" 21611eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21612 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21613 21614test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21615 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21616 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21617 "$ac_tmp/out"`; test -z "$ac_out"; } && 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21619which seems to be undefined. Please make sure it is defined" >&5 21620$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21621which seems to be undefined. Please make sure it is defined" >&2;} 21622 21623 rm -f "$ac_tmp/stdin" 21624 case $ac_file in 21625 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21626 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21627 esac \ 21628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21629 ;; 21630 :H) 21631 # 21632 # CONFIG_HEADER 21633 # 21634 if test x"$ac_file" != x-; then 21635 { 21636 $as_echo "/* $configure_input */" \ 21637 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21638 } >"$ac_tmp/config.h" \ 21639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21640 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21641 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21642$as_echo "$as_me: $ac_file is unchanged" >&6;} 21643 else 21644 rm -f "$ac_file" 21645 mv "$ac_tmp/config.h" "$ac_file" \ 21646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21647 fi 21648 else 21649 $as_echo "/* $configure_input */" \ 21650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21651 || as_fn_error $? "could not create -" "$LINENO" 5 21652 fi 21653# Compute "$ac_file"'s index in $config_headers. 21654_am_arg="$ac_file" 21655_am_stamp_count=1 21656for _am_header in $config_headers :; do 21657 case $_am_header in 21658 $_am_arg | $_am_arg:* ) 21659 break ;; 21660 * ) 21661 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21662 esac 21663done 21664echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21665$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21666 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21667 X"$_am_arg" : 'X\(//\)$' \| \ 21668 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21669$as_echo X"$_am_arg" | 21670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21671 s//\1/ 21672 q 21673 } 21674 /^X\(\/\/\)[^/].*/{ 21675 s//\1/ 21676 q 21677 } 21678 /^X\(\/\/\)$/{ 21679 s//\1/ 21680 q 21681 } 21682 /^X\(\/\).*/{ 21683 s//\1/ 21684 q 21685 } 21686 s/.*/./; q'`/stamp-h$_am_stamp_count 21687 ;; 21688 21689 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21690$as_echo "$as_me: executing $ac_file commands" >&6;} 21691 ;; 21692 esac 21693 21694 21695 case $ac_file$ac_mode in 21696 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21697 # Older Autoconf quotes --file arguments for eval, but not when files 21698 # are listed without --file. Let's play safe and only enable the eval 21699 # if we detect the quoting. 21700 # TODO: see whether this extra hack can be removed once we start 21701 # requiring Autoconf 2.70 or later. 21702 case $CONFIG_FILES in #( 21703 *\'*) : 21704 eval set x "$CONFIG_FILES" ;; #( 21705 *) : 21706 set x $CONFIG_FILES ;; #( 21707 *) : 21708 ;; 21709esac 21710 shift 21711 # Used to flag and report bootstrapping failures. 21712 am_rc=0 21713 for am_mf 21714 do 21715 # Strip MF so we end up with the name of the file. 21716 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 21717 # Check whether this is an Automake generated Makefile which includes 21718 # dependency-tracking related rules and includes. 21719 # Grep'ing the whole file directly is not great: AIX grep has a line 21720 # limit of 2048, but all sed's we know have understand at least 4000. 21721 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21722 || continue 21723 am_dirpart=`$as_dirname -- "$am_mf" || 21724$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21725 X"$am_mf" : 'X\(//\)[^/]' \| \ 21726 X"$am_mf" : 'X\(//\)$' \| \ 21727 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21728$as_echo X"$am_mf" | 21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21730 s//\1/ 21731 q 21732 } 21733 /^X\(\/\/\)[^/].*/{ 21734 s//\1/ 21735 q 21736 } 21737 /^X\(\/\/\)$/{ 21738 s//\1/ 21739 q 21740 } 21741 /^X\(\/\).*/{ 21742 s//\1/ 21743 q 21744 } 21745 s/.*/./; q'` 21746 am_filepart=`$as_basename -- "$am_mf" || 21747$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21748 X"$am_mf" : 'X\(//\)$' \| \ 21749 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21750$as_echo X/"$am_mf" | 21751 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21752 s//\1/ 21753 q 21754 } 21755 /^X\/\(\/\/\)$/{ 21756 s//\1/ 21757 q 21758 } 21759 /^X\/\(\/\).*/{ 21760 s//\1/ 21761 q 21762 } 21763 s/.*/./; q'` 21764 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21765 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21766 | $MAKE -f - am--depfiles" >&5 21767 (cd "$am_dirpart" \ 21768 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21769 | $MAKE -f - am--depfiles) >&5 2>&5 21770 ac_status=$? 21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21772 (exit $ac_status); } || am_rc=$? 21773 done 21774 if test $am_rc -ne 0; then 21775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21777as_fn_error $? "Something went wrong bootstrapping makefile fragments 21778 for automatic dependency tracking. If GNU make was not used, consider 21779 re-running the configure script with MAKE=\"gmake\" (or whatever is 21780 necessary). You can also try re-running configure with the 21781 '--disable-dependency-tracking' option to at least be able to build 21782 the package (albeit without support for automatic dependency tracking). 21783See \`config.log' for more details" "$LINENO" 5; } 21784 fi 21785 { am_dirpart=; unset am_dirpart;} 21786 { am_filepart=; unset am_filepart;} 21787 { am_mf=; unset am_mf;} 21788 { am_rc=; unset am_rc;} 21789 rm -f conftest-deps.mk 21790} 21791 ;; 21792 "libtool":C) 21793 21794 # See if we are running on zsh, and set the options that allow our 21795 # commands through without removal of \ escapes. 21796 if test -n "${ZSH_VERSION+set}"; then 21797 setopt NO_GLOB_SUBST 21798 fi 21799 21800 cfgfile=${ofile}T 21801 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21802 $RM "$cfgfile" 21803 21804 cat <<_LT_EOF >> "$cfgfile" 21805#! $SHELL 21806# Generated automatically by $as_me ($PACKAGE) $VERSION 21807# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21808# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21809 21810# Provide generalized library-building support services. 21811# Written by Gordon Matzigkeit, 1996 21812 21813# Copyright (C) 2014 Free Software Foundation, Inc. 21814# This is free software; see the source for copying conditions. There is NO 21815# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21816 21817# GNU Libtool is free software; you can redistribute it and/or modify 21818# it under the terms of the GNU General Public License as published by 21819# the Free Software Foundation; either version 2 of of the License, or 21820# (at your option) any later version. 21821# 21822# As a special exception to the GNU General Public License, if you 21823# distribute this file as part of a program or library that is built 21824# using GNU Libtool, you may include this file under the same 21825# distribution terms that you use for the rest of that program. 21826# 21827# GNU Libtool is distributed in the hope that it will be useful, but 21828# WITHOUT ANY WARRANTY; without even the implied warranty of 21829# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21830# GNU General Public License for more details. 21831# 21832# You should have received a copy of the GNU General Public License 21833# along with this program. If not, see <http://www.gnu.org/licenses/>. 21834 21835 21836# The names of the tagged configurations supported by this script. 21837available_tags='' 21838 21839# Configured defaults for sys_lib_dlsearch_path munging. 21840: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21841 21842# ### BEGIN LIBTOOL CONFIG 21843 21844# Whether or not to build static libraries. 21845build_old_libs=$enable_static 21846 21847# Which release of libtool.m4 was used? 21848macro_version=$macro_version 21849macro_revision=$macro_revision 21850 21851# Whether or not to build shared libraries. 21852build_libtool_libs=$enable_shared 21853 21854# What type of objects to build. 21855pic_mode=$pic_mode 21856 21857# Whether or not to optimize for fast installation. 21858fast_install=$enable_fast_install 21859 21860# Shared archive member basename,for filename based shared library versioning on AIX. 21861shared_archive_member_spec=$shared_archive_member_spec 21862 21863# Shell to use when invoking shell scripts. 21864SHELL=$lt_SHELL 21865 21866# An echo program that protects backslashes. 21867ECHO=$lt_ECHO 21868 21869# The PATH separator for the build system. 21870PATH_SEPARATOR=$lt_PATH_SEPARATOR 21871 21872# The host system. 21873host_alias=$host_alias 21874host=$host 21875host_os=$host_os 21876 21877# The build system. 21878build_alias=$build_alias 21879build=$build 21880build_os=$build_os 21881 21882# A sed program that does not truncate output. 21883SED=$lt_SED 21884 21885# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21886Xsed="\$SED -e 1s/^X//" 21887 21888# A grep program that handles long lines. 21889GREP=$lt_GREP 21890 21891# An ERE matcher. 21892EGREP=$lt_EGREP 21893 21894# A literal string matcher. 21895FGREP=$lt_FGREP 21896 21897# A BSD- or MS-compatible name lister. 21898NM=$lt_NM 21899 21900# Whether we need soft or hard links. 21901LN_S=$lt_LN_S 21902 21903# What is the maximum length of a command? 21904max_cmd_len=$max_cmd_len 21905 21906# Object file suffix (normally "o"). 21907objext=$ac_objext 21908 21909# Executable file suffix (normally ""). 21910exeext=$exeext 21911 21912# whether the shell understands "unset". 21913lt_unset=$lt_unset 21914 21915# turn spaces into newlines. 21916SP2NL=$lt_lt_SP2NL 21917 21918# turn newlines into spaces. 21919NL2SP=$lt_lt_NL2SP 21920 21921# convert \$build file names to \$host format. 21922to_host_file_cmd=$lt_cv_to_host_file_cmd 21923 21924# convert \$build files to toolchain format. 21925to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21926 21927# An object symbol dumper. 21928OBJDUMP=$lt_OBJDUMP 21929 21930# Method to check whether dependent libraries are shared objects. 21931deplibs_check_method=$lt_deplibs_check_method 21932 21933# Command to use when deplibs_check_method = "file_magic". 21934file_magic_cmd=$lt_file_magic_cmd 21935 21936# How to find potential files when deplibs_check_method = "file_magic". 21937file_magic_glob=$lt_file_magic_glob 21938 21939# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21940want_nocaseglob=$lt_want_nocaseglob 21941 21942# DLL creation program. 21943DLLTOOL=$lt_DLLTOOL 21944 21945# Command to associate shared and link libraries. 21946sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21947 21948# The archiver. 21949AR=$lt_AR 21950 21951# Flags to create an archive. 21952AR_FLAGS=$lt_AR_FLAGS 21953 21954# How to feed a file listing to the archiver. 21955archiver_list_spec=$lt_archiver_list_spec 21956 21957# A symbol stripping program. 21958STRIP=$lt_STRIP 21959 21960# Commands used to install an old-style archive. 21961RANLIB=$lt_RANLIB 21962old_postinstall_cmds=$lt_old_postinstall_cmds 21963old_postuninstall_cmds=$lt_old_postuninstall_cmds 21964 21965# Whether to use a lock for old archive extraction. 21966lock_old_archive_extraction=$lock_old_archive_extraction 21967 21968# A C compiler. 21969LTCC=$lt_CC 21970 21971# LTCC compiler flags. 21972LTCFLAGS=$lt_CFLAGS 21973 21974# Take the output of nm and produce a listing of raw symbols and C names. 21975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21976 21977# Transform the output of nm in a proper C declaration. 21978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21979 21980# Transform the output of nm into a list of symbols to manually relocate. 21981global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21982 21983# Transform the output of nm in a C name address pair. 21984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21985 21986# Transform the output of nm in a C name address pair when lib prefix is needed. 21987global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21988 21989# The name lister interface. 21990nm_interface=$lt_lt_cv_nm_interface 21991 21992# Specify filename containing input files for \$NM. 21993nm_file_list_spec=$lt_nm_file_list_spec 21994 21995# The root where to search for dependent libraries,and where our libraries should be installed. 21996lt_sysroot=$lt_sysroot 21997 21998# Command to truncate a binary pipe. 21999lt_truncate_bin=$lt_lt_cv_truncate_bin 22000 22001# The name of the directory that contains temporary libtool files. 22002objdir=$objdir 22003 22004# Used to examine libraries when file_magic_cmd begins with "file". 22005MAGIC_CMD=$MAGIC_CMD 22006 22007# Must we lock files when doing compilation? 22008need_locks=$lt_need_locks 22009 22010# Manifest tool. 22011MANIFEST_TOOL=$lt_MANIFEST_TOOL 22012 22013# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22014DSYMUTIL=$lt_DSYMUTIL 22015 22016# Tool to change global to local symbols on Mac OS X. 22017NMEDIT=$lt_NMEDIT 22018 22019# Tool to manipulate fat objects and archives on Mac OS X. 22020LIPO=$lt_LIPO 22021 22022# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22023OTOOL=$lt_OTOOL 22024 22025# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22026OTOOL64=$lt_OTOOL64 22027 22028# Old archive suffix (normally "a"). 22029libext=$libext 22030 22031# Shared library suffix (normally ".so"). 22032shrext_cmds=$lt_shrext_cmds 22033 22034# The commands to extract the exported symbol list from a shared archive. 22035extract_expsyms_cmds=$lt_extract_expsyms_cmds 22036 22037# Variables whose values should be saved in libtool wrapper scripts and 22038# restored at link time. 22039variables_saved_for_relink=$lt_variables_saved_for_relink 22040 22041# Do we need the "lib" prefix for modules? 22042need_lib_prefix=$need_lib_prefix 22043 22044# Do we need a version for libraries? 22045need_version=$need_version 22046 22047# Library versioning type. 22048version_type=$version_type 22049 22050# Shared library runtime path variable. 22051runpath_var=$runpath_var 22052 22053# Shared library path variable. 22054shlibpath_var=$shlibpath_var 22055 22056# Is shlibpath searched before the hard-coded library search path? 22057shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22058 22059# Format of library name prefix. 22060libname_spec=$lt_libname_spec 22061 22062# List of archive names. First name is the real one, the rest are links. 22063# The last name is the one that the linker finds with -lNAME 22064library_names_spec=$lt_library_names_spec 22065 22066# The coded name of the library, if different from the real name. 22067soname_spec=$lt_soname_spec 22068 22069# Permission mode override for installation of shared libraries. 22070install_override_mode=$lt_install_override_mode 22071 22072# Command to use after installation of a shared archive. 22073postinstall_cmds=$lt_postinstall_cmds 22074 22075# Command to use after uninstallation of a shared archive. 22076postuninstall_cmds=$lt_postuninstall_cmds 22077 22078# Commands used to finish a libtool library installation in a directory. 22079finish_cmds=$lt_finish_cmds 22080 22081# As "finish_cmds", except a single script fragment to be evaled but 22082# not shown. 22083finish_eval=$lt_finish_eval 22084 22085# Whether we should hardcode library paths into libraries. 22086hardcode_into_libs=$hardcode_into_libs 22087 22088# Compile-time system search path for libraries. 22089sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22090 22091# Detected run-time system search path for libraries. 22092sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22093 22094# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22095configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22096 22097# Whether dlopen is supported. 22098dlopen_support=$enable_dlopen 22099 22100# Whether dlopen of programs is supported. 22101dlopen_self=$enable_dlopen_self 22102 22103# Whether dlopen of statically linked programs is supported. 22104dlopen_self_static=$enable_dlopen_self_static 22105 22106# Commands to strip libraries. 22107old_striplib=$lt_old_striplib 22108striplib=$lt_striplib 22109 22110 22111# The linker used to build libraries. 22112LD=$lt_LD 22113 22114# How to create reloadable object files. 22115reload_flag=$lt_reload_flag 22116reload_cmds=$lt_reload_cmds 22117 22118# Commands used to build an old-style archive. 22119old_archive_cmds=$lt_old_archive_cmds 22120 22121# A language specific compiler. 22122CC=$lt_compiler 22123 22124# Is the compiler the GNU compiler? 22125with_gcc=$GCC 22126 22127# Compiler flag to turn off builtin functions. 22128no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22129 22130# Additional compiler flags for building library objects. 22131pic_flag=$lt_lt_prog_compiler_pic 22132 22133# How to pass a linker flag through the compiler. 22134wl=$lt_lt_prog_compiler_wl 22135 22136# Compiler flag to prevent dynamic linking. 22137link_static_flag=$lt_lt_prog_compiler_static 22138 22139# Does compiler simultaneously support -c and -o options? 22140compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22141 22142# Whether or not to add -lc for building shared libraries. 22143build_libtool_need_lc=$archive_cmds_need_lc 22144 22145# Whether or not to disallow shared libs when runtime libs are static. 22146allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22147 22148# Compiler flag to allow reflexive dlopens. 22149export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22150 22151# Compiler flag to generate shared objects directly from archives. 22152whole_archive_flag_spec=$lt_whole_archive_flag_spec 22153 22154# Whether the compiler copes with passing no objects directly. 22155compiler_needs_object=$lt_compiler_needs_object 22156 22157# Create an old-style archive from a shared archive. 22158old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22159 22160# Create a temporary old-style archive to link instead of a shared archive. 22161old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22162 22163# Commands used to build a shared archive. 22164archive_cmds=$lt_archive_cmds 22165archive_expsym_cmds=$lt_archive_expsym_cmds 22166 22167# Commands used to build a loadable module if different from building 22168# a shared archive. 22169module_cmds=$lt_module_cmds 22170module_expsym_cmds=$lt_module_expsym_cmds 22171 22172# Whether we are building with GNU ld or not. 22173with_gnu_ld=$lt_with_gnu_ld 22174 22175# Flag that allows shared libraries with undefined symbols to be built. 22176allow_undefined_flag=$lt_allow_undefined_flag 22177 22178# Flag that enforces no undefined symbols. 22179no_undefined_flag=$lt_no_undefined_flag 22180 22181# Flag to hardcode \$libdir into a binary during linking. 22182# This must work even if \$libdir does not exist 22183hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22184 22185# Whether we need a single "-rpath" flag with a separated argument. 22186hardcode_libdir_separator=$lt_hardcode_libdir_separator 22187 22188# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22189# DIR into the resulting binary. 22190hardcode_direct=$hardcode_direct 22191 22192# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22193# DIR into the resulting binary and the resulting library dependency is 22194# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22195# library is relocated. 22196hardcode_direct_absolute=$hardcode_direct_absolute 22197 22198# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22199# into the resulting binary. 22200hardcode_minus_L=$hardcode_minus_L 22201 22202# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22203# into the resulting binary. 22204hardcode_shlibpath_var=$hardcode_shlibpath_var 22205 22206# Set to "yes" if building a shared library automatically hardcodes DIR 22207# into the library and all subsequent libraries and executables linked 22208# against it. 22209hardcode_automatic=$hardcode_automatic 22210 22211# Set to yes if linker adds runtime paths of dependent libraries 22212# to runtime path list. 22213inherit_rpath=$inherit_rpath 22214 22215# Whether libtool must link a program against all its dependency libraries. 22216link_all_deplibs=$link_all_deplibs 22217 22218# Set to "yes" if exported symbols are required. 22219always_export_symbols=$always_export_symbols 22220 22221# The commands to list exported symbols. 22222export_symbols_cmds=$lt_export_symbols_cmds 22223 22224# Symbols that should not be listed in the preloaded symbols. 22225exclude_expsyms=$lt_exclude_expsyms 22226 22227# Symbols that must always be exported. 22228include_expsyms=$lt_include_expsyms 22229 22230# Commands necessary for linking programs (against libraries) with templates. 22231prelink_cmds=$lt_prelink_cmds 22232 22233# Commands necessary for finishing linking programs. 22234postlink_cmds=$lt_postlink_cmds 22235 22236# Specify filename containing input files. 22237file_list_spec=$lt_file_list_spec 22238 22239# How to hardcode a shared library path into an executable. 22240hardcode_action=$hardcode_action 22241 22242# ### END LIBTOOL CONFIG 22243 22244_LT_EOF 22245 22246 cat <<'_LT_EOF' >> "$cfgfile" 22247 22248# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22249 22250# func_munge_path_list VARIABLE PATH 22251# ----------------------------------- 22252# VARIABLE is name of variable containing _space_ separated list of 22253# directories to be munged by the contents of PATH, which is string 22254# having a format: 22255# "DIR[:DIR]:" 22256# string "DIR[ DIR]" will be prepended to VARIABLE 22257# ":DIR[:DIR]" 22258# string "DIR[ DIR]" will be appended to VARIABLE 22259# "DIRP[:DIRP]::[DIRA:]DIRA" 22260# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22261# "DIRA[ DIRA]" will be appended to VARIABLE 22262# "DIR[:DIR]" 22263# VARIABLE will be replaced by "DIR[ DIR]" 22264func_munge_path_list () 22265{ 22266 case x$2 in 22267 x) 22268 ;; 22269 *:) 22270 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22271 ;; 22272 x:*) 22273 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22274 ;; 22275 *::*) 22276 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22277 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22278 ;; 22279 *) 22280 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22281 ;; 22282 esac 22283} 22284 22285 22286# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22287func_cc_basename () 22288{ 22289 for cc_temp in $*""; do 22290 case $cc_temp in 22291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22293 \-*) ;; 22294 *) break;; 22295 esac 22296 done 22297 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22298} 22299 22300 22301# ### END FUNCTIONS SHARED WITH CONFIGURE 22302 22303_LT_EOF 22304 22305 case $host_os in 22306 aix3*) 22307 cat <<\_LT_EOF >> "$cfgfile" 22308# AIX sometimes has problems with the GCC collect2 program. For some 22309# reason, if we set the COLLECT_NAMES environment variable, the problems 22310# vanish in a puff of smoke. 22311if test set != "${COLLECT_NAMES+set}"; then 22312 COLLECT_NAMES= 22313 export COLLECT_NAMES 22314fi 22315_LT_EOF 22316 ;; 22317 esac 22318 22319 22320ltmain=$ac_aux_dir/ltmain.sh 22321 22322 22323 # We use sed instead of cat because bash on DJGPP gets confused if 22324 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22325 # text mode, it properly converts lines to CR/LF. This bash problem 22326 # is reportedly fixed, but why not run on old versions too? 22327 sed '$q' "$ltmain" >> "$cfgfile" \ 22328 || (rm -f "$cfgfile"; exit 1) 22329 22330 mv -f "$cfgfile" "$ofile" || 22331 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22332 chmod +x "$ofile" 22333 22334 ;; 22335 22336 esac 22337done # for ac_tag 22338 22339 22340as_fn_exit 0 22341_ACEOF 22342ac_clean_files=$ac_clean_files_save 22343 22344test $ac_write_fail = 0 || 22345 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22346 22347 22348# configure is writing to config.log, and then calls config.status. 22349# config.status does its own redirection, appending to config.log. 22350# Unfortunately, on DOS this fails, as config.log is still kept open 22351# by configure, so config.status won't be able to write to it; its 22352# output is simply discarded. So we exec the FD to /dev/null, 22353# effectively closing config.log, so it can be properly (re)opened and 22354# appended to by config.status. When coming back to configure, we 22355# need to make the FD available again. 22356if test "$no_create" != yes; then 22357 ac_cs_success=: 22358 ac_config_status_args= 22359 test "$silent" = yes && 22360 ac_config_status_args="$ac_config_status_args --quiet" 22361 exec 5>/dev/null 22362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22363 exec 5>>config.log 22364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22365 # would make configure fail if this is the last instruction. 22366 $ac_cs_success || as_fn_exit 1 22367fi 22368if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22370$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22371fi 22372 22373 22374echo "" 22375echo " prefix: $prefix" 22376echo " exec_prefix: $exec_prefix" 22377echo " libdir: $libdir" 22378echo " includedir: $includedir" 22379echo " configdir: $configdir" 22380 22381echo "" 22382echo " CFLAGS: $CFLAGS" 22383echo " CXXFLAGS: $CXXFLAGS" 22384echo " Macros: $DEFINES" 22385 22386echo "" 22387echo " Run '${MAKE-make}' to build xf86-video-amdgpu" 22388echo "" 22389