configure revision d6c0b56e
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-amdgpu 1.1.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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 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='1.1.0' 595PACKAGE_STRING='xf86-video-amdgpu 1.1.0' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 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 654HAS_XORG_CONF_DIR_FALSE 655HAS_XORG_CONF_DIR_TRUE 656configdir 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 722MAINT 723MAINTAINER_MODE_FALSE 724MAINTAINER_MODE_TRUE 725am__fastdepCC_FALSE 726am__fastdepCC_TRUE 727CCDEPMODE 728am__nodep 729AMDEPBACKSLASH 730AMDEP_FALSE 731AMDEP_TRUE 732am__quote 733am__include 734DEPDIR 735OBJEXT 736EXEEXT 737ac_ct_CC 738CPPFLAGS 739LDFLAGS 740CFLAGS 741CC 742AM_BACKSLASH 743AM_DEFAULT_VERBOSITY 744AM_DEFAULT_V 745AM_V 746am__untar 747am__tar 748AMTAR 749am__leading_dot 750SET_MAKE 751AWK 752mkdir_p 753MKDIR_P 754INSTALL_STRIP_PROGRAM 755STRIP 756install_sh 757MAKEINFO 758AUTOHEADER 759AUTOMAKE 760AUTOCONF 761ACLOCAL 762VERSION 763PACKAGE 764CYGPATH_W 765am__isrc 766INSTALL_DATA 767INSTALL_SCRIPT 768INSTALL_PROGRAM 769target_alias 770host_alias 771build_alias 772LIBS 773ECHO_T 774ECHO_N 775ECHO_C 776DEFS 777mandir 778localedir 779libdir 780psdir 781pdfdir 782dvidir 783htmldir 784infodir 785docdir 786oldincludedir 787includedir 788runstatedir 789localstatedir 790sharedstatedir 791sysconfdir 792datadir 793datarootdir 794libexecdir 795sbindir 796bindir 797program_transform_name 798prefix 799exec_prefix 800PACKAGE_URL 801PACKAGE_BUGREPORT 802PACKAGE_STRING 803PACKAGE_VERSION 804PACKAGE_TARNAME 805PACKAGE_NAME 806PATH_SEPARATOR 807SHELL' 808ac_subst_files='' 809ac_user_opts=' 810enable_option_checking 811enable_silent_rules 812enable_largefile 813enable_dependency_tracking 814enable_maintainer_mode 815enable_selective_werror 816enable_strict_compilation 817enable_static 818enable_shared 819with_pic 820enable_fast_install 821with_aix_soname 822with_gnu_ld 823with_sysroot 824enable_libtool_lock 825with_xorg_module_dir 826with_xorg_conf_dir 827enable_udev 828enable_glamor 829' 830 ac_precious_vars='build_alias 831host_alias 832target_alias 833CC 834CFLAGS 835LDFLAGS 836LIBS 837CPPFLAGS 838CPP 839PKG_CONFIG 840PKG_CONFIG_PATH 841PKG_CONFIG_LIBDIR 842LT_SYS_LIBRARY_PATH 843LIBDRM_CFLAGS 844LIBDRM_LIBS 845LIBDRM_AMDGPU_CFLAGS 846LIBDRM_AMDGPU_LIBS 847GBM_CFLAGS 848GBM_LIBS 849XORG_CFLAGS 850XORG_LIBS 851XEXT_CFLAGS 852XEXT_LIBS 853LIBUDEV_CFLAGS 854LIBUDEV_LIBS 855LIBGL_CFLAGS 856LIBGL_LIBS 857LIBGLAMOR_CFLAGS 858LIBGLAMOR_LIBS 859LIBGLAMOR_EGL_CFLAGS 860LIBGLAMOR_EGL_LIBS' 861 862 863# Initialize some variables set by options. 864ac_init_help= 865ac_init_version=false 866ac_unrecognized_opts= 867ac_unrecognized_sep= 868# The variables have the same names as the options, with 869# dashes changed to underlines. 870cache_file=/dev/null 871exec_prefix=NONE 872no_create= 873no_recursion= 874prefix=NONE 875program_prefix=NONE 876program_suffix=NONE 877program_transform_name=s,x,x, 878silent= 879site= 880srcdir= 881verbose= 882x_includes=NONE 883x_libraries=NONE 884 885# Installation directory options. 886# These are left unexpanded so users can "make install exec_prefix=/foo" 887# and all the variables that are supposed to be based on exec_prefix 888# by default will actually change. 889# Use braces instead of parens because sh, perl, etc. also accept them. 890# (The list follows the same order as the GNU Coding Standards.) 891bindir='${exec_prefix}/bin' 892sbindir='${exec_prefix}/sbin' 893libexecdir='${exec_prefix}/libexec' 894datarootdir='${prefix}/share' 895datadir='${datarootdir}' 896sysconfdir='${prefix}/etc' 897sharedstatedir='${prefix}/com' 898localstatedir='${prefix}/var' 899runstatedir='${localstatedir}/run' 900includedir='${prefix}/include' 901oldincludedir='/usr/include' 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 903infodir='${datarootdir}/info' 904htmldir='${docdir}' 905dvidir='${docdir}' 906pdfdir='${docdir}' 907psdir='${docdir}' 908libdir='${exec_prefix}/lib' 909localedir='${datarootdir}/locale' 910mandir='${datarootdir}/man' 911 912ac_prev= 913ac_dashdash= 914for ac_option 915do 916 # If the previous option needs an argument, assign it. 917 if test -n "$ac_prev"; then 918 eval $ac_prev=\$ac_option 919 ac_prev= 920 continue 921 fi 922 923 case $ac_option in 924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 925 *=) ac_optarg= ;; 926 *) ac_optarg=yes ;; 927 esac 928 929 # Accept the important Cygnus configure options, so we can diagnose typos. 930 931 case $ac_dashdash$ac_option in 932 --) 933 ac_dashdash=yes ;; 934 935 -bindir | --bindir | --bindi | --bind | --bin | --bi) 936 ac_prev=bindir ;; 937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 938 bindir=$ac_optarg ;; 939 940 -build | --build | --buil | --bui | --bu) 941 ac_prev=build_alias ;; 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 943 build_alias=$ac_optarg ;; 944 945 -cache-file | --cache-file | --cache-fil | --cache-fi \ 946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 947 ac_prev=cache_file ;; 948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 950 cache_file=$ac_optarg ;; 951 952 --config-cache | -C) 953 cache_file=config.cache ;; 954 955 -datadir | --datadir | --datadi | --datad) 956 ac_prev=datadir ;; 957 -datadir=* | --datadir=* | --datadi=* | --datad=*) 958 datadir=$ac_optarg ;; 959 960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 961 | --dataroo | --dataro | --datar) 962 ac_prev=datarootdir ;; 963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 965 datarootdir=$ac_optarg ;; 966 967 -disable-* | --disable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=no ;; 982 983 -docdir | --docdir | --docdi | --doc | --do) 984 ac_prev=docdir ;; 985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 986 docdir=$ac_optarg ;; 987 988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 989 ac_prev=dvidir ;; 990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 991 dvidir=$ac_optarg ;; 992 993 -enable-* | --enable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error $? "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1153 | --runstate | --runstat | --runsta | --runst | --runs \ 1154 | --run | --ru | --r) 1155 ac_prev=runstatedir ;; 1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1158 | --run=* | --ru=* | --r=*) 1159 runstatedir=$ac_optarg ;; 1160 1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1162 ac_prev=sbindir ;; 1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1164 | --sbi=* | --sb=*) 1165 sbindir=$ac_optarg ;; 1166 1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1169 | --sharedst | --shareds | --shared | --share | --shar \ 1170 | --sha | --sh) 1171 ac_prev=sharedstatedir ;; 1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1175 | --sha=* | --sh=*) 1176 sharedstatedir=$ac_optarg ;; 1177 1178 -site | --site | --sit) 1179 ac_prev=site ;; 1180 -site=* | --site=* | --sit=*) 1181 site=$ac_optarg ;; 1182 1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1184 ac_prev=srcdir ;; 1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1186 srcdir=$ac_optarg ;; 1187 1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1189 | --syscon | --sysco | --sysc | --sys | --sy) 1190 ac_prev=sysconfdir ;; 1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1193 sysconfdir=$ac_optarg ;; 1194 1195 -target | --target | --targe | --targ | --tar | --ta | --t) 1196 ac_prev=target_alias ;; 1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1198 target_alias=$ac_optarg ;; 1199 1200 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1201 verbose=yes ;; 1202 1203 -version | --version | --versio | --versi | --vers | -V) 1204 ac_init_version=: ;; 1205 1206 -with-* | --with-*) 1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1208 # Reject names that are not valid shell variable names. 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 as_fn_error $? "invalid package name: $ac_useropt" 1211 ac_useropt_orig=$ac_useropt 1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1213 case $ac_user_opts in 1214 *" 1215"with_$ac_useropt" 1216"*) ;; 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1218 ac_unrecognized_sep=', ';; 1219 esac 1220 eval with_$ac_useropt=\$ac_optarg ;; 1221 1222 -without-* | --without-*) 1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1226 as_fn_error $? "invalid package name: $ac_useropt" 1227 ac_useropt_orig=$ac_useropt 1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1229 case $ac_user_opts in 1230 *" 1231"with_$ac_useropt" 1232"*) ;; 1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1234 ac_unrecognized_sep=', ';; 1235 esac 1236 eval with_$ac_useropt=no ;; 1237 1238 --x) 1239 # Obsolete; use --with-x. 1240 with_x=yes ;; 1241 1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1243 | --x-incl | --x-inc | --x-in | --x-i) 1244 ac_prev=x_includes ;; 1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1247 x_includes=$ac_optarg ;; 1248 1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1251 ac_prev=x_libraries ;; 1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1254 x_libraries=$ac_optarg ;; 1255 1256 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1257Try \`$0 --help' for more information" 1258 ;; 1259 1260 *=*) 1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1262 # Reject names that are not valid shell variable names. 1263 case $ac_envvar in #( 1264 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1266 esac 1267 eval $ac_envvar=\$ac_optarg 1268 export $ac_envvar ;; 1269 1270 *) 1271 # FIXME: should be removed in autoconf 3.0. 1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1276 ;; 1277 1278 esac 1279done 1280 1281if test -n "$ac_prev"; then 1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1283 as_fn_error $? "missing argument to $ac_option" 1284fi 1285 1286if test -n "$ac_unrecognized_opts"; then 1287 case $enable_option_checking in 1288 no) ;; 1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1291 esac 1292fi 1293 1294# Check all directory arguments for consistency. 1295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1296 datadir sysconfdir sharedstatedir localstatedir includedir \ 1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1298 libdir localedir mandir runstatedir 1299do 1300 eval ac_val=\$$ac_var 1301 # Remove trailing slashes. 1302 case $ac_val in 1303 */ ) 1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1305 eval $ac_var=\$ac_val;; 1306 esac 1307 # Be sure to have absolute directory names. 1308 case $ac_val in 1309 [\\/$]* | ?:[\\/]* ) continue;; 1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1311 esac 1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1313done 1314 1315# There might be people who depend on the old broken behavior: `$host' 1316# used to hold the argument of --host etc. 1317# FIXME: To remove some day. 1318build=$build_alias 1319host=$host_alias 1320target=$target_alias 1321 1322# FIXME: To remove some day. 1323if test "x$host_alias" != x; then 1324 if test "x$build_alias" = x; then 1325 cross_compiling=maybe 1326 elif test "x$build_alias" != "x$host_alias"; then 1327 cross_compiling=yes 1328 fi 1329fi 1330 1331ac_tool_prefix= 1332test -n "$host_alias" && ac_tool_prefix=$host_alias- 1333 1334test "$silent" = yes && exec 6>/dev/null 1335 1336 1337ac_pwd=`pwd` && test -n "$ac_pwd" && 1338ac_ls_di=`ls -di .` && 1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1340 as_fn_error $? "working directory cannot be determined" 1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1342 as_fn_error $? "pwd does not report name of working directory" 1343 1344 1345# Find the source files, if location was not specified. 1346if test -z "$srcdir"; then 1347 ac_srcdir_defaulted=yes 1348 # Try the directory containing this script, then the parent directory. 1349 ac_confdir=`$as_dirname -- "$as_myself" || 1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1351 X"$as_myself" : 'X\(//\)[^/]' \| \ 1352 X"$as_myself" : 'X\(//\)$' \| \ 1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1354$as_echo X"$as_myself" | 1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)[^/].*/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\/\)$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\).*/{ 1368 s//\1/ 1369 q 1370 } 1371 s/.*/./; q'` 1372 srcdir=$ac_confdir 1373 if test ! -r "$srcdir/$ac_unique_file"; then 1374 srcdir=.. 1375 fi 1376else 1377 ac_srcdir_defaulted=no 1378fi 1379if test ! -r "$srcdir/$ac_unique_file"; then 1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1382fi 1383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1384ac_abs_confdir=`( 1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1386 pwd)` 1387# When building in place, set srcdir=. 1388if test "$ac_abs_confdir" = "$ac_pwd"; then 1389 srcdir=. 1390fi 1391# Remove unnecessary trailing slashes from srcdir. 1392# Double slashes in file names in object file debugging info 1393# mess up M-x gdb in Emacs. 1394case $srcdir in 1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1396esac 1397for ac_var in $ac_precious_vars; do 1398 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_env_${ac_var}_value=\$${ac_var} 1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1402done 1403 1404# 1405# Report the --help message. 1406# 1407if test "$ac_init_help" = "long"; then 1408 # Omit some internal or obsolete options to make the list less imposing. 1409 # This message is too long to be a string in the A/UX 3.1 sh. 1410 cat <<_ACEOF 1411\`configure' configures xf86-video-amdgpu 1.1.0 to adapt to many kinds of systems. 1412 1413Usage: $0 [OPTION]... [VAR=VALUE]... 1414 1415To assign environment variables (e.g., CC, CFLAGS...), specify them as 1416VAR=VALUE. See below for descriptions of some of the useful variables. 1417 1418Defaults for the options are specified in brackets. 1419 1420Configuration: 1421 -h, --help display this help and exit 1422 --help=short display options specific to this package 1423 --help=recursive display the short help of all the included packages 1424 -V, --version display version information and exit 1425 -q, --quiet, --silent do not print \`checking ...' messages 1426 --cache-file=FILE cache test results in FILE [disabled] 1427 -C, --config-cache alias for \`--cache-file=config.cache' 1428 -n, --no-create do not create output files 1429 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1430 1431Installation directories: 1432 --prefix=PREFIX install architecture-independent files in PREFIX 1433 [$ac_default_prefix] 1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1435 [PREFIX] 1436 1437By default, \`make install' will install all the files in 1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1439an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1440for instance \`--prefix=\$HOME'. 1441 1442For better control, use the options below. 1443 1444Fine tuning of the installation directories: 1445 --bindir=DIR user executables [EPREFIX/bin] 1446 --sbindir=DIR system admin executables [EPREFIX/sbin] 1447 --libexecdir=DIR program executables [EPREFIX/libexec] 1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1452 --libdir=DIR object code libraries [EPREFIX/lib] 1453 --includedir=DIR C header files [PREFIX/include] 1454 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1457 --infodir=DIR info documentation [DATAROOTDIR/info] 1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1459 --mandir=DIR man documentation [DATAROOTDIR/man] 1460 --docdir=DIR documentation root 1461 [DATAROOTDIR/doc/xf86-video-amdgpu] 1462 --htmldir=DIR html documentation [DOCDIR] 1463 --dvidir=DIR dvi documentation [DOCDIR] 1464 --pdfdir=DIR pdf documentation [DOCDIR] 1465 --psdir=DIR ps documentation [DOCDIR] 1466_ACEOF 1467 1468 cat <<\_ACEOF 1469 1470Program names: 1471 --program-prefix=PREFIX prepend PREFIX to installed program names 1472 --program-suffix=SUFFIX append SUFFIX to installed program names 1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1474 1475System types: 1476 --build=BUILD configure for building on BUILD [guessed] 1477 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1478_ACEOF 1479fi 1480 1481if test -n "$ac_init_help"; then 1482 case $ac_init_help in 1483 short | recursive ) echo "Configuration of xf86-video-amdgpu 1.1.0:";; 1484 esac 1485 cat <<\_ACEOF 1486 1487Optional Features: 1488 --disable-option-checking ignore unrecognized --enable/--with options 1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1491 --enable-silent-rules less verbose build output (undo: "make V=1") 1492 --disable-silent-rules verbose build output (undo: "make V=0") 1493 --disable-largefile omit support for large files 1494 --enable-dependency-tracking 1495 do not reject slow dependency extractors 1496 --disable-dependency-tracking 1497 speeds up one-time build 1498 --enable-maintainer-mode 1499 enable make rules and dependencies not useful (and 1500 sometimes confusing) to the casual installer 1501 --disable-selective-werror 1502 Turn off selective compiler errors. (default: 1503 enabled) 1504 --enable-strict-compilation 1505 Enable all warnings from compiler and make them 1506 errors (default: disabled) 1507 --enable-static[=PKGS] build static libraries [default=no] 1508 --enable-shared[=PKGS] build shared libraries [default=yes] 1509 --enable-fast-install[=PKGS] 1510 optimize for fast installation [default=yes] 1511 --disable-libtool-lock avoid locking (might break parallel builds) 1512 --disable-udev Disable libudev support [default=auto] 1513 --disable-glamor Disable glamor, a new GL-based acceleration 1514 [default=enabled] 1515 1516Optional Packages: 1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1519 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1520 both] 1521 --with-aix-soname=aix|svr4|both 1522 shared library versioning (aka "SONAME") variant to 1523 provide on AIX, [default=aix]. 1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1525 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1526 compiler's sysroot if not specified). 1527 --with-xorg-module-dir=DIR 1528 Default xorg module directory 1529 [[default=$libdir/xorg/modules]] 1530 --with-xorg-conf-dir=DIR 1531 Default xorg.conf.d directory [[default=from 1532 $PKG_CONFIG xorg-server]] 1533 1534Some influential environment variables: 1535 CC C compiler command 1536 CFLAGS C compiler flags 1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1538 nonstandard directory <lib dir> 1539 LIBS libraries to pass to the linker, e.g. -l<library> 1540 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1541 you have headers in a nonstandard directory <include dir> 1542 CPP C preprocessor 1543 PKG_CONFIG path to pkg-config utility 1544 PKG_CONFIG_PATH 1545 directories to add to pkg-config's search path 1546 PKG_CONFIG_LIBDIR 1547 path overriding pkg-config's built-in search path 1548 LT_SYS_LIBRARY_PATH 1549 User-defined run-time library search path. 1550 LIBDRM_CFLAGS 1551 C compiler flags for LIBDRM, overriding pkg-config 1552 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1553 LIBDRM_AMDGPU_CFLAGS 1554 C compiler flags for LIBDRM_AMDGPU, overriding pkg-config 1555 LIBDRM_AMDGPU_LIBS 1556 linker flags for LIBDRM_AMDGPU, overriding pkg-config 1557 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 1558 GBM_LIBS linker flags for GBM, overriding pkg-config 1559 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1560 XORG_LIBS linker flags for XORG, overriding pkg-config 1561 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1562 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1563 LIBUDEV_CFLAGS 1564 C compiler flags for LIBUDEV, overriding pkg-config 1565 LIBUDEV_LIBS 1566 linker flags for LIBUDEV, overriding pkg-config 1567 LIBGL_CFLAGS 1568 C compiler flags for LIBGL, overriding pkg-config 1569 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config 1570 LIBGLAMOR_CFLAGS 1571 C compiler flags for LIBGLAMOR, overriding pkg-config 1572 LIBGLAMOR_LIBS 1573 linker flags for LIBGLAMOR, overriding pkg-config 1574 LIBGLAMOR_EGL_CFLAGS 1575 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config 1576 LIBGLAMOR_EGL_LIBS 1577 linker flags for LIBGLAMOR_EGL, overriding pkg-config 1578 1579Use these variables to override the choices made by `configure' or to help 1580it to find libraries and programs with nonstandard names/locations. 1581 1582Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1583_ACEOF 1584ac_status=$? 1585fi 1586 1587if test "$ac_init_help" = "recursive"; then 1588 # If there are subdirs, report their specific --help. 1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1590 test -d "$ac_dir" || 1591 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1592 continue 1593 ac_builddir=. 1594 1595case "$ac_dir" in 1596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1597*) 1598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1599 # A ".." for each directory in $ac_dir_suffix. 1600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1601 case $ac_top_builddir_sub in 1602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1604 esac ;; 1605esac 1606ac_abs_top_builddir=$ac_pwd 1607ac_abs_builddir=$ac_pwd$ac_dir_suffix 1608# for backward compatibility: 1609ac_top_builddir=$ac_top_build_prefix 1610 1611case $srcdir in 1612 .) # We are building in place. 1613 ac_srcdir=. 1614 ac_top_srcdir=$ac_top_builddir_sub 1615 ac_abs_top_srcdir=$ac_pwd ;; 1616 [\\/]* | ?:[\\/]* ) # Absolute name. 1617 ac_srcdir=$srcdir$ac_dir_suffix; 1618 ac_top_srcdir=$srcdir 1619 ac_abs_top_srcdir=$srcdir ;; 1620 *) # Relative name. 1621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1622 ac_top_srcdir=$ac_top_build_prefix$srcdir 1623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1624esac 1625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1626 1627 cd "$ac_dir" || { ac_status=$?; continue; } 1628 # Check for guested configure. 1629 if test -f "$ac_srcdir/configure.gnu"; then 1630 echo && 1631 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1632 elif test -f "$ac_srcdir/configure"; then 1633 echo && 1634 $SHELL "$ac_srcdir/configure" --help=recursive 1635 else 1636 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1637 fi || ac_status=$? 1638 cd "$ac_pwd" || { ac_status=$?; break; } 1639 done 1640fi 1641 1642test -n "$ac_init_help" && exit $ac_status 1643if $ac_init_version; then 1644 cat <<\_ACEOF 1645xf86-video-amdgpu configure 1.1.0 1646generated by GNU Autoconf 2.69 1647 1648Copyright (C) 2012 Free Software Foundation, Inc. 1649This configure script is free software; the Free Software Foundation 1650gives unlimited permission to copy, distribute and modify it. 1651_ACEOF 1652 exit 1653fi 1654 1655## ------------------------ ## 1656## Autoconf initialization. ## 1657## ------------------------ ## 1658 1659# ac_fn_c_try_compile LINENO 1660# -------------------------- 1661# Try to compile conftest.$ac_ext, and return whether this succeeded. 1662ac_fn_c_try_compile () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 rm -f conftest.$ac_objext 1666 if { { ac_try="$ac_compile" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_compile") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } && { 1682 test -z "$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 } && test -s conftest.$ac_objext; then : 1685 ac_retval=0 1686else 1687 $as_echo "$as_me: failed program was:" >&5 1688sed 's/^/| /' conftest.$ac_ext >&5 1689 1690 ac_retval=1 1691fi 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_compile 1696 1697# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1698# --------------------------------------------- 1699# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1700# accordingly. 1701ac_fn_c_check_decl () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 as_decl_name=`echo $2|sed 's/ *(.*//'` 1705 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1707$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1708if eval \${$3+:} false; then : 1709 $as_echo_n "(cached) " >&6 1710else 1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1712/* end confdefs.h. */ 1713$4 1714int 1715main () 1716{ 1717#ifndef $as_decl_name 1718#ifdef __cplusplus 1719 (void) $as_decl_use; 1720#else 1721 (void) $as_decl_name; 1722#endif 1723#endif 1724 1725 ; 1726 return 0; 1727} 1728_ACEOF 1729if ac_fn_c_try_compile "$LINENO"; then : 1730 eval "$3=yes" 1731else 1732 eval "$3=no" 1733fi 1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1735fi 1736eval ac_res=\$$3 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738$as_echo "$ac_res" >&6; } 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 1741} # ac_fn_c_check_decl 1742 1743# ac_fn_c_try_cpp LINENO 1744# ---------------------- 1745# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1746ac_fn_c_try_cpp () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 if { { ac_try="$ac_cpp conftest.$ac_ext" 1750case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1757 ac_status=$? 1758 if test -s conftest.err; then 1759 grep -v '^ *+' conftest.err >conftest.er1 1760 cat conftest.er1 >&5 1761 mv -f conftest.er1 conftest.err 1762 fi 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; } > conftest.i && { 1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1766 test ! -s conftest.err 1767 }; then : 1768 ac_retval=0 1769else 1770 $as_echo "$as_me: failed program was:" >&5 1771sed 's/^/| /' conftest.$ac_ext >&5 1772 1773 ac_retval=1 1774fi 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 as_fn_set_status $ac_retval 1777 1778} # ac_fn_c_try_cpp 1779 1780# ac_fn_c_try_run LINENO 1781# ---------------------- 1782# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1783# that executables *can* be run. 1784ac_fn_c_try_run () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 if { { ac_try="$ac_link" 1788case "(($ac_try" in 1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1790 *) ac_try_echo=$ac_try;; 1791esac 1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1793$as_echo "$ac_try_echo"; } >&5 1794 (eval "$ac_link") 2>&5 1795 ac_status=$? 1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1798 { { case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_try") 2>&5 1805 ac_status=$? 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; }; }; then : 1808 ac_retval=0 1809else 1810 $as_echo "$as_me: program exited with status $ac_status" >&5 1811 $as_echo "$as_me: failed program was:" >&5 1812sed 's/^/| /' conftest.$ac_ext >&5 1813 1814 ac_retval=$ac_status 1815fi 1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 as_fn_set_status $ac_retval 1819 1820} # ac_fn_c_try_run 1821 1822# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1823# ------------------------------------------------------- 1824# Tests whether HEADER exists and can be compiled using the include files in 1825# INCLUDES, setting the cache variable VAR accordingly. 1826ac_fn_c_check_header_compile () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1830$as_echo_n "checking for $2... " >&6; } 1831if eval \${$3+:} false; then : 1832 $as_echo_n "(cached) " >&6 1833else 1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1835/* end confdefs.h. */ 1836$4 1837#include <$2> 1838_ACEOF 1839if ac_fn_c_try_compile "$LINENO"; then : 1840 eval "$3=yes" 1841else 1842 eval "$3=no" 1843fi 1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1845fi 1846eval ac_res=\$$3 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1848$as_echo "$ac_res" >&6; } 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 1851} # ac_fn_c_check_header_compile 1852 1853# ac_fn_c_try_link LINENO 1854# ----------------------- 1855# Try to link conftest.$ac_ext, and return whether this succeeded. 1856ac_fn_c_try_link () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 rm -f conftest.$ac_objext conftest$ac_exeext 1860 if { { ac_try="$ac_link" 1861case "(($ac_try" in 1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1863 *) ac_try_echo=$ac_try;; 1864esac 1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1866$as_echo "$ac_try_echo"; } >&5 1867 (eval "$ac_link") 2>conftest.err 1868 ac_status=$? 1869 if test -s conftest.err; then 1870 grep -v '^ *+' conftest.err >conftest.er1 1871 cat conftest.er1 >&5 1872 mv -f conftest.er1 conftest.err 1873 fi 1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1875 test $ac_status = 0; } && { 1876 test -z "$ac_c_werror_flag" || 1877 test ! -s conftest.err 1878 } && test -s conftest$ac_exeext && { 1879 test "$cross_compiling" = yes || 1880 test -x conftest$ac_exeext 1881 }; then : 1882 ac_retval=0 1883else 1884 $as_echo "$as_me: failed program was:" >&5 1885sed 's/^/| /' conftest.$ac_ext >&5 1886 1887 ac_retval=1 1888fi 1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1891 # interfere with the next link command; also delete a directory that is 1892 # left behind by Apple's compiler. We do this before executing the actions. 1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 as_fn_set_status $ac_retval 1896 1897} # ac_fn_c_try_link 1898 1899# ac_fn_c_check_func LINENO FUNC VAR 1900# ---------------------------------- 1901# Tests whether FUNC exists, setting the cache variable VAR accordingly 1902ac_fn_c_check_func () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906$as_echo_n "checking for $2... " >&6; } 1907if eval \${$3+:} false; then : 1908 $as_echo_n "(cached) " >&6 1909else 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1914#define $2 innocuous_$2 1915 1916/* System header to define __stub macros and hopefully few prototypes, 1917 which can conflict with char $2 (); below. 1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1919 <limits.h> exists even on freestanding compilers. */ 1920 1921#ifdef __STDC__ 1922# include <limits.h> 1923#else 1924# include <assert.h> 1925#endif 1926 1927#undef $2 1928 1929/* Override any GCC internal prototype to avoid an error. 1930 Use char because int might match the return type of a GCC 1931 builtin and then its argument prototype would still apply. */ 1932#ifdef __cplusplus 1933extern "C" 1934#endif 1935char $2 (); 1936/* The GNU C library defines this for functions which it implements 1937 to always fail with ENOSYS. Some functions are actually named 1938 something starting with __ and the normal name is an alias. */ 1939#if defined __stub_$2 || defined __stub___$2 1940choke me 1941#endif 1942 1943int 1944main () 1945{ 1946return $2 (); 1947 ; 1948 return 0; 1949} 1950_ACEOF 1951if ac_fn_c_try_link "$LINENO"; then : 1952 eval "$3=yes" 1953else 1954 eval "$3=no" 1955fi 1956rm -f core conftest.err conftest.$ac_objext \ 1957 conftest$ac_exeext conftest.$ac_ext 1958fi 1959eval ac_res=\$$3 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1961$as_echo "$ac_res" >&6; } 1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1963 1964} # ac_fn_c_check_func 1965 1966# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1967# ------------------------------------------------------- 1968# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1969# the include files in INCLUDES and setting the cache variable VAR 1970# accordingly. 1971ac_fn_c_check_header_mongrel () 1972{ 1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1974 if eval \${$3+:} false; then : 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1976$as_echo_n "checking for $2... " >&6; } 1977if eval \${$3+:} false; then : 1978 $as_echo_n "(cached) " >&6 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983else 1984 # Is the header compilable? 1985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1986$as_echo_n "checking $2 usability... " >&6; } 1987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1988/* end confdefs.h. */ 1989$4 1990#include <$2> 1991_ACEOF 1992if ac_fn_c_try_compile "$LINENO"; then : 1993 ac_header_compiler=yes 1994else 1995 ac_header_compiler=no 1996fi 1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1999$as_echo "$ac_header_compiler" >&6; } 2000 2001# Is the header present? 2002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2003$as_echo_n "checking $2 presence... " >&6; } 2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006#include <$2> 2007_ACEOF 2008if ac_fn_c_try_cpp "$LINENO"; then : 2009 ac_header_preproc=yes 2010else 2011 ac_header_preproc=no 2012fi 2013rm -f conftest.err conftest.i conftest.$ac_ext 2014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2015$as_echo "$ac_header_preproc" >&6; } 2016 2017# So? What about this header? 2018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2019 yes:no: ) 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2021$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2024 ;; 2025 no:yes:* ) 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2027$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2029$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2031$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2033$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2036( $as_echo "## ---------------------------------------------------------------------- ## 2037## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2038## ---------------------------------------------------------------------- ##" 2039 ) | sed "s/^/$as_me: WARNING: /" >&2 2040 ;; 2041esac 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2043$as_echo_n "checking for $2... " >&6; } 2044if eval \${$3+:} false; then : 2045 $as_echo_n "(cached) " >&6 2046else 2047 eval "$3=\$ac_header_compiler" 2048fi 2049eval ac_res=\$$3 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2051$as_echo "$ac_res" >&6; } 2052fi 2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2054 2055} # ac_fn_c_check_header_mongrel 2056cat >config.log <<_ACEOF 2057This file contains any messages produced by compilers while 2058running configure, to aid debugging if configure makes a mistake. 2059 2060It was created by xf86-video-amdgpu $as_me 1.1.0, which was 2061generated by GNU Autoconf 2.69. Invocation command line was 2062 2063 $ $0 $@ 2064 2065_ACEOF 2066exec 5>>config.log 2067{ 2068cat <<_ASUNAME 2069## --------- ## 2070## Platform. ## 2071## --------- ## 2072 2073hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2074uname -m = `(uname -m) 2>/dev/null || echo unknown` 2075uname -r = `(uname -r) 2>/dev/null || echo unknown` 2076uname -s = `(uname -s) 2>/dev/null || echo unknown` 2077uname -v = `(uname -v) 2>/dev/null || echo unknown` 2078 2079/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2080/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2081 2082/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2083/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2084/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2085/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2086/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2087/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2088/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2089 2090_ASUNAME 2091 2092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2093for as_dir in $PATH 2094do 2095 IFS=$as_save_IFS 2096 test -z "$as_dir" && as_dir=. 2097 $as_echo "PATH: $as_dir" 2098 done 2099IFS=$as_save_IFS 2100 2101} >&5 2102 2103cat >&5 <<_ACEOF 2104 2105 2106## ----------- ## 2107## Core tests. ## 2108## ----------- ## 2109 2110_ACEOF 2111 2112 2113# Keep a trace of the command line. 2114# Strip out --no-create and --no-recursion so they do not pile up. 2115# Strip out --silent because we don't want to record it for future runs. 2116# Also quote any args containing shell meta-characters. 2117# Make two passes to allow for proper duplicate-argument suppression. 2118ac_configure_args= 2119ac_configure_args0= 2120ac_configure_args1= 2121ac_must_keep_next=false 2122for ac_pass in 1 2 2123do 2124 for ac_arg 2125 do 2126 case $ac_arg in 2127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2129 | -silent | --silent | --silen | --sile | --sil) 2130 continue ;; 2131 *\'*) 2132 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2133 esac 2134 case $ac_pass in 2135 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2136 2) 2137 as_fn_append ac_configure_args1 " '$ac_arg'" 2138 if test $ac_must_keep_next = true; then 2139 ac_must_keep_next=false # Got value, back to normal. 2140 else 2141 case $ac_arg in 2142 *=* | --config-cache | -C | -disable-* | --disable-* \ 2143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2145 | -with-* | --with-* | -without-* | --without-* | --x) 2146 case "$ac_configure_args0 " in 2147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2148 esac 2149 ;; 2150 -* ) ac_must_keep_next=true ;; 2151 esac 2152 fi 2153 as_fn_append ac_configure_args " '$ac_arg'" 2154 ;; 2155 esac 2156 done 2157done 2158{ ac_configure_args0=; unset ac_configure_args0;} 2159{ ac_configure_args1=; unset ac_configure_args1;} 2160 2161# When interrupted or exit'd, cleanup temporary files, and complete 2162# config.log. We remove comments because anyway the quotes in there 2163# would cause problems or look ugly. 2164# WARNING: Use '\'' to represent an apostrophe within the trap. 2165# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2166trap 'exit_status=$? 2167 # Save into config.log some information that might help in debugging. 2168 { 2169 echo 2170 2171 $as_echo "## ---------------- ## 2172## Cache variables. ## 2173## ---------------- ##" 2174 echo 2175 # The following way of writing the cache mishandles newlines in values, 2176( 2177 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2178 eval ac_val=\$$ac_var 2179 case $ac_val in #( 2180 *${as_nl}*) 2181 case $ac_var in #( 2182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2183$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2184 esac 2185 case $ac_var in #( 2186 _ | IFS | as_nl) ;; #( 2187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2188 *) { eval $ac_var=; unset $ac_var;} ;; 2189 esac ;; 2190 esac 2191 done 2192 (set) 2>&1 | 2193 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2194 *${as_nl}ac_space=\ *) 2195 sed -n \ 2196 "s/'\''/'\''\\\\'\'''\''/g; 2197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2198 ;; #( 2199 *) 2200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2201 ;; 2202 esac | 2203 sort 2204) 2205 echo 2206 2207 $as_echo "## ----------------- ## 2208## Output variables. ## 2209## ----------------- ##" 2210 echo 2211 for ac_var in $ac_subst_vars 2212 do 2213 eval ac_val=\$$ac_var 2214 case $ac_val in 2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2216 esac 2217 $as_echo "$ac_var='\''$ac_val'\''" 2218 done | sort 2219 echo 2220 2221 if test -n "$ac_subst_files"; then 2222 $as_echo "## ------------------- ## 2223## File substitutions. ## 2224## ------------------- ##" 2225 echo 2226 for ac_var in $ac_subst_files 2227 do 2228 eval ac_val=\$$ac_var 2229 case $ac_val in 2230 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2231 esac 2232 $as_echo "$ac_var='\''$ac_val'\''" 2233 done | sort 2234 echo 2235 fi 2236 2237 if test -s confdefs.h; then 2238 $as_echo "## ----------- ## 2239## confdefs.h. ## 2240## ----------- ##" 2241 echo 2242 cat confdefs.h 2243 echo 2244 fi 2245 test "$ac_signal" != 0 && 2246 $as_echo "$as_me: caught signal $ac_signal" 2247 $as_echo "$as_me: exit $exit_status" 2248 } >&5 2249 rm -f core *.core core.conftest.* && 2250 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2251 exit $exit_status 2252' 0 2253for ac_signal in 1 2 13 15; do 2254 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2255done 2256ac_signal=0 2257 2258# confdefs.h avoids OS command line length limits that DEFS can exceed. 2259rm -f -r conftest* confdefs.h 2260 2261$as_echo "/* confdefs.h */" > confdefs.h 2262 2263# Predefined preprocessor variables. 2264 2265cat >>confdefs.h <<_ACEOF 2266#define PACKAGE_NAME "$PACKAGE_NAME" 2267_ACEOF 2268 2269cat >>confdefs.h <<_ACEOF 2270#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2271_ACEOF 2272 2273cat >>confdefs.h <<_ACEOF 2274#define PACKAGE_VERSION "$PACKAGE_VERSION" 2275_ACEOF 2276 2277cat >>confdefs.h <<_ACEOF 2278#define PACKAGE_STRING "$PACKAGE_STRING" 2279_ACEOF 2280 2281cat >>confdefs.h <<_ACEOF 2282#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2283_ACEOF 2284 2285cat >>confdefs.h <<_ACEOF 2286#define PACKAGE_URL "$PACKAGE_URL" 2287_ACEOF 2288 2289 2290# Let the site file select an alternate cache file if it wants to. 2291# Prefer an explicitly selected file to automatically selected ones. 2292ac_site_file1=NONE 2293ac_site_file2=NONE 2294if test -n "$CONFIG_SITE"; then 2295 # We do not want a PATH search for config.site. 2296 case $CONFIG_SITE in #(( 2297 -*) ac_site_file1=./$CONFIG_SITE;; 2298 */*) ac_site_file1=$CONFIG_SITE;; 2299 *) ac_site_file1=./$CONFIG_SITE;; 2300 esac 2301elif test "x$prefix" != xNONE; then 2302 ac_site_file1=$prefix/share/config.site 2303 ac_site_file2=$prefix/etc/config.site 2304else 2305 ac_site_file1=$ac_default_prefix/share/config.site 2306 ac_site_file2=$ac_default_prefix/etc/config.site 2307fi 2308for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2309do 2310 test "x$ac_site_file" = xNONE && continue 2311 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2313$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2314 sed 's/^/| /' "$ac_site_file" >&5 2315 . "$ac_site_file" \ 2316 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2318as_fn_error $? "failed to load site script $ac_site_file 2319See \`config.log' for more details" "$LINENO" 5; } 2320 fi 2321done 2322 2323if test -r "$cache_file"; then 2324 # Some versions of bash will fail to source /dev/null (special files 2325 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2326 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2328$as_echo "$as_me: loading cache $cache_file" >&6;} 2329 case $cache_file in 2330 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2331 *) . "./$cache_file";; 2332 esac 2333 fi 2334else 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2336$as_echo "$as_me: creating cache $cache_file" >&6;} 2337 >$cache_file 2338fi 2339 2340# Check that the precious variables saved in the cache have kept the same 2341# value. 2342ac_cache_corrupted=false 2343for ac_var in $ac_precious_vars; do 2344 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2345 eval ac_new_set=\$ac_env_${ac_var}_set 2346 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2347 eval ac_new_val=\$ac_env_${ac_var}_value 2348 case $ac_old_set,$ac_new_set in 2349 set,) 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2351$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2352 ac_cache_corrupted=: ;; 2353 ,set) 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2355$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2356 ac_cache_corrupted=: ;; 2357 ,);; 2358 *) 2359 if test "x$ac_old_val" != "x$ac_new_val"; then 2360 # differences in whitespace do not lead to failure. 2361 ac_old_val_w=`echo x $ac_old_val` 2362 ac_new_val_w=`echo x $ac_new_val` 2363 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2365$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2366 ac_cache_corrupted=: 2367 else 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2369$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2370 eval $ac_var=\$ac_old_val 2371 fi 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2373$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2375$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2376 fi;; 2377 esac 2378 # Pass precious variables to config.status. 2379 if test "$ac_new_set" = set; then 2380 case $ac_new_val in 2381 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2382 *) ac_arg=$ac_var=$ac_new_val ;; 2383 esac 2384 case " $ac_configure_args " in 2385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2386 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2387 esac 2388 fi 2389done 2390if $ac_cache_corrupted; then 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2394$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2395 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2396fi 2397## -------------------- ## 2398## Main body of script. ## 2399## -------------------- ## 2400 2401ac_ext=c 2402ac_cpp='$CPP $CPPFLAGS' 2403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2405ac_compiler_gnu=$ac_cv_c_compiler_gnu 2406 2407 2408 2409 2410ac_config_headers="$ac_config_headers config.h" 2411 2412 2413ac_aux_dir= 2414for ac_dir in . "$srcdir"/.; do 2415 if test -f "$ac_dir/install-sh"; then 2416 ac_aux_dir=$ac_dir 2417 ac_install_sh="$ac_aux_dir/install-sh -c" 2418 break 2419 elif test -f "$ac_dir/install.sh"; then 2420 ac_aux_dir=$ac_dir 2421 ac_install_sh="$ac_aux_dir/install.sh -c" 2422 break 2423 elif test -f "$ac_dir/shtool"; then 2424 ac_aux_dir=$ac_dir 2425 ac_install_sh="$ac_aux_dir/shtool install -c" 2426 break 2427 fi 2428done 2429if test -z "$ac_aux_dir"; then 2430 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2431fi 2432 2433# These three variables are undocumented and unsupported, 2434# and are intended to be withdrawn in a future Autoconf release. 2435# They can cause serious problems if a builder's source tree is in a directory 2436# whose full name contains unusual characters. 2437ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2438ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2439ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2440 2441 2442 2443# Initialize Automake 2444am__api_version='1.15' 2445 2446# Find a good install program. We prefer a C program (faster), 2447# so one script is as good as another. But avoid the broken or 2448# incompatible versions: 2449# SysV /etc/install, /usr/sbin/install 2450# SunOS /usr/etc/install 2451# IRIX /sbin/install 2452# AIX /bin/install 2453# AmigaOS /C/install, which installs bootblocks on floppy discs 2454# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2455# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2456# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2457# OS/2's system install, which has a completely different semantic 2458# ./install, which can be erroneously created by make from ./install.sh. 2459# Reject install programs that cannot install multiple files. 2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2461$as_echo_n "checking for a BSD-compatible install... " >&6; } 2462if test -z "$INSTALL"; then 2463if ${ac_cv_path_install+:} false; then : 2464 $as_echo_n "(cached) " >&6 2465else 2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2467for as_dir in $PATH 2468do 2469 IFS=$as_save_IFS 2470 test -z "$as_dir" && as_dir=. 2471 # Account for people who put trailing slashes in PATH elements. 2472case $as_dir/ in #(( 2473 ./ | .// | /[cC]/* | \ 2474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2475 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2476 /usr/ucb/* ) ;; 2477 *) 2478 # OSF1 and SCO ODT 3.0 have their own names for install. 2479 # Don't use installbsd from OSF since it installs stuff as root 2480 # by default. 2481 for ac_prog in ginstall scoinst install; do 2482 for ac_exec_ext in '' $ac_executable_extensions; do 2483 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2484 if test $ac_prog = install && 2485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2486 # AIX install. It has an incompatible calling convention. 2487 : 2488 elif test $ac_prog = install && 2489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2490 # program-specific install script used by HP pwplus--don't use. 2491 : 2492 else 2493 rm -rf conftest.one conftest.two conftest.dir 2494 echo one > conftest.one 2495 echo two > conftest.two 2496 mkdir conftest.dir 2497 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2498 test -s conftest.one && test -s conftest.two && 2499 test -s conftest.dir/conftest.one && 2500 test -s conftest.dir/conftest.two 2501 then 2502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2503 break 3 2504 fi 2505 fi 2506 fi 2507 done 2508 done 2509 ;; 2510esac 2511 2512 done 2513IFS=$as_save_IFS 2514 2515rm -rf conftest.one conftest.two conftest.dir 2516 2517fi 2518 if test "${ac_cv_path_install+set}" = set; then 2519 INSTALL=$ac_cv_path_install 2520 else 2521 # As a last resort, use the slow shell script. Don't cache a 2522 # value for INSTALL within a source directory, because that will 2523 # break other packages using the cache if that directory is 2524 # removed, or if the value is a relative name. 2525 INSTALL=$ac_install_sh 2526 fi 2527fi 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2529$as_echo "$INSTALL" >&6; } 2530 2531# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2532# It thinks the first close brace ends the variable substitution. 2533test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2534 2535test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2536 2537test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2538 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2540$as_echo_n "checking whether build environment is sane... " >&6; } 2541# Reject unsafe characters in $srcdir or the absolute working directory 2542# name. Accept space and tab only in the latter. 2543am_lf=' 2544' 2545case `pwd` in 2546 *[\\\"\#\$\&\'\`$am_lf]*) 2547 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2548esac 2549case $srcdir in 2550 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2551 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2552esac 2553 2554# Do 'set' in a subshell so we don't clobber the current shell's 2555# arguments. Must try -L first in case configure is actually a 2556# symlink; some systems play weird games with the mod time of symlinks 2557# (eg FreeBSD returns the mod time of the symlink's containing 2558# directory). 2559if ( 2560 am_has_slept=no 2561 for am_try in 1 2; do 2562 echo "timestamp, slept: $am_has_slept" > conftest.file 2563 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2564 if test "$*" = "X"; then 2565 # -L didn't work. 2566 set X `ls -t "$srcdir/configure" conftest.file` 2567 fi 2568 if test "$*" != "X $srcdir/configure conftest.file" \ 2569 && test "$*" != "X conftest.file $srcdir/configure"; then 2570 2571 # If neither matched, then we have a broken ls. This can happen 2572 # if, for instance, CONFIG_SHELL is bash and it inherits a 2573 # broken ls alias from the environment. This has actually 2574 # happened. Such a system could not be considered "sane". 2575 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2576 alias in your environment" "$LINENO" 5 2577 fi 2578 if test "$2" = conftest.file || test $am_try -eq 2; then 2579 break 2580 fi 2581 # Just in case. 2582 sleep 1 2583 am_has_slept=yes 2584 done 2585 test "$2" = conftest.file 2586 ) 2587then 2588 # Ok. 2589 : 2590else 2591 as_fn_error $? "newly created file is older than distributed files! 2592Check your system clock" "$LINENO" 5 2593fi 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2595$as_echo "yes" >&6; } 2596# If we didn't sleep, we still need to ensure time stamps of config.status and 2597# generated files are strictly newer. 2598am_sleep_pid= 2599if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2600 ( sleep 1 ) & 2601 am_sleep_pid=$! 2602fi 2603 2604rm -f conftest.file 2605 2606test "$program_prefix" != NONE && 2607 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2608# Use a double $ so make ignores it. 2609test "$program_suffix" != NONE && 2610 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2611# Double any \ or $. 2612# By default was `s,x,x', remove it if useless. 2613ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2614program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2615 2616# Expand $ac_aux_dir to an absolute path. 2617am_aux_dir=`cd "$ac_aux_dir" && pwd` 2618 2619if test x"${MISSING+set}" != xset; then 2620 case $am_aux_dir in 2621 *\ * | *\ *) 2622 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2623 *) 2624 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2625 esac 2626fi 2627# Use eval to expand $SHELL 2628if eval "$MISSING --is-lightweight"; then 2629 am_missing_run="$MISSING " 2630else 2631 am_missing_run= 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2633$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2634fi 2635 2636if test x"${install_sh+set}" != xset; then 2637 case $am_aux_dir in 2638 *\ * | *\ *) 2639 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2640 *) 2641 install_sh="\${SHELL} $am_aux_dir/install-sh" 2642 esac 2643fi 2644 2645# Installed binaries are usually stripped using 'strip' when the user 2646# run "make install-strip". However 'strip' might not be the right 2647# tool to use in cross-compilation environments, therefore Automake 2648# will honor the 'STRIP' environment variable to overrule this program. 2649if test "$cross_compiling" != no; then 2650 if test -n "$ac_tool_prefix"; then 2651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2652set dummy ${ac_tool_prefix}strip; ac_word=$2 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2654$as_echo_n "checking for $ac_word... " >&6; } 2655if ${ac_cv_prog_STRIP+:} false; then : 2656 $as_echo_n "(cached) " >&6 2657else 2658 if test -n "$STRIP"; then 2659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2660else 2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2662for as_dir in $PATH 2663do 2664 IFS=$as_save_IFS 2665 test -z "$as_dir" && as_dir=. 2666 for ac_exec_ext in '' $ac_executable_extensions; do 2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2668 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2670 break 2 2671 fi 2672done 2673 done 2674IFS=$as_save_IFS 2675 2676fi 2677fi 2678STRIP=$ac_cv_prog_STRIP 2679if test -n "$STRIP"; then 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2681$as_echo "$STRIP" >&6; } 2682else 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2684$as_echo "no" >&6; } 2685fi 2686 2687 2688fi 2689if test -z "$ac_cv_prog_STRIP"; then 2690 ac_ct_STRIP=$STRIP 2691 # Extract the first word of "strip", so it can be a program name with args. 2692set dummy strip; ac_word=$2 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2694$as_echo_n "checking for $ac_word... " >&6; } 2695if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2696 $as_echo_n "(cached) " >&6 2697else 2698 if test -n "$ac_ct_STRIP"; then 2699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2700else 2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2708 ac_cv_prog_ac_ct_STRIP="strip" 2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2710 break 2 2711 fi 2712done 2713 done 2714IFS=$as_save_IFS 2715 2716fi 2717fi 2718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2719if test -n "$ac_ct_STRIP"; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2721$as_echo "$ac_ct_STRIP" >&6; } 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2724$as_echo "no" >&6; } 2725fi 2726 2727 if test "x$ac_ct_STRIP" = x; then 2728 STRIP=":" 2729 else 2730 case $cross_compiling:$ac_tool_warned in 2731yes:) 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2734ac_tool_warned=yes ;; 2735esac 2736 STRIP=$ac_ct_STRIP 2737 fi 2738else 2739 STRIP="$ac_cv_prog_STRIP" 2740fi 2741 2742fi 2743INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2744 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2746$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2747if test -z "$MKDIR_P"; then 2748 if ${ac_cv_path_mkdir+:} false; then : 2749 $as_echo_n "(cached) " >&6 2750else 2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2752for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2753do 2754 IFS=$as_save_IFS 2755 test -z "$as_dir" && as_dir=. 2756 for ac_prog in mkdir gmkdir; do 2757 for ac_exec_ext in '' $ac_executable_extensions; do 2758 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2759 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2760 'mkdir (GNU coreutils) '* | \ 2761 'mkdir (coreutils) '* | \ 2762 'mkdir (fileutils) '4.1*) 2763 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2764 break 3;; 2765 esac 2766 done 2767 done 2768 done 2769IFS=$as_save_IFS 2770 2771fi 2772 2773 test -d ./--version && rmdir ./--version 2774 if test "${ac_cv_path_mkdir+set}" = set; then 2775 MKDIR_P="$ac_cv_path_mkdir -p" 2776 else 2777 # As a last resort, use the slow shell script. Don't cache a 2778 # value for MKDIR_P within a source directory, because that will 2779 # break other packages using the cache if that directory is 2780 # removed, or if the value is a relative name. 2781 MKDIR_P="$ac_install_sh -d" 2782 fi 2783fi 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2785$as_echo "$MKDIR_P" >&6; } 2786 2787for ac_prog in gawk mawk nawk awk 2788do 2789 # Extract the first word of "$ac_prog", so it can be a program name with args. 2790set dummy $ac_prog; ac_word=$2 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2792$as_echo_n "checking for $ac_word... " >&6; } 2793if ${ac_cv_prog_AWK+:} false; then : 2794 $as_echo_n "(cached) " >&6 2795else 2796 if test -n "$AWK"; then 2797 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2798else 2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2800for as_dir in $PATH 2801do 2802 IFS=$as_save_IFS 2803 test -z "$as_dir" && as_dir=. 2804 for ac_exec_ext in '' $ac_executable_extensions; do 2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2806 ac_cv_prog_AWK="$ac_prog" 2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2808 break 2 2809 fi 2810done 2811 done 2812IFS=$as_save_IFS 2813 2814fi 2815fi 2816AWK=$ac_cv_prog_AWK 2817if test -n "$AWK"; then 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2819$as_echo "$AWK" >&6; } 2820else 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2822$as_echo "no" >&6; } 2823fi 2824 2825 2826 test -n "$AWK" && break 2827done 2828 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2830$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2831set x ${MAKE-make} 2832ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2833if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 cat >conftest.make <<\_ACEOF 2837SHELL = /bin/sh 2838all: 2839 @echo '@@@%%%=$(MAKE)=@@@%%%' 2840_ACEOF 2841# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2842case `${MAKE-make} -f conftest.make 2>/dev/null` in 2843 *@@@%%%=?*=@@@%%%*) 2844 eval ac_cv_prog_make_${ac_make}_set=yes;; 2845 *) 2846 eval ac_cv_prog_make_${ac_make}_set=no;; 2847esac 2848rm -f conftest.make 2849fi 2850if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2852$as_echo "yes" >&6; } 2853 SET_MAKE= 2854else 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2856$as_echo "no" >&6; } 2857 SET_MAKE="MAKE=${MAKE-make}" 2858fi 2859 2860rm -rf .tst 2>/dev/null 2861mkdir .tst 2>/dev/null 2862if test -d .tst; then 2863 am__leading_dot=. 2864else 2865 am__leading_dot=_ 2866fi 2867rmdir .tst 2>/dev/null 2868 2869# Check whether --enable-silent-rules was given. 2870if test "${enable_silent_rules+set}" = set; then : 2871 enableval=$enable_silent_rules; 2872fi 2873 2874case $enable_silent_rules in # ((( 2875 yes) AM_DEFAULT_VERBOSITY=0;; 2876 no) AM_DEFAULT_VERBOSITY=1;; 2877 *) AM_DEFAULT_VERBOSITY=1;; 2878esac 2879am_make=${MAKE-make} 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2881$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2882if ${am_cv_make_support_nested_variables+:} false; then : 2883 $as_echo_n "(cached) " >&6 2884else 2885 if $as_echo 'TRUE=$(BAR$(V)) 2886BAR0=false 2887BAR1=true 2888V=1 2889am__doit: 2890 @$(TRUE) 2891.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2892 am_cv_make_support_nested_variables=yes 2893else 2894 am_cv_make_support_nested_variables=no 2895fi 2896fi 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2898$as_echo "$am_cv_make_support_nested_variables" >&6; } 2899if test $am_cv_make_support_nested_variables = yes; then 2900 AM_V='$(V)' 2901 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2902else 2903 AM_V=$AM_DEFAULT_VERBOSITY 2904 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2905fi 2906AM_BACKSLASH='\' 2907 2908if test "`cd $srcdir && pwd`" != "`pwd`"; then 2909 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2910 # is not polluted with repeated "-I." 2911 am__isrc=' -I$(srcdir)' 2912 # test to see if srcdir already configured 2913 if test -f $srcdir/config.status; then 2914 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2915 fi 2916fi 2917 2918# test whether we have cygpath 2919if test -z "$CYGPATH_W"; then 2920 if (cygpath --version) >/dev/null 2>/dev/null; then 2921 CYGPATH_W='cygpath -w' 2922 else 2923 CYGPATH_W=echo 2924 fi 2925fi 2926 2927 2928# Define the identity of the package. 2929 PACKAGE='xf86-video-amdgpu' 2930 VERSION='1.1.0' 2931 2932 2933cat >>confdefs.h <<_ACEOF 2934#define PACKAGE "$PACKAGE" 2935_ACEOF 2936 2937 2938cat >>confdefs.h <<_ACEOF 2939#define VERSION "$VERSION" 2940_ACEOF 2941 2942# Some tools Automake needs. 2943 2944ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2945 2946 2947AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2948 2949 2950AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2951 2952 2953AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2954 2955 2956MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2957 2958# For better backward compatibility. To be removed once Automake 1.9.x 2959# dies out for good. For more background, see: 2960# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2961# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2962mkdir_p='$(MKDIR_P)' 2963 2964# We need awk for the "check" target (and possibly the TAP driver). The 2965# system "awk" is bad on some platforms. 2966# Always define AMTAR for backward compatibility. Yes, it's still used 2967# in the wild :-( We should find a proper way to deprecate it ... 2968AMTAR='$${TAR-tar}' 2969 2970 2971# We'll loop over all known methods to create a tar archive until one works. 2972_am_tools='gnutar pax cpio none' 2973 2974am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2975 2976 2977 2978 2979 2980 2981# POSIX will say in a future version that running "rm -f" with no argument 2982# is OK; and we want to be able to make that assumption in our Makefile 2983# recipes. So use an aggressive probe to check that the usage we want is 2984# actually supported "in the wild" to an acceptable degree. 2985# See automake bug#10828. 2986# To make any issue more visible, cause the running configure to be aborted 2987# by default if the 'rm' program in use doesn't match our expectations; the 2988# user can still override this though. 2989if rm -f && rm -fr && rm -rf; then : OK; else 2990 cat >&2 <<'END' 2991Oops! 2992 2993Your 'rm' program seems unable to run without file operands specified 2994on the command line, even when the '-f' option is present. This is contrary 2995to the behaviour of most rm programs out there, and not conforming with 2996the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2997 2998Please tell bug-automake@gnu.org about your system, including the value 2999of your $PATH and any error possibly output before this message. This 3000can help us improve future automake versions. 3001 3002END 3003 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3004 echo 'Configuration will proceed anyway, since you have set the' >&2 3005 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3006 echo >&2 3007 else 3008 cat >&2 <<'END' 3009Aborting the configuration process, to ensure you take notice of the issue. 3010 3011You can download and install GNU coreutils to get an 'rm' implementation 3012that behaves properly: <http://www.gnu.org/software/coreutils/>. 3013 3014If you want to complete the configuration process using your problematic 3015'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3016to "yes", and re-run configure. 3017 3018END 3019 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3020 fi 3021fi 3022 3023DEPDIR="${am__leading_dot}deps" 3024 3025ac_config_commands="$ac_config_commands depfiles" 3026 3027 3028am_make=${MAKE-make} 3029cat > confinc << 'END' 3030am__doit: 3031 @echo this is the am__doit target 3032.PHONY: am__doit 3033END 3034# If we don't find an include directive, just comment out the code. 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3036$as_echo_n "checking for style of include used by $am_make... " >&6; } 3037am__include="#" 3038am__quote= 3039_am_result=none 3040# First try GNU make style include. 3041echo "include confinc" > confmf 3042# Ignore all kinds of additional output from 'make'. 3043case `$am_make -s -f confmf 2> /dev/null` in #( 3044*the\ am__doit\ target*) 3045 am__include=include 3046 am__quote= 3047 _am_result=GNU 3048 ;; 3049esac 3050# Now try BSD make style include. 3051if test "$am__include" = "#"; then 3052 echo '.include "confinc"' > confmf 3053 case `$am_make -s -f confmf 2> /dev/null` in #( 3054 *the\ am__doit\ target*) 3055 am__include=.include 3056 am__quote="\"" 3057 _am_result=BSD 3058 ;; 3059 esac 3060fi 3061 3062 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3064$as_echo "$_am_result" >&6; } 3065rm -f confinc confmf 3066 3067# Check whether --enable-dependency-tracking was given. 3068if test "${enable_dependency_tracking+set}" = set; then : 3069 enableval=$enable_dependency_tracking; 3070fi 3071 3072if test "x$enable_dependency_tracking" != xno; then 3073 am_depcomp="$ac_aux_dir/depcomp" 3074 AMDEPBACKSLASH='\' 3075 am__nodep='_no' 3076fi 3077 if test "x$enable_dependency_tracking" != xno; then 3078 AMDEP_TRUE= 3079 AMDEP_FALSE='#' 3080else 3081 AMDEP_TRUE='#' 3082 AMDEP_FALSE= 3083fi 3084 3085 3086ac_ext=c 3087ac_cpp='$CPP $CPPFLAGS' 3088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3090ac_compiler_gnu=$ac_cv_c_compiler_gnu 3091if test -n "$ac_tool_prefix"; then 3092 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3093set dummy ${ac_tool_prefix}gcc; ac_word=$2 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3095$as_echo_n "checking for $ac_word... " >&6; } 3096if ${ac_cv_prog_CC+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 if test -n "$CC"; then 3100 ac_cv_prog_CC="$CC" # Let the user override the test. 3101else 3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3103for as_dir in $PATH 3104do 3105 IFS=$as_save_IFS 3106 test -z "$as_dir" && as_dir=. 3107 for ac_exec_ext in '' $ac_executable_extensions; do 3108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3109 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3111 break 2 3112 fi 3113done 3114 done 3115IFS=$as_save_IFS 3116 3117fi 3118fi 3119CC=$ac_cv_prog_CC 3120if test -n "$CC"; then 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3122$as_echo "$CC" >&6; } 3123else 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3125$as_echo "no" >&6; } 3126fi 3127 3128 3129fi 3130if test -z "$ac_cv_prog_CC"; then 3131 ac_ct_CC=$CC 3132 # Extract the first word of "gcc", so it can be a program name with args. 3133set dummy gcc; ac_word=$2 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3135$as_echo_n "checking for $ac_word... " >&6; } 3136if ${ac_cv_prog_ac_ct_CC+:} false; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test -n "$ac_ct_CC"; then 3140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3149 ac_cv_prog_ac_ct_CC="gcc" 3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154 done 3155IFS=$as_save_IFS 3156 3157fi 3158fi 3159ac_ct_CC=$ac_cv_prog_ac_ct_CC 3160if test -n "$ac_ct_CC"; then 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3162$as_echo "$ac_ct_CC" >&6; } 3163else 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3165$as_echo "no" >&6; } 3166fi 3167 3168 if test "x$ac_ct_CC" = x; then 3169 CC="" 3170 else 3171 case $cross_compiling:$ac_tool_warned in 3172yes:) 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3175ac_tool_warned=yes ;; 3176esac 3177 CC=$ac_ct_CC 3178 fi 3179else 3180 CC="$ac_cv_prog_CC" 3181fi 3182 3183if test -z "$CC"; then 3184 if test -n "$ac_tool_prefix"; then 3185 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3186set dummy ${ac_tool_prefix}cc; ac_word=$2 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3188$as_echo_n "checking for $ac_word... " >&6; } 3189if ${ac_cv_prog_CC+:} false; then : 3190 $as_echo_n "(cached) " >&6 3191else 3192 if test -n "$CC"; then 3193 ac_cv_prog_CC="$CC" # Let the user override the test. 3194else 3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3196for as_dir in $PATH 3197do 3198 IFS=$as_save_IFS 3199 test -z "$as_dir" && as_dir=. 3200 for ac_exec_ext in '' $ac_executable_extensions; do 3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3202 ac_cv_prog_CC="${ac_tool_prefix}cc" 3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3204 break 2 3205 fi 3206done 3207 done 3208IFS=$as_save_IFS 3209 3210fi 3211fi 3212CC=$ac_cv_prog_CC 3213if test -n "$CC"; then 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3215$as_echo "$CC" >&6; } 3216else 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3218$as_echo "no" >&6; } 3219fi 3220 3221 3222 fi 3223fi 3224if test -z "$CC"; then 3225 # Extract the first word of "cc", so it can be a program name with args. 3226set dummy cc; ac_word=$2 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228$as_echo_n "checking for $ac_word... " >&6; } 3229if ${ac_cv_prog_CC+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 if test -n "$CC"; then 3233 ac_cv_prog_CC="$CC" # Let the user override the test. 3234else 3235 ac_prog_rejected=no 3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3237for as_dir in $PATH 3238do 3239 IFS=$as_save_IFS 3240 test -z "$as_dir" && as_dir=. 3241 for ac_exec_ext in '' $ac_executable_extensions; do 3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3243 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3244 ac_prog_rejected=yes 3245 continue 3246 fi 3247 ac_cv_prog_CC="cc" 3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3249 break 2 3250 fi 3251done 3252 done 3253IFS=$as_save_IFS 3254 3255if test $ac_prog_rejected = yes; then 3256 # We found a bogon in the path, so make sure we never use it. 3257 set dummy $ac_cv_prog_CC 3258 shift 3259 if test $# != 0; then 3260 # We chose a different compiler from the bogus one. 3261 # However, it has the same basename, so the bogon will be chosen 3262 # first if we set CC to just the basename; use the full file name. 3263 shift 3264 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3265 fi 3266fi 3267fi 3268fi 3269CC=$ac_cv_prog_CC 3270if test -n "$CC"; then 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3272$as_echo "$CC" >&6; } 3273else 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3275$as_echo "no" >&6; } 3276fi 3277 3278 3279fi 3280if test -z "$CC"; then 3281 if test -n "$ac_tool_prefix"; then 3282 for ac_prog in cl.exe 3283 do 3284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3285set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3287$as_echo_n "checking for $ac_word... " >&6; } 3288if ${ac_cv_prog_CC+:} false; then : 3289 $as_echo_n "(cached) " >&6 3290else 3291 if test -n "$CC"; then 3292 ac_cv_prog_CC="$CC" # Let the user override the test. 3293else 3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3295for as_dir in $PATH 3296do 3297 IFS=$as_save_IFS 3298 test -z "$as_dir" && as_dir=. 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3301 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3303 break 2 3304 fi 3305done 3306 done 3307IFS=$as_save_IFS 3308 3309fi 3310fi 3311CC=$ac_cv_prog_CC 3312if test -n "$CC"; then 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3314$as_echo "$CC" >&6; } 3315else 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3317$as_echo "no" >&6; } 3318fi 3319 3320 3321 test -n "$CC" && break 3322 done 3323fi 3324if test -z "$CC"; then 3325 ac_ct_CC=$CC 3326 for ac_prog in cl.exe 3327do 3328 # Extract the first word of "$ac_prog", so it can be a program name with args. 3329set dummy $ac_prog; ac_word=$2 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3331$as_echo_n "checking for $ac_word... " >&6; } 3332if ${ac_cv_prog_ac_ct_CC+:} false; then : 3333 $as_echo_n "(cached) " >&6 3334else 3335 if test -n "$ac_ct_CC"; then 3336 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3337else 3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3339for as_dir in $PATH 3340do 3341 IFS=$as_save_IFS 3342 test -z "$as_dir" && as_dir=. 3343 for ac_exec_ext in '' $ac_executable_extensions; do 3344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3345 ac_cv_prog_ac_ct_CC="$ac_prog" 3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3347 break 2 3348 fi 3349done 3350 done 3351IFS=$as_save_IFS 3352 3353fi 3354fi 3355ac_ct_CC=$ac_cv_prog_ac_ct_CC 3356if test -n "$ac_ct_CC"; then 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3358$as_echo "$ac_ct_CC" >&6; } 3359else 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3361$as_echo "no" >&6; } 3362fi 3363 3364 3365 test -n "$ac_ct_CC" && break 3366done 3367 3368 if test "x$ac_ct_CC" = x; then 3369 CC="" 3370 else 3371 case $cross_compiling:$ac_tool_warned in 3372yes:) 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3375ac_tool_warned=yes ;; 3376esac 3377 CC=$ac_ct_CC 3378 fi 3379fi 3380 3381fi 3382 3383 3384test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3386as_fn_error $? "no acceptable C compiler found in \$PATH 3387See \`config.log' for more details" "$LINENO" 5; } 3388 3389# Provide some information about the compiler. 3390$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3391set X $ac_compile 3392ac_compiler=$2 3393for ac_option in --version -v -V -qversion; do 3394 { { ac_try="$ac_compiler $ac_option >&5" 3395case "(($ac_try" in 3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3397 *) ac_try_echo=$ac_try;; 3398esac 3399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3400$as_echo "$ac_try_echo"; } >&5 3401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3402 ac_status=$? 3403 if test -s conftest.err; then 3404 sed '10a\ 3405... rest of stderr output deleted ... 3406 10q' conftest.err >conftest.er1 3407 cat conftest.er1 >&5 3408 fi 3409 rm -f conftest.er1 conftest.err 3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3411 test $ac_status = 0; } 3412done 3413 3414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3415/* end confdefs.h. */ 3416 3417int 3418main () 3419{ 3420 3421 ; 3422 return 0; 3423} 3424_ACEOF 3425ac_clean_files_save=$ac_clean_files 3426ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3427# Try to create an executable without -o first, disregard a.out. 3428# It will help us diagnose broken compilers, and finding out an intuition 3429# of exeext. 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3431$as_echo_n "checking whether the C compiler works... " >&6; } 3432ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3433 3434# The possible output files: 3435ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3436 3437ac_rmfiles= 3438for ac_file in $ac_files 3439do 3440 case $ac_file in 3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3442 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3443 esac 3444done 3445rm -f $ac_rmfiles 3446 3447if { { ac_try="$ac_link_default" 3448case "(($ac_try" in 3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3450 *) ac_try_echo=$ac_try;; 3451esac 3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3453$as_echo "$ac_try_echo"; } >&5 3454 (eval "$ac_link_default") 2>&5 3455 ac_status=$? 3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3457 test $ac_status = 0; }; then : 3458 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3459# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3460# in a Makefile. We should not override ac_cv_exeext if it was cached, 3461# so that the user can short-circuit this test for compilers unknown to 3462# Autoconf. 3463for ac_file in $ac_files '' 3464do 3465 test -f "$ac_file" || continue 3466 case $ac_file in 3467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3468 ;; 3469 [ab].out ) 3470 # We found the default executable, but exeext='' is most 3471 # certainly right. 3472 break;; 3473 *.* ) 3474 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3475 then :; else 3476 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3477 fi 3478 # We set ac_cv_exeext here because the later test for it is not 3479 # safe: cross compilers may not add the suffix if given an `-o' 3480 # argument, so we may need to know it at that point already. 3481 # Even if this section looks crufty: it has the advantage of 3482 # actually working. 3483 break;; 3484 * ) 3485 break;; 3486 esac 3487done 3488test "$ac_cv_exeext" = no && ac_cv_exeext= 3489 3490else 3491 ac_file='' 3492fi 3493if test -z "$ac_file"; then : 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3495$as_echo "no" >&6; } 3496$as_echo "$as_me: failed program was:" >&5 3497sed 's/^/| /' conftest.$ac_ext >&5 3498 3499{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3501as_fn_error 77 "C compiler cannot create executables 3502See \`config.log' for more details" "$LINENO" 5; } 3503else 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3505$as_echo "yes" >&6; } 3506fi 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3508$as_echo_n "checking for C compiler default output file name... " >&6; } 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3510$as_echo "$ac_file" >&6; } 3511ac_exeext=$ac_cv_exeext 3512 3513rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3514ac_clean_files=$ac_clean_files_save 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3516$as_echo_n "checking for suffix of executables... " >&6; } 3517if { { ac_try="$ac_link" 3518case "(($ac_try" in 3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3520 *) ac_try_echo=$ac_try;; 3521esac 3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3523$as_echo "$ac_try_echo"; } >&5 3524 (eval "$ac_link") 2>&5 3525 ac_status=$? 3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3527 test $ac_status = 0; }; then : 3528 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3529# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3530# work properly (i.e., refer to `conftest.exe'), while it won't with 3531# `rm'. 3532for ac_file in conftest.exe conftest conftest.*; do 3533 test -f "$ac_file" || continue 3534 case $ac_file in 3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3536 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3537 break;; 3538 * ) break;; 3539 esac 3540done 3541else 3542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3544as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3545See \`config.log' for more details" "$LINENO" 5; } 3546fi 3547rm -f conftest conftest$ac_cv_exeext 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3549$as_echo "$ac_cv_exeext" >&6; } 3550 3551rm -f conftest.$ac_ext 3552EXEEXT=$ac_cv_exeext 3553ac_exeext=$EXEEXT 3554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3555/* end confdefs.h. */ 3556#include <stdio.h> 3557int 3558main () 3559{ 3560FILE *f = fopen ("conftest.out", "w"); 3561 return ferror (f) || fclose (f) != 0; 3562 3563 ; 3564 return 0; 3565} 3566_ACEOF 3567ac_clean_files="$ac_clean_files conftest.out" 3568# Check that the compiler produces executables we can run. If not, either 3569# the compiler is broken, or we cross compile. 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3571$as_echo_n "checking whether we are cross compiling... " >&6; } 3572if test "$cross_compiling" != yes; then 3573 { { ac_try="$ac_link" 3574case "(($ac_try" in 3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3576 *) ac_try_echo=$ac_try;; 3577esac 3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3579$as_echo "$ac_try_echo"; } >&5 3580 (eval "$ac_link") 2>&5 3581 ac_status=$? 3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3583 test $ac_status = 0; } 3584 if { ac_try='./conftest$ac_cv_exeext' 3585 { { case "(($ac_try" in 3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3587 *) ac_try_echo=$ac_try;; 3588esac 3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3590$as_echo "$ac_try_echo"; } >&5 3591 (eval "$ac_try") 2>&5 3592 ac_status=$? 3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3594 test $ac_status = 0; }; }; then 3595 cross_compiling=no 3596 else 3597 if test "$cross_compiling" = maybe; then 3598 cross_compiling=yes 3599 else 3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3602as_fn_error $? "cannot run C compiled programs. 3603If you meant to cross compile, use \`--host'. 3604See \`config.log' for more details" "$LINENO" 5; } 3605 fi 3606 fi 3607fi 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3609$as_echo "$cross_compiling" >&6; } 3610 3611rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3612ac_clean_files=$ac_clean_files_save 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3614$as_echo_n "checking for suffix of object files... " >&6; } 3615if ${ac_cv_objext+:} false; then : 3616 $as_echo_n "(cached) " >&6 3617else 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620 3621int 3622main () 3623{ 3624 3625 ; 3626 return 0; 3627} 3628_ACEOF 3629rm -f conftest.o conftest.obj 3630if { { ac_try="$ac_compile" 3631case "(($ac_try" in 3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3633 *) ac_try_echo=$ac_try;; 3634esac 3635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3636$as_echo "$ac_try_echo"; } >&5 3637 (eval "$ac_compile") 2>&5 3638 ac_status=$? 3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3640 test $ac_status = 0; }; then : 3641 for ac_file in conftest.o conftest.obj conftest.*; do 3642 test -f "$ac_file" || continue; 3643 case $ac_file in 3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3645 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3646 break;; 3647 esac 3648done 3649else 3650 $as_echo "$as_me: failed program was:" >&5 3651sed 's/^/| /' conftest.$ac_ext >&5 3652 3653{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3655as_fn_error $? "cannot compute suffix of object files: cannot compile 3656See \`config.log' for more details" "$LINENO" 5; } 3657fi 3658rm -f conftest.$ac_cv_objext conftest.$ac_ext 3659fi 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3661$as_echo "$ac_cv_objext" >&6; } 3662OBJEXT=$ac_cv_objext 3663ac_objext=$OBJEXT 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3665$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3666if ${ac_cv_c_compiler_gnu+:} false; then : 3667 $as_echo_n "(cached) " >&6 3668else 3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3670/* end confdefs.h. */ 3671 3672int 3673main () 3674{ 3675#ifndef __GNUC__ 3676 choke me 3677#endif 3678 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683if ac_fn_c_try_compile "$LINENO"; then : 3684 ac_compiler_gnu=yes 3685else 3686 ac_compiler_gnu=no 3687fi 3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3689ac_cv_c_compiler_gnu=$ac_compiler_gnu 3690 3691fi 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3693$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3694if test $ac_compiler_gnu = yes; then 3695 GCC=yes 3696else 3697 GCC= 3698fi 3699ac_test_CFLAGS=${CFLAGS+set} 3700ac_save_CFLAGS=$CFLAGS 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3702$as_echo_n "checking whether $CC accepts -g... " >&6; } 3703if ${ac_cv_prog_cc_g+:} false; then : 3704 $as_echo_n "(cached) " >&6 3705else 3706 ac_save_c_werror_flag=$ac_c_werror_flag 3707 ac_c_werror_flag=yes 3708 ac_cv_prog_cc_g=no 3709 CFLAGS="-g" 3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3711/* end confdefs.h. */ 3712 3713int 3714main () 3715{ 3716 3717 ; 3718 return 0; 3719} 3720_ACEOF 3721if ac_fn_c_try_compile "$LINENO"; then : 3722 ac_cv_prog_cc_g=yes 3723else 3724 CFLAGS="" 3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3726/* end confdefs.h. */ 3727 3728int 3729main () 3730{ 3731 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736if ac_fn_c_try_compile "$LINENO"; then : 3737 3738else 3739 ac_c_werror_flag=$ac_save_c_werror_flag 3740 CFLAGS="-g" 3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743 3744int 3745main () 3746{ 3747 3748 ; 3749 return 0; 3750} 3751_ACEOF 3752if ac_fn_c_try_compile "$LINENO"; then : 3753 ac_cv_prog_cc_g=yes 3754fi 3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3756fi 3757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3758fi 3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3760 ac_c_werror_flag=$ac_save_c_werror_flag 3761fi 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3763$as_echo "$ac_cv_prog_cc_g" >&6; } 3764if test "$ac_test_CFLAGS" = set; then 3765 CFLAGS=$ac_save_CFLAGS 3766elif test $ac_cv_prog_cc_g = yes; then 3767 if test "$GCC" = yes; then 3768 CFLAGS="-g -O2" 3769 else 3770 CFLAGS="-g" 3771 fi 3772else 3773 if test "$GCC" = yes; then 3774 CFLAGS="-O2" 3775 else 3776 CFLAGS= 3777 fi 3778fi 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3780$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3781if ${ac_cv_prog_cc_c89+:} false; then : 3782 $as_echo_n "(cached) " >&6 3783else 3784 ac_cv_prog_cc_c89=no 3785ac_save_CC=$CC 3786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788#include <stdarg.h> 3789#include <stdio.h> 3790struct stat; 3791/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3792struct buf { int x; }; 3793FILE * (*rcsopen) (struct buf *, struct stat *, int); 3794static char *e (p, i) 3795 char **p; 3796 int i; 3797{ 3798 return p[i]; 3799} 3800static char *f (char * (*g) (char **, int), char **p, ...) 3801{ 3802 char *s; 3803 va_list v; 3804 va_start (v,p); 3805 s = g (p, va_arg (v,int)); 3806 va_end (v); 3807 return s; 3808} 3809 3810/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3811 function prototypes and stuff, but not '\xHH' hex character constants. 3812 These don't provoke an error unfortunately, instead are silently treated 3813 as 'x'. The following induces an error, until -std is added to get 3814 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3815 array size at least. It's necessary to write '\x00'==0 to get something 3816 that's true only with -std. */ 3817int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3818 3819/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3820 inside strings and character constants. */ 3821#define FOO(x) 'x' 3822int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3823 3824int test (int i, double x); 3825struct s1 {int (*f) (int a);}; 3826struct s2 {int (*f) (double a);}; 3827int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3828int argc; 3829char **argv; 3830int 3831main () 3832{ 3833return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3834 ; 3835 return 0; 3836} 3837_ACEOF 3838for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3839 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3840do 3841 CC="$ac_save_CC $ac_arg" 3842 if ac_fn_c_try_compile "$LINENO"; then : 3843 ac_cv_prog_cc_c89=$ac_arg 3844fi 3845rm -f core conftest.err conftest.$ac_objext 3846 test "x$ac_cv_prog_cc_c89" != "xno" && break 3847done 3848rm -f conftest.$ac_ext 3849CC=$ac_save_CC 3850 3851fi 3852# AC_CACHE_VAL 3853case "x$ac_cv_prog_cc_c89" in 3854 x) 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3856$as_echo "none needed" >&6; } ;; 3857 xno) 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3859$as_echo "unsupported" >&6; } ;; 3860 *) 3861 CC="$CC $ac_cv_prog_cc_c89" 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3863$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3864esac 3865if test "x$ac_cv_prog_cc_c89" != xno; then : 3866 3867fi 3868 3869ac_ext=c 3870ac_cpp='$CPP $CPPFLAGS' 3871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3873ac_compiler_gnu=$ac_cv_c_compiler_gnu 3874 3875ac_ext=c 3876ac_cpp='$CPP $CPPFLAGS' 3877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3879ac_compiler_gnu=$ac_cv_c_compiler_gnu 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3881$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3882if ${am_cv_prog_cc_c_o+:} false; then : 3883 $as_echo_n "(cached) " >&6 3884else 3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3886/* end confdefs.h. */ 3887 3888int 3889main () 3890{ 3891 3892 ; 3893 return 0; 3894} 3895_ACEOF 3896 # Make sure it works both with $CC and with simple cc. 3897 # Following AC_PROG_CC_C_O, we do the test twice because some 3898 # compilers refuse to overwrite an existing .o file with -o, 3899 # though they will create one. 3900 am_cv_prog_cc_c_o=yes 3901 for am_i in 1 2; do 3902 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3903 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3904 ac_status=$? 3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3906 (exit $ac_status); } \ 3907 && test -f conftest2.$ac_objext; then 3908 : OK 3909 else 3910 am_cv_prog_cc_c_o=no 3911 break 3912 fi 3913 done 3914 rm -f core conftest* 3915 unset am_i 3916fi 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3918$as_echo "$am_cv_prog_cc_c_o" >&6; } 3919if test "$am_cv_prog_cc_c_o" != yes; then 3920 # Losing compiler, so override with the script. 3921 # FIXME: It is wrong to rewrite CC. 3922 # But if we don't then we get into trouble of one sort or another. 3923 # A longer-term fix would be to have automake use am__CC in this case, 3924 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3925 CC="$am_aux_dir/compile $CC" 3926fi 3927ac_ext=c 3928ac_cpp='$CPP $CPPFLAGS' 3929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3931ac_compiler_gnu=$ac_cv_c_compiler_gnu 3932 3933 3934depcc="$CC" am_compiler_list= 3935 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3937$as_echo_n "checking dependency style of $depcc... " >&6; } 3938if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3942 # We make a subdir and do the tests there. Otherwise we can end up 3943 # making bogus files that we don't know about and never remove. For 3944 # instance it was reported that on HP-UX the gcc test will end up 3945 # making a dummy file named 'D' -- because '-MD' means "put the output 3946 # in D". 3947 rm -rf conftest.dir 3948 mkdir conftest.dir 3949 # Copy depcomp to subdir because otherwise we won't find it if we're 3950 # using a relative directory. 3951 cp "$am_depcomp" conftest.dir 3952 cd conftest.dir 3953 # We will build objects and dependencies in a subdirectory because 3954 # it helps to detect inapplicable dependency modes. For instance 3955 # both Tru64's cc and ICC support -MD to output dependencies as a 3956 # side effect of compilation, but ICC will put the dependencies in 3957 # the current directory while Tru64 will put them in the object 3958 # directory. 3959 mkdir sub 3960 3961 am_cv_CC_dependencies_compiler_type=none 3962 if test "$am_compiler_list" = ""; then 3963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3964 fi 3965 am__universal=false 3966 case " $depcc " in #( 3967 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3968 esac 3969 3970 for depmode in $am_compiler_list; do 3971 # Setup a source with many dependencies, because some compilers 3972 # like to wrap large dependency lists on column 80 (with \), and 3973 # we should not choose a depcomp mode which is confused by this. 3974 # 3975 # We need to recreate these files for each test, as the compiler may 3976 # overwrite some of them when testing with obscure command lines. 3977 # This happens at least with the AIX C compiler. 3978 : > sub/conftest.c 3979 for i in 1 2 3 4 5 6; do 3980 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3981 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3982 # Solaris 10 /bin/sh. 3983 echo '/* dummy */' > sub/conftst$i.h 3984 done 3985 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3986 3987 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3988 # mode. It turns out that the SunPro C++ compiler does not properly 3989 # handle '-M -o', and we need to detect this. Also, some Intel 3990 # versions had trouble with output in subdirs. 3991 am__obj=sub/conftest.${OBJEXT-o} 3992 am__minus_obj="-o $am__obj" 3993 case $depmode in 3994 gcc) 3995 # This depmode causes a compiler race in universal mode. 3996 test "$am__universal" = false || continue 3997 ;; 3998 nosideeffect) 3999 # After this tag, mechanisms are not by side-effect, so they'll 4000 # only be used when explicitly requested. 4001 if test "x$enable_dependency_tracking" = xyes; then 4002 continue 4003 else 4004 break 4005 fi 4006 ;; 4007 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4008 # This compiler won't grok '-c -o', but also, the minuso test has 4009 # not run yet. These depmodes are late enough in the game, and 4010 # so weak that their functioning should not be impacted. 4011 am__obj=conftest.${OBJEXT-o} 4012 am__minus_obj= 4013 ;; 4014 none) break ;; 4015 esac 4016 if depmode=$depmode \ 4017 source=sub/conftest.c object=$am__obj \ 4018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4019 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4020 >/dev/null 2>conftest.err && 4021 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4023 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4025 # icc doesn't choke on unknown options, it will just issue warnings 4026 # or remarks (even with -Werror). So we grep stderr for any message 4027 # that says an option was ignored or not supported. 4028 # When given -MP, icc 7.0 and 7.1 complain thusly: 4029 # icc: Command line warning: ignoring option '-M'; no argument required 4030 # The diagnosis changed in icc 8.0: 4031 # icc: Command line remark: option '-MP' not supported 4032 if (grep 'ignoring option' conftest.err || 4033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4034 am_cv_CC_dependencies_compiler_type=$depmode 4035 break 4036 fi 4037 fi 4038 done 4039 4040 cd .. 4041 rm -rf conftest.dir 4042else 4043 am_cv_CC_dependencies_compiler_type=none 4044fi 4045 4046fi 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4048$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4050 4051 if 4052 test "x$enable_dependency_tracking" != xno \ 4053 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4054 am__fastdepCC_TRUE= 4055 am__fastdepCC_FALSE='#' 4056else 4057 am__fastdepCC_TRUE='#' 4058 am__fastdepCC_FALSE= 4059fi 4060 4061 4062 4063# Check whether --enable-largefile was given. 4064if test "${enable_largefile+set}" = set; then : 4065 enableval=$enable_largefile; 4066fi 4067 4068if test "$enable_largefile" != no; then 4069 4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4071$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4072if ${ac_cv_sys_largefile_CC+:} false; then : 4073 $as_echo_n "(cached) " >&6 4074else 4075 ac_cv_sys_largefile_CC=no 4076 if test "$GCC" != yes; then 4077 ac_save_CC=$CC 4078 while :; do 4079 # IRIX 6.2 and later do not support large files by default, 4080 # so use the C compiler's -n32 option if that helps. 4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083#include <sys/types.h> 4084 /* Check that off_t can represent 2**63 - 1 correctly. 4085 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4086 since some C++ compilers masquerading as C compilers 4087 incorrectly reject 9223372036854775807. */ 4088#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4090 && LARGE_OFF_T % 2147483647 == 1) 4091 ? 1 : -1]; 4092int 4093main () 4094{ 4095 4096 ; 4097 return 0; 4098} 4099_ACEOF 4100 if ac_fn_c_try_compile "$LINENO"; then : 4101 break 4102fi 4103rm -f core conftest.err conftest.$ac_objext 4104 CC="$CC -n32" 4105 if ac_fn_c_try_compile "$LINENO"; then : 4106 ac_cv_sys_largefile_CC=' -n32'; break 4107fi 4108rm -f core conftest.err conftest.$ac_objext 4109 break 4110 done 4111 CC=$ac_save_CC 4112 rm -f conftest.$ac_ext 4113 fi 4114fi 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4116$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4117 if test "$ac_cv_sys_largefile_CC" != no; then 4118 CC=$CC$ac_cv_sys_largefile_CC 4119 fi 4120 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4122$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4123if ${ac_cv_sys_file_offset_bits+:} false; then : 4124 $as_echo_n "(cached) " >&6 4125else 4126 while :; do 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128/* end confdefs.h. */ 4129#include <sys/types.h> 4130 /* Check that off_t can represent 2**63 - 1 correctly. 4131 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4132 since some C++ compilers masquerading as C compilers 4133 incorrectly reject 9223372036854775807. */ 4134#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4136 && LARGE_OFF_T % 2147483647 == 1) 4137 ? 1 : -1]; 4138int 4139main () 4140{ 4141 4142 ; 4143 return 0; 4144} 4145_ACEOF 4146if ac_fn_c_try_compile "$LINENO"; then : 4147 ac_cv_sys_file_offset_bits=no; break 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151/* end confdefs.h. */ 4152#define _FILE_OFFSET_BITS 64 4153#include <sys/types.h> 4154 /* Check that off_t can represent 2**63 - 1 correctly. 4155 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4156 since some C++ compilers masquerading as C compilers 4157 incorrectly reject 9223372036854775807. */ 4158#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4160 && LARGE_OFF_T % 2147483647 == 1) 4161 ? 1 : -1]; 4162int 4163main () 4164{ 4165 4166 ; 4167 return 0; 4168} 4169_ACEOF 4170if ac_fn_c_try_compile "$LINENO"; then : 4171 ac_cv_sys_file_offset_bits=64; break 4172fi 4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4174 ac_cv_sys_file_offset_bits=unknown 4175 break 4176done 4177fi 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4179$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4180case $ac_cv_sys_file_offset_bits in #( 4181 no | unknown) ;; 4182 *) 4183cat >>confdefs.h <<_ACEOF 4184#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4185_ACEOF 4186;; 4187esac 4188rm -rf conftest* 4189 if test $ac_cv_sys_file_offset_bits = unknown; then 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4191$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4192if ${ac_cv_sys_large_files+:} false; then : 4193 $as_echo_n "(cached) " >&6 4194else 4195 while :; do 4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198#include <sys/types.h> 4199 /* Check that off_t can represent 2**63 - 1 correctly. 4200 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4201 since some C++ compilers masquerading as C compilers 4202 incorrectly reject 9223372036854775807. */ 4203#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4204 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4205 && LARGE_OFF_T % 2147483647 == 1) 4206 ? 1 : -1]; 4207int 4208main () 4209{ 4210 4211 ; 4212 return 0; 4213} 4214_ACEOF 4215if ac_fn_c_try_compile "$LINENO"; then : 4216 ac_cv_sys_large_files=no; break 4217fi 4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220/* end confdefs.h. */ 4221#define _LARGE_FILES 1 4222#include <sys/types.h> 4223 /* Check that off_t can represent 2**63 - 1 correctly. 4224 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4225 since some C++ compilers masquerading as C compilers 4226 incorrectly reject 9223372036854775807. */ 4227#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4229 && LARGE_OFF_T % 2147483647 == 1) 4230 ? 1 : -1]; 4231int 4232main () 4233{ 4234 4235 ; 4236 return 0; 4237} 4238_ACEOF 4239if ac_fn_c_try_compile "$LINENO"; then : 4240 ac_cv_sys_large_files=1; break 4241fi 4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4243 ac_cv_sys_large_files=unknown 4244 break 4245done 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4248$as_echo "$ac_cv_sys_large_files" >&6; } 4249case $ac_cv_sys_large_files in #( 4250 no | unknown) ;; 4251 *) 4252cat >>confdefs.h <<_ACEOF 4253#define _LARGE_FILES $ac_cv_sys_large_files 4254_ACEOF 4255;; 4256esac 4257rm -rf conftest* 4258 fi 4259 4260 4261fi 4262 4263 4264 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4266$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4267 # Check whether --enable-maintainer-mode was given. 4268if test "${enable_maintainer_mode+set}" = set; then : 4269 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4270else 4271 USE_MAINTAINER_MODE=no 4272fi 4273 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4275$as_echo "$USE_MAINTAINER_MODE" >&6; } 4276 if test $USE_MAINTAINER_MODE = yes; then 4277 MAINTAINER_MODE_TRUE= 4278 MAINTAINER_MODE_FALSE='#' 4279else 4280 MAINTAINER_MODE_TRUE='#' 4281 MAINTAINER_MODE_FALSE= 4282fi 4283 4284 MAINT=$MAINTAINER_MODE_TRUE 4285 4286 4287 4288# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4301$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4302if ${ac_cv_prog_cc_c99+:} false; then : 4303 $as_echo_n "(cached) " >&6 4304else 4305 ac_cv_prog_cc_c99=no 4306ac_save_CC=$CC 4307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309#include <stdarg.h> 4310#include <stdbool.h> 4311#include <stdlib.h> 4312#include <wchar.h> 4313#include <stdio.h> 4314 4315// Check varargs macros. These examples are taken from C99 6.10.3.5. 4316#define debug(...) fprintf (stderr, __VA_ARGS__) 4317#define showlist(...) puts (#__VA_ARGS__) 4318#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4319static void 4320test_varargs_macros (void) 4321{ 4322 int x = 1234; 4323 int y = 5678; 4324 debug ("Flag"); 4325 debug ("X = %d\n", x); 4326 showlist (The first, second, and third items.); 4327 report (x>y, "x is %d but y is %d", x, y); 4328} 4329 4330// Check long long types. 4331#define BIG64 18446744073709551615ull 4332#define BIG32 4294967295ul 4333#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4334#if !BIG_OK 4335 your preprocessor is broken; 4336#endif 4337#if BIG_OK 4338#else 4339 your preprocessor is broken; 4340#endif 4341static long long int bignum = -9223372036854775807LL; 4342static unsigned long long int ubignum = BIG64; 4343 4344struct incomplete_array 4345{ 4346 int datasize; 4347 double data[]; 4348}; 4349 4350struct named_init { 4351 int number; 4352 const wchar_t *name; 4353 double average; 4354}; 4355 4356typedef const char *ccp; 4357 4358static inline int 4359test_restrict (ccp restrict text) 4360{ 4361 // See if C++-style comments work. 4362 // Iterate through items via the restricted pointer. 4363 // Also check for declarations in for loops. 4364 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4365 continue; 4366 return 0; 4367} 4368 4369// Check varargs and va_copy. 4370static void 4371test_varargs (const char *format, ...) 4372{ 4373 va_list args; 4374 va_start (args, format); 4375 va_list args_copy; 4376 va_copy (args_copy, args); 4377 4378 const char *str; 4379 int number; 4380 float fnumber; 4381 4382 while (*format) 4383 { 4384 switch (*format++) 4385 { 4386 case 's': // string 4387 str = va_arg (args_copy, const char *); 4388 break; 4389 case 'd': // int 4390 number = va_arg (args_copy, int); 4391 break; 4392 case 'f': // float 4393 fnumber = va_arg (args_copy, double); 4394 break; 4395 default: 4396 break; 4397 } 4398 } 4399 va_end (args_copy); 4400 va_end (args); 4401} 4402 4403int 4404main () 4405{ 4406 4407 // Check bool. 4408 _Bool success = false; 4409 4410 // Check restrict. 4411 if (test_restrict ("String literal") == 0) 4412 success = true; 4413 char *restrict newvar = "Another string"; 4414 4415 // Check varargs. 4416 test_varargs ("s, d' f .", "string", 65, 34.234); 4417 test_varargs_macros (); 4418 4419 // Check flexible array members. 4420 struct incomplete_array *ia = 4421 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4422 ia->datasize = 10; 4423 for (int i = 0; i < ia->datasize; ++i) 4424 ia->data[i] = i * 1.234; 4425 4426 // Check named initializers. 4427 struct named_init ni = { 4428 .number = 34, 4429 .name = L"Test wide string", 4430 .average = 543.34343, 4431 }; 4432 4433 ni.number = 58; 4434 4435 int dynamic_array[ni.number]; 4436 dynamic_array[ni.number - 1] = 543; 4437 4438 // work around unused variable warnings 4439 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4440 || dynamic_array[ni.number - 1] != 543); 4441 4442 ; 4443 return 0; 4444} 4445_ACEOF 4446for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4447do 4448 CC="$ac_save_CC $ac_arg" 4449 if ac_fn_c_try_compile "$LINENO"; then : 4450 ac_cv_prog_cc_c99=$ac_arg 4451fi 4452rm -f core conftest.err conftest.$ac_objext 4453 test "x$ac_cv_prog_cc_c99" != "xno" && break 4454done 4455rm -f conftest.$ac_ext 4456CC=$ac_save_CC 4457 4458fi 4459# AC_CACHE_VAL 4460case "x$ac_cv_prog_cc_c99" in 4461 x) 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4463$as_echo "none needed" >&6; } ;; 4464 xno) 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4466$as_echo "unsupported" >&6; } ;; 4467 *) 4468 CC="$CC $ac_cv_prog_cc_c99" 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4470$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4471esac 4472if test "x$ac_cv_prog_cc_c99" != xno; then : 4473 4474fi 4475 4476 4477ac_ext=c 4478ac_cpp='$CPP $CPPFLAGS' 4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4481ac_compiler_gnu=$ac_cv_c_compiler_gnu 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4483$as_echo_n "checking how to run the C preprocessor... " >&6; } 4484# On Suns, sometimes $CPP names a directory. 4485if test -n "$CPP" && test -d "$CPP"; then 4486 CPP= 4487fi 4488if test -z "$CPP"; then 4489 if ${ac_cv_prog_CPP+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 # Double quotes because CPP needs to be expanded 4493 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4494 do 4495 ac_preproc_ok=false 4496for ac_c_preproc_warn_flag in '' yes 4497do 4498 # Use a header file that comes with gcc, so configuring glibc 4499 # with a fresh cross-compiler works. 4500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4501 # <limits.h> exists even on freestanding compilers. 4502 # On the NeXT, cc -E runs the code through the compiler's parser, 4503 # not just through cpp. "Syntax error" is here to catch this case. 4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4505/* end confdefs.h. */ 4506#ifdef __STDC__ 4507# include <limits.h> 4508#else 4509# include <assert.h> 4510#endif 4511 Syntax error 4512_ACEOF 4513if ac_fn_c_try_cpp "$LINENO"; then : 4514 4515else 4516 # Broken: fails on valid input. 4517continue 4518fi 4519rm -f conftest.err conftest.i conftest.$ac_ext 4520 4521 # OK, works on sane cases. Now check whether nonexistent headers 4522 # can be detected and how. 4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4524/* end confdefs.h. */ 4525#include <ac_nonexistent.h> 4526_ACEOF 4527if ac_fn_c_try_cpp "$LINENO"; then : 4528 # Broken: success on invalid input. 4529continue 4530else 4531 # Passes both tests. 4532ac_preproc_ok=: 4533break 4534fi 4535rm -f conftest.err conftest.i conftest.$ac_ext 4536 4537done 4538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4539rm -f conftest.i conftest.err conftest.$ac_ext 4540if $ac_preproc_ok; then : 4541 break 4542fi 4543 4544 done 4545 ac_cv_prog_CPP=$CPP 4546 4547fi 4548 CPP=$ac_cv_prog_CPP 4549else 4550 ac_cv_prog_CPP=$CPP 4551fi 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4553$as_echo "$CPP" >&6; } 4554ac_preproc_ok=false 4555for ac_c_preproc_warn_flag in '' yes 4556do 4557 # Use a header file that comes with gcc, so configuring glibc 4558 # with a fresh cross-compiler works. 4559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4560 # <limits.h> exists even on freestanding compilers. 4561 # On the NeXT, cc -E runs the code through the compiler's parser, 4562 # not just through cpp. "Syntax error" is here to catch this case. 4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4564/* end confdefs.h. */ 4565#ifdef __STDC__ 4566# include <limits.h> 4567#else 4568# include <assert.h> 4569#endif 4570 Syntax error 4571_ACEOF 4572if ac_fn_c_try_cpp "$LINENO"; then : 4573 4574else 4575 # Broken: fails on valid input. 4576continue 4577fi 4578rm -f conftest.err conftest.i conftest.$ac_ext 4579 4580 # OK, works on sane cases. Now check whether nonexistent headers 4581 # can be detected and how. 4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4583/* end confdefs.h. */ 4584#include <ac_nonexistent.h> 4585_ACEOF 4586if ac_fn_c_try_cpp "$LINENO"; then : 4587 # Broken: success on invalid input. 4588continue 4589else 4590 # Passes both tests. 4591ac_preproc_ok=: 4592break 4593fi 4594rm -f conftest.err conftest.i conftest.$ac_ext 4595 4596done 4597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4598rm -f conftest.i conftest.err conftest.$ac_ext 4599if $ac_preproc_ok; then : 4600 4601else 4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4604as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4605See \`config.log' for more details" "$LINENO" 5; } 4606fi 4607 4608ac_ext=c 4609ac_cpp='$CPP $CPPFLAGS' 4610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4612ac_compiler_gnu=$ac_cv_c_compiler_gnu 4613 4614 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4616$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4617if ${ac_cv_path_GREP+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 if test -z "$GREP"; then 4621 ac_path_GREP_found=false 4622 # Loop through the user's path and test for each of PROGNAME-LIST 4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4625do 4626 IFS=$as_save_IFS 4627 test -z "$as_dir" && as_dir=. 4628 for ac_prog in grep ggrep; do 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4631 as_fn_executable_p "$ac_path_GREP" || continue 4632# Check for GNU ac_path_GREP and select it if it is found. 4633 # Check for GNU $ac_path_GREP 4634case `"$ac_path_GREP" --version 2>&1` in 4635*GNU*) 4636 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4637*) 4638 ac_count=0 4639 $as_echo_n 0123456789 >"conftest.in" 4640 while : 4641 do 4642 cat "conftest.in" "conftest.in" >"conftest.tmp" 4643 mv "conftest.tmp" "conftest.in" 4644 cp "conftest.in" "conftest.nl" 4645 $as_echo 'GREP' >> "conftest.nl" 4646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4648 as_fn_arith $ac_count + 1 && ac_count=$as_val 4649 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4650 # Best one so far, save it but keep looking for a better one 4651 ac_cv_path_GREP="$ac_path_GREP" 4652 ac_path_GREP_max=$ac_count 4653 fi 4654 # 10*(2^10) chars as input seems more than enough 4655 test $ac_count -gt 10 && break 4656 done 4657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4658esac 4659 4660 $ac_path_GREP_found && break 3 4661 done 4662 done 4663 done 4664IFS=$as_save_IFS 4665 if test -z "$ac_cv_path_GREP"; then 4666 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4667 fi 4668else 4669 ac_cv_path_GREP=$GREP 4670fi 4671 4672fi 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4674$as_echo "$ac_cv_path_GREP" >&6; } 4675 GREP="$ac_cv_path_GREP" 4676 4677 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4679$as_echo_n "checking for egrep... " >&6; } 4680if ${ac_cv_path_EGREP+:} false; then : 4681 $as_echo_n "(cached) " >&6 4682else 4683 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4684 then ac_cv_path_EGREP="$GREP -E" 4685 else 4686 if test -z "$EGREP"; then 4687 ac_path_EGREP_found=false 4688 # Loop through the user's path and test for each of PROGNAME-LIST 4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4691do 4692 IFS=$as_save_IFS 4693 test -z "$as_dir" && as_dir=. 4694 for ac_prog in egrep; do 4695 for ac_exec_ext in '' $ac_executable_extensions; do 4696 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4697 as_fn_executable_p "$ac_path_EGREP" || continue 4698# Check for GNU ac_path_EGREP and select it if it is found. 4699 # Check for GNU $ac_path_EGREP 4700case `"$ac_path_EGREP" --version 2>&1` in 4701*GNU*) 4702 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4703*) 4704 ac_count=0 4705 $as_echo_n 0123456789 >"conftest.in" 4706 while : 4707 do 4708 cat "conftest.in" "conftest.in" >"conftest.tmp" 4709 mv "conftest.tmp" "conftest.in" 4710 cp "conftest.in" "conftest.nl" 4711 $as_echo 'EGREP' >> "conftest.nl" 4712 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4714 as_fn_arith $ac_count + 1 && ac_count=$as_val 4715 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4716 # Best one so far, save it but keep looking for a better one 4717 ac_cv_path_EGREP="$ac_path_EGREP" 4718 ac_path_EGREP_max=$ac_count 4719 fi 4720 # 10*(2^10) chars as input seems more than enough 4721 test $ac_count -gt 10 && break 4722 done 4723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4724esac 4725 4726 $ac_path_EGREP_found && break 3 4727 done 4728 done 4729 done 4730IFS=$as_save_IFS 4731 if test -z "$ac_cv_path_EGREP"; then 4732 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4733 fi 4734else 4735 ac_cv_path_EGREP=$EGREP 4736fi 4737 4738 fi 4739fi 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4741$as_echo "$ac_cv_path_EGREP" >&6; } 4742 EGREP="$ac_cv_path_EGREP" 4743 4744 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4746$as_echo_n "checking for ANSI C header files... " >&6; } 4747if ${ac_cv_header_stdc+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4751/* end confdefs.h. */ 4752#include <stdlib.h> 4753#include <stdarg.h> 4754#include <string.h> 4755#include <float.h> 4756 4757int 4758main () 4759{ 4760 4761 ; 4762 return 0; 4763} 4764_ACEOF 4765if ac_fn_c_try_compile "$LINENO"; then : 4766 ac_cv_header_stdc=yes 4767else 4768 ac_cv_header_stdc=no 4769fi 4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4771 4772if test $ac_cv_header_stdc = yes; then 4773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4775/* end confdefs.h. */ 4776#include <string.h> 4777 4778_ACEOF 4779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4780 $EGREP "memchr" >/dev/null 2>&1; then : 4781 4782else 4783 ac_cv_header_stdc=no 4784fi 4785rm -f conftest* 4786 4787fi 4788 4789if test $ac_cv_header_stdc = yes; then 4790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4792/* end confdefs.h. */ 4793#include <stdlib.h> 4794 4795_ACEOF 4796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4797 $EGREP "free" >/dev/null 2>&1; then : 4798 4799else 4800 ac_cv_header_stdc=no 4801fi 4802rm -f conftest* 4803 4804fi 4805 4806if test $ac_cv_header_stdc = yes; then 4807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4808 if test "$cross_compiling" = yes; then : 4809 : 4810else 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813#include <ctype.h> 4814#include <stdlib.h> 4815#if ((' ' & 0x0FF) == 0x020) 4816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4818#else 4819# define ISLOWER(c) \ 4820 (('a' <= (c) && (c) <= 'i') \ 4821 || ('j' <= (c) && (c) <= 'r') \ 4822 || ('s' <= (c) && (c) <= 'z')) 4823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4824#endif 4825 4826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4827int 4828main () 4829{ 4830 int i; 4831 for (i = 0; i < 256; i++) 4832 if (XOR (islower (i), ISLOWER (i)) 4833 || toupper (i) != TOUPPER (i)) 4834 return 2; 4835 return 0; 4836} 4837_ACEOF 4838if ac_fn_c_try_run "$LINENO"; then : 4839 4840else 4841 ac_cv_header_stdc=no 4842fi 4843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4844 conftest.$ac_objext conftest.beam conftest.$ac_ext 4845fi 4846 4847fi 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4850$as_echo "$ac_cv_header_stdc" >&6; } 4851if test $ac_cv_header_stdc = yes; then 4852 4853$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4854 4855fi 4856 4857# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4858for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4859 inttypes.h stdint.h unistd.h 4860do : 4861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4862ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4863" 4864if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4865 cat >>confdefs.h <<_ACEOF 4866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4867_ACEOF 4868 4869fi 4870 4871done 4872 4873 4874 4875 4876 4877 4878ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4879if test "x$ac_cv_have_decl___clang__" = xyes; then : 4880 CLANGCC="yes" 4881else 4882 CLANGCC="no" 4883fi 4884 4885ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4886if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4887 INTELCC="yes" 4888else 4889 INTELCC="no" 4890fi 4891 4892ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4893if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4894 SUNCC="yes" 4895else 4896 SUNCC="no" 4897fi 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4908 if test -n "$ac_tool_prefix"; then 4909 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4910set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4912$as_echo_n "checking for $ac_word... " >&6; } 4913if ${ac_cv_path_PKG_CONFIG+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 case $PKG_CONFIG in 4917 [\\/]* | ?:[\\/]*) 4918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4919 ;; 4920 *) 4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4922for as_dir in $PATH 4923do 4924 IFS=$as_save_IFS 4925 test -z "$as_dir" && as_dir=. 4926 for ac_exec_ext in '' $ac_executable_extensions; do 4927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4928 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4930 break 2 4931 fi 4932done 4933 done 4934IFS=$as_save_IFS 4935 4936 ;; 4937esac 4938fi 4939PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4940if test -n "$PKG_CONFIG"; then 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4942$as_echo "$PKG_CONFIG" >&6; } 4943else 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4945$as_echo "no" >&6; } 4946fi 4947 4948 4949fi 4950if test -z "$ac_cv_path_PKG_CONFIG"; then 4951 ac_pt_PKG_CONFIG=$PKG_CONFIG 4952 # Extract the first word of "pkg-config", so it can be a program name with args. 4953set dummy pkg-config; ac_word=$2 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4955$as_echo_n "checking for $ac_word... " >&6; } 4956if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 case $ac_pt_PKG_CONFIG in 4960 [\\/]* | ?:[\\/]*) 4961 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4962 ;; 4963 *) 4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4965for as_dir in $PATH 4966do 4967 IFS=$as_save_IFS 4968 test -z "$as_dir" && as_dir=. 4969 for ac_exec_ext in '' $ac_executable_extensions; do 4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4971 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4973 break 2 4974 fi 4975done 4976 done 4977IFS=$as_save_IFS 4978 4979 ;; 4980esac 4981fi 4982ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4983if test -n "$ac_pt_PKG_CONFIG"; then 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4985$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4986else 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4988$as_echo "no" >&6; } 4989fi 4990 4991 if test "x$ac_pt_PKG_CONFIG" = x; then 4992 PKG_CONFIG="" 4993 else 4994 case $cross_compiling:$ac_tool_warned in 4995yes:) 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4998ac_tool_warned=yes ;; 4999esac 5000 PKG_CONFIG=$ac_pt_PKG_CONFIG 5001 fi 5002else 5003 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5004fi 5005 5006fi 5007if test -n "$PKG_CONFIG"; then 5008 _pkg_min_version=0.9.0 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5010$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5011 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5013$as_echo "yes" >&6; } 5014 else 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5016$as_echo "no" >&6; } 5017 PKG_CONFIG="" 5018 fi 5019fi 5020# Make sure we can run config.sub. 5021$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5022 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5023 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5025$as_echo_n "checking build system type... " >&6; } 5026if ${ac_cv_build+:} false; then : 5027 $as_echo_n "(cached) " >&6 5028else 5029 ac_build_alias=$build_alias 5030test "x$ac_build_alias" = x && 5031 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5032test "x$ac_build_alias" = x && 5033 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5035 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5036 5037fi 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5039$as_echo "$ac_cv_build" >&6; } 5040case $ac_cv_build in 5041*-*-*) ;; 5042*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5043esac 5044build=$ac_cv_build 5045ac_save_IFS=$IFS; IFS='-' 5046set x $ac_cv_build 5047shift 5048build_cpu=$1 5049build_vendor=$2 5050shift; shift 5051# Remember, the first character of IFS is used to create $*, 5052# except with old shells: 5053build_os=$* 5054IFS=$ac_save_IFS 5055case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5056 5057 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5059$as_echo_n "checking host system type... " >&6; } 5060if ${ac_cv_host+:} false; then : 5061 $as_echo_n "(cached) " >&6 5062else 5063 if test "x$host_alias" = x; then 5064 ac_cv_host=$ac_cv_build 5065else 5066 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5068fi 5069 5070fi 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5072$as_echo "$ac_cv_host" >&6; } 5073case $ac_cv_host in 5074*-*-*) ;; 5075*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5076esac 5077host=$ac_cv_host 5078ac_save_IFS=$IFS; IFS='-' 5079set x $ac_cv_host 5080shift 5081host_cpu=$1 5082host_vendor=$2 5083shift; shift 5084# Remember, the first character of IFS is used to create $*, 5085# except with old shells: 5086host_os=$* 5087IFS=$ac_save_IFS 5088case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5089 5090 5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5092$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5093if ${ac_cv_path_SED+:} false; then : 5094 $as_echo_n "(cached) " >&6 5095else 5096 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5097 for ac_i in 1 2 3 4 5 6 7; do 5098 ac_script="$ac_script$as_nl$ac_script" 5099 done 5100 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5101 { ac_script=; unset ac_script;} 5102 if test -z "$SED"; then 5103 ac_path_SED_found=false 5104 # Loop through the user's path and test for each of PROGNAME-LIST 5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5106for as_dir in $PATH 5107do 5108 IFS=$as_save_IFS 5109 test -z "$as_dir" && as_dir=. 5110 for ac_prog in sed gsed; do 5111 for ac_exec_ext in '' $ac_executable_extensions; do 5112 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5113 as_fn_executable_p "$ac_path_SED" || continue 5114# Check for GNU ac_path_SED and select it if it is found. 5115 # Check for GNU $ac_path_SED 5116case `"$ac_path_SED" --version 2>&1` in 5117*GNU*) 5118 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5119*) 5120 ac_count=0 5121 $as_echo_n 0123456789 >"conftest.in" 5122 while : 5123 do 5124 cat "conftest.in" "conftest.in" >"conftest.tmp" 5125 mv "conftest.tmp" "conftest.in" 5126 cp "conftest.in" "conftest.nl" 5127 $as_echo '' >> "conftest.nl" 5128 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5130 as_fn_arith $ac_count + 1 && ac_count=$as_val 5131 if test $ac_count -gt ${ac_path_SED_max-0}; then 5132 # Best one so far, save it but keep looking for a better one 5133 ac_cv_path_SED="$ac_path_SED" 5134 ac_path_SED_max=$ac_count 5135 fi 5136 # 10*(2^10) chars as input seems more than enough 5137 test $ac_count -gt 10 && break 5138 done 5139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5140esac 5141 5142 $ac_path_SED_found && break 3 5143 done 5144 done 5145 done 5146IFS=$as_save_IFS 5147 if test -z "$ac_cv_path_SED"; then 5148 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5149 fi 5150else 5151 ac_cv_path_SED=$SED 5152fi 5153 5154fi 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5156$as_echo "$ac_cv_path_SED" >&6; } 5157 SED="$ac_cv_path_SED" 5158 rm -f conftest.sed 5159 5160 5161 5162 5163 5164 5165# Check whether --enable-selective-werror was given. 5166if test "${enable_selective_werror+set}" = set; then : 5167 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5168else 5169 SELECTIVE_WERROR=yes 5170fi 5171 5172 5173 5174 5175 5176# -v is too short to test reliably with XORG_TESTSET_CFLAG 5177if test "x$SUNCC" = "xyes"; then 5178 BASE_CFLAGS="-v" 5179else 5180 BASE_CFLAGS="" 5181fi 5182 5183# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197xorg_testset_save_CFLAGS="$CFLAGS" 5198 5199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5204 $as_echo_n "(cached) " >&6 5205else 5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5207/* end confdefs.h. */ 5208int i; 5209_ACEOF 5210if ac_fn_c_try_compile "$LINENO"; then : 5211 xorg_cv_cc_flag_unknown_warning_option=yes 5212else 5213 xorg_cv_cc_flag_unknown_warning_option=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5216fi 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5220 CFLAGS="$xorg_testset_save_CFLAGS" 5221fi 5222 5223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5226 fi 5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235int i; 5236_ACEOF 5237if ac_fn_c_try_compile "$LINENO"; then : 5238 xorg_cv_cc_flag_unused_command_line_argument=yes 5239else 5240 xorg_cv_cc_flag_unused_command_line_argument=no 5241fi 5242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5243fi 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5247 CFLAGS="$xorg_testset_save_CFLAGS" 5248fi 5249 5250found="no" 5251 5252 if test $found = "no" ; then 5253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5255 fi 5256 5257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5259 fi 5260 5261 CFLAGS="$CFLAGS -Wall" 5262 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5264$as_echo_n "checking if $CC supports -Wall... " >&6; } 5265 cacheid=xorg_cv_cc_flag__Wall 5266 if eval \${$cacheid+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5270/* end confdefs.h. */ 5271int i; 5272int 5273main () 5274{ 5275 5276 ; 5277 return 0; 5278} 5279_ACEOF 5280if ac_fn_c_try_link "$LINENO"; then : 5281 eval $cacheid=yes 5282else 5283 eval $cacheid=no 5284fi 5285rm -f core conftest.err conftest.$ac_objext \ 5286 conftest$ac_exeext conftest.$ac_ext 5287fi 5288 5289 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291 5292 eval supported=\$$cacheid 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5294$as_echo "$supported" >&6; } 5295 if test "$supported" = "yes" ; then 5296 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5297 found="yes" 5298 fi 5299 fi 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315xorg_testset_save_CFLAGS="$CFLAGS" 5316 5317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325/* end confdefs.h. */ 5326int i; 5327_ACEOF 5328if ac_fn_c_try_compile "$LINENO"; then : 5329 xorg_cv_cc_flag_unknown_warning_option=yes 5330else 5331 xorg_cv_cc_flag_unknown_warning_option=no 5332fi 5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5334fi 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5338 CFLAGS="$xorg_testset_save_CFLAGS" 5339fi 5340 5341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5344 fi 5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5352/* end confdefs.h. */ 5353int i; 5354_ACEOF 5355if ac_fn_c_try_compile "$LINENO"; then : 5356 xorg_cv_cc_flag_unused_command_line_argument=yes 5357else 5358 xorg_cv_cc_flag_unused_command_line_argument=no 5359fi 5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5361fi 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5365 CFLAGS="$xorg_testset_save_CFLAGS" 5366fi 5367 5368found="no" 5369 5370 if test $found = "no" ; then 5371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5373 fi 5374 5375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5377 fi 5378 5379 CFLAGS="$CFLAGS -Wpointer-arith" 5380 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5382$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5383 cacheid=xorg_cv_cc_flag__Wpointer_arith 5384 if eval \${$cacheid+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389int i; 5390int 5391main () 5392{ 5393 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398if ac_fn_c_try_link "$LINENO"; then : 5399 eval $cacheid=yes 5400else 5401 eval $cacheid=no 5402fi 5403rm -f core conftest.err conftest.$ac_objext \ 5404 conftest$ac_exeext conftest.$ac_ext 5405fi 5406 5407 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409 5410 eval supported=\$$cacheid 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5412$as_echo "$supported" >&6; } 5413 if test "$supported" = "yes" ; then 5414 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5415 found="yes" 5416 fi 5417 fi 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433xorg_testset_save_CFLAGS="$CFLAGS" 5434 5435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5440 $as_echo_n "(cached) " >&6 5441else 5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5443/* end confdefs.h. */ 5444int i; 5445_ACEOF 5446if ac_fn_c_try_compile "$LINENO"; then : 5447 xorg_cv_cc_flag_unknown_warning_option=yes 5448else 5449 xorg_cv_cc_flag_unknown_warning_option=no 5450fi 5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5452fi 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5456 CFLAGS="$xorg_testset_save_CFLAGS" 5457fi 5458 5459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5462 fi 5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5467 $as_echo_n "(cached) " >&6 5468else 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471int i; 5472_ACEOF 5473if ac_fn_c_try_compile "$LINENO"; then : 5474 xorg_cv_cc_flag_unused_command_line_argument=yes 5475else 5476 xorg_cv_cc_flag_unused_command_line_argument=no 5477fi 5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5483 CFLAGS="$xorg_testset_save_CFLAGS" 5484fi 5485 5486found="no" 5487 5488 if test $found = "no" ; then 5489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5491 fi 5492 5493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5495 fi 5496 5497 CFLAGS="$CFLAGS -Wmissing-declarations" 5498 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5500$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5501 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5502 if eval \${$cacheid+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507int i; 5508int 5509main () 5510{ 5511 5512 ; 5513 return 0; 5514} 5515_ACEOF 5516if ac_fn_c_try_link "$LINENO"; then : 5517 eval $cacheid=yes 5518else 5519 eval $cacheid=no 5520fi 5521rm -f core conftest.err conftest.$ac_objext \ 5522 conftest$ac_exeext conftest.$ac_ext 5523fi 5524 5525 5526 CFLAGS="$xorg_testset_save_CFLAGS" 5527 5528 eval supported=\$$cacheid 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5530$as_echo "$supported" >&6; } 5531 if test "$supported" = "yes" ; then 5532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5533 found="yes" 5534 fi 5535 fi 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551xorg_testset_save_CFLAGS="$CFLAGS" 5552 5553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5561/* end confdefs.h. */ 5562int i; 5563_ACEOF 5564if ac_fn_c_try_compile "$LINENO"; then : 5565 xorg_cv_cc_flag_unknown_warning_option=yes 5566else 5567 xorg_cv_cc_flag_unknown_warning_option=no 5568fi 5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5570fi 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5574 CFLAGS="$xorg_testset_save_CFLAGS" 5575fi 5576 5577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5580 fi 5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588/* end confdefs.h. */ 5589int i; 5590_ACEOF 5591if ac_fn_c_try_compile "$LINENO"; then : 5592 xorg_cv_cc_flag_unused_command_line_argument=yes 5593else 5594 xorg_cv_cc_flag_unused_command_line_argument=no 5595fi 5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602fi 5603 5604found="no" 5605 5606 if test $found = "no" ; then 5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5609 fi 5610 5611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5613 fi 5614 5615 CFLAGS="$CFLAGS -Wformat=2" 5616 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5618$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5619 cacheid=xorg_cv_cc_flag__Wformat_2 5620 if eval \${$cacheid+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625int i; 5626int 5627main () 5628{ 5629 5630 ; 5631 return 0; 5632} 5633_ACEOF 5634if ac_fn_c_try_link "$LINENO"; then : 5635 eval $cacheid=yes 5636else 5637 eval $cacheid=no 5638fi 5639rm -f core conftest.err conftest.$ac_objext \ 5640 conftest$ac_exeext conftest.$ac_ext 5641fi 5642 5643 5644 CFLAGS="$xorg_testset_save_CFLAGS" 5645 5646 eval supported=\$$cacheid 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5648$as_echo "$supported" >&6; } 5649 if test "$supported" = "yes" ; then 5650 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5651 found="yes" 5652 fi 5653 fi 5654 5655 if test $found = "no" ; then 5656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5658 fi 5659 5660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5662 fi 5663 5664 CFLAGS="$CFLAGS -Wformat" 5665 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5667$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5668 cacheid=xorg_cv_cc_flag__Wformat 5669 if eval \${$cacheid+:} false; then : 5670 $as_echo_n "(cached) " >&6 5671else 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673/* end confdefs.h. */ 5674int i; 5675int 5676main () 5677{ 5678 5679 ; 5680 return 0; 5681} 5682_ACEOF 5683if ac_fn_c_try_link "$LINENO"; then : 5684 eval $cacheid=yes 5685else 5686 eval $cacheid=no 5687fi 5688rm -f core conftest.err conftest.$ac_objext \ 5689 conftest$ac_exeext conftest.$ac_ext 5690fi 5691 5692 5693 CFLAGS="$xorg_testset_save_CFLAGS" 5694 5695 eval supported=\$$cacheid 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5697$as_echo "$supported" >&6; } 5698 if test "$supported" = "yes" ; then 5699 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5700 found="yes" 5701 fi 5702 fi 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720xorg_testset_save_CFLAGS="$CFLAGS" 5721 5722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5727 $as_echo_n "(cached) " >&6 5728else 5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5730/* end confdefs.h. */ 5731int i; 5732_ACEOF 5733if ac_fn_c_try_compile "$LINENO"; then : 5734 xorg_cv_cc_flag_unknown_warning_option=yes 5735else 5736 xorg_cv_cc_flag_unknown_warning_option=no 5737fi 5738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5739fi 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5743 CFLAGS="$xorg_testset_save_CFLAGS" 5744fi 5745 5746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5749 fi 5750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5754 $as_echo_n "(cached) " >&6 5755else 5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5757/* end confdefs.h. */ 5758int i; 5759_ACEOF 5760if ac_fn_c_try_compile "$LINENO"; then : 5761 xorg_cv_cc_flag_unused_command_line_argument=yes 5762else 5763 xorg_cv_cc_flag_unused_command_line_argument=no 5764fi 5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5766fi 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5770 CFLAGS="$xorg_testset_save_CFLAGS" 5771fi 5772 5773found="no" 5774 5775 if test $found = "no" ; then 5776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5778 fi 5779 5780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5782 fi 5783 5784 CFLAGS="$CFLAGS -Wstrict-prototypes" 5785 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5787$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5788 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5789 if eval \${$cacheid+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793/* end confdefs.h. */ 5794int i; 5795int 5796main () 5797{ 5798 5799 ; 5800 return 0; 5801} 5802_ACEOF 5803if ac_fn_c_try_link "$LINENO"; then : 5804 eval $cacheid=yes 5805else 5806 eval $cacheid=no 5807fi 5808rm -f core conftest.err conftest.$ac_objext \ 5809 conftest$ac_exeext conftest.$ac_ext 5810fi 5811 5812 5813 CFLAGS="$xorg_testset_save_CFLAGS" 5814 5815 eval supported=\$$cacheid 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5817$as_echo "$supported" >&6; } 5818 if test "$supported" = "yes" ; then 5819 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5820 found="yes" 5821 fi 5822 fi 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838xorg_testset_save_CFLAGS="$CFLAGS" 5839 5840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5845 $as_echo_n "(cached) " >&6 5846else 5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5848/* end confdefs.h. */ 5849int i; 5850_ACEOF 5851if ac_fn_c_try_compile "$LINENO"; then : 5852 xorg_cv_cc_flag_unknown_warning_option=yes 5853else 5854 xorg_cv_cc_flag_unknown_warning_option=no 5855fi 5856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5857fi 5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5861 CFLAGS="$xorg_testset_save_CFLAGS" 5862fi 5863 5864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5867 fi 5868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875/* end confdefs.h. */ 5876int i; 5877_ACEOF 5878if ac_fn_c_try_compile "$LINENO"; then : 5879 xorg_cv_cc_flag_unused_command_line_argument=yes 5880else 5881 xorg_cv_cc_flag_unused_command_line_argument=no 5882fi 5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5884fi 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5888 CFLAGS="$xorg_testset_save_CFLAGS" 5889fi 5890 5891found="no" 5892 5893 if test $found = "no" ; then 5894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5896 fi 5897 5898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5900 fi 5901 5902 CFLAGS="$CFLAGS -Wmissing-prototypes" 5903 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5905$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5906 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5907 if eval \${$cacheid+:} false; then : 5908 $as_echo_n "(cached) " >&6 5909else 5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5911/* end confdefs.h. */ 5912int i; 5913int 5914main () 5915{ 5916 5917 ; 5918 return 0; 5919} 5920_ACEOF 5921if ac_fn_c_try_link "$LINENO"; then : 5922 eval $cacheid=yes 5923else 5924 eval $cacheid=no 5925fi 5926rm -f core conftest.err conftest.$ac_objext \ 5927 conftest$ac_exeext conftest.$ac_ext 5928fi 5929 5930 5931 CFLAGS="$xorg_testset_save_CFLAGS" 5932 5933 eval supported=\$$cacheid 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5935$as_echo "$supported" >&6; } 5936 if test "$supported" = "yes" ; then 5937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5938 found="yes" 5939 fi 5940 fi 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956xorg_testset_save_CFLAGS="$CFLAGS" 5957 5958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5963 $as_echo_n "(cached) " >&6 5964else 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967int i; 5968_ACEOF 5969if ac_fn_c_try_compile "$LINENO"; then : 5970 xorg_cv_cc_flag_unknown_warning_option=yes 5971else 5972 xorg_cv_cc_flag_unknown_warning_option=no 5973fi 5974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5975fi 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5979 CFLAGS="$xorg_testset_save_CFLAGS" 5980fi 5981 5982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5985 fi 5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5993/* end confdefs.h. */ 5994int i; 5995_ACEOF 5996if ac_fn_c_try_compile "$LINENO"; then : 5997 xorg_cv_cc_flag_unused_command_line_argument=yes 5998else 5999 xorg_cv_cc_flag_unused_command_line_argument=no 6000fi 6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6002fi 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6006 CFLAGS="$xorg_testset_save_CFLAGS" 6007fi 6008 6009found="no" 6010 6011 if test $found = "no" ; then 6012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6014 fi 6015 6016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6018 fi 6019 6020 CFLAGS="$CFLAGS -Wnested-externs" 6021 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6023$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 6024 cacheid=xorg_cv_cc_flag__Wnested_externs 6025 if eval \${$cacheid+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6029/* end confdefs.h. */ 6030int i; 6031int 6032main () 6033{ 6034 6035 ; 6036 return 0; 6037} 6038_ACEOF 6039if ac_fn_c_try_link "$LINENO"; then : 6040 eval $cacheid=yes 6041else 6042 eval $cacheid=no 6043fi 6044rm -f core conftest.err conftest.$ac_objext \ 6045 conftest$ac_exeext conftest.$ac_ext 6046fi 6047 6048 6049 CFLAGS="$xorg_testset_save_CFLAGS" 6050 6051 eval supported=\$$cacheid 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6053$as_echo "$supported" >&6; } 6054 if test "$supported" = "yes" ; then 6055 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6056 found="yes" 6057 fi 6058 fi 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074xorg_testset_save_CFLAGS="$CFLAGS" 6075 6076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6081 $as_echo_n "(cached) " >&6 6082else 6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6084/* end confdefs.h. */ 6085int i; 6086_ACEOF 6087if ac_fn_c_try_compile "$LINENO"; then : 6088 xorg_cv_cc_flag_unknown_warning_option=yes 6089else 6090 xorg_cv_cc_flag_unknown_warning_option=no 6091fi 6092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6093fi 6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6097 CFLAGS="$xorg_testset_save_CFLAGS" 6098fi 6099 6100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6103 fi 6104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6108 $as_echo_n "(cached) " >&6 6109else 6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6111/* end confdefs.h. */ 6112int i; 6113_ACEOF 6114if ac_fn_c_try_compile "$LINENO"; then : 6115 xorg_cv_cc_flag_unused_command_line_argument=yes 6116else 6117 xorg_cv_cc_flag_unused_command_line_argument=no 6118fi 6119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6120fi 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6124 CFLAGS="$xorg_testset_save_CFLAGS" 6125fi 6126 6127found="no" 6128 6129 if test $found = "no" ; then 6130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6132 fi 6133 6134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6136 fi 6137 6138 CFLAGS="$CFLAGS -Wbad-function-cast" 6139 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6141$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6142 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6143 if eval \${$cacheid+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145else 6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6147/* end confdefs.h. */ 6148int i; 6149int 6150main () 6151{ 6152 6153 ; 6154 return 0; 6155} 6156_ACEOF 6157if ac_fn_c_try_link "$LINENO"; then : 6158 eval $cacheid=yes 6159else 6160 eval $cacheid=no 6161fi 6162rm -f core conftest.err conftest.$ac_objext \ 6163 conftest$ac_exeext conftest.$ac_ext 6164fi 6165 6166 6167 CFLAGS="$xorg_testset_save_CFLAGS" 6168 6169 eval supported=\$$cacheid 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6171$as_echo "$supported" >&6; } 6172 if test "$supported" = "yes" ; then 6173 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6174 found="yes" 6175 fi 6176 fi 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192xorg_testset_save_CFLAGS="$CFLAGS" 6193 6194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6199 $as_echo_n "(cached) " >&6 6200else 6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6202/* end confdefs.h. */ 6203int i; 6204_ACEOF 6205if ac_fn_c_try_compile "$LINENO"; then : 6206 xorg_cv_cc_flag_unknown_warning_option=yes 6207else 6208 xorg_cv_cc_flag_unknown_warning_option=no 6209fi 6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6211fi 6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6215 CFLAGS="$xorg_testset_save_CFLAGS" 6216fi 6217 6218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6221 fi 6222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6226 $as_echo_n "(cached) " >&6 6227else 6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6229/* end confdefs.h. */ 6230int i; 6231_ACEOF 6232if ac_fn_c_try_compile "$LINENO"; then : 6233 xorg_cv_cc_flag_unused_command_line_argument=yes 6234else 6235 xorg_cv_cc_flag_unused_command_line_argument=no 6236fi 6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6238fi 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6242 CFLAGS="$xorg_testset_save_CFLAGS" 6243fi 6244 6245found="no" 6246 6247 if test $found = "no" ; then 6248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6250 fi 6251 6252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6254 fi 6255 6256 CFLAGS="$CFLAGS -Wold-style-definition" 6257 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6259$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6260 cacheid=xorg_cv_cc_flag__Wold_style_definition 6261 if eval \${$cacheid+:} false; then : 6262 $as_echo_n "(cached) " >&6 6263else 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265/* end confdefs.h. */ 6266int i; 6267int 6268main () 6269{ 6270 6271 ; 6272 return 0; 6273} 6274_ACEOF 6275if ac_fn_c_try_link "$LINENO"; then : 6276 eval $cacheid=yes 6277else 6278 eval $cacheid=no 6279fi 6280rm -f core conftest.err conftest.$ac_objext \ 6281 conftest$ac_exeext conftest.$ac_ext 6282fi 6283 6284 6285 CFLAGS="$xorg_testset_save_CFLAGS" 6286 6287 eval supported=\$$cacheid 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6289$as_echo "$supported" >&6; } 6290 if test "$supported" = "yes" ; then 6291 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6292 found="yes" 6293 fi 6294 fi 6295 6296 if test $found = "no" ; then 6297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6299 fi 6300 6301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6303 fi 6304 6305 CFLAGS="$CFLAGS -fd" 6306 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6308$as_echo_n "checking if $CC supports -fd... " >&6; } 6309 cacheid=xorg_cv_cc_flag__fd 6310 if eval \${$cacheid+:} false; then : 6311 $as_echo_n "(cached) " >&6 6312else 6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6314/* end confdefs.h. */ 6315int i; 6316int 6317main () 6318{ 6319 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324if ac_fn_c_try_link "$LINENO"; then : 6325 eval $cacheid=yes 6326else 6327 eval $cacheid=no 6328fi 6329rm -f core conftest.err conftest.$ac_objext \ 6330 conftest$ac_exeext conftest.$ac_ext 6331fi 6332 6333 6334 CFLAGS="$xorg_testset_save_CFLAGS" 6335 6336 eval supported=\$$cacheid 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6338$as_echo "$supported" >&6; } 6339 if test "$supported" = "yes" ; then 6340 BASE_CFLAGS="$BASE_CFLAGS -fd" 6341 found="yes" 6342 fi 6343 fi 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359xorg_testset_save_CFLAGS="$CFLAGS" 6360 6361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6366 $as_echo_n "(cached) " >&6 6367else 6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6369/* end confdefs.h. */ 6370int i; 6371_ACEOF 6372if ac_fn_c_try_compile "$LINENO"; then : 6373 xorg_cv_cc_flag_unknown_warning_option=yes 6374else 6375 xorg_cv_cc_flag_unknown_warning_option=no 6376fi 6377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6378fi 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6382 CFLAGS="$xorg_testset_save_CFLAGS" 6383fi 6384 6385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6388 fi 6389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6396/* end confdefs.h. */ 6397int i; 6398_ACEOF 6399if ac_fn_c_try_compile "$LINENO"; then : 6400 xorg_cv_cc_flag_unused_command_line_argument=yes 6401else 6402 xorg_cv_cc_flag_unused_command_line_argument=no 6403fi 6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6405fi 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410fi 6411 6412found="no" 6413 6414 if test $found = "no" ; then 6415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6417 fi 6418 6419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6421 fi 6422 6423 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6424 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6426$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6427 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6428 if eval \${$cacheid+:} false; then : 6429 $as_echo_n "(cached) " >&6 6430else 6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6432/* end confdefs.h. */ 6433int i; 6434int 6435main () 6436{ 6437 6438 ; 6439 return 0; 6440} 6441_ACEOF 6442if ac_fn_c_try_link "$LINENO"; then : 6443 eval $cacheid=yes 6444else 6445 eval $cacheid=no 6446fi 6447rm -f core conftest.err conftest.$ac_objext \ 6448 conftest$ac_exeext conftest.$ac_ext 6449fi 6450 6451 6452 CFLAGS="$xorg_testset_save_CFLAGS" 6453 6454 eval supported=\$$cacheid 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6456$as_echo "$supported" >&6; } 6457 if test "$supported" = "yes" ; then 6458 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6459 found="yes" 6460 fi 6461 fi 6462 6463 6464 6465 6466 6467# This chunk adds additional warnings that could catch undesired effects. 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481xorg_testset_save_CFLAGS="$CFLAGS" 6482 6483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6488 $as_echo_n "(cached) " >&6 6489else 6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6491/* end confdefs.h. */ 6492int i; 6493_ACEOF 6494if ac_fn_c_try_compile "$LINENO"; then : 6495 xorg_cv_cc_flag_unknown_warning_option=yes 6496else 6497 xorg_cv_cc_flag_unknown_warning_option=no 6498fi 6499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6500fi 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6504 CFLAGS="$xorg_testset_save_CFLAGS" 6505fi 6506 6507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6510 fi 6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6515 $as_echo_n "(cached) " >&6 6516else 6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6518/* end confdefs.h. */ 6519int i; 6520_ACEOF 6521if ac_fn_c_try_compile "$LINENO"; then : 6522 xorg_cv_cc_flag_unused_command_line_argument=yes 6523else 6524 xorg_cv_cc_flag_unused_command_line_argument=no 6525fi 6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6527fi 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6532fi 6533 6534found="no" 6535 6536 if test $found = "no" ; then 6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 fi 6540 6541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6543 fi 6544 6545 CFLAGS="$CFLAGS -Wunused" 6546 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6548$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6549 cacheid=xorg_cv_cc_flag__Wunused 6550 if eval \${$cacheid+:} false; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6554/* end confdefs.h. */ 6555int i; 6556int 6557main () 6558{ 6559 6560 ; 6561 return 0; 6562} 6563_ACEOF 6564if ac_fn_c_try_link "$LINENO"; then : 6565 eval $cacheid=yes 6566else 6567 eval $cacheid=no 6568fi 6569rm -f core conftest.err conftest.$ac_objext \ 6570 conftest$ac_exeext conftest.$ac_ext 6571fi 6572 6573 6574 CFLAGS="$xorg_testset_save_CFLAGS" 6575 6576 eval supported=\$$cacheid 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6578$as_echo "$supported" >&6; } 6579 if test "$supported" = "yes" ; then 6580 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6581 found="yes" 6582 fi 6583 fi 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599xorg_testset_save_CFLAGS="$CFLAGS" 6600 6601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6609/* end confdefs.h. */ 6610int i; 6611_ACEOF 6612if ac_fn_c_try_compile "$LINENO"; then : 6613 xorg_cv_cc_flag_unknown_warning_option=yes 6614else 6615 xorg_cv_cc_flag_unknown_warning_option=no 6616fi 6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6618fi 6619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623fi 6624 6625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6628 fi 6629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6633 $as_echo_n "(cached) " >&6 6634else 6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6636/* end confdefs.h. */ 6637int i; 6638_ACEOF 6639if ac_fn_c_try_compile "$LINENO"; then : 6640 xorg_cv_cc_flag_unused_command_line_argument=yes 6641else 6642 xorg_cv_cc_flag_unused_command_line_argument=no 6643fi 6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6645fi 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6649 CFLAGS="$xorg_testset_save_CFLAGS" 6650fi 6651 6652found="no" 6653 6654 if test $found = "no" ; then 6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 fi 6658 6659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6661 fi 6662 6663 CFLAGS="$CFLAGS -Wuninitialized" 6664 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6666$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6667 cacheid=xorg_cv_cc_flag__Wuninitialized 6668 if eval \${$cacheid+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673int i; 6674int 6675main () 6676{ 6677 6678 ; 6679 return 0; 6680} 6681_ACEOF 6682if ac_fn_c_try_link "$LINENO"; then : 6683 eval $cacheid=yes 6684else 6685 eval $cacheid=no 6686fi 6687rm -f core conftest.err conftest.$ac_objext \ 6688 conftest$ac_exeext conftest.$ac_ext 6689fi 6690 6691 6692 CFLAGS="$xorg_testset_save_CFLAGS" 6693 6694 eval supported=\$$cacheid 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6696$as_echo "$supported" >&6; } 6697 if test "$supported" = "yes" ; then 6698 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6699 found="yes" 6700 fi 6701 fi 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717xorg_testset_save_CFLAGS="$CFLAGS" 6718 6719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725else 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6727/* end confdefs.h. */ 6728int i; 6729_ACEOF 6730if ac_fn_c_try_compile "$LINENO"; then : 6731 xorg_cv_cc_flag_unknown_warning_option=yes 6732else 6733 xorg_cv_cc_flag_unknown_warning_option=no 6734fi 6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736fi 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6740 CFLAGS="$xorg_testset_save_CFLAGS" 6741fi 6742 6743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6746 fi 6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6751 $as_echo_n "(cached) " >&6 6752else 6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6754/* end confdefs.h. */ 6755int i; 6756_ACEOF 6757if ac_fn_c_try_compile "$LINENO"; then : 6758 xorg_cv_cc_flag_unused_command_line_argument=yes 6759else 6760 xorg_cv_cc_flag_unused_command_line_argument=no 6761fi 6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6763fi 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6767 CFLAGS="$xorg_testset_save_CFLAGS" 6768fi 6769 6770found="no" 6771 6772 if test $found = "no" ; then 6773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6775 fi 6776 6777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6779 fi 6780 6781 CFLAGS="$CFLAGS -Wshadow" 6782 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6784$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6785 cacheid=xorg_cv_cc_flag__Wshadow 6786 if eval \${$cacheid+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790/* end confdefs.h. */ 6791int i; 6792int 6793main () 6794{ 6795 6796 ; 6797 return 0; 6798} 6799_ACEOF 6800if ac_fn_c_try_link "$LINENO"; then : 6801 eval $cacheid=yes 6802else 6803 eval $cacheid=no 6804fi 6805rm -f core conftest.err conftest.$ac_objext \ 6806 conftest$ac_exeext conftest.$ac_ext 6807fi 6808 6809 6810 CFLAGS="$xorg_testset_save_CFLAGS" 6811 6812 eval supported=\$$cacheid 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6814$as_echo "$supported" >&6; } 6815 if test "$supported" = "yes" ; then 6816 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6817 found="yes" 6818 fi 6819 fi 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835xorg_testset_save_CFLAGS="$CFLAGS" 6836 6837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6845/* end confdefs.h. */ 6846int i; 6847_ACEOF 6848if ac_fn_c_try_compile "$LINENO"; then : 6849 xorg_cv_cc_flag_unknown_warning_option=yes 6850else 6851 xorg_cv_cc_flag_unknown_warning_option=no 6852fi 6853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6854fi 6855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6858 CFLAGS="$xorg_testset_save_CFLAGS" 6859fi 6860 6861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6864 fi 6865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6869 $as_echo_n "(cached) " >&6 6870else 6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873int i; 6874_ACEOF 6875if ac_fn_c_try_compile "$LINENO"; then : 6876 xorg_cv_cc_flag_unused_command_line_argument=yes 6877else 6878 xorg_cv_cc_flag_unused_command_line_argument=no 6879fi 6880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6881fi 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6885 CFLAGS="$xorg_testset_save_CFLAGS" 6886fi 6887 6888found="no" 6889 6890 if test $found = "no" ; then 6891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6893 fi 6894 6895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6897 fi 6898 6899 CFLAGS="$CFLAGS -Wmissing-noreturn" 6900 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6902$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6903 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6904 if eval \${$cacheid+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6908/* end confdefs.h. */ 6909int i; 6910int 6911main () 6912{ 6913 6914 ; 6915 return 0; 6916} 6917_ACEOF 6918if ac_fn_c_try_link "$LINENO"; then : 6919 eval $cacheid=yes 6920else 6921 eval $cacheid=no 6922fi 6923rm -f core conftest.err conftest.$ac_objext \ 6924 conftest$ac_exeext conftest.$ac_ext 6925fi 6926 6927 6928 CFLAGS="$xorg_testset_save_CFLAGS" 6929 6930 eval supported=\$$cacheid 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6932$as_echo "$supported" >&6; } 6933 if test "$supported" = "yes" ; then 6934 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6935 found="yes" 6936 fi 6937 fi 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953xorg_testset_save_CFLAGS="$CFLAGS" 6954 6955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6960 $as_echo_n "(cached) " >&6 6961else 6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6963/* end confdefs.h. */ 6964int i; 6965_ACEOF 6966if ac_fn_c_try_compile "$LINENO"; then : 6967 xorg_cv_cc_flag_unknown_warning_option=yes 6968else 6969 xorg_cv_cc_flag_unknown_warning_option=no 6970fi 6971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6972fi 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977fi 6978 6979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 fi 6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6990/* end confdefs.h. */ 6991int i; 6992_ACEOF 6993if ac_fn_c_try_compile "$LINENO"; then : 6994 xorg_cv_cc_flag_unused_command_line_argument=yes 6995else 6996 xorg_cv_cc_flag_unused_command_line_argument=no 6997fi 6998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6999fi 7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7003 CFLAGS="$xorg_testset_save_CFLAGS" 7004fi 7005 7006found="no" 7007 7008 if test $found = "no" ; then 7009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7011 fi 7012 7013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7015 fi 7016 7017 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7018 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7020$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7021 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7022 if eval \${$cacheid+:} false; then : 7023 $as_echo_n "(cached) " >&6 7024else 7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7026/* end confdefs.h. */ 7027int i; 7028int 7029main () 7030{ 7031 7032 ; 7033 return 0; 7034} 7035_ACEOF 7036if ac_fn_c_try_link "$LINENO"; then : 7037 eval $cacheid=yes 7038else 7039 eval $cacheid=no 7040fi 7041rm -f core conftest.err conftest.$ac_objext \ 7042 conftest$ac_exeext conftest.$ac_ext 7043fi 7044 7045 7046 CFLAGS="$xorg_testset_save_CFLAGS" 7047 7048 eval supported=\$$cacheid 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7050$as_echo "$supported" >&6; } 7051 if test "$supported" = "yes" ; then 7052 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7053 found="yes" 7054 fi 7055 fi 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071xorg_testset_save_CFLAGS="$CFLAGS" 7072 7073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7078 $as_echo_n "(cached) " >&6 7079else 7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7081/* end confdefs.h. */ 7082int i; 7083_ACEOF 7084if ac_fn_c_try_compile "$LINENO"; then : 7085 xorg_cv_cc_flag_unknown_warning_option=yes 7086else 7087 xorg_cv_cc_flag_unknown_warning_option=no 7088fi 7089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7090fi 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7094 CFLAGS="$xorg_testset_save_CFLAGS" 7095fi 7096 7097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7100 fi 7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7105 $as_echo_n "(cached) " >&6 7106else 7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7108/* end confdefs.h. */ 7109int i; 7110_ACEOF 7111if ac_fn_c_try_compile "$LINENO"; then : 7112 xorg_cv_cc_flag_unused_command_line_argument=yes 7113else 7114 xorg_cv_cc_flag_unused_command_line_argument=no 7115fi 7116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7117fi 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7121 CFLAGS="$xorg_testset_save_CFLAGS" 7122fi 7123 7124found="no" 7125 7126 if test $found = "no" ; then 7127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7129 fi 7130 7131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7133 fi 7134 7135 CFLAGS="$CFLAGS -Wredundant-decls" 7136 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7138$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7139 cacheid=xorg_cv_cc_flag__Wredundant_decls 7140 if eval \${$cacheid+:} false; then : 7141 $as_echo_n "(cached) " >&6 7142else 7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7144/* end confdefs.h. */ 7145int i; 7146int 7147main () 7148{ 7149 7150 ; 7151 return 0; 7152} 7153_ACEOF 7154if ac_fn_c_try_link "$LINENO"; then : 7155 eval $cacheid=yes 7156else 7157 eval $cacheid=no 7158fi 7159rm -f core conftest.err conftest.$ac_objext \ 7160 conftest$ac_exeext conftest.$ac_ext 7161fi 7162 7163 7164 CFLAGS="$xorg_testset_save_CFLAGS" 7165 7166 eval supported=\$$cacheid 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7168$as_echo "$supported" >&6; } 7169 if test "$supported" = "yes" ; then 7170 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7171 found="yes" 7172 fi 7173 fi 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189xorg_testset_save_CFLAGS="$CFLAGS" 7190 7191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7196 $as_echo_n "(cached) " >&6 7197else 7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7199/* end confdefs.h. */ 7200int i; 7201_ACEOF 7202if ac_fn_c_try_compile "$LINENO"; then : 7203 xorg_cv_cc_flag_unknown_warning_option=yes 7204else 7205 xorg_cv_cc_flag_unknown_warning_option=no 7206fi 7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7208fi 7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7212 CFLAGS="$xorg_testset_save_CFLAGS" 7213fi 7214 7215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7218 fi 7219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7223 $as_echo_n "(cached) " >&6 7224else 7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7226/* end confdefs.h. */ 7227int i; 7228_ACEOF 7229if ac_fn_c_try_compile "$LINENO"; then : 7230 xorg_cv_cc_flag_unused_command_line_argument=yes 7231else 7232 xorg_cv_cc_flag_unused_command_line_argument=no 7233fi 7234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7235fi 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7239 CFLAGS="$xorg_testset_save_CFLAGS" 7240fi 7241 7242found="no" 7243 7244 if test $found = "no" ; then 7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7247 fi 7248 7249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7251 fi 7252 7253 CFLAGS="$CFLAGS -Wlogical-op" 7254 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7256$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7257 cacheid=xorg_cv_cc_flag__Wlogical_op 7258 if eval \${$cacheid+:} false; then : 7259 $as_echo_n "(cached) " >&6 7260else 7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7262/* end confdefs.h. */ 7263int i; 7264int 7265main () 7266{ 7267 7268 ; 7269 return 0; 7270} 7271_ACEOF 7272if ac_fn_c_try_link "$LINENO"; then : 7273 eval $cacheid=yes 7274else 7275 eval $cacheid=no 7276fi 7277rm -f core conftest.err conftest.$ac_objext \ 7278 conftest$ac_exeext conftest.$ac_ext 7279fi 7280 7281 7282 CFLAGS="$xorg_testset_save_CFLAGS" 7283 7284 eval supported=\$$cacheid 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7286$as_echo "$supported" >&6; } 7287 if test "$supported" = "yes" ; then 7288 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7289 found="yes" 7290 fi 7291 fi 7292 7293 7294 7295# These are currently disabled because they are noisy. They will be enabled 7296# in the future once the codebase is sufficiently modernized to silence 7297# them. For now, I don't want them to drown out the other warnings. 7298# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7299# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7300# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7301 7302# Turn some warnings into errors, so we don't accidently get successful builds 7303# when there are problems that should be fixed. 7304 7305if test "x$SELECTIVE_WERROR" = "xyes" ; then 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319xorg_testset_save_CFLAGS="$CFLAGS" 7320 7321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7326 $as_echo_n "(cached) " >&6 7327else 7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7329/* end confdefs.h. */ 7330int i; 7331_ACEOF 7332if ac_fn_c_try_compile "$LINENO"; then : 7333 xorg_cv_cc_flag_unknown_warning_option=yes 7334else 7335 xorg_cv_cc_flag_unknown_warning_option=no 7336fi 7337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7338fi 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7342 CFLAGS="$xorg_testset_save_CFLAGS" 7343fi 7344 7345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7348 fi 7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7353 $as_echo_n "(cached) " >&6 7354else 7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7356/* end confdefs.h. */ 7357int i; 7358_ACEOF 7359if ac_fn_c_try_compile "$LINENO"; then : 7360 xorg_cv_cc_flag_unused_command_line_argument=yes 7361else 7362 xorg_cv_cc_flag_unused_command_line_argument=no 7363fi 7364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7365fi 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7369 CFLAGS="$xorg_testset_save_CFLAGS" 7370fi 7371 7372found="no" 7373 7374 if test $found = "no" ; then 7375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7377 fi 7378 7379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7381 fi 7382 7383 CFLAGS="$CFLAGS -Werror=implicit" 7384 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7386$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7387 cacheid=xorg_cv_cc_flag__Werror_implicit 7388 if eval \${$cacheid+:} false; then : 7389 $as_echo_n "(cached) " >&6 7390else 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392/* end confdefs.h. */ 7393int i; 7394int 7395main () 7396{ 7397 7398 ; 7399 return 0; 7400} 7401_ACEOF 7402if ac_fn_c_try_link "$LINENO"; then : 7403 eval $cacheid=yes 7404else 7405 eval $cacheid=no 7406fi 7407rm -f core conftest.err conftest.$ac_objext \ 7408 conftest$ac_exeext conftest.$ac_ext 7409fi 7410 7411 7412 CFLAGS="$xorg_testset_save_CFLAGS" 7413 7414 eval supported=\$$cacheid 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7416$as_echo "$supported" >&6; } 7417 if test "$supported" = "yes" ; then 7418 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7419 found="yes" 7420 fi 7421 fi 7422 7423 if test $found = "no" ; then 7424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7426 fi 7427 7428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7430 fi 7431 7432 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7433 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7435$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7436 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7437 if eval \${$cacheid+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7441/* end confdefs.h. */ 7442int i; 7443int 7444main () 7445{ 7446 7447 ; 7448 return 0; 7449} 7450_ACEOF 7451if ac_fn_c_try_link "$LINENO"; then : 7452 eval $cacheid=yes 7453else 7454 eval $cacheid=no 7455fi 7456rm -f core conftest.err conftest.$ac_objext \ 7457 conftest$ac_exeext conftest.$ac_ext 7458fi 7459 7460 7461 CFLAGS="$xorg_testset_save_CFLAGS" 7462 7463 eval supported=\$$cacheid 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7465$as_echo "$supported" >&6; } 7466 if test "$supported" = "yes" ; then 7467 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7468 found="yes" 7469 fi 7470 fi 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486xorg_testset_save_CFLAGS="$CFLAGS" 7487 7488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7496/* end confdefs.h. */ 7497int i; 7498_ACEOF 7499if ac_fn_c_try_compile "$LINENO"; then : 7500 xorg_cv_cc_flag_unknown_warning_option=yes 7501else 7502 xorg_cv_cc_flag_unknown_warning_option=no 7503fi 7504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7505fi 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7509 CFLAGS="$xorg_testset_save_CFLAGS" 7510fi 7511 7512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7515 fi 7516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7520 $as_echo_n "(cached) " >&6 7521else 7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7523/* end confdefs.h. */ 7524int i; 7525_ACEOF 7526if ac_fn_c_try_compile "$LINENO"; then : 7527 xorg_cv_cc_flag_unused_command_line_argument=yes 7528else 7529 xorg_cv_cc_flag_unused_command_line_argument=no 7530fi 7531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7532fi 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7536 CFLAGS="$xorg_testset_save_CFLAGS" 7537fi 7538 7539found="no" 7540 7541 if test $found = "no" ; then 7542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7544 fi 7545 7546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7548 fi 7549 7550 CFLAGS="$CFLAGS -Werror=nonnull" 7551 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7553$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7554 cacheid=xorg_cv_cc_flag__Werror_nonnull 7555 if eval \${$cacheid+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7559/* end confdefs.h. */ 7560int i; 7561int 7562main () 7563{ 7564 7565 ; 7566 return 0; 7567} 7568_ACEOF 7569if ac_fn_c_try_link "$LINENO"; then : 7570 eval $cacheid=yes 7571else 7572 eval $cacheid=no 7573fi 7574rm -f core conftest.err conftest.$ac_objext \ 7575 conftest$ac_exeext conftest.$ac_ext 7576fi 7577 7578 7579 CFLAGS="$xorg_testset_save_CFLAGS" 7580 7581 eval supported=\$$cacheid 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7583$as_echo "$supported" >&6; } 7584 if test "$supported" = "yes" ; then 7585 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7586 found="yes" 7587 fi 7588 fi 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604xorg_testset_save_CFLAGS="$CFLAGS" 7605 7606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615int i; 7616_ACEOF 7617if ac_fn_c_try_compile "$LINENO"; then : 7618 xorg_cv_cc_flag_unknown_warning_option=yes 7619else 7620 xorg_cv_cc_flag_unknown_warning_option=no 7621fi 7622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7623fi 7624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7627 CFLAGS="$xorg_testset_save_CFLAGS" 7628fi 7629 7630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7633 fi 7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7638 $as_echo_n "(cached) " >&6 7639else 7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7641/* end confdefs.h. */ 7642int i; 7643_ACEOF 7644if ac_fn_c_try_compile "$LINENO"; then : 7645 xorg_cv_cc_flag_unused_command_line_argument=yes 7646else 7647 xorg_cv_cc_flag_unused_command_line_argument=no 7648fi 7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7650fi 7651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7654 CFLAGS="$xorg_testset_save_CFLAGS" 7655fi 7656 7657found="no" 7658 7659 if test $found = "no" ; then 7660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7662 fi 7663 7664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7666 fi 7667 7668 CFLAGS="$CFLAGS -Werror=init-self" 7669 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7671$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7672 cacheid=xorg_cv_cc_flag__Werror_init_self 7673 if eval \${$cacheid+:} false; then : 7674 $as_echo_n "(cached) " >&6 7675else 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678int i; 7679int 7680main () 7681{ 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687if ac_fn_c_try_link "$LINENO"; then : 7688 eval $cacheid=yes 7689else 7690 eval $cacheid=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext \ 7693 conftest$ac_exeext conftest.$ac_ext 7694fi 7695 7696 7697 CFLAGS="$xorg_testset_save_CFLAGS" 7698 7699 eval supported=\$$cacheid 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7701$as_echo "$supported" >&6; } 7702 if test "$supported" = "yes" ; then 7703 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7704 found="yes" 7705 fi 7706 fi 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722xorg_testset_save_CFLAGS="$CFLAGS" 7723 7724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733int i; 7734_ACEOF 7735if ac_fn_c_try_compile "$LINENO"; then : 7736 xorg_cv_cc_flag_unknown_warning_option=yes 7737else 7738 xorg_cv_cc_flag_unknown_warning_option=no 7739fi 7740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7741fi 7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7745 CFLAGS="$xorg_testset_save_CFLAGS" 7746fi 7747 7748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7751 fi 7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759/* end confdefs.h. */ 7760int i; 7761_ACEOF 7762if ac_fn_c_try_compile "$LINENO"; then : 7763 xorg_cv_cc_flag_unused_command_line_argument=yes 7764else 7765 xorg_cv_cc_flag_unused_command_line_argument=no 7766fi 7767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7768fi 7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7772 CFLAGS="$xorg_testset_save_CFLAGS" 7773fi 7774 7775found="no" 7776 7777 if test $found = "no" ; then 7778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7780 fi 7781 7782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7784 fi 7785 7786 CFLAGS="$CFLAGS -Werror=main" 7787 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7789$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7790 cacheid=xorg_cv_cc_flag__Werror_main 7791 if eval \${$cacheid+:} false; then : 7792 $as_echo_n "(cached) " >&6 7793else 7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795/* end confdefs.h. */ 7796int i; 7797int 7798main () 7799{ 7800 7801 ; 7802 return 0; 7803} 7804_ACEOF 7805if ac_fn_c_try_link "$LINENO"; then : 7806 eval $cacheid=yes 7807else 7808 eval $cacheid=no 7809fi 7810rm -f core conftest.err conftest.$ac_objext \ 7811 conftest$ac_exeext conftest.$ac_ext 7812fi 7813 7814 7815 CFLAGS="$xorg_testset_save_CFLAGS" 7816 7817 eval supported=\$$cacheid 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7819$as_echo "$supported" >&6; } 7820 if test "$supported" = "yes" ; then 7821 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7822 found="yes" 7823 fi 7824 fi 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840xorg_testset_save_CFLAGS="$CFLAGS" 7841 7842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7847 $as_echo_n "(cached) " >&6 7848else 7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850/* end confdefs.h. */ 7851int i; 7852_ACEOF 7853if ac_fn_c_try_compile "$LINENO"; then : 7854 xorg_cv_cc_flag_unknown_warning_option=yes 7855else 7856 xorg_cv_cc_flag_unknown_warning_option=no 7857fi 7858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7859fi 7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7863 CFLAGS="$xorg_testset_save_CFLAGS" 7864fi 7865 7866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7869 fi 7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875else 7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7877/* end confdefs.h. */ 7878int i; 7879_ACEOF 7880if ac_fn_c_try_compile "$LINENO"; then : 7881 xorg_cv_cc_flag_unused_command_line_argument=yes 7882else 7883 xorg_cv_cc_flag_unused_command_line_argument=no 7884fi 7885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7886fi 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7890 CFLAGS="$xorg_testset_save_CFLAGS" 7891fi 7892 7893found="no" 7894 7895 if test $found = "no" ; then 7896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7898 fi 7899 7900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7902 fi 7903 7904 CFLAGS="$CFLAGS -Werror=missing-braces" 7905 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7907$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7908 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7909 if eval \${$cacheid+:} false; then : 7910 $as_echo_n "(cached) " >&6 7911else 7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913/* end confdefs.h. */ 7914int i; 7915int 7916main () 7917{ 7918 7919 ; 7920 return 0; 7921} 7922_ACEOF 7923if ac_fn_c_try_link "$LINENO"; then : 7924 eval $cacheid=yes 7925else 7926 eval $cacheid=no 7927fi 7928rm -f core conftest.err conftest.$ac_objext \ 7929 conftest$ac_exeext conftest.$ac_ext 7930fi 7931 7932 7933 CFLAGS="$xorg_testset_save_CFLAGS" 7934 7935 eval supported=\$$cacheid 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7937$as_echo "$supported" >&6; } 7938 if test "$supported" = "yes" ; then 7939 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7940 found="yes" 7941 fi 7942 fi 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958xorg_testset_save_CFLAGS="$CFLAGS" 7959 7960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969int i; 7970_ACEOF 7971if ac_fn_c_try_compile "$LINENO"; then : 7972 xorg_cv_cc_flag_unknown_warning_option=yes 7973else 7974 xorg_cv_cc_flag_unknown_warning_option=no 7975fi 7976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7977fi 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7981 CFLAGS="$xorg_testset_save_CFLAGS" 7982fi 7983 7984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7987 fi 7988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7992 $as_echo_n "(cached) " >&6 7993else 7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995/* end confdefs.h. */ 7996int i; 7997_ACEOF 7998if ac_fn_c_try_compile "$LINENO"; then : 7999 xorg_cv_cc_flag_unused_command_line_argument=yes 8000else 8001 xorg_cv_cc_flag_unused_command_line_argument=no 8002fi 8003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8004fi 8005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8008 CFLAGS="$xorg_testset_save_CFLAGS" 8009fi 8010 8011found="no" 8012 8013 if test $found = "no" ; then 8014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8016 fi 8017 8018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8020 fi 8021 8022 CFLAGS="$CFLAGS -Werror=sequence-point" 8023 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8025$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 8026 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8027 if eval \${$cacheid+:} false; then : 8028 $as_echo_n "(cached) " >&6 8029else 8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8031/* end confdefs.h. */ 8032int i; 8033int 8034main () 8035{ 8036 8037 ; 8038 return 0; 8039} 8040_ACEOF 8041if ac_fn_c_try_link "$LINENO"; then : 8042 eval $cacheid=yes 8043else 8044 eval $cacheid=no 8045fi 8046rm -f core conftest.err conftest.$ac_objext \ 8047 conftest$ac_exeext conftest.$ac_ext 8048fi 8049 8050 8051 CFLAGS="$xorg_testset_save_CFLAGS" 8052 8053 eval supported=\$$cacheid 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8055$as_echo "$supported" >&6; } 8056 if test "$supported" = "yes" ; then 8057 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8058 found="yes" 8059 fi 8060 fi 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076xorg_testset_save_CFLAGS="$CFLAGS" 8077 8078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8083 $as_echo_n "(cached) " >&6 8084else 8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8086/* end confdefs.h. */ 8087int i; 8088_ACEOF 8089if ac_fn_c_try_compile "$LINENO"; then : 8090 xorg_cv_cc_flag_unknown_warning_option=yes 8091else 8092 xorg_cv_cc_flag_unknown_warning_option=no 8093fi 8094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8095fi 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8099 CFLAGS="$xorg_testset_save_CFLAGS" 8100fi 8101 8102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8105 fi 8106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8110 $as_echo_n "(cached) " >&6 8111else 8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8113/* end confdefs.h. */ 8114int i; 8115_ACEOF 8116if ac_fn_c_try_compile "$LINENO"; then : 8117 xorg_cv_cc_flag_unused_command_line_argument=yes 8118else 8119 xorg_cv_cc_flag_unused_command_line_argument=no 8120fi 8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8122fi 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8126 CFLAGS="$xorg_testset_save_CFLAGS" 8127fi 8128 8129found="no" 8130 8131 if test $found = "no" ; then 8132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8134 fi 8135 8136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8138 fi 8139 8140 CFLAGS="$CFLAGS -Werror=return-type" 8141 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8143$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8144 cacheid=xorg_cv_cc_flag__Werror_return_type 8145 if eval \${$cacheid+:} false; then : 8146 $as_echo_n "(cached) " >&6 8147else 8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8149/* end confdefs.h. */ 8150int i; 8151int 8152main () 8153{ 8154 8155 ; 8156 return 0; 8157} 8158_ACEOF 8159if ac_fn_c_try_link "$LINENO"; then : 8160 eval $cacheid=yes 8161else 8162 eval $cacheid=no 8163fi 8164rm -f core conftest.err conftest.$ac_objext \ 8165 conftest$ac_exeext conftest.$ac_ext 8166fi 8167 8168 8169 CFLAGS="$xorg_testset_save_CFLAGS" 8170 8171 eval supported=\$$cacheid 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8173$as_echo "$supported" >&6; } 8174 if test "$supported" = "yes" ; then 8175 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8176 found="yes" 8177 fi 8178 fi 8179 8180 if test $found = "no" ; then 8181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8183 fi 8184 8185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8187 fi 8188 8189 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8190 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8192$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8193 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8194 if eval \${$cacheid+:} false; then : 8195 $as_echo_n "(cached) " >&6 8196else 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199int i; 8200int 8201main () 8202{ 8203 8204 ; 8205 return 0; 8206} 8207_ACEOF 8208if ac_fn_c_try_link "$LINENO"; then : 8209 eval $cacheid=yes 8210else 8211 eval $cacheid=no 8212fi 8213rm -f core conftest.err conftest.$ac_objext \ 8214 conftest$ac_exeext conftest.$ac_ext 8215fi 8216 8217 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219 8220 eval supported=\$$cacheid 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8222$as_echo "$supported" >&6; } 8223 if test "$supported" = "yes" ; then 8224 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8225 found="yes" 8226 fi 8227 fi 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243xorg_testset_save_CFLAGS="$CFLAGS" 8244 8245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254int i; 8255_ACEOF 8256if ac_fn_c_try_compile "$LINENO"; then : 8257 xorg_cv_cc_flag_unknown_warning_option=yes 8258else 8259 xorg_cv_cc_flag_unknown_warning_option=no 8260fi 8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8262fi 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8266 CFLAGS="$xorg_testset_save_CFLAGS" 8267fi 8268 8269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8272 fi 8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278else 8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8280/* end confdefs.h. */ 8281int i; 8282_ACEOF 8283if ac_fn_c_try_compile "$LINENO"; then : 8284 xorg_cv_cc_flag_unused_command_line_argument=yes 8285else 8286 xorg_cv_cc_flag_unused_command_line_argument=no 8287fi 8288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8289fi 8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8293 CFLAGS="$xorg_testset_save_CFLAGS" 8294fi 8295 8296found="no" 8297 8298 if test $found = "no" ; then 8299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8301 fi 8302 8303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8305 fi 8306 8307 CFLAGS="$CFLAGS -Werror=trigraphs" 8308 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8310$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8311 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8312 if eval \${$cacheid+:} false; then : 8313 $as_echo_n "(cached) " >&6 8314else 8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316/* end confdefs.h. */ 8317int i; 8318int 8319main () 8320{ 8321 8322 ; 8323 return 0; 8324} 8325_ACEOF 8326if ac_fn_c_try_link "$LINENO"; then : 8327 eval $cacheid=yes 8328else 8329 eval $cacheid=no 8330fi 8331rm -f core conftest.err conftest.$ac_objext \ 8332 conftest$ac_exeext conftest.$ac_ext 8333fi 8334 8335 8336 CFLAGS="$xorg_testset_save_CFLAGS" 8337 8338 eval supported=\$$cacheid 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8340$as_echo "$supported" >&6; } 8341 if test "$supported" = "yes" ; then 8342 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8343 found="yes" 8344 fi 8345 fi 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361xorg_testset_save_CFLAGS="$CFLAGS" 8362 8363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369else 8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372int i; 8373_ACEOF 8374if ac_fn_c_try_compile "$LINENO"; then : 8375 xorg_cv_cc_flag_unknown_warning_option=yes 8376else 8377 xorg_cv_cc_flag_unknown_warning_option=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8380fi 8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385fi 8386 8387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8390 fi 8391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8395 $as_echo_n "(cached) " >&6 8396else 8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8398/* end confdefs.h. */ 8399int i; 8400_ACEOF 8401if ac_fn_c_try_compile "$LINENO"; then : 8402 xorg_cv_cc_flag_unused_command_line_argument=yes 8403else 8404 xorg_cv_cc_flag_unused_command_line_argument=no 8405fi 8406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8407fi 8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8411 CFLAGS="$xorg_testset_save_CFLAGS" 8412fi 8413 8414found="no" 8415 8416 if test $found = "no" ; then 8417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8419 fi 8420 8421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8423 fi 8424 8425 CFLAGS="$CFLAGS -Werror=array-bounds" 8426 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8428$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8429 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8430 if eval \${$cacheid+:} false; then : 8431 $as_echo_n "(cached) " >&6 8432else 8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434/* end confdefs.h. */ 8435int i; 8436int 8437main () 8438{ 8439 8440 ; 8441 return 0; 8442} 8443_ACEOF 8444if ac_fn_c_try_link "$LINENO"; then : 8445 eval $cacheid=yes 8446else 8447 eval $cacheid=no 8448fi 8449rm -f core conftest.err conftest.$ac_objext \ 8450 conftest$ac_exeext conftest.$ac_ext 8451fi 8452 8453 8454 CFLAGS="$xorg_testset_save_CFLAGS" 8455 8456 eval supported=\$$cacheid 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8458$as_echo "$supported" >&6; } 8459 if test "$supported" = "yes" ; then 8460 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8461 found="yes" 8462 fi 8463 fi 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479xorg_testset_save_CFLAGS="$CFLAGS" 8480 8481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490int i; 8491_ACEOF 8492if ac_fn_c_try_compile "$LINENO"; then : 8493 xorg_cv_cc_flag_unknown_warning_option=yes 8494else 8495 xorg_cv_cc_flag_unknown_warning_option=no 8496fi 8497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8498fi 8499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8502 CFLAGS="$xorg_testset_save_CFLAGS" 8503fi 8504 8505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8508 fi 8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8516/* end confdefs.h. */ 8517int i; 8518_ACEOF 8519if ac_fn_c_try_compile "$LINENO"; then : 8520 xorg_cv_cc_flag_unused_command_line_argument=yes 8521else 8522 xorg_cv_cc_flag_unused_command_line_argument=no 8523fi 8524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8525fi 8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530fi 8531 8532found="no" 8533 8534 if test $found = "no" ; then 8535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8537 fi 8538 8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8541 fi 8542 8543 CFLAGS="$CFLAGS -Werror=write-strings" 8544 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8546$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8547 cacheid=xorg_cv_cc_flag__Werror_write_strings 8548 if eval \${$cacheid+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553int i; 8554int 8555main () 8556{ 8557 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562if ac_fn_c_try_link "$LINENO"; then : 8563 eval $cacheid=yes 8564else 8565 eval $cacheid=no 8566fi 8567rm -f core conftest.err conftest.$ac_objext \ 8568 conftest$ac_exeext conftest.$ac_ext 8569fi 8570 8571 8572 CFLAGS="$xorg_testset_save_CFLAGS" 8573 8574 eval supported=\$$cacheid 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8576$as_echo "$supported" >&6; } 8577 if test "$supported" = "yes" ; then 8578 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8579 found="yes" 8580 fi 8581 fi 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597xorg_testset_save_CFLAGS="$CFLAGS" 8598 8599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607/* end confdefs.h. */ 8608int i; 8609_ACEOF 8610if ac_fn_c_try_compile "$LINENO"; then : 8611 xorg_cv_cc_flag_unknown_warning_option=yes 8612else 8613 xorg_cv_cc_flag_unknown_warning_option=no 8614fi 8615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8616fi 8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8620 CFLAGS="$xorg_testset_save_CFLAGS" 8621fi 8622 8623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8626 fi 8627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8631 $as_echo_n "(cached) " >&6 8632else 8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8634/* end confdefs.h. */ 8635int i; 8636_ACEOF 8637if ac_fn_c_try_compile "$LINENO"; then : 8638 xorg_cv_cc_flag_unused_command_line_argument=yes 8639else 8640 xorg_cv_cc_flag_unused_command_line_argument=no 8641fi 8642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8643fi 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8647 CFLAGS="$xorg_testset_save_CFLAGS" 8648fi 8649 8650found="no" 8651 8652 if test $found = "no" ; then 8653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8655 fi 8656 8657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8659 fi 8660 8661 CFLAGS="$CFLAGS -Werror=address" 8662 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8664$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8665 cacheid=xorg_cv_cc_flag__Werror_address 8666 if eval \${$cacheid+:} false; then : 8667 $as_echo_n "(cached) " >&6 8668else 8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8670/* end confdefs.h. */ 8671int i; 8672int 8673main () 8674{ 8675 8676 ; 8677 return 0; 8678} 8679_ACEOF 8680if ac_fn_c_try_link "$LINENO"; then : 8681 eval $cacheid=yes 8682else 8683 eval $cacheid=no 8684fi 8685rm -f core conftest.err conftest.$ac_objext \ 8686 conftest$ac_exeext conftest.$ac_ext 8687fi 8688 8689 8690 CFLAGS="$xorg_testset_save_CFLAGS" 8691 8692 eval supported=\$$cacheid 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8694$as_echo "$supported" >&6; } 8695 if test "$supported" = "yes" ; then 8696 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8697 found="yes" 8698 fi 8699 fi 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715xorg_testset_save_CFLAGS="$CFLAGS" 8716 8717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8722 $as_echo_n "(cached) " >&6 8723else 8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8725/* end confdefs.h. */ 8726int i; 8727_ACEOF 8728if ac_fn_c_try_compile "$LINENO"; then : 8729 xorg_cv_cc_flag_unknown_warning_option=yes 8730else 8731 xorg_cv_cc_flag_unknown_warning_option=no 8732fi 8733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8734fi 8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8738 CFLAGS="$xorg_testset_save_CFLAGS" 8739fi 8740 8741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 fi 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8749 $as_echo_n "(cached) " >&6 8750else 8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8752/* end confdefs.h. */ 8753int i; 8754_ACEOF 8755if ac_fn_c_try_compile "$LINENO"; then : 8756 xorg_cv_cc_flag_unused_command_line_argument=yes 8757else 8758 xorg_cv_cc_flag_unused_command_line_argument=no 8759fi 8760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8761fi 8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8765 CFLAGS="$xorg_testset_save_CFLAGS" 8766fi 8767 8768found="no" 8769 8770 if test $found = "no" ; then 8771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8773 fi 8774 8775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8777 fi 8778 8779 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8780 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8782$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8783 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8784 if eval \${$cacheid+:} false; then : 8785 $as_echo_n "(cached) " >&6 8786else 8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8788/* end confdefs.h. */ 8789int i; 8790int 8791main () 8792{ 8793 8794 ; 8795 return 0; 8796} 8797_ACEOF 8798if ac_fn_c_try_link "$LINENO"; then : 8799 eval $cacheid=yes 8800else 8801 eval $cacheid=no 8802fi 8803rm -f core conftest.err conftest.$ac_objext \ 8804 conftest$ac_exeext conftest.$ac_ext 8805fi 8806 8807 8808 CFLAGS="$xorg_testset_save_CFLAGS" 8809 8810 eval supported=\$$cacheid 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8812$as_echo "$supported" >&6; } 8813 if test "$supported" = "yes" ; then 8814 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8815 found="yes" 8816 fi 8817 fi 8818 8819 if test $found = "no" ; then 8820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8822 fi 8823 8824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8826 fi 8827 8828 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8829 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8831$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8832 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8833 if eval \${$cacheid+:} false; then : 8834 $as_echo_n "(cached) " >&6 8835else 8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8837/* end confdefs.h. */ 8838int i; 8839int 8840main () 8841{ 8842 8843 ; 8844 return 0; 8845} 8846_ACEOF 8847if ac_fn_c_try_link "$LINENO"; then : 8848 eval $cacheid=yes 8849else 8850 eval $cacheid=no 8851fi 8852rm -f core conftest.err conftest.$ac_objext \ 8853 conftest$ac_exeext conftest.$ac_ext 8854fi 8855 8856 8857 CFLAGS="$xorg_testset_save_CFLAGS" 8858 8859 eval supported=\$$cacheid 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8861$as_echo "$supported" >&6; } 8862 if test "$supported" = "yes" ; then 8863 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8864 found="yes" 8865 fi 8866 fi 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882xorg_testset_save_CFLAGS="$CFLAGS" 8883 8884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8889 $as_echo_n "(cached) " >&6 8890else 8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8892/* end confdefs.h. */ 8893int i; 8894_ACEOF 8895if ac_fn_c_try_compile "$LINENO"; then : 8896 xorg_cv_cc_flag_unknown_warning_option=yes 8897else 8898 xorg_cv_cc_flag_unknown_warning_option=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8901fi 8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906fi 8907 8908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8911 fi 8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8916 $as_echo_n "(cached) " >&6 8917else 8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8919/* end confdefs.h. */ 8920int i; 8921_ACEOF 8922if ac_fn_c_try_compile "$LINENO"; then : 8923 xorg_cv_cc_flag_unused_command_line_argument=yes 8924else 8925 xorg_cv_cc_flag_unused_command_line_argument=no 8926fi 8927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8928fi 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8932 CFLAGS="$xorg_testset_save_CFLAGS" 8933fi 8934 8935found="no" 8936 8937 if test $found = "no" ; then 8938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8940 fi 8941 8942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8944 fi 8945 8946 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8947 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8949$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8950 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8951 if eval \${$cacheid+:} false; then : 8952 $as_echo_n "(cached) " >&6 8953else 8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8955/* end confdefs.h. */ 8956int i; 8957int 8958main () 8959{ 8960 8961 ; 8962 return 0; 8963} 8964_ACEOF 8965if ac_fn_c_try_link "$LINENO"; then : 8966 eval $cacheid=yes 8967else 8968 eval $cacheid=no 8969fi 8970rm -f core conftest.err conftest.$ac_objext \ 8971 conftest$ac_exeext conftest.$ac_ext 8972fi 8973 8974 8975 CFLAGS="$xorg_testset_save_CFLAGS" 8976 8977 eval supported=\$$cacheid 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8979$as_echo "$supported" >&6; } 8980 if test "$supported" = "yes" ; then 8981 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8982 found="yes" 8983 fi 8984 fi 8985 8986 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8987else 8988{ $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 8989$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;} 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003xorg_testset_save_CFLAGS="$CFLAGS" 9004 9005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9010 $as_echo_n "(cached) " >&6 9011else 9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9013/* end confdefs.h. */ 9014int i; 9015_ACEOF 9016if ac_fn_c_try_compile "$LINENO"; then : 9017 xorg_cv_cc_flag_unknown_warning_option=yes 9018else 9019 xorg_cv_cc_flag_unknown_warning_option=no 9020fi 9021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9022fi 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9026 CFLAGS="$xorg_testset_save_CFLAGS" 9027fi 9028 9029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9032 fi 9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9037 $as_echo_n "(cached) " >&6 9038else 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041int i; 9042_ACEOF 9043if ac_fn_c_try_compile "$LINENO"; then : 9044 xorg_cv_cc_flag_unused_command_line_argument=yes 9045else 9046 xorg_cv_cc_flag_unused_command_line_argument=no 9047fi 9048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9049fi 9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9053 CFLAGS="$xorg_testset_save_CFLAGS" 9054fi 9055 9056found="no" 9057 9058 if test $found = "no" ; then 9059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9061 fi 9062 9063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9065 fi 9066 9067 CFLAGS="$CFLAGS -Wimplicit" 9068 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9070$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 9071 cacheid=xorg_cv_cc_flag__Wimplicit 9072 if eval \${$cacheid+:} false; then : 9073 $as_echo_n "(cached) " >&6 9074else 9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9076/* end confdefs.h. */ 9077int i; 9078int 9079main () 9080{ 9081 9082 ; 9083 return 0; 9084} 9085_ACEOF 9086if ac_fn_c_try_link "$LINENO"; then : 9087 eval $cacheid=yes 9088else 9089 eval $cacheid=no 9090fi 9091rm -f core conftest.err conftest.$ac_objext \ 9092 conftest$ac_exeext conftest.$ac_ext 9093fi 9094 9095 9096 CFLAGS="$xorg_testset_save_CFLAGS" 9097 9098 eval supported=\$$cacheid 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9100$as_echo "$supported" >&6; } 9101 if test "$supported" = "yes" ; then 9102 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9103 found="yes" 9104 fi 9105 fi 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121xorg_testset_save_CFLAGS="$CFLAGS" 9122 9123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9128 $as_echo_n "(cached) " >&6 9129else 9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131/* end confdefs.h. */ 9132int i; 9133_ACEOF 9134if ac_fn_c_try_compile "$LINENO"; then : 9135 xorg_cv_cc_flag_unknown_warning_option=yes 9136else 9137 xorg_cv_cc_flag_unknown_warning_option=no 9138fi 9139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9140fi 9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145fi 9146 9147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9150 fi 9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9155 $as_echo_n "(cached) " >&6 9156else 9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9158/* end confdefs.h. */ 9159int i; 9160_ACEOF 9161if ac_fn_c_try_compile "$LINENO"; then : 9162 xorg_cv_cc_flag_unused_command_line_argument=yes 9163else 9164 xorg_cv_cc_flag_unused_command_line_argument=no 9165fi 9166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9167fi 9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9171 CFLAGS="$xorg_testset_save_CFLAGS" 9172fi 9173 9174found="no" 9175 9176 if test $found = "no" ; then 9177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9179 fi 9180 9181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9183 fi 9184 9185 CFLAGS="$CFLAGS -Wnonnull" 9186 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9188$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9189 cacheid=xorg_cv_cc_flag__Wnonnull 9190 if eval \${$cacheid+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192else 9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194/* end confdefs.h. */ 9195int i; 9196int 9197main () 9198{ 9199 9200 ; 9201 return 0; 9202} 9203_ACEOF 9204if ac_fn_c_try_link "$LINENO"; then : 9205 eval $cacheid=yes 9206else 9207 eval $cacheid=no 9208fi 9209rm -f core conftest.err conftest.$ac_objext \ 9210 conftest$ac_exeext conftest.$ac_ext 9211fi 9212 9213 9214 CFLAGS="$xorg_testset_save_CFLAGS" 9215 9216 eval supported=\$$cacheid 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9218$as_echo "$supported" >&6; } 9219 if test "$supported" = "yes" ; then 9220 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9221 found="yes" 9222 fi 9223 fi 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239xorg_testset_save_CFLAGS="$CFLAGS" 9240 9241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9249/* end confdefs.h. */ 9250int i; 9251_ACEOF 9252if ac_fn_c_try_compile "$LINENO"; then : 9253 xorg_cv_cc_flag_unknown_warning_option=yes 9254else 9255 xorg_cv_cc_flag_unknown_warning_option=no 9256fi 9257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9258fi 9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263fi 9264 9265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9268 fi 9269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274else 9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9276/* end confdefs.h. */ 9277int i; 9278_ACEOF 9279if ac_fn_c_try_compile "$LINENO"; then : 9280 xorg_cv_cc_flag_unused_command_line_argument=yes 9281else 9282 xorg_cv_cc_flag_unused_command_line_argument=no 9283fi 9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9285fi 9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9289 CFLAGS="$xorg_testset_save_CFLAGS" 9290fi 9291 9292found="no" 9293 9294 if test $found = "no" ; then 9295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9297 fi 9298 9299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9301 fi 9302 9303 CFLAGS="$CFLAGS -Winit-self" 9304 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9306$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9307 cacheid=xorg_cv_cc_flag__Winit_self 9308 if eval \${$cacheid+:} false; then : 9309 $as_echo_n "(cached) " >&6 9310else 9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9312/* end confdefs.h. */ 9313int i; 9314int 9315main () 9316{ 9317 9318 ; 9319 return 0; 9320} 9321_ACEOF 9322if ac_fn_c_try_link "$LINENO"; then : 9323 eval $cacheid=yes 9324else 9325 eval $cacheid=no 9326fi 9327rm -f core conftest.err conftest.$ac_objext \ 9328 conftest$ac_exeext conftest.$ac_ext 9329fi 9330 9331 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333 9334 eval supported=\$$cacheid 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9336$as_echo "$supported" >&6; } 9337 if test "$supported" = "yes" ; then 9338 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9339 found="yes" 9340 fi 9341 fi 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357xorg_testset_save_CFLAGS="$CFLAGS" 9358 9359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9362$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9363if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9364 $as_echo_n "(cached) " >&6 9365else 9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9367/* end confdefs.h. */ 9368int i; 9369_ACEOF 9370if ac_fn_c_try_compile "$LINENO"; then : 9371 xorg_cv_cc_flag_unknown_warning_option=yes 9372else 9373 xorg_cv_cc_flag_unknown_warning_option=no 9374fi 9375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9376fi 9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9378$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9380 CFLAGS="$xorg_testset_save_CFLAGS" 9381fi 9382 9383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9386 fi 9387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9389$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9390if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394/* end confdefs.h. */ 9395int i; 9396_ACEOF 9397if ac_fn_c_try_compile "$LINENO"; then : 9398 xorg_cv_cc_flag_unused_command_line_argument=yes 9399else 9400 xorg_cv_cc_flag_unused_command_line_argument=no 9401fi 9402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9403fi 9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9405$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9407 CFLAGS="$xorg_testset_save_CFLAGS" 9408fi 9409 9410found="no" 9411 9412 if test $found = "no" ; then 9413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9415 fi 9416 9417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9419 fi 9420 9421 CFLAGS="$CFLAGS -Wmain" 9422 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9424$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9425 cacheid=xorg_cv_cc_flag__Wmain 9426 if eval \${$cacheid+:} false; then : 9427 $as_echo_n "(cached) " >&6 9428else 9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9430/* end confdefs.h. */ 9431int i; 9432int 9433main () 9434{ 9435 9436 ; 9437 return 0; 9438} 9439_ACEOF 9440if ac_fn_c_try_link "$LINENO"; then : 9441 eval $cacheid=yes 9442else 9443 eval $cacheid=no 9444fi 9445rm -f core conftest.err conftest.$ac_objext \ 9446 conftest$ac_exeext conftest.$ac_ext 9447fi 9448 9449 9450 CFLAGS="$xorg_testset_save_CFLAGS" 9451 9452 eval supported=\$$cacheid 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9454$as_echo "$supported" >&6; } 9455 if test "$supported" = "yes" ; then 9456 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9457 found="yes" 9458 fi 9459 fi 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475xorg_testset_save_CFLAGS="$CFLAGS" 9476 9477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9482 $as_echo_n "(cached) " >&6 9483else 9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9485/* end confdefs.h. */ 9486int i; 9487_ACEOF 9488if ac_fn_c_try_compile "$LINENO"; then : 9489 xorg_cv_cc_flag_unknown_warning_option=yes 9490else 9491 xorg_cv_cc_flag_unknown_warning_option=no 9492fi 9493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9494fi 9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9498 CFLAGS="$xorg_testset_save_CFLAGS" 9499fi 9500 9501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9504 fi 9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9509 $as_echo_n "(cached) " >&6 9510else 9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9512/* end confdefs.h. */ 9513int i; 9514_ACEOF 9515if ac_fn_c_try_compile "$LINENO"; then : 9516 xorg_cv_cc_flag_unused_command_line_argument=yes 9517else 9518 xorg_cv_cc_flag_unused_command_line_argument=no 9519fi 9520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9521fi 9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9525 CFLAGS="$xorg_testset_save_CFLAGS" 9526fi 9527 9528found="no" 9529 9530 if test $found = "no" ; then 9531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9533 fi 9534 9535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9537 fi 9538 9539 CFLAGS="$CFLAGS -Wmissing-braces" 9540 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9542$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9543 cacheid=xorg_cv_cc_flag__Wmissing_braces 9544 if eval \${$cacheid+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546else 9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9548/* end confdefs.h. */ 9549int i; 9550int 9551main () 9552{ 9553 9554 ; 9555 return 0; 9556} 9557_ACEOF 9558if ac_fn_c_try_link "$LINENO"; then : 9559 eval $cacheid=yes 9560else 9561 eval $cacheid=no 9562fi 9563rm -f core conftest.err conftest.$ac_objext \ 9564 conftest$ac_exeext conftest.$ac_ext 9565fi 9566 9567 9568 CFLAGS="$xorg_testset_save_CFLAGS" 9569 9570 eval supported=\$$cacheid 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9572$as_echo "$supported" >&6; } 9573 if test "$supported" = "yes" ; then 9574 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9575 found="yes" 9576 fi 9577 fi 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593xorg_testset_save_CFLAGS="$CFLAGS" 9594 9595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9598$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9599if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601else 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604int i; 9605_ACEOF 9606if ac_fn_c_try_compile "$LINENO"; then : 9607 xorg_cv_cc_flag_unknown_warning_option=yes 9608else 9609 xorg_cv_cc_flag_unknown_warning_option=no 9610fi 9611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9612fi 9613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9614$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9616 CFLAGS="$xorg_testset_save_CFLAGS" 9617fi 9618 9619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9622 fi 9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9625$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9626if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9627 $as_echo_n "(cached) " >&6 9628else 9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630/* end confdefs.h. */ 9631int i; 9632_ACEOF 9633if ac_fn_c_try_compile "$LINENO"; then : 9634 xorg_cv_cc_flag_unused_command_line_argument=yes 9635else 9636 xorg_cv_cc_flag_unused_command_line_argument=no 9637fi 9638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9639fi 9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9641$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9643 CFLAGS="$xorg_testset_save_CFLAGS" 9644fi 9645 9646found="no" 9647 9648 if test $found = "no" ; then 9649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9651 fi 9652 9653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9655 fi 9656 9657 CFLAGS="$CFLAGS -Wsequence-point" 9658 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9660$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9661 cacheid=xorg_cv_cc_flag__Wsequence_point 9662 if eval \${$cacheid+:} false; then : 9663 $as_echo_n "(cached) " >&6 9664else 9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666/* end confdefs.h. */ 9667int i; 9668int 9669main () 9670{ 9671 9672 ; 9673 return 0; 9674} 9675_ACEOF 9676if ac_fn_c_try_link "$LINENO"; then : 9677 eval $cacheid=yes 9678else 9679 eval $cacheid=no 9680fi 9681rm -f core conftest.err conftest.$ac_objext \ 9682 conftest$ac_exeext conftest.$ac_ext 9683fi 9684 9685 9686 CFLAGS="$xorg_testset_save_CFLAGS" 9687 9688 eval supported=\$$cacheid 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9690$as_echo "$supported" >&6; } 9691 if test "$supported" = "yes" ; then 9692 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9693 found="yes" 9694 fi 9695 fi 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711xorg_testset_save_CFLAGS="$CFLAGS" 9712 9713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9716$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9717if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9718 $as_echo_n "(cached) " >&6 9719else 9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9721/* end confdefs.h. */ 9722int i; 9723_ACEOF 9724if ac_fn_c_try_compile "$LINENO"; then : 9725 xorg_cv_cc_flag_unknown_warning_option=yes 9726else 9727 xorg_cv_cc_flag_unknown_warning_option=no 9728fi 9729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9730fi 9731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9732$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9734 CFLAGS="$xorg_testset_save_CFLAGS" 9735fi 9736 9737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9740 fi 9741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9743$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9744if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746else 9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9748/* end confdefs.h. */ 9749int i; 9750_ACEOF 9751if ac_fn_c_try_compile "$LINENO"; then : 9752 xorg_cv_cc_flag_unused_command_line_argument=yes 9753else 9754 xorg_cv_cc_flag_unused_command_line_argument=no 9755fi 9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9757fi 9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9759$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9761 CFLAGS="$xorg_testset_save_CFLAGS" 9762fi 9763 9764found="no" 9765 9766 if test $found = "no" ; then 9767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9769 fi 9770 9771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9773 fi 9774 9775 CFLAGS="$CFLAGS -Wreturn-type" 9776 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9778$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9779 cacheid=xorg_cv_cc_flag__Wreturn_type 9780 if eval \${$cacheid+:} false; then : 9781 $as_echo_n "(cached) " >&6 9782else 9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9784/* end confdefs.h. */ 9785int i; 9786int 9787main () 9788{ 9789 9790 ; 9791 return 0; 9792} 9793_ACEOF 9794if ac_fn_c_try_link "$LINENO"; then : 9795 eval $cacheid=yes 9796else 9797 eval $cacheid=no 9798fi 9799rm -f core conftest.err conftest.$ac_objext \ 9800 conftest$ac_exeext conftest.$ac_ext 9801fi 9802 9803 9804 CFLAGS="$xorg_testset_save_CFLAGS" 9805 9806 eval supported=\$$cacheid 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9808$as_echo "$supported" >&6; } 9809 if test "$supported" = "yes" ; then 9810 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9811 found="yes" 9812 fi 9813 fi 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829xorg_testset_save_CFLAGS="$CFLAGS" 9830 9831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9836 $as_echo_n "(cached) " >&6 9837else 9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9839/* end confdefs.h. */ 9840int i; 9841_ACEOF 9842if ac_fn_c_try_compile "$LINENO"; then : 9843 xorg_cv_cc_flag_unknown_warning_option=yes 9844else 9845 xorg_cv_cc_flag_unknown_warning_option=no 9846fi 9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9848fi 9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853fi 9854 9855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9863 $as_echo_n "(cached) " >&6 9864else 9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9866/* end confdefs.h. */ 9867int i; 9868_ACEOF 9869if ac_fn_c_try_compile "$LINENO"; then : 9870 xorg_cv_cc_flag_unused_command_line_argument=yes 9871else 9872 xorg_cv_cc_flag_unused_command_line_argument=no 9873fi 9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9875fi 9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9879 CFLAGS="$xorg_testset_save_CFLAGS" 9880fi 9881 9882found="no" 9883 9884 if test $found = "no" ; then 9885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9887 fi 9888 9889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9891 fi 9892 9893 CFLAGS="$CFLAGS -Wtrigraphs" 9894 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9896$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9897 cacheid=xorg_cv_cc_flag__Wtrigraphs 9898 if eval \${$cacheid+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900else 9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902/* end confdefs.h. */ 9903int i; 9904int 9905main () 9906{ 9907 9908 ; 9909 return 0; 9910} 9911_ACEOF 9912if ac_fn_c_try_link "$LINENO"; then : 9913 eval $cacheid=yes 9914else 9915 eval $cacheid=no 9916fi 9917rm -f core conftest.err conftest.$ac_objext \ 9918 conftest$ac_exeext conftest.$ac_ext 9919fi 9920 9921 9922 CFLAGS="$xorg_testset_save_CFLAGS" 9923 9924 eval supported=\$$cacheid 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9926$as_echo "$supported" >&6; } 9927 if test "$supported" = "yes" ; then 9928 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9929 found="yes" 9930 fi 9931 fi 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947xorg_testset_save_CFLAGS="$CFLAGS" 9948 9949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958int i; 9959_ACEOF 9960if ac_fn_c_try_compile "$LINENO"; then : 9961 xorg_cv_cc_flag_unknown_warning_option=yes 9962else 9963 xorg_cv_cc_flag_unknown_warning_option=no 9964fi 9965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9966fi 9967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9970 CFLAGS="$xorg_testset_save_CFLAGS" 9971fi 9972 9973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9976 fi 9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9981 $as_echo_n "(cached) " >&6 9982else 9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984/* end confdefs.h. */ 9985int i; 9986_ACEOF 9987if ac_fn_c_try_compile "$LINENO"; then : 9988 xorg_cv_cc_flag_unused_command_line_argument=yes 9989else 9990 xorg_cv_cc_flag_unused_command_line_argument=no 9991fi 9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9993fi 9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9997 CFLAGS="$xorg_testset_save_CFLAGS" 9998fi 9999 10000found="no" 10001 10002 if test $found = "no" ; then 10003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10005 fi 10006 10007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10009 fi 10010 10011 CFLAGS="$CFLAGS -Warray-bounds" 10012 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10014$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 10015 cacheid=xorg_cv_cc_flag__Warray_bounds 10016 if eval \${$cacheid+:} false; then : 10017 $as_echo_n "(cached) " >&6 10018else 10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020/* end confdefs.h. */ 10021int i; 10022int 10023main () 10024{ 10025 10026 ; 10027 return 0; 10028} 10029_ACEOF 10030if ac_fn_c_try_link "$LINENO"; then : 10031 eval $cacheid=yes 10032else 10033 eval $cacheid=no 10034fi 10035rm -f core conftest.err conftest.$ac_objext \ 10036 conftest$ac_exeext conftest.$ac_ext 10037fi 10038 10039 10040 CFLAGS="$xorg_testset_save_CFLAGS" 10041 10042 eval supported=\$$cacheid 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10044$as_echo "$supported" >&6; } 10045 if test "$supported" = "yes" ; then 10046 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10047 found="yes" 10048 fi 10049 fi 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065xorg_testset_save_CFLAGS="$CFLAGS" 10066 10067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10072 $as_echo_n "(cached) " >&6 10073else 10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075/* end confdefs.h. */ 10076int i; 10077_ACEOF 10078if ac_fn_c_try_compile "$LINENO"; then : 10079 xorg_cv_cc_flag_unknown_warning_option=yes 10080else 10081 xorg_cv_cc_flag_unknown_warning_option=no 10082fi 10083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10084fi 10085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10088 CFLAGS="$xorg_testset_save_CFLAGS" 10089fi 10090 10091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10094 fi 10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10099 $as_echo_n "(cached) " >&6 10100else 10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10102/* end confdefs.h. */ 10103int i; 10104_ACEOF 10105if ac_fn_c_try_compile "$LINENO"; then : 10106 xorg_cv_cc_flag_unused_command_line_argument=yes 10107else 10108 xorg_cv_cc_flag_unused_command_line_argument=no 10109fi 10110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10111fi 10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10115 CFLAGS="$xorg_testset_save_CFLAGS" 10116fi 10117 10118found="no" 10119 10120 if test $found = "no" ; then 10121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10123 fi 10124 10125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10127 fi 10128 10129 CFLAGS="$CFLAGS -Wwrite-strings" 10130 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10132$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 10133 cacheid=xorg_cv_cc_flag__Wwrite_strings 10134 if eval \${$cacheid+:} false; then : 10135 $as_echo_n "(cached) " >&6 10136else 10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10138/* end confdefs.h. */ 10139int i; 10140int 10141main () 10142{ 10143 10144 ; 10145 return 0; 10146} 10147_ACEOF 10148if ac_fn_c_try_link "$LINENO"; then : 10149 eval $cacheid=yes 10150else 10151 eval $cacheid=no 10152fi 10153rm -f core conftest.err conftest.$ac_objext \ 10154 conftest$ac_exeext conftest.$ac_ext 10155fi 10156 10157 10158 CFLAGS="$xorg_testset_save_CFLAGS" 10159 10160 eval supported=\$$cacheid 10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10162$as_echo "$supported" >&6; } 10163 if test "$supported" = "yes" ; then 10164 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10165 found="yes" 10166 fi 10167 fi 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183xorg_testset_save_CFLAGS="$CFLAGS" 10184 10185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10190 $as_echo_n "(cached) " >&6 10191else 10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10193/* end confdefs.h. */ 10194int i; 10195_ACEOF 10196if ac_fn_c_try_compile "$LINENO"; then : 10197 xorg_cv_cc_flag_unknown_warning_option=yes 10198else 10199 xorg_cv_cc_flag_unknown_warning_option=no 10200fi 10201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10202fi 10203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10206 CFLAGS="$xorg_testset_save_CFLAGS" 10207fi 10208 10209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10212 fi 10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10217 $as_echo_n "(cached) " >&6 10218else 10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220/* end confdefs.h. */ 10221int i; 10222_ACEOF 10223if ac_fn_c_try_compile "$LINENO"; then : 10224 xorg_cv_cc_flag_unused_command_line_argument=yes 10225else 10226 xorg_cv_cc_flag_unused_command_line_argument=no 10227fi 10228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10229fi 10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10233 CFLAGS="$xorg_testset_save_CFLAGS" 10234fi 10235 10236found="no" 10237 10238 if test $found = "no" ; then 10239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10241 fi 10242 10243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10245 fi 10246 10247 CFLAGS="$CFLAGS -Waddress" 10248 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10250$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10251 cacheid=xorg_cv_cc_flag__Waddress 10252 if eval \${$cacheid+:} false; then : 10253 $as_echo_n "(cached) " >&6 10254else 10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10256/* end confdefs.h. */ 10257int i; 10258int 10259main () 10260{ 10261 10262 ; 10263 return 0; 10264} 10265_ACEOF 10266if ac_fn_c_try_link "$LINENO"; then : 10267 eval $cacheid=yes 10268else 10269 eval $cacheid=no 10270fi 10271rm -f core conftest.err conftest.$ac_objext \ 10272 conftest$ac_exeext conftest.$ac_ext 10273fi 10274 10275 10276 CFLAGS="$xorg_testset_save_CFLAGS" 10277 10278 eval supported=\$$cacheid 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10280$as_echo "$supported" >&6; } 10281 if test "$supported" = "yes" ; then 10282 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10283 found="yes" 10284 fi 10285 fi 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301xorg_testset_save_CFLAGS="$CFLAGS" 10302 10303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10308 $as_echo_n "(cached) " >&6 10309else 10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10311/* end confdefs.h. */ 10312int i; 10313_ACEOF 10314if ac_fn_c_try_compile "$LINENO"; then : 10315 xorg_cv_cc_flag_unknown_warning_option=yes 10316else 10317 xorg_cv_cc_flag_unknown_warning_option=no 10318fi 10319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10320fi 10321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10324 CFLAGS="$xorg_testset_save_CFLAGS" 10325fi 10326 10327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10330 fi 10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10335 $as_echo_n "(cached) " >&6 10336else 10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10338/* end confdefs.h. */ 10339int i; 10340_ACEOF 10341if ac_fn_c_try_compile "$LINENO"; then : 10342 xorg_cv_cc_flag_unused_command_line_argument=yes 10343else 10344 xorg_cv_cc_flag_unused_command_line_argument=no 10345fi 10346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10347fi 10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10351 CFLAGS="$xorg_testset_save_CFLAGS" 10352fi 10353 10354found="no" 10355 10356 if test $found = "no" ; then 10357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10359 fi 10360 10361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10363 fi 10364 10365 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10366 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10368$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10369 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10370 if eval \${$cacheid+:} false; then : 10371 $as_echo_n "(cached) " >&6 10372else 10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10374/* end confdefs.h. */ 10375int i; 10376int 10377main () 10378{ 10379 10380 ; 10381 return 0; 10382} 10383_ACEOF 10384if ac_fn_c_try_link "$LINENO"; then : 10385 eval $cacheid=yes 10386else 10387 eval $cacheid=no 10388fi 10389rm -f core conftest.err conftest.$ac_objext \ 10390 conftest$ac_exeext conftest.$ac_ext 10391fi 10392 10393 10394 CFLAGS="$xorg_testset_save_CFLAGS" 10395 10396 eval supported=\$$cacheid 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10398$as_echo "$supported" >&6; } 10399 if test "$supported" = "yes" ; then 10400 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10401 found="yes" 10402 fi 10403 fi 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419xorg_testset_save_CFLAGS="$CFLAGS" 10420 10421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10426 $as_echo_n "(cached) " >&6 10427else 10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10429/* end confdefs.h. */ 10430int i; 10431_ACEOF 10432if ac_fn_c_try_compile "$LINENO"; then : 10433 xorg_cv_cc_flag_unknown_warning_option=yes 10434else 10435 xorg_cv_cc_flag_unknown_warning_option=no 10436fi 10437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10438fi 10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10442 CFLAGS="$xorg_testset_save_CFLAGS" 10443fi 10444 10445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10448 fi 10449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10453 $as_echo_n "(cached) " >&6 10454else 10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10456/* end confdefs.h. */ 10457int i; 10458_ACEOF 10459if ac_fn_c_try_compile "$LINENO"; then : 10460 xorg_cv_cc_flag_unused_command_line_argument=yes 10461else 10462 xorg_cv_cc_flag_unused_command_line_argument=no 10463fi 10464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10465fi 10466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10469 CFLAGS="$xorg_testset_save_CFLAGS" 10470fi 10471 10472found="no" 10473 10474 if test $found = "no" ; then 10475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10477 fi 10478 10479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10481 fi 10482 10483 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10484 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10486$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10487 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10488 if eval \${$cacheid+:} false; then : 10489 $as_echo_n "(cached) " >&6 10490else 10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10492/* end confdefs.h. */ 10493int i; 10494int 10495main () 10496{ 10497 10498 ; 10499 return 0; 10500} 10501_ACEOF 10502if ac_fn_c_try_link "$LINENO"; then : 10503 eval $cacheid=yes 10504else 10505 eval $cacheid=no 10506fi 10507rm -f core conftest.err conftest.$ac_objext \ 10508 conftest$ac_exeext conftest.$ac_ext 10509fi 10510 10511 10512 CFLAGS="$xorg_testset_save_CFLAGS" 10513 10514 eval supported=\$$cacheid 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10516$as_echo "$supported" >&6; } 10517 if test "$supported" = "yes" ; then 10518 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10519 found="yes" 10520 fi 10521 fi 10522 10523 10524fi 10525 10526 10527 10528 10529 10530 10531 10532 CWARNFLAGS="$BASE_CFLAGS" 10533 if test "x$GCC" = xyes ; then 10534 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10535 fi 10536 10537 10538 10539 10540 10541 10542 10543 10544# Check whether --enable-strict-compilation was given. 10545if test "${enable_strict_compilation+set}" = set; then : 10546 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10547else 10548 STRICT_COMPILE=no 10549fi 10550 10551 10552 10553 10554 10555 10556STRICT_CFLAGS="" 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570xorg_testset_save_CFLAGS="$CFLAGS" 10571 10572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10577 $as_echo_n "(cached) " >&6 10578else 10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10580/* end confdefs.h. */ 10581int i; 10582_ACEOF 10583if ac_fn_c_try_compile "$LINENO"; then : 10584 xorg_cv_cc_flag_unknown_warning_option=yes 10585else 10586 xorg_cv_cc_flag_unknown_warning_option=no 10587fi 10588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10589fi 10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10593 CFLAGS="$xorg_testset_save_CFLAGS" 10594fi 10595 10596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10599 fi 10600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10604 $as_echo_n "(cached) " >&6 10605else 10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10607/* end confdefs.h. */ 10608int i; 10609_ACEOF 10610if ac_fn_c_try_compile "$LINENO"; then : 10611 xorg_cv_cc_flag_unused_command_line_argument=yes 10612else 10613 xorg_cv_cc_flag_unused_command_line_argument=no 10614fi 10615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10616fi 10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10620 CFLAGS="$xorg_testset_save_CFLAGS" 10621fi 10622 10623found="no" 10624 10625 if test $found = "no" ; then 10626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10628 fi 10629 10630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10632 fi 10633 10634 CFLAGS="$CFLAGS -pedantic" 10635 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10637$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10638 cacheid=xorg_cv_cc_flag__pedantic 10639 if eval \${$cacheid+:} false; then : 10640 $as_echo_n "(cached) " >&6 10641else 10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10643/* end confdefs.h. */ 10644int i; 10645int 10646main () 10647{ 10648 10649 ; 10650 return 0; 10651} 10652_ACEOF 10653if ac_fn_c_try_link "$LINENO"; then : 10654 eval $cacheid=yes 10655else 10656 eval $cacheid=no 10657fi 10658rm -f core conftest.err conftest.$ac_objext \ 10659 conftest$ac_exeext conftest.$ac_ext 10660fi 10661 10662 10663 CFLAGS="$xorg_testset_save_CFLAGS" 10664 10665 eval supported=\$$cacheid 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10667$as_echo "$supported" >&6; } 10668 if test "$supported" = "yes" ; then 10669 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10670 found="yes" 10671 fi 10672 fi 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688xorg_testset_save_CFLAGS="$CFLAGS" 10689 10690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10695 $as_echo_n "(cached) " >&6 10696else 10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10698/* end confdefs.h. */ 10699int i; 10700_ACEOF 10701if ac_fn_c_try_compile "$LINENO"; then : 10702 xorg_cv_cc_flag_unknown_warning_option=yes 10703else 10704 xorg_cv_cc_flag_unknown_warning_option=no 10705fi 10706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10707fi 10708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10711 CFLAGS="$xorg_testset_save_CFLAGS" 10712fi 10713 10714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10717 fi 10718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10722 $as_echo_n "(cached) " >&6 10723else 10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10725/* end confdefs.h. */ 10726int i; 10727_ACEOF 10728if ac_fn_c_try_compile "$LINENO"; then : 10729 xorg_cv_cc_flag_unused_command_line_argument=yes 10730else 10731 xorg_cv_cc_flag_unused_command_line_argument=no 10732fi 10733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10734fi 10735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10738 CFLAGS="$xorg_testset_save_CFLAGS" 10739fi 10740 10741found="no" 10742 10743 if test $found = "no" ; then 10744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10746 fi 10747 10748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10750 fi 10751 10752 CFLAGS="$CFLAGS -Werror" 10753 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10755$as_echo_n "checking if $CC supports -Werror... " >&6; } 10756 cacheid=xorg_cv_cc_flag__Werror 10757 if eval \${$cacheid+:} false; then : 10758 $as_echo_n "(cached) " >&6 10759else 10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10761/* end confdefs.h. */ 10762int i; 10763int 10764main () 10765{ 10766 10767 ; 10768 return 0; 10769} 10770_ACEOF 10771if ac_fn_c_try_link "$LINENO"; then : 10772 eval $cacheid=yes 10773else 10774 eval $cacheid=no 10775fi 10776rm -f core conftest.err conftest.$ac_objext \ 10777 conftest$ac_exeext conftest.$ac_ext 10778fi 10779 10780 10781 CFLAGS="$xorg_testset_save_CFLAGS" 10782 10783 eval supported=\$$cacheid 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10785$as_echo "$supported" >&6; } 10786 if test "$supported" = "yes" ; then 10787 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10788 found="yes" 10789 fi 10790 fi 10791 10792 if test $found = "no" ; then 10793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10795 fi 10796 10797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10799 fi 10800 10801 CFLAGS="$CFLAGS -errwarn" 10802 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10804$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10805 cacheid=xorg_cv_cc_flag__errwarn 10806 if eval \${$cacheid+:} false; then : 10807 $as_echo_n "(cached) " >&6 10808else 10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10810/* end confdefs.h. */ 10811int i; 10812int 10813main () 10814{ 10815 10816 ; 10817 return 0; 10818} 10819_ACEOF 10820if ac_fn_c_try_link "$LINENO"; then : 10821 eval $cacheid=yes 10822else 10823 eval $cacheid=no 10824fi 10825rm -f core conftest.err conftest.$ac_objext \ 10826 conftest$ac_exeext conftest.$ac_ext 10827fi 10828 10829 10830 CFLAGS="$xorg_testset_save_CFLAGS" 10831 10832 eval supported=\$$cacheid 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10834$as_echo "$supported" >&6; } 10835 if test "$supported" = "yes" ; then 10836 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10837 found="yes" 10838 fi 10839 fi 10840 10841 10842 10843# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10844# activate it with -Werror, so we add it here explicitly. 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858xorg_testset_save_CFLAGS="$CFLAGS" 10859 10860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10865 $as_echo_n "(cached) " >&6 10866else 10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10868/* end confdefs.h. */ 10869int i; 10870_ACEOF 10871if ac_fn_c_try_compile "$LINENO"; then : 10872 xorg_cv_cc_flag_unknown_warning_option=yes 10873else 10874 xorg_cv_cc_flag_unknown_warning_option=no 10875fi 10876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10877fi 10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10881 CFLAGS="$xorg_testset_save_CFLAGS" 10882fi 10883 10884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10887 fi 10888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893else 10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10895/* end confdefs.h. */ 10896int i; 10897_ACEOF 10898if ac_fn_c_try_compile "$LINENO"; then : 10899 xorg_cv_cc_flag_unused_command_line_argument=yes 10900else 10901 xorg_cv_cc_flag_unused_command_line_argument=no 10902fi 10903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10904fi 10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10908 CFLAGS="$xorg_testset_save_CFLAGS" 10909fi 10910 10911found="no" 10912 10913 if test $found = "no" ; then 10914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10916 fi 10917 10918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10920 fi 10921 10922 CFLAGS="$CFLAGS -Werror=attributes" 10923 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10925$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10926 cacheid=xorg_cv_cc_flag__Werror_attributes 10927 if eval \${$cacheid+:} false; then : 10928 $as_echo_n "(cached) " >&6 10929else 10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10931/* end confdefs.h. */ 10932int i; 10933int 10934main () 10935{ 10936 10937 ; 10938 return 0; 10939} 10940_ACEOF 10941if ac_fn_c_try_link "$LINENO"; then : 10942 eval $cacheid=yes 10943else 10944 eval $cacheid=no 10945fi 10946rm -f core conftest.err conftest.$ac_objext \ 10947 conftest$ac_exeext conftest.$ac_ext 10948fi 10949 10950 10951 CFLAGS="$xorg_testset_save_CFLAGS" 10952 10953 eval supported=\$$cacheid 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10955$as_echo "$supported" >&6; } 10956 if test "$supported" = "yes" ; then 10957 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10958 found="yes" 10959 fi 10960 fi 10961 10962 10963 10964if test "x$STRICT_COMPILE" = "xyes"; then 10965 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10966 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10967fi 10968 10969 10970 10971 10972 10973 10974cat >>confdefs.h <<_ACEOF 10975#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10976_ACEOF 10977 10978 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10979 if test "x$PVM" = "x"; then 10980 PVM="0" 10981 fi 10982 10983cat >>confdefs.h <<_ACEOF 10984#define PACKAGE_VERSION_MINOR $PVM 10985_ACEOF 10986 10987 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10988 if test "x$PVP" = "x"; then 10989 PVP="0" 10990 fi 10991 10992cat >>confdefs.h <<_ACEOF 10993#define PACKAGE_VERSION_PATCHLEVEL $PVP 10994_ACEOF 10995 10996 10997 10998CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10999mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11000|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 11001echo 'git directory not found: installing possibly empty changelog.' >&2)" 11002 11003 11004 11005 11006macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11007INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11008mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11009|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 11010echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 11011 11012 11013 11014 11015 11016 11017if test x$APP_MAN_SUFFIX = x ; then 11018 APP_MAN_SUFFIX=1 11019fi 11020if test x$APP_MAN_DIR = x ; then 11021 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11022fi 11023 11024if test x$LIB_MAN_SUFFIX = x ; then 11025 LIB_MAN_SUFFIX=3 11026fi 11027if test x$LIB_MAN_DIR = x ; then 11028 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11029fi 11030 11031if test x$FILE_MAN_SUFFIX = x ; then 11032 case $host_os in 11033 solaris*) FILE_MAN_SUFFIX=4 ;; 11034 *) FILE_MAN_SUFFIX=5 ;; 11035 esac 11036fi 11037if test x$FILE_MAN_DIR = x ; then 11038 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11039fi 11040 11041if test x$MISC_MAN_SUFFIX = x ; then 11042 case $host_os in 11043 solaris*) MISC_MAN_SUFFIX=5 ;; 11044 *) MISC_MAN_SUFFIX=7 ;; 11045 esac 11046fi 11047if test x$MISC_MAN_DIR = x ; then 11048 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11049fi 11050 11051if test x$DRIVER_MAN_SUFFIX = x ; then 11052 case $host_os in 11053 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11054 *) DRIVER_MAN_SUFFIX=4 ;; 11055 esac 11056fi 11057if test x$DRIVER_MAN_DIR = x ; then 11058 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11059fi 11060 11061if test x$ADMIN_MAN_SUFFIX = x ; then 11062 case $host_os in 11063 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11064 *) ADMIN_MAN_SUFFIX=8 ;; 11065 esac 11066fi 11067if test x$ADMIN_MAN_DIR = x ; then 11068 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11069fi 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085XORG_MAN_PAGE="X Version 11" 11086 11087MAN_SUBSTS="\ 11088 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11089 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11090 -e 's|__xservername__|Xorg|g' \ 11091 -e 's|__xconfigfile__|xorg.conf|g' \ 11092 -e 's|__projectroot__|\$(prefix)|g' \ 11093 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11094 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11095 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11096 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11097 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11098 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11099 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11100 11101 11102 11103# Check whether --enable-silent-rules was given. 11104if test "${enable_silent_rules+set}" = set; then : 11105 enableval=$enable_silent_rules; 11106fi 11107 11108case $enable_silent_rules in # ((( 11109 yes) AM_DEFAULT_VERBOSITY=0;; 11110 no) AM_DEFAULT_VERBOSITY=1;; 11111 *) AM_DEFAULT_VERBOSITY=0;; 11112esac 11113am_make=${MAKE-make} 11114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11115$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11116if ${am_cv_make_support_nested_variables+:} false; then : 11117 $as_echo_n "(cached) " >&6 11118else 11119 if $as_echo 'TRUE=$(BAR$(V)) 11120BAR0=false 11121BAR1=true 11122V=1 11123am__doit: 11124 @$(TRUE) 11125.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11126 am_cv_make_support_nested_variables=yes 11127else 11128 am_cv_make_support_nested_variables=no 11129fi 11130fi 11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11132$as_echo "$am_cv_make_support_nested_variables" >&6; } 11133if test $am_cv_make_support_nested_variables = yes; then 11134 AM_V='$(V)' 11135 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11136else 11137 AM_V=$AM_DEFAULT_VERBOSITY 11138 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11139fi 11140AM_BACKSLASH='\' 11141 11142 11143 11144# Initialize libtool 11145# Check whether --enable-static was given. 11146if test "${enable_static+set}" = set; then : 11147 enableval=$enable_static; p=${PACKAGE-default} 11148 case $enableval in 11149 yes) enable_static=yes ;; 11150 no) enable_static=no ;; 11151 *) 11152 enable_static=no 11153 # Look at the argument we got. We use all the common list separators. 11154 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11155 for pkg in $enableval; do 11156 IFS=$lt_save_ifs 11157 if test "X$pkg" = "X$p"; then 11158 enable_static=yes 11159 fi 11160 done 11161 IFS=$lt_save_ifs 11162 ;; 11163 esac 11164else 11165 enable_static=no 11166fi 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176case `pwd` in 11177 *\ * | *\ *) 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11179$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11180esac 11181 11182 11183 11184macro_version='2.4.6' 11185macro_revision='2.4.6' 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199ltmain=$ac_aux_dir/ltmain.sh 11200 11201# Backslashify metacharacters that are still active within 11202# double-quoted strings. 11203sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11204 11205# Same as above, but do not quote variable references. 11206double_quote_subst='s/\(["`\\]\)/\\\1/g' 11207 11208# Sed substitution to delay expansion of an escaped shell variable in a 11209# double_quote_subst'ed string. 11210delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11211 11212# Sed substitution to delay expansion of an escaped single quote. 11213delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11214 11215# Sed substitution to avoid accidental globbing in evaled expressions 11216no_glob_subst='s/\*/\\\*/g' 11217 11218ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11219ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11220ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11221 11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11223$as_echo_n "checking how to print strings... " >&6; } 11224# Test print first, because it will be a builtin if present. 11225if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11226 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11227 ECHO='print -r --' 11228elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11229 ECHO='printf %s\n' 11230else 11231 # Use this function as a fallback that always works. 11232 func_fallback_echo () 11233 { 11234 eval 'cat <<_LTECHO_EOF 11235$1 11236_LTECHO_EOF' 11237 } 11238 ECHO='func_fallback_echo' 11239fi 11240 11241# func_echo_all arg... 11242# Invoke $ECHO with all args, space-separated. 11243func_echo_all () 11244{ 11245 $ECHO "" 11246} 11247 11248case $ECHO in 11249 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11250$as_echo "printf" >&6; } ;; 11251 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11252$as_echo "print -r" >&6; } ;; 11253 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11254$as_echo "cat" >&6; } ;; 11255esac 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11271$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11272if ${ac_cv_path_SED+:} false; then : 11273 $as_echo_n "(cached) " >&6 11274else 11275 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11276 for ac_i in 1 2 3 4 5 6 7; do 11277 ac_script="$ac_script$as_nl$ac_script" 11278 done 11279 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11280 { ac_script=; unset ac_script;} 11281 if test -z "$SED"; then 11282 ac_path_SED_found=false 11283 # Loop through the user's path and test for each of PROGNAME-LIST 11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11285for as_dir in $PATH 11286do 11287 IFS=$as_save_IFS 11288 test -z "$as_dir" && as_dir=. 11289 for ac_prog in sed gsed; do 11290 for ac_exec_ext in '' $ac_executable_extensions; do 11291 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11292 as_fn_executable_p "$ac_path_SED" || continue 11293# Check for GNU ac_path_SED and select it if it is found. 11294 # Check for GNU $ac_path_SED 11295case `"$ac_path_SED" --version 2>&1` in 11296*GNU*) 11297 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11298*) 11299 ac_count=0 11300 $as_echo_n 0123456789 >"conftest.in" 11301 while : 11302 do 11303 cat "conftest.in" "conftest.in" >"conftest.tmp" 11304 mv "conftest.tmp" "conftest.in" 11305 cp "conftest.in" "conftest.nl" 11306 $as_echo '' >> "conftest.nl" 11307 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11309 as_fn_arith $ac_count + 1 && ac_count=$as_val 11310 if test $ac_count -gt ${ac_path_SED_max-0}; then 11311 # Best one so far, save it but keep looking for a better one 11312 ac_cv_path_SED="$ac_path_SED" 11313 ac_path_SED_max=$ac_count 11314 fi 11315 # 10*(2^10) chars as input seems more than enough 11316 test $ac_count -gt 10 && break 11317 done 11318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11319esac 11320 11321 $ac_path_SED_found && break 3 11322 done 11323 done 11324 done 11325IFS=$as_save_IFS 11326 if test -z "$ac_cv_path_SED"; then 11327 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11328 fi 11329else 11330 ac_cv_path_SED=$SED 11331fi 11332 11333fi 11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11335$as_echo "$ac_cv_path_SED" >&6; } 11336 SED="$ac_cv_path_SED" 11337 rm -f conftest.sed 11338 11339test -z "$SED" && SED=sed 11340Xsed="$SED -e 1s/^X//" 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11353$as_echo_n "checking for fgrep... " >&6; } 11354if ${ac_cv_path_FGREP+:} false; then : 11355 $as_echo_n "(cached) " >&6 11356else 11357 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11358 then ac_cv_path_FGREP="$GREP -F" 11359 else 11360 if test -z "$FGREP"; then 11361 ac_path_FGREP_found=false 11362 # Loop through the user's path and test for each of PROGNAME-LIST 11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11365do 11366 IFS=$as_save_IFS 11367 test -z "$as_dir" && as_dir=. 11368 for ac_prog in fgrep; do 11369 for ac_exec_ext in '' $ac_executable_extensions; do 11370 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11371 as_fn_executable_p "$ac_path_FGREP" || continue 11372# Check for GNU ac_path_FGREP and select it if it is found. 11373 # Check for GNU $ac_path_FGREP 11374case `"$ac_path_FGREP" --version 2>&1` in 11375*GNU*) 11376 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11377*) 11378 ac_count=0 11379 $as_echo_n 0123456789 >"conftest.in" 11380 while : 11381 do 11382 cat "conftest.in" "conftest.in" >"conftest.tmp" 11383 mv "conftest.tmp" "conftest.in" 11384 cp "conftest.in" "conftest.nl" 11385 $as_echo 'FGREP' >> "conftest.nl" 11386 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11388 as_fn_arith $ac_count + 1 && ac_count=$as_val 11389 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11390 # Best one so far, save it but keep looking for a better one 11391 ac_cv_path_FGREP="$ac_path_FGREP" 11392 ac_path_FGREP_max=$ac_count 11393 fi 11394 # 10*(2^10) chars as input seems more than enough 11395 test $ac_count -gt 10 && break 11396 done 11397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11398esac 11399 11400 $ac_path_FGREP_found && break 3 11401 done 11402 done 11403 done 11404IFS=$as_save_IFS 11405 if test -z "$ac_cv_path_FGREP"; then 11406 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11407 fi 11408else 11409 ac_cv_path_FGREP=$FGREP 11410fi 11411 11412 fi 11413fi 11414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11415$as_echo "$ac_cv_path_FGREP" >&6; } 11416 FGREP="$ac_cv_path_FGREP" 11417 11418 11419test -z "$GREP" && GREP=grep 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439# Check whether --with-gnu-ld was given. 11440if test "${with_gnu_ld+set}" = set; then : 11441 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11442else 11443 with_gnu_ld=no 11444fi 11445 11446ac_prog=ld 11447if test yes = "$GCC"; then 11448 # Check if gcc -print-prog-name=ld gives a path. 11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11450$as_echo_n "checking for ld used by $CC... " >&6; } 11451 case $host in 11452 *-*-mingw*) 11453 # gcc leaves a trailing carriage return, which upsets mingw 11454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11455 *) 11456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11457 esac 11458 case $ac_prog in 11459 # Accept absolute paths. 11460 [\\/]* | ?:[\\/]*) 11461 re_direlt='/[^/][^/]*/\.\./' 11462 # Canonicalize the pathname of ld 11463 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11464 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11465 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11466 done 11467 test -z "$LD" && LD=$ac_prog 11468 ;; 11469 "") 11470 # If it fails, then pretend we aren't using GCC. 11471 ac_prog=ld 11472 ;; 11473 *) 11474 # If it is relative, then search for the first ld in PATH. 11475 with_gnu_ld=unknown 11476 ;; 11477 esac 11478elif test yes = "$with_gnu_ld"; then 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11480$as_echo_n "checking for GNU ld... " >&6; } 11481else 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11483$as_echo_n "checking for non-GNU ld... " >&6; } 11484fi 11485if ${lt_cv_path_LD+:} false; then : 11486 $as_echo_n "(cached) " >&6 11487else 11488 if test -z "$LD"; then 11489 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11490 for ac_dir in $PATH; do 11491 IFS=$lt_save_ifs 11492 test -z "$ac_dir" && ac_dir=. 11493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11494 lt_cv_path_LD=$ac_dir/$ac_prog 11495 # Check to see if the program is GNU ld. I'd rather use --version, 11496 # but apparently some variants of GNU ld only accept -v. 11497 # Break only if it was the GNU/non-GNU ld that we prefer. 11498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11499 *GNU* | *'with BFD'*) 11500 test no != "$with_gnu_ld" && break 11501 ;; 11502 *) 11503 test yes != "$with_gnu_ld" && break 11504 ;; 11505 esac 11506 fi 11507 done 11508 IFS=$lt_save_ifs 11509else 11510 lt_cv_path_LD=$LD # Let the user override the test with a path. 11511fi 11512fi 11513 11514LD=$lt_cv_path_LD 11515if test -n "$LD"; then 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11517$as_echo "$LD" >&6; } 11518else 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11520$as_echo "no" >&6; } 11521fi 11522test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11524$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11525if ${lt_cv_prog_gnu_ld+:} false; then : 11526 $as_echo_n "(cached) " >&6 11527else 11528 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11529case `$LD -v 2>&1 </dev/null` in 11530*GNU* | *'with BFD'*) 11531 lt_cv_prog_gnu_ld=yes 11532 ;; 11533*) 11534 lt_cv_prog_gnu_ld=no 11535 ;; 11536esac 11537fi 11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11539$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11540with_gnu_ld=$lt_cv_prog_gnu_ld 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11551$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11552if ${lt_cv_path_NM+:} false; then : 11553 $as_echo_n "(cached) " >&6 11554else 11555 if test -n "$NM"; then 11556 # Let the user override the test. 11557 lt_cv_path_NM=$NM 11558else 11559 lt_nm_to_check=${ac_tool_prefix}nm 11560 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11561 lt_nm_to_check="$lt_nm_to_check nm" 11562 fi 11563 for lt_tmp_nm in $lt_nm_to_check; do 11564 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11565 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11566 IFS=$lt_save_ifs 11567 test -z "$ac_dir" && ac_dir=. 11568 tmp_nm=$ac_dir/$lt_tmp_nm 11569 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11570 # Check to see if the nm accepts a BSD-compat flag. 11571 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11572 # nm: unknown option "B" ignored 11573 # Tru64's nm complains that /dev/null is an invalid object file 11574 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11575 case $build_os in 11576 mingw*) lt_bad_file=conftest.nm/nofile ;; 11577 *) lt_bad_file=/dev/null ;; 11578 esac 11579 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11580 *$lt_bad_file* | *'Invalid file or object type'*) 11581 lt_cv_path_NM="$tmp_nm -B" 11582 break 2 11583 ;; 11584 *) 11585 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11586 */dev/null*) 11587 lt_cv_path_NM="$tmp_nm -p" 11588 break 2 11589 ;; 11590 *) 11591 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11592 continue # so that we can try to find one that supports BSD flags 11593 ;; 11594 esac 11595 ;; 11596 esac 11597 fi 11598 done 11599 IFS=$lt_save_ifs 11600 done 11601 : ${lt_cv_path_NM=no} 11602fi 11603fi 11604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11605$as_echo "$lt_cv_path_NM" >&6; } 11606if test no != "$lt_cv_path_NM"; then 11607 NM=$lt_cv_path_NM 11608else 11609 # Didn't find any BSD compatible name lister, look for dumpbin. 11610 if test -n "$DUMPBIN"; then : 11611 # Let the user override the test. 11612 else 11613 if test -n "$ac_tool_prefix"; then 11614 for ac_prog in dumpbin "link -dump" 11615 do 11616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11617set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11619$as_echo_n "checking for $ac_word... " >&6; } 11620if ${ac_cv_prog_DUMPBIN+:} false; then : 11621 $as_echo_n "(cached) " >&6 11622else 11623 if test -n "$DUMPBIN"; then 11624 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11625else 11626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11627for as_dir in $PATH 11628do 11629 IFS=$as_save_IFS 11630 test -z "$as_dir" && as_dir=. 11631 for ac_exec_ext in '' $ac_executable_extensions; do 11632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11633 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11635 break 2 11636 fi 11637done 11638 done 11639IFS=$as_save_IFS 11640 11641fi 11642fi 11643DUMPBIN=$ac_cv_prog_DUMPBIN 11644if test -n "$DUMPBIN"; then 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11646$as_echo "$DUMPBIN" >&6; } 11647else 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11649$as_echo "no" >&6; } 11650fi 11651 11652 11653 test -n "$DUMPBIN" && break 11654 done 11655fi 11656if test -z "$DUMPBIN"; then 11657 ac_ct_DUMPBIN=$DUMPBIN 11658 for ac_prog in dumpbin "link -dump" 11659do 11660 # Extract the first word of "$ac_prog", so it can be a program name with args. 11661set dummy $ac_prog; ac_word=$2 11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11663$as_echo_n "checking for $ac_word... " >&6; } 11664if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11665 $as_echo_n "(cached) " >&6 11666else 11667 if test -n "$ac_ct_DUMPBIN"; then 11668 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11669else 11670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11671for as_dir in $PATH 11672do 11673 IFS=$as_save_IFS 11674 test -z "$as_dir" && as_dir=. 11675 for ac_exec_ext in '' $ac_executable_extensions; do 11676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11677 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11679 break 2 11680 fi 11681done 11682 done 11683IFS=$as_save_IFS 11684 11685fi 11686fi 11687ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11688if test -n "$ac_ct_DUMPBIN"; then 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11690$as_echo "$ac_ct_DUMPBIN" >&6; } 11691else 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11693$as_echo "no" >&6; } 11694fi 11695 11696 11697 test -n "$ac_ct_DUMPBIN" && break 11698done 11699 11700 if test "x$ac_ct_DUMPBIN" = x; then 11701 DUMPBIN=":" 11702 else 11703 case $cross_compiling:$ac_tool_warned in 11704yes:) 11705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11707ac_tool_warned=yes ;; 11708esac 11709 DUMPBIN=$ac_ct_DUMPBIN 11710 fi 11711fi 11712 11713 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11714 *COFF*) 11715 DUMPBIN="$DUMPBIN -symbols -headers" 11716 ;; 11717 *) 11718 DUMPBIN=: 11719 ;; 11720 esac 11721 fi 11722 11723 if test : != "$DUMPBIN"; then 11724 NM=$DUMPBIN 11725 fi 11726fi 11727test -z "$NM" && NM=nm 11728 11729 11730 11731 11732 11733 11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11735$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11736if ${lt_cv_nm_interface+:} false; then : 11737 $as_echo_n "(cached) " >&6 11738else 11739 lt_cv_nm_interface="BSD nm" 11740 echo "int some_variable = 0;" > conftest.$ac_ext 11741 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11742 (eval "$ac_compile" 2>conftest.err) 11743 cat conftest.err >&5 11744 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11745 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11746 cat conftest.err >&5 11747 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11748 cat conftest.out >&5 11749 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11750 lt_cv_nm_interface="MS dumpbin" 11751 fi 11752 rm -f conftest* 11753fi 11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11755$as_echo "$lt_cv_nm_interface" >&6; } 11756 11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11758$as_echo_n "checking whether ln -s works... " >&6; } 11759LN_S=$as_ln_s 11760if test "$LN_S" = "ln -s"; then 11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11762$as_echo "yes" >&6; } 11763else 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11765$as_echo "no, using $LN_S" >&6; } 11766fi 11767 11768# find the maximum length of command line arguments 11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11770$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11771if ${lt_cv_sys_max_cmd_len+:} false; then : 11772 $as_echo_n "(cached) " >&6 11773else 11774 i=0 11775 teststring=ABCD 11776 11777 case $build_os in 11778 msdosdjgpp*) 11779 # On DJGPP, this test can blow up pretty badly due to problems in libc 11780 # (any single argument exceeding 2000 bytes causes a buffer overrun 11781 # during glob expansion). Even if it were fixed, the result of this 11782 # check would be larger than it should be. 11783 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11784 ;; 11785 11786 gnu*) 11787 # Under GNU Hurd, this test is not required because there is 11788 # no limit to the length of command line arguments. 11789 # Libtool will interpret -1 as no limit whatsoever 11790 lt_cv_sys_max_cmd_len=-1; 11791 ;; 11792 11793 cygwin* | mingw* | cegcc*) 11794 # On Win9x/ME, this test blows up -- it succeeds, but takes 11795 # about 5 minutes as the teststring grows exponentially. 11796 # Worse, since 9x/ME are not pre-emptively multitasking, 11797 # you end up with a "frozen" computer, even though with patience 11798 # the test eventually succeeds (with a max line length of 256k). 11799 # Instead, let's just punt: use the minimum linelength reported by 11800 # all of the supported platforms: 8192 (on NT/2K/XP). 11801 lt_cv_sys_max_cmd_len=8192; 11802 ;; 11803 11804 mint*) 11805 # On MiNT this can take a long time and run out of memory. 11806 lt_cv_sys_max_cmd_len=8192; 11807 ;; 11808 11809 amigaos*) 11810 # On AmigaOS with pdksh, this test takes hours, literally. 11811 # So we just punt and use a minimum line length of 8192. 11812 lt_cv_sys_max_cmd_len=8192; 11813 ;; 11814 11815 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11816 # This has been around since 386BSD, at least. Likely further. 11817 if test -x /sbin/sysctl; then 11818 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11819 elif test -x /usr/sbin/sysctl; then 11820 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11821 else 11822 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11823 fi 11824 # And add a safety zone 11825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11827 ;; 11828 11829 interix*) 11830 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11831 lt_cv_sys_max_cmd_len=196608 11832 ;; 11833 11834 os2*) 11835 # The test takes a long time on OS/2. 11836 lt_cv_sys_max_cmd_len=8192 11837 ;; 11838 11839 osf*) 11840 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11841 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11842 # nice to cause kernel panics so lets avoid the loop below. 11843 # First set a reasonable default. 11844 lt_cv_sys_max_cmd_len=16384 11845 # 11846 if test -x /sbin/sysconfig; then 11847 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11848 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11849 esac 11850 fi 11851 ;; 11852 sco3.2v5*) 11853 lt_cv_sys_max_cmd_len=102400 11854 ;; 11855 sysv5* | sco5v6* | sysv4.2uw2*) 11856 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11857 if test -n "$kargmax"; then 11858 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11859 else 11860 lt_cv_sys_max_cmd_len=32768 11861 fi 11862 ;; 11863 *) 11864 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11865 if test -n "$lt_cv_sys_max_cmd_len" && \ 11866 test undefined != "$lt_cv_sys_max_cmd_len"; then 11867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11869 else 11870 # Make teststring a little bigger before we do anything with it. 11871 # a 1K string should be a reasonable start. 11872 for i in 1 2 3 4 5 6 7 8; do 11873 teststring=$teststring$teststring 11874 done 11875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11876 # If test is not a shell built-in, we'll probably end up computing a 11877 # maximum length that is only half of the actual maximum length, but 11878 # we can't tell. 11879 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11880 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11881 test 17 != "$i" # 1/2 MB should be enough 11882 do 11883 i=`expr $i + 1` 11884 teststring=$teststring$teststring 11885 done 11886 # Only check the string length outside the loop. 11887 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11888 teststring= 11889 # Add a significant safety factor because C++ compilers can tack on 11890 # massive amounts of additional arguments before passing them to the 11891 # linker. It appears as though 1/2 is a usable value. 11892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11893 fi 11894 ;; 11895 esac 11896 11897fi 11898 11899if test -n "$lt_cv_sys_max_cmd_len"; then 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11901$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11902else 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11904$as_echo "none" >&6; } 11905fi 11906max_cmd_len=$lt_cv_sys_max_cmd_len 11907 11908 11909 11910 11911 11912 11913: ${CP="cp -f"} 11914: ${MV="mv -f"} 11915: ${RM="rm -f"} 11916 11917if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11918 lt_unset=unset 11919else 11920 lt_unset=false 11921fi 11922 11923 11924 11925 11926 11927# test EBCDIC or ASCII 11928case `echo X|tr X '\101'` in 11929 A) # ASCII based system 11930 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11931 lt_SP2NL='tr \040 \012' 11932 lt_NL2SP='tr \015\012 \040\040' 11933 ;; 11934 *) # EBCDIC based system 11935 lt_SP2NL='tr \100 \n' 11936 lt_NL2SP='tr \r\n \100\100' 11937 ;; 11938esac 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11949$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11950if ${lt_cv_to_host_file_cmd+:} false; then : 11951 $as_echo_n "(cached) " >&6 11952else 11953 case $host in 11954 *-*-mingw* ) 11955 case $build in 11956 *-*-mingw* ) # actually msys 11957 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11958 ;; 11959 *-*-cygwin* ) 11960 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11961 ;; 11962 * ) # otherwise, assume *nix 11963 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11964 ;; 11965 esac 11966 ;; 11967 *-*-cygwin* ) 11968 case $build in 11969 *-*-mingw* ) # actually msys 11970 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11971 ;; 11972 *-*-cygwin* ) 11973 lt_cv_to_host_file_cmd=func_convert_file_noop 11974 ;; 11975 * ) # otherwise, assume *nix 11976 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11977 ;; 11978 esac 11979 ;; 11980 * ) # unhandled hosts (and "normal" native builds) 11981 lt_cv_to_host_file_cmd=func_convert_file_noop 11982 ;; 11983esac 11984 11985fi 11986 11987to_host_file_cmd=$lt_cv_to_host_file_cmd 11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11989$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11990 11991 11992 11993 11994 11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11996$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11997if ${lt_cv_to_tool_file_cmd+:} false; then : 11998 $as_echo_n "(cached) " >&6 11999else 12000 #assume ordinary cross tools, or native build. 12001lt_cv_to_tool_file_cmd=func_convert_file_noop 12002case $host in 12003 *-*-mingw* ) 12004 case $build in 12005 *-*-mingw* ) # actually msys 12006 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12007 ;; 12008 esac 12009 ;; 12010esac 12011 12012fi 12013 12014to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12016$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 12017 12018 12019 12020 12021 12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12023$as_echo_n "checking for $LD option to reload object files... " >&6; } 12024if ${lt_cv_ld_reload_flag+:} false; then : 12025 $as_echo_n "(cached) " >&6 12026else 12027 lt_cv_ld_reload_flag='-r' 12028fi 12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12030$as_echo "$lt_cv_ld_reload_flag" >&6; } 12031reload_flag=$lt_cv_ld_reload_flag 12032case $reload_flag in 12033"" | " "*) ;; 12034*) reload_flag=" $reload_flag" ;; 12035esac 12036reload_cmds='$LD$reload_flag -o $output$reload_objs' 12037case $host_os in 12038 cygwin* | mingw* | pw32* | cegcc*) 12039 if test yes != "$GCC"; then 12040 reload_cmds=false 12041 fi 12042 ;; 12043 darwin*) 12044 if test yes = "$GCC"; then 12045 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12046 else 12047 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12048 fi 12049 ;; 12050esac 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060if test -n "$ac_tool_prefix"; then 12061 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12062set dummy ${ac_tool_prefix}objdump; ac_word=$2 12063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12064$as_echo_n "checking for $ac_word... " >&6; } 12065if ${ac_cv_prog_OBJDUMP+:} false; then : 12066 $as_echo_n "(cached) " >&6 12067else 12068 if test -n "$OBJDUMP"; then 12069 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12070else 12071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12072for as_dir in $PATH 12073do 12074 IFS=$as_save_IFS 12075 test -z "$as_dir" && as_dir=. 12076 for ac_exec_ext in '' $ac_executable_extensions; do 12077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12078 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12080 break 2 12081 fi 12082done 12083 done 12084IFS=$as_save_IFS 12085 12086fi 12087fi 12088OBJDUMP=$ac_cv_prog_OBJDUMP 12089if test -n "$OBJDUMP"; then 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12091$as_echo "$OBJDUMP" >&6; } 12092else 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12094$as_echo "no" >&6; } 12095fi 12096 12097 12098fi 12099if test -z "$ac_cv_prog_OBJDUMP"; then 12100 ac_ct_OBJDUMP=$OBJDUMP 12101 # Extract the first word of "objdump", so it can be a program name with args. 12102set dummy objdump; ac_word=$2 12103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12104$as_echo_n "checking for $ac_word... " >&6; } 12105if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12106 $as_echo_n "(cached) " >&6 12107else 12108 if test -n "$ac_ct_OBJDUMP"; then 12109 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12110else 12111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12112for as_dir in $PATH 12113do 12114 IFS=$as_save_IFS 12115 test -z "$as_dir" && as_dir=. 12116 for ac_exec_ext in '' $ac_executable_extensions; do 12117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12118 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12120 break 2 12121 fi 12122done 12123 done 12124IFS=$as_save_IFS 12125 12126fi 12127fi 12128ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12129if test -n "$ac_ct_OBJDUMP"; then 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12131$as_echo "$ac_ct_OBJDUMP" >&6; } 12132else 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12134$as_echo "no" >&6; } 12135fi 12136 12137 if test "x$ac_ct_OBJDUMP" = x; then 12138 OBJDUMP="false" 12139 else 12140 case $cross_compiling:$ac_tool_warned in 12141yes:) 12142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12144ac_tool_warned=yes ;; 12145esac 12146 OBJDUMP=$ac_ct_OBJDUMP 12147 fi 12148else 12149 OBJDUMP="$ac_cv_prog_OBJDUMP" 12150fi 12151 12152test -z "$OBJDUMP" && OBJDUMP=objdump 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12163$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12164if ${lt_cv_deplibs_check_method+:} false; then : 12165 $as_echo_n "(cached) " >&6 12166else 12167 lt_cv_file_magic_cmd='$MAGIC_CMD' 12168lt_cv_file_magic_test_file= 12169lt_cv_deplibs_check_method='unknown' 12170# Need to set the preceding variable on all platforms that support 12171# interlibrary dependencies. 12172# 'none' -- dependencies not supported. 12173# 'unknown' -- same as none, but documents that we really don't know. 12174# 'pass_all' -- all dependencies passed with no checks. 12175# 'test_compile' -- check by making test program. 12176# 'file_magic [[regex]]' -- check by looking for files in library path 12177# that responds to the $file_magic_cmd with a given extended regex. 12178# If you have 'file' or equivalent on your system and you're not sure 12179# whether 'pass_all' will *always* work, you probably want this one. 12180 12181case $host_os in 12182aix[4-9]*) 12183 lt_cv_deplibs_check_method=pass_all 12184 ;; 12185 12186beos*) 12187 lt_cv_deplibs_check_method=pass_all 12188 ;; 12189 12190bsdi[45]*) 12191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12192 lt_cv_file_magic_cmd='/usr/bin/file -L' 12193 lt_cv_file_magic_test_file=/shlib/libc.so 12194 ;; 12195 12196cygwin*) 12197 # func_win32_libid is a shell function defined in ltmain.sh 12198 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12199 lt_cv_file_magic_cmd='func_win32_libid' 12200 ;; 12201 12202mingw* | pw32*) 12203 # Base MSYS/MinGW do not provide the 'file' command needed by 12204 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12205 # unless we find 'file', for example because we are cross-compiling. 12206 if ( file / ) >/dev/null 2>&1; then 12207 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12208 lt_cv_file_magic_cmd='func_win32_libid' 12209 else 12210 # Keep this pattern in sync with the one in func_win32_libid. 12211 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12212 lt_cv_file_magic_cmd='$OBJDUMP -f' 12213 fi 12214 ;; 12215 12216cegcc*) 12217 # use the weaker test based on 'objdump'. See mingw*. 12218 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12219 lt_cv_file_magic_cmd='$OBJDUMP -f' 12220 ;; 12221 12222darwin* | rhapsody*) 12223 lt_cv_deplibs_check_method=pass_all 12224 ;; 12225 12226freebsd* | dragonfly*) 12227 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12228 case $host_cpu in 12229 i*86 ) 12230 # Not sure whether the presence of OpenBSD here was a mistake. 12231 # Let's accept both of them until this is cleared up. 12232 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12233 lt_cv_file_magic_cmd=/usr/bin/file 12234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12235 ;; 12236 esac 12237 else 12238 lt_cv_deplibs_check_method=pass_all 12239 fi 12240 ;; 12241 12242haiku*) 12243 lt_cv_deplibs_check_method=pass_all 12244 ;; 12245 12246hpux10.20* | hpux11*) 12247 lt_cv_file_magic_cmd=/usr/bin/file 12248 case $host_cpu in 12249 ia64*) 12250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12251 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12252 ;; 12253 hppa*64*) 12254 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]' 12255 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12256 ;; 12257 *) 12258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12259 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12260 ;; 12261 esac 12262 ;; 12263 12264interix[3-9]*) 12265 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12267 ;; 12268 12269irix5* | irix6* | nonstopux*) 12270 case $LD in 12271 *-32|*"-32 ") libmagic=32-bit;; 12272 *-n32|*"-n32 ") libmagic=N32;; 12273 *-64|*"-64 ") libmagic=64-bit;; 12274 *) libmagic=never-match;; 12275 esac 12276 lt_cv_deplibs_check_method=pass_all 12277 ;; 12278 12279# This must be glibc/ELF. 12280linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12281 lt_cv_deplibs_check_method=pass_all 12282 ;; 12283 12284netbsd* | netbsdelf*-gnu) 12285 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12287 else 12288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12289 fi 12290 ;; 12291 12292newos6*) 12293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12294 lt_cv_file_magic_cmd=/usr/bin/file 12295 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12296 ;; 12297 12298*nto* | *qnx*) 12299 lt_cv_deplibs_check_method=pass_all 12300 ;; 12301 12302openbsd* | bitrig*) 12303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12305 else 12306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12307 fi 12308 ;; 12309 12310osf3* | osf4* | osf5*) 12311 lt_cv_deplibs_check_method=pass_all 12312 ;; 12313 12314rdos*) 12315 lt_cv_deplibs_check_method=pass_all 12316 ;; 12317 12318solaris*) 12319 lt_cv_deplibs_check_method=pass_all 12320 ;; 12321 12322sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12323 lt_cv_deplibs_check_method=pass_all 12324 ;; 12325 12326sysv4 | sysv4.3*) 12327 case $host_vendor in 12328 motorola) 12329 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]' 12330 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12331 ;; 12332 ncr) 12333 lt_cv_deplibs_check_method=pass_all 12334 ;; 12335 sequent) 12336 lt_cv_file_magic_cmd='/bin/file' 12337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12338 ;; 12339 sni) 12340 lt_cv_file_magic_cmd='/bin/file' 12341 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12342 lt_cv_file_magic_test_file=/lib/libc.so 12343 ;; 12344 siemens) 12345 lt_cv_deplibs_check_method=pass_all 12346 ;; 12347 pc) 12348 lt_cv_deplibs_check_method=pass_all 12349 ;; 12350 esac 12351 ;; 12352 12353tpf*) 12354 lt_cv_deplibs_check_method=pass_all 12355 ;; 12356os2*) 12357 lt_cv_deplibs_check_method=pass_all 12358 ;; 12359esac 12360 12361fi 12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12363$as_echo "$lt_cv_deplibs_check_method" >&6; } 12364 12365file_magic_glob= 12366want_nocaseglob=no 12367if test "$build" = "$host"; then 12368 case $host_os in 12369 mingw* | pw32*) 12370 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12371 want_nocaseglob=yes 12372 else 12373 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12374 fi 12375 ;; 12376 esac 12377fi 12378 12379file_magic_cmd=$lt_cv_file_magic_cmd 12380deplibs_check_method=$lt_cv_deplibs_check_method 12381test -z "$deplibs_check_method" && deplibs_check_method=unknown 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404if test -n "$ac_tool_prefix"; then 12405 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12406set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12408$as_echo_n "checking for $ac_word... " >&6; } 12409if ${ac_cv_prog_DLLTOOL+:} false; then : 12410 $as_echo_n "(cached) " >&6 12411else 12412 if test -n "$DLLTOOL"; then 12413 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12414else 12415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12416for as_dir in $PATH 12417do 12418 IFS=$as_save_IFS 12419 test -z "$as_dir" && as_dir=. 12420 for ac_exec_ext in '' $ac_executable_extensions; do 12421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12422 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12424 break 2 12425 fi 12426done 12427 done 12428IFS=$as_save_IFS 12429 12430fi 12431fi 12432DLLTOOL=$ac_cv_prog_DLLTOOL 12433if test -n "$DLLTOOL"; then 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12435$as_echo "$DLLTOOL" >&6; } 12436else 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12438$as_echo "no" >&6; } 12439fi 12440 12441 12442fi 12443if test -z "$ac_cv_prog_DLLTOOL"; then 12444 ac_ct_DLLTOOL=$DLLTOOL 12445 # Extract the first word of "dlltool", so it can be a program name with args. 12446set dummy dlltool; ac_word=$2 12447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12448$as_echo_n "checking for $ac_word... " >&6; } 12449if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12450 $as_echo_n "(cached) " >&6 12451else 12452 if test -n "$ac_ct_DLLTOOL"; then 12453 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12454else 12455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12456for as_dir in $PATH 12457do 12458 IFS=$as_save_IFS 12459 test -z "$as_dir" && as_dir=. 12460 for ac_exec_ext in '' $ac_executable_extensions; do 12461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12462 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12464 break 2 12465 fi 12466done 12467 done 12468IFS=$as_save_IFS 12469 12470fi 12471fi 12472ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12473if test -n "$ac_ct_DLLTOOL"; then 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12475$as_echo "$ac_ct_DLLTOOL" >&6; } 12476else 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12478$as_echo "no" >&6; } 12479fi 12480 12481 if test "x$ac_ct_DLLTOOL" = x; then 12482 DLLTOOL="false" 12483 else 12484 case $cross_compiling:$ac_tool_warned in 12485yes:) 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12488ac_tool_warned=yes ;; 12489esac 12490 DLLTOOL=$ac_ct_DLLTOOL 12491 fi 12492else 12493 DLLTOOL="$ac_cv_prog_DLLTOOL" 12494fi 12495 12496test -z "$DLLTOOL" && DLLTOOL=dlltool 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12508$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12509if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12510 $as_echo_n "(cached) " >&6 12511else 12512 lt_cv_sharedlib_from_linklib_cmd='unknown' 12513 12514case $host_os in 12515cygwin* | mingw* | pw32* | cegcc*) 12516 # two different shell functions defined in ltmain.sh; 12517 # decide which one to use based on capabilities of $DLLTOOL 12518 case `$DLLTOOL --help 2>&1` in 12519 *--identify-strict*) 12520 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12521 ;; 12522 *) 12523 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12524 ;; 12525 esac 12526 ;; 12527*) 12528 # fallback: assume linklib IS sharedlib 12529 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12530 ;; 12531esac 12532 12533fi 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12535$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12536sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12537test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12538 12539 12540 12541 12542 12543 12544 12545if test -n "$ac_tool_prefix"; then 12546 for ac_prog in ar 12547 do 12548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12549set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12551$as_echo_n "checking for $ac_word... " >&6; } 12552if ${ac_cv_prog_AR+:} false; then : 12553 $as_echo_n "(cached) " >&6 12554else 12555 if test -n "$AR"; then 12556 ac_cv_prog_AR="$AR" # Let the user override the test. 12557else 12558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12559for as_dir in $PATH 12560do 12561 IFS=$as_save_IFS 12562 test -z "$as_dir" && as_dir=. 12563 for ac_exec_ext in '' $ac_executable_extensions; do 12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12565 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12567 break 2 12568 fi 12569done 12570 done 12571IFS=$as_save_IFS 12572 12573fi 12574fi 12575AR=$ac_cv_prog_AR 12576if test -n "$AR"; then 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12578$as_echo "$AR" >&6; } 12579else 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12581$as_echo "no" >&6; } 12582fi 12583 12584 12585 test -n "$AR" && break 12586 done 12587fi 12588if test -z "$AR"; then 12589 ac_ct_AR=$AR 12590 for ac_prog in ar 12591do 12592 # Extract the first word of "$ac_prog", so it can be a program name with args. 12593set dummy $ac_prog; ac_word=$2 12594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12595$as_echo_n "checking for $ac_word... " >&6; } 12596if ${ac_cv_prog_ac_ct_AR+:} false; then : 12597 $as_echo_n "(cached) " >&6 12598else 12599 if test -n "$ac_ct_AR"; then 12600 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12601else 12602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12603for as_dir in $PATH 12604do 12605 IFS=$as_save_IFS 12606 test -z "$as_dir" && as_dir=. 12607 for ac_exec_ext in '' $ac_executable_extensions; do 12608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12609 ac_cv_prog_ac_ct_AR="$ac_prog" 12610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12611 break 2 12612 fi 12613done 12614 done 12615IFS=$as_save_IFS 12616 12617fi 12618fi 12619ac_ct_AR=$ac_cv_prog_ac_ct_AR 12620if test -n "$ac_ct_AR"; then 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12622$as_echo "$ac_ct_AR" >&6; } 12623else 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12625$as_echo "no" >&6; } 12626fi 12627 12628 12629 test -n "$ac_ct_AR" && break 12630done 12631 12632 if test "x$ac_ct_AR" = x; then 12633 AR="false" 12634 else 12635 case $cross_compiling:$ac_tool_warned in 12636yes:) 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12639ac_tool_warned=yes ;; 12640esac 12641 AR=$ac_ct_AR 12642 fi 12643fi 12644 12645: ${AR=ar} 12646: ${AR_FLAGS=cru} 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12659$as_echo_n "checking for archiver @FILE support... " >&6; } 12660if ${lt_cv_ar_at_file+:} false; then : 12661 $as_echo_n "(cached) " >&6 12662else 12663 lt_cv_ar_at_file=no 12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12665/* end confdefs.h. */ 12666 12667int 12668main () 12669{ 12670 12671 ; 12672 return 0; 12673} 12674_ACEOF 12675if ac_fn_c_try_compile "$LINENO"; then : 12676 echo conftest.$ac_objext > conftest.lst 12677 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12679 (eval $lt_ar_try) 2>&5 12680 ac_status=$? 12681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12682 test $ac_status = 0; } 12683 if test 0 -eq "$ac_status"; then 12684 # Ensure the archiver fails upon bogus file names. 12685 rm -f conftest.$ac_objext libconftest.a 12686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12687 (eval $lt_ar_try) 2>&5 12688 ac_status=$? 12689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12690 test $ac_status = 0; } 12691 if test 0 -ne "$ac_status"; then 12692 lt_cv_ar_at_file=@ 12693 fi 12694 fi 12695 rm -f conftest.* libconftest.a 12696 12697fi 12698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12699 12700fi 12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12702$as_echo "$lt_cv_ar_at_file" >&6; } 12703 12704if test no = "$lt_cv_ar_at_file"; then 12705 archiver_list_spec= 12706else 12707 archiver_list_spec=$lt_cv_ar_at_file 12708fi 12709 12710 12711 12712 12713 12714 12715 12716if test -n "$ac_tool_prefix"; then 12717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12718set dummy ${ac_tool_prefix}strip; ac_word=$2 12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12720$as_echo_n "checking for $ac_word... " >&6; } 12721if ${ac_cv_prog_STRIP+:} false; then : 12722 $as_echo_n "(cached) " >&6 12723else 12724 if test -n "$STRIP"; then 12725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12726else 12727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12728for as_dir in $PATH 12729do 12730 IFS=$as_save_IFS 12731 test -z "$as_dir" && as_dir=. 12732 for ac_exec_ext in '' $ac_executable_extensions; do 12733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12734 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12736 break 2 12737 fi 12738done 12739 done 12740IFS=$as_save_IFS 12741 12742fi 12743fi 12744STRIP=$ac_cv_prog_STRIP 12745if test -n "$STRIP"; then 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12747$as_echo "$STRIP" >&6; } 12748else 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12750$as_echo "no" >&6; } 12751fi 12752 12753 12754fi 12755if test -z "$ac_cv_prog_STRIP"; then 12756 ac_ct_STRIP=$STRIP 12757 # Extract the first word of "strip", so it can be a program name with args. 12758set dummy strip; ac_word=$2 12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12760$as_echo_n "checking for $ac_word... " >&6; } 12761if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12762 $as_echo_n "(cached) " >&6 12763else 12764 if test -n "$ac_ct_STRIP"; then 12765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12766else 12767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12768for as_dir in $PATH 12769do 12770 IFS=$as_save_IFS 12771 test -z "$as_dir" && as_dir=. 12772 for ac_exec_ext in '' $ac_executable_extensions; do 12773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12774 ac_cv_prog_ac_ct_STRIP="strip" 12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12776 break 2 12777 fi 12778done 12779 done 12780IFS=$as_save_IFS 12781 12782fi 12783fi 12784ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12785if test -n "$ac_ct_STRIP"; then 12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12787$as_echo "$ac_ct_STRIP" >&6; } 12788else 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12790$as_echo "no" >&6; } 12791fi 12792 12793 if test "x$ac_ct_STRIP" = x; then 12794 STRIP=":" 12795 else 12796 case $cross_compiling:$ac_tool_warned in 12797yes:) 12798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12800ac_tool_warned=yes ;; 12801esac 12802 STRIP=$ac_ct_STRIP 12803 fi 12804else 12805 STRIP="$ac_cv_prog_STRIP" 12806fi 12807 12808test -z "$STRIP" && STRIP=: 12809 12810 12811 12812 12813 12814 12815if test -n "$ac_tool_prefix"; then 12816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12817set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12819$as_echo_n "checking for $ac_word... " >&6; } 12820if ${ac_cv_prog_RANLIB+:} false; then : 12821 $as_echo_n "(cached) " >&6 12822else 12823 if test -n "$RANLIB"; then 12824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12825else 12826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12827for as_dir in $PATH 12828do 12829 IFS=$as_save_IFS 12830 test -z "$as_dir" && as_dir=. 12831 for ac_exec_ext in '' $ac_executable_extensions; do 12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12835 break 2 12836 fi 12837done 12838 done 12839IFS=$as_save_IFS 12840 12841fi 12842fi 12843RANLIB=$ac_cv_prog_RANLIB 12844if test -n "$RANLIB"; then 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12846$as_echo "$RANLIB" >&6; } 12847else 12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12849$as_echo "no" >&6; } 12850fi 12851 12852 12853fi 12854if test -z "$ac_cv_prog_RANLIB"; then 12855 ac_ct_RANLIB=$RANLIB 12856 # Extract the first word of "ranlib", so it can be a program name with args. 12857set dummy ranlib; ac_word=$2 12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12859$as_echo_n "checking for $ac_word... " >&6; } 12860if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12861 $as_echo_n "(cached) " >&6 12862else 12863 if test -n "$ac_ct_RANLIB"; then 12864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12865else 12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12867for as_dir in $PATH 12868do 12869 IFS=$as_save_IFS 12870 test -z "$as_dir" && as_dir=. 12871 for ac_exec_ext in '' $ac_executable_extensions; do 12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12873 ac_cv_prog_ac_ct_RANLIB="ranlib" 12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12875 break 2 12876 fi 12877done 12878 done 12879IFS=$as_save_IFS 12880 12881fi 12882fi 12883ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12884if test -n "$ac_ct_RANLIB"; then 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12886$as_echo "$ac_ct_RANLIB" >&6; } 12887else 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12889$as_echo "no" >&6; } 12890fi 12891 12892 if test "x$ac_ct_RANLIB" = x; then 12893 RANLIB=":" 12894 else 12895 case $cross_compiling:$ac_tool_warned in 12896yes:) 12897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12899ac_tool_warned=yes ;; 12900esac 12901 RANLIB=$ac_ct_RANLIB 12902 fi 12903else 12904 RANLIB="$ac_cv_prog_RANLIB" 12905fi 12906 12907test -z "$RANLIB" && RANLIB=: 12908 12909 12910 12911 12912 12913 12914# Determine commands to create old-style static archives. 12915old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12916old_postinstall_cmds='chmod 644 $oldlib' 12917old_postuninstall_cmds= 12918 12919if test -n "$RANLIB"; then 12920 case $host_os in 12921 bitrig* | openbsd*) 12922 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12923 ;; 12924 *) 12925 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12926 ;; 12927 esac 12928 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12929fi 12930 12931case $host_os in 12932 darwin*) 12933 lock_old_archive_extraction=yes ;; 12934 *) 12935 lock_old_archive_extraction=no ;; 12936esac 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976# If no C compiler was specified, use CC. 12977LTCC=${LTCC-"$CC"} 12978 12979# If no C compiler flags were specified, use CFLAGS. 12980LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12981 12982# Allow CC to be a program name with arguments. 12983compiler=$CC 12984 12985 12986# Check for command to grab the raw symbol name followed by C symbol from nm. 12987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12988$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12989if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12990 $as_echo_n "(cached) " >&6 12991else 12992 12993# These are sane defaults that work on at least a few old systems. 12994# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12995 12996# Character class describing NM global symbol codes. 12997symcode='[BCDEGRST]' 12998 12999# Regexp to match symbols that can be accessed directly from C. 13000sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13001 13002# Define system-specific variables. 13003case $host_os in 13004aix*) 13005 symcode='[BCDT]' 13006 ;; 13007cygwin* | mingw* | pw32* | cegcc*) 13008 symcode='[ABCDGISTW]' 13009 ;; 13010hpux*) 13011 if test ia64 = "$host_cpu"; then 13012 symcode='[ABCDEGRST]' 13013 fi 13014 ;; 13015irix* | nonstopux*) 13016 symcode='[BCDEGRST]' 13017 ;; 13018osf*) 13019 symcode='[BCDEGQRST]' 13020 ;; 13021solaris*) 13022 symcode='[BDRT]' 13023 ;; 13024sco3.2v5*) 13025 symcode='[DT]' 13026 ;; 13027sysv4.2uw2*) 13028 symcode='[DT]' 13029 ;; 13030sysv5* | sco5v6* | unixware* | OpenUNIX*) 13031 symcode='[ABDT]' 13032 ;; 13033sysv4) 13034 symcode='[DFNSTU]' 13035 ;; 13036esac 13037 13038# If we're using GNU nm, then use its standard symbol codes. 13039case `$NM -V 2>&1` in 13040*GNU* | *'with BFD'*) 13041 symcode='[ABCDGIRSTW]' ;; 13042esac 13043 13044if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13045 # Gets list of data symbols to import. 13046 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 13047 # Adjust the below global symbol transforms to fixup imported variables. 13048 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13049 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13050 lt_c_name_lib_hook="\ 13051 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13052 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13053else 13054 # Disable hooks by default. 13055 lt_cv_sys_global_symbol_to_import= 13056 lt_cdecl_hook= 13057 lt_c_name_hook= 13058 lt_c_name_lib_hook= 13059fi 13060 13061# Transform an extracted symbol line into a proper C declaration. 13062# Some systems (esp. on ia64) link data and code symbols differently, 13063# so use this general approach. 13064lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13065$lt_cdecl_hook\ 13066" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13067" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13068 13069# Transform an extracted symbol line into symbol name and symbol address 13070lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13071$lt_c_name_hook\ 13072" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13073" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13074 13075# Transform an extracted symbol line into symbol name with lib prefix and 13076# symbol address. 13077lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13078$lt_c_name_lib_hook\ 13079" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13080" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13081" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13082 13083# Handle CRLF in mingw tool chain 13084opt_cr= 13085case $build_os in 13086mingw*) 13087 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13088 ;; 13089esac 13090 13091# Try without a prefix underscore, then with it. 13092for ac_symprfx in "" "_"; do 13093 13094 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13095 symxfrm="\\1 $ac_symprfx\\2 \\2" 13096 13097 # Write the raw and C identifiers. 13098 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13099 # Fake it for dumpbin and say T for any non-static function, 13100 # D for any global variable and I for any imported variable. 13101 # Also find C++ and __fastcall symbols from MSVC++, 13102 # which start with @ or ?. 13103 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13104" {last_section=section; section=\$ 3};"\ 13105" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13106" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13107" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13108" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13109" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13110" \$ 0!~/External *\|/{next};"\ 13111" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13112" {if(hide[section]) next};"\ 13113" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13114" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13115" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13116" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13117" ' prfx=^$ac_symprfx" 13118 else 13119 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13120 fi 13121 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13122 13123 # Check to see that the pipe works correctly. 13124 pipe_works=no 13125 13126 rm -f conftest* 13127 cat > conftest.$ac_ext <<_LT_EOF 13128#ifdef __cplusplus 13129extern "C" { 13130#endif 13131char nm_test_var; 13132void nm_test_func(void); 13133void nm_test_func(void){} 13134#ifdef __cplusplus 13135} 13136#endif 13137int main(){nm_test_var='a';nm_test_func();return(0);} 13138_LT_EOF 13139 13140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13141 (eval $ac_compile) 2>&5 13142 ac_status=$? 13143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13144 test $ac_status = 0; }; then 13145 # Now try to grab the symbols. 13146 nlist=conftest.nm 13147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13148 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13149 ac_status=$? 13150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13151 test $ac_status = 0; } && test -s "$nlist"; then 13152 # Try sorting and uniquifying the output. 13153 if sort "$nlist" | uniq > "$nlist"T; then 13154 mv -f "$nlist"T "$nlist" 13155 else 13156 rm -f "$nlist"T 13157 fi 13158 13159 # Make sure that we snagged all the symbols we need. 13160 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13161 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13162 cat <<_LT_EOF > conftest.$ac_ext 13163/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13164#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13165/* DATA imports from DLLs on WIN32 can't be const, because runtime 13166 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13167# define LT_DLSYM_CONST 13168#elif defined __osf__ 13169/* This system does not cope well with relocations in const data. */ 13170# define LT_DLSYM_CONST 13171#else 13172# define LT_DLSYM_CONST const 13173#endif 13174 13175#ifdef __cplusplus 13176extern "C" { 13177#endif 13178 13179_LT_EOF 13180 # Now generate the symbol file. 13181 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13182 13183 cat <<_LT_EOF >> conftest.$ac_ext 13184 13185/* The mapping between symbol names and symbols. */ 13186LT_DLSYM_CONST struct { 13187 const char *name; 13188 void *address; 13189} 13190lt__PROGRAM__LTX_preloaded_symbols[] = 13191{ 13192 { "@PROGRAM@", (void *) 0 }, 13193_LT_EOF 13194 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13195 cat <<\_LT_EOF >> conftest.$ac_ext 13196 {0, (void *) 0} 13197}; 13198 13199/* This works around a problem in FreeBSD linker */ 13200#ifdef FREEBSD_WORKAROUND 13201static const void *lt_preloaded_setup() { 13202 return lt__PROGRAM__LTX_preloaded_symbols; 13203} 13204#endif 13205 13206#ifdef __cplusplus 13207} 13208#endif 13209_LT_EOF 13210 # Now try linking the two files. 13211 mv conftest.$ac_objext conftstm.$ac_objext 13212 lt_globsym_save_LIBS=$LIBS 13213 lt_globsym_save_CFLAGS=$CFLAGS 13214 LIBS=conftstm.$ac_objext 13215 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13217 (eval $ac_link) 2>&5 13218 ac_status=$? 13219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13220 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13221 pipe_works=yes 13222 fi 13223 LIBS=$lt_globsym_save_LIBS 13224 CFLAGS=$lt_globsym_save_CFLAGS 13225 else 13226 echo "cannot find nm_test_func in $nlist" >&5 13227 fi 13228 else 13229 echo "cannot find nm_test_var in $nlist" >&5 13230 fi 13231 else 13232 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13233 fi 13234 else 13235 echo "$progname: failed program was:" >&5 13236 cat conftest.$ac_ext >&5 13237 fi 13238 rm -rf conftest* conftst* 13239 13240 # Do not use the global_symbol_pipe unless it works. 13241 if test yes = "$pipe_works"; then 13242 break 13243 else 13244 lt_cv_sys_global_symbol_pipe= 13245 fi 13246done 13247 13248fi 13249 13250if test -z "$lt_cv_sys_global_symbol_pipe"; then 13251 lt_cv_sys_global_symbol_to_cdecl= 13252fi 13253if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13255$as_echo "failed" >&6; } 13256else 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13258$as_echo "ok" >&6; } 13259fi 13260 13261# Response file support. 13262if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13263 nm_file_list_spec='@' 13264elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13265 nm_file_list_spec='@' 13266fi 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13305$as_echo_n "checking for sysroot... " >&6; } 13306 13307# Check whether --with-sysroot was given. 13308if test "${with_sysroot+set}" = set; then : 13309 withval=$with_sysroot; 13310else 13311 with_sysroot=no 13312fi 13313 13314 13315lt_sysroot= 13316case $with_sysroot in #( 13317 yes) 13318 if test yes = "$GCC"; then 13319 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13320 fi 13321 ;; #( 13322 /*) 13323 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13324 ;; #( 13325 no|'') 13326 ;; #( 13327 *) 13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13329$as_echo "$with_sysroot" >&6; } 13330 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13331 ;; 13332esac 13333 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13335$as_echo "${lt_sysroot:-no}" >&6; } 13336 13337 13338 13339 13340 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13342$as_echo_n "checking for a working dd... " >&6; } 13343if ${ac_cv_path_lt_DD+:} false; then : 13344 $as_echo_n "(cached) " >&6 13345else 13346 printf 0123456789abcdef0123456789abcdef >conftest.i 13347cat conftest.i conftest.i >conftest2.i 13348: ${lt_DD:=$DD} 13349if test -z "$lt_DD"; then 13350 ac_path_lt_DD_found=false 13351 # Loop through the user's path and test for each of PROGNAME-LIST 13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13353for as_dir in $PATH 13354do 13355 IFS=$as_save_IFS 13356 test -z "$as_dir" && as_dir=. 13357 for ac_prog in dd; do 13358 for ac_exec_ext in '' $ac_executable_extensions; do 13359 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13360 as_fn_executable_p "$ac_path_lt_DD" || continue 13361if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13362 cmp -s conftest.i conftest.out \ 13363 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13364fi 13365 $ac_path_lt_DD_found && break 3 13366 done 13367 done 13368 done 13369IFS=$as_save_IFS 13370 if test -z "$ac_cv_path_lt_DD"; then 13371 : 13372 fi 13373else 13374 ac_cv_path_lt_DD=$lt_DD 13375fi 13376 13377rm -f conftest.i conftest2.i conftest.out 13378fi 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13380$as_echo "$ac_cv_path_lt_DD" >&6; } 13381 13382 13383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13384$as_echo_n "checking how to truncate binary pipes... " >&6; } 13385if ${lt_cv_truncate_bin+:} false; then : 13386 $as_echo_n "(cached) " >&6 13387else 13388 printf 0123456789abcdef0123456789abcdef >conftest.i 13389cat conftest.i conftest.i >conftest2.i 13390lt_cv_truncate_bin= 13391if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13392 cmp -s conftest.i conftest.out \ 13393 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13394fi 13395rm -f conftest.i conftest2.i conftest.out 13396test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13397fi 13398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13399$as_echo "$lt_cv_truncate_bin" >&6; } 13400 13401 13402 13403 13404 13405 13406 13407# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13408func_cc_basename () 13409{ 13410 for cc_temp in $*""; do 13411 case $cc_temp in 13412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13414 \-*) ;; 13415 *) break;; 13416 esac 13417 done 13418 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13419} 13420 13421# Check whether --enable-libtool-lock was given. 13422if test "${enable_libtool_lock+set}" = set; then : 13423 enableval=$enable_libtool_lock; 13424fi 13425 13426test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13427 13428# Some flags need to be propagated to the compiler or linker for good 13429# libtool support. 13430case $host in 13431ia64-*-hpux*) 13432 # Find out what ABI is being produced by ac_compile, and set mode 13433 # options accordingly. 13434 echo 'int i;' > conftest.$ac_ext 13435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13436 (eval $ac_compile) 2>&5 13437 ac_status=$? 13438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13439 test $ac_status = 0; }; then 13440 case `/usr/bin/file conftest.$ac_objext` in 13441 *ELF-32*) 13442 HPUX_IA64_MODE=32 13443 ;; 13444 *ELF-64*) 13445 HPUX_IA64_MODE=64 13446 ;; 13447 esac 13448 fi 13449 rm -rf conftest* 13450 ;; 13451*-*-irix6*) 13452 # Find out what ABI is being produced by ac_compile, and set linker 13453 # options accordingly. 13454 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13456 (eval $ac_compile) 2>&5 13457 ac_status=$? 13458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13459 test $ac_status = 0; }; then 13460 if test yes = "$lt_cv_prog_gnu_ld"; then 13461 case `/usr/bin/file conftest.$ac_objext` in 13462 *32-bit*) 13463 LD="${LD-ld} -melf32bsmip" 13464 ;; 13465 *N32*) 13466 LD="${LD-ld} -melf32bmipn32" 13467 ;; 13468 *64-bit*) 13469 LD="${LD-ld} -melf64bmip" 13470 ;; 13471 esac 13472 else 13473 case `/usr/bin/file conftest.$ac_objext` in 13474 *32-bit*) 13475 LD="${LD-ld} -32" 13476 ;; 13477 *N32*) 13478 LD="${LD-ld} -n32" 13479 ;; 13480 *64-bit*) 13481 LD="${LD-ld} -64" 13482 ;; 13483 esac 13484 fi 13485 fi 13486 rm -rf conftest* 13487 ;; 13488 13489mips64*-*linux*) 13490 # Find out what ABI is being produced by ac_compile, and set linker 13491 # options accordingly. 13492 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13494 (eval $ac_compile) 2>&5 13495 ac_status=$? 13496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13497 test $ac_status = 0; }; then 13498 emul=elf 13499 case `/usr/bin/file conftest.$ac_objext` in 13500 *32-bit*) 13501 emul="${emul}32" 13502 ;; 13503 *64-bit*) 13504 emul="${emul}64" 13505 ;; 13506 esac 13507 case `/usr/bin/file conftest.$ac_objext` in 13508 *MSB*) 13509 emul="${emul}btsmip" 13510 ;; 13511 *LSB*) 13512 emul="${emul}ltsmip" 13513 ;; 13514 esac 13515 case `/usr/bin/file conftest.$ac_objext` in 13516 *N32*) 13517 emul="${emul}n32" 13518 ;; 13519 esac 13520 LD="${LD-ld} -m $emul" 13521 fi 13522 rm -rf conftest* 13523 ;; 13524 13525x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13526s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13527 # Find out what ABI is being produced by ac_compile, and set linker 13528 # options accordingly. Note that the listed cases only cover the 13529 # situations where additional linker options are needed (such as when 13530 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13531 # vice versa); the common cases where no linker options are needed do 13532 # not appear in the list. 13533 echo 'int i;' > conftest.$ac_ext 13534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13535 (eval $ac_compile) 2>&5 13536 ac_status=$? 13537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13538 test $ac_status = 0; }; then 13539 case `/usr/bin/file conftest.o` in 13540 *32-bit*) 13541 case $host in 13542 x86_64-*kfreebsd*-gnu) 13543 LD="${LD-ld} -m elf_i386_fbsd" 13544 ;; 13545 x86_64-*linux*) 13546 case `/usr/bin/file conftest.o` in 13547 *x86-64*) 13548 LD="${LD-ld} -m elf32_x86_64" 13549 ;; 13550 *) 13551 LD="${LD-ld} -m elf_i386" 13552 ;; 13553 esac 13554 ;; 13555 powerpc64le-*linux*) 13556 LD="${LD-ld} -m elf32lppclinux" 13557 ;; 13558 powerpc64-*linux*) 13559 LD="${LD-ld} -m elf32ppclinux" 13560 ;; 13561 s390x-*linux*) 13562 LD="${LD-ld} -m elf_s390" 13563 ;; 13564 sparc64-*linux*) 13565 LD="${LD-ld} -m elf32_sparc" 13566 ;; 13567 esac 13568 ;; 13569 *64-bit*) 13570 case $host in 13571 x86_64-*kfreebsd*-gnu) 13572 LD="${LD-ld} -m elf_x86_64_fbsd" 13573 ;; 13574 x86_64-*linux*) 13575 LD="${LD-ld} -m elf_x86_64" 13576 ;; 13577 powerpcle-*linux*) 13578 LD="${LD-ld} -m elf64lppc" 13579 ;; 13580 powerpc-*linux*) 13581 LD="${LD-ld} -m elf64ppc" 13582 ;; 13583 s390*-*linux*|s390*-*tpf*) 13584 LD="${LD-ld} -m elf64_s390" 13585 ;; 13586 sparc*-*linux*) 13587 LD="${LD-ld} -m elf64_sparc" 13588 ;; 13589 esac 13590 ;; 13591 esac 13592 fi 13593 rm -rf conftest* 13594 ;; 13595 13596*-*-sco3.2v5*) 13597 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13598 SAVE_CFLAGS=$CFLAGS 13599 CFLAGS="$CFLAGS -belf" 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13601$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13602if ${lt_cv_cc_needs_belf+:} false; then : 13603 $as_echo_n "(cached) " >&6 13604else 13605 ac_ext=c 13606ac_cpp='$CPP $CPPFLAGS' 13607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13609ac_compiler_gnu=$ac_cv_c_compiler_gnu 13610 13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13612/* end confdefs.h. */ 13613 13614int 13615main () 13616{ 13617 13618 ; 13619 return 0; 13620} 13621_ACEOF 13622if ac_fn_c_try_link "$LINENO"; then : 13623 lt_cv_cc_needs_belf=yes 13624else 13625 lt_cv_cc_needs_belf=no 13626fi 13627rm -f core conftest.err conftest.$ac_objext \ 13628 conftest$ac_exeext conftest.$ac_ext 13629 ac_ext=c 13630ac_cpp='$CPP $CPPFLAGS' 13631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13633ac_compiler_gnu=$ac_cv_c_compiler_gnu 13634 13635fi 13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13637$as_echo "$lt_cv_cc_needs_belf" >&6; } 13638 if test yes != "$lt_cv_cc_needs_belf"; then 13639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13640 CFLAGS=$SAVE_CFLAGS 13641 fi 13642 ;; 13643*-*solaris*) 13644 # Find out what ABI is being produced by ac_compile, and set linker 13645 # options accordingly. 13646 echo 'int i;' > conftest.$ac_ext 13647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13648 (eval $ac_compile) 2>&5 13649 ac_status=$? 13650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13651 test $ac_status = 0; }; then 13652 case `/usr/bin/file conftest.o` in 13653 *64-bit*) 13654 case $lt_cv_prog_gnu_ld in 13655 yes*) 13656 case $host in 13657 i?86-*-solaris*|x86_64-*-solaris*) 13658 LD="${LD-ld} -m elf_x86_64" 13659 ;; 13660 sparc*-*-solaris*) 13661 LD="${LD-ld} -m elf64_sparc" 13662 ;; 13663 esac 13664 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13665 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13666 LD=${LD-ld}_sol2 13667 fi 13668 ;; 13669 *) 13670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13671 LD="${LD-ld} -64" 13672 fi 13673 ;; 13674 esac 13675 ;; 13676 esac 13677 fi 13678 rm -rf conftest* 13679 ;; 13680esac 13681 13682need_locks=$enable_libtool_lock 13683 13684if test -n "$ac_tool_prefix"; then 13685 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13686set dummy ${ac_tool_prefix}mt; ac_word=$2 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13688$as_echo_n "checking for $ac_word... " >&6; } 13689if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13690 $as_echo_n "(cached) " >&6 13691else 13692 if test -n "$MANIFEST_TOOL"; then 13693 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13694else 13695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13696for as_dir in $PATH 13697do 13698 IFS=$as_save_IFS 13699 test -z "$as_dir" && as_dir=. 13700 for ac_exec_ext in '' $ac_executable_extensions; do 13701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13702 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13704 break 2 13705 fi 13706done 13707 done 13708IFS=$as_save_IFS 13709 13710fi 13711fi 13712MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13713if test -n "$MANIFEST_TOOL"; then 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13715$as_echo "$MANIFEST_TOOL" >&6; } 13716else 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13718$as_echo "no" >&6; } 13719fi 13720 13721 13722fi 13723if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13724 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13725 # Extract the first word of "mt", so it can be a program name with args. 13726set dummy mt; ac_word=$2 13727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13728$as_echo_n "checking for $ac_word... " >&6; } 13729if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13730 $as_echo_n "(cached) " >&6 13731else 13732 if test -n "$ac_ct_MANIFEST_TOOL"; then 13733 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13734else 13735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13736for as_dir in $PATH 13737do 13738 IFS=$as_save_IFS 13739 test -z "$as_dir" && as_dir=. 13740 for ac_exec_ext in '' $ac_executable_extensions; do 13741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13742 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13744 break 2 13745 fi 13746done 13747 done 13748IFS=$as_save_IFS 13749 13750fi 13751fi 13752ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13753if test -n "$ac_ct_MANIFEST_TOOL"; then 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13755$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13756else 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13758$as_echo "no" >&6; } 13759fi 13760 13761 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13762 MANIFEST_TOOL=":" 13763 else 13764 case $cross_compiling:$ac_tool_warned in 13765yes:) 13766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13768ac_tool_warned=yes ;; 13769esac 13770 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13771 fi 13772else 13773 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13774fi 13775 13776test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13778$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13779if ${lt_cv_path_mainfest_tool+:} false; then : 13780 $as_echo_n "(cached) " >&6 13781else 13782 lt_cv_path_mainfest_tool=no 13783 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13784 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13785 cat conftest.err >&5 13786 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13787 lt_cv_path_mainfest_tool=yes 13788 fi 13789 rm -f conftest* 13790fi 13791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13792$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13793if test yes != "$lt_cv_path_mainfest_tool"; then 13794 MANIFEST_TOOL=: 13795fi 13796 13797 13798 13799 13800 13801 13802 case $host_os in 13803 rhapsody* | darwin*) 13804 if test -n "$ac_tool_prefix"; then 13805 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13806set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13808$as_echo_n "checking for $ac_word... " >&6; } 13809if ${ac_cv_prog_DSYMUTIL+:} false; then : 13810 $as_echo_n "(cached) " >&6 13811else 13812 if test -n "$DSYMUTIL"; then 13813 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13814else 13815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13816for as_dir in $PATH 13817do 13818 IFS=$as_save_IFS 13819 test -z "$as_dir" && as_dir=. 13820 for ac_exec_ext in '' $ac_executable_extensions; do 13821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13822 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13824 break 2 13825 fi 13826done 13827 done 13828IFS=$as_save_IFS 13829 13830fi 13831fi 13832DSYMUTIL=$ac_cv_prog_DSYMUTIL 13833if test -n "$DSYMUTIL"; then 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13835$as_echo "$DSYMUTIL" >&6; } 13836else 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13838$as_echo "no" >&6; } 13839fi 13840 13841 13842fi 13843if test -z "$ac_cv_prog_DSYMUTIL"; then 13844 ac_ct_DSYMUTIL=$DSYMUTIL 13845 # Extract the first word of "dsymutil", so it can be a program name with args. 13846set dummy dsymutil; ac_word=$2 13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13848$as_echo_n "checking for $ac_word... " >&6; } 13849if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13850 $as_echo_n "(cached) " >&6 13851else 13852 if test -n "$ac_ct_DSYMUTIL"; then 13853 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13854else 13855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13856for as_dir in $PATH 13857do 13858 IFS=$as_save_IFS 13859 test -z "$as_dir" && as_dir=. 13860 for ac_exec_ext in '' $ac_executable_extensions; do 13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13862 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13864 break 2 13865 fi 13866done 13867 done 13868IFS=$as_save_IFS 13869 13870fi 13871fi 13872ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13873if test -n "$ac_ct_DSYMUTIL"; then 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13875$as_echo "$ac_ct_DSYMUTIL" >&6; } 13876else 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13878$as_echo "no" >&6; } 13879fi 13880 13881 if test "x$ac_ct_DSYMUTIL" = x; then 13882 DSYMUTIL=":" 13883 else 13884 case $cross_compiling:$ac_tool_warned in 13885yes:) 13886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13888ac_tool_warned=yes ;; 13889esac 13890 DSYMUTIL=$ac_ct_DSYMUTIL 13891 fi 13892else 13893 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13894fi 13895 13896 if test -n "$ac_tool_prefix"; then 13897 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13898set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13900$as_echo_n "checking for $ac_word... " >&6; } 13901if ${ac_cv_prog_NMEDIT+:} false; then : 13902 $as_echo_n "(cached) " >&6 13903else 13904 if test -n "$NMEDIT"; then 13905 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13906else 13907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13908for as_dir in $PATH 13909do 13910 IFS=$as_save_IFS 13911 test -z "$as_dir" && as_dir=. 13912 for ac_exec_ext in '' $ac_executable_extensions; do 13913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13914 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13916 break 2 13917 fi 13918done 13919 done 13920IFS=$as_save_IFS 13921 13922fi 13923fi 13924NMEDIT=$ac_cv_prog_NMEDIT 13925if test -n "$NMEDIT"; then 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13927$as_echo "$NMEDIT" >&6; } 13928else 13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13930$as_echo "no" >&6; } 13931fi 13932 13933 13934fi 13935if test -z "$ac_cv_prog_NMEDIT"; then 13936 ac_ct_NMEDIT=$NMEDIT 13937 # Extract the first word of "nmedit", so it can be a program name with args. 13938set dummy nmedit; ac_word=$2 13939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13940$as_echo_n "checking for $ac_word... " >&6; } 13941if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13942 $as_echo_n "(cached) " >&6 13943else 13944 if test -n "$ac_ct_NMEDIT"; then 13945 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13946else 13947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13948for as_dir in $PATH 13949do 13950 IFS=$as_save_IFS 13951 test -z "$as_dir" && as_dir=. 13952 for ac_exec_ext in '' $ac_executable_extensions; do 13953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13954 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13956 break 2 13957 fi 13958done 13959 done 13960IFS=$as_save_IFS 13961 13962fi 13963fi 13964ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13965if test -n "$ac_ct_NMEDIT"; then 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13967$as_echo "$ac_ct_NMEDIT" >&6; } 13968else 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13970$as_echo "no" >&6; } 13971fi 13972 13973 if test "x$ac_ct_NMEDIT" = x; then 13974 NMEDIT=":" 13975 else 13976 case $cross_compiling:$ac_tool_warned in 13977yes:) 13978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13980ac_tool_warned=yes ;; 13981esac 13982 NMEDIT=$ac_ct_NMEDIT 13983 fi 13984else 13985 NMEDIT="$ac_cv_prog_NMEDIT" 13986fi 13987 13988 if test -n "$ac_tool_prefix"; then 13989 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13990set dummy ${ac_tool_prefix}lipo; ac_word=$2 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13992$as_echo_n "checking for $ac_word... " >&6; } 13993if ${ac_cv_prog_LIPO+:} false; then : 13994 $as_echo_n "(cached) " >&6 13995else 13996 if test -n "$LIPO"; then 13997 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13998else 13999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14000for as_dir in $PATH 14001do 14002 IFS=$as_save_IFS 14003 test -z "$as_dir" && as_dir=. 14004 for ac_exec_ext in '' $ac_executable_extensions; do 14005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14006 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14008 break 2 14009 fi 14010done 14011 done 14012IFS=$as_save_IFS 14013 14014fi 14015fi 14016LIPO=$ac_cv_prog_LIPO 14017if test -n "$LIPO"; then 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14019$as_echo "$LIPO" >&6; } 14020else 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14022$as_echo "no" >&6; } 14023fi 14024 14025 14026fi 14027if test -z "$ac_cv_prog_LIPO"; then 14028 ac_ct_LIPO=$LIPO 14029 # Extract the first word of "lipo", so it can be a program name with args. 14030set dummy lipo; ac_word=$2 14031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14032$as_echo_n "checking for $ac_word... " >&6; } 14033if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14034 $as_echo_n "(cached) " >&6 14035else 14036 if test -n "$ac_ct_LIPO"; then 14037 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14038else 14039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14040for as_dir in $PATH 14041do 14042 IFS=$as_save_IFS 14043 test -z "$as_dir" && as_dir=. 14044 for ac_exec_ext in '' $ac_executable_extensions; do 14045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14046 ac_cv_prog_ac_ct_LIPO="lipo" 14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14048 break 2 14049 fi 14050done 14051 done 14052IFS=$as_save_IFS 14053 14054fi 14055fi 14056ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14057if test -n "$ac_ct_LIPO"; then 14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14059$as_echo "$ac_ct_LIPO" >&6; } 14060else 14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14062$as_echo "no" >&6; } 14063fi 14064 14065 if test "x$ac_ct_LIPO" = x; then 14066 LIPO=":" 14067 else 14068 case $cross_compiling:$ac_tool_warned in 14069yes:) 14070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14072ac_tool_warned=yes ;; 14073esac 14074 LIPO=$ac_ct_LIPO 14075 fi 14076else 14077 LIPO="$ac_cv_prog_LIPO" 14078fi 14079 14080 if test -n "$ac_tool_prefix"; then 14081 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14082set dummy ${ac_tool_prefix}otool; ac_word=$2 14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14084$as_echo_n "checking for $ac_word... " >&6; } 14085if ${ac_cv_prog_OTOOL+:} false; then : 14086 $as_echo_n "(cached) " >&6 14087else 14088 if test -n "$OTOOL"; then 14089 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14090else 14091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14092for as_dir in $PATH 14093do 14094 IFS=$as_save_IFS 14095 test -z "$as_dir" && as_dir=. 14096 for ac_exec_ext in '' $ac_executable_extensions; do 14097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14098 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14100 break 2 14101 fi 14102done 14103 done 14104IFS=$as_save_IFS 14105 14106fi 14107fi 14108OTOOL=$ac_cv_prog_OTOOL 14109if test -n "$OTOOL"; then 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14111$as_echo "$OTOOL" >&6; } 14112else 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14114$as_echo "no" >&6; } 14115fi 14116 14117 14118fi 14119if test -z "$ac_cv_prog_OTOOL"; then 14120 ac_ct_OTOOL=$OTOOL 14121 # Extract the first word of "otool", so it can be a program name with args. 14122set dummy otool; ac_word=$2 14123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14124$as_echo_n "checking for $ac_word... " >&6; } 14125if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14126 $as_echo_n "(cached) " >&6 14127else 14128 if test -n "$ac_ct_OTOOL"; then 14129 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14130else 14131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14132for as_dir in $PATH 14133do 14134 IFS=$as_save_IFS 14135 test -z "$as_dir" && as_dir=. 14136 for ac_exec_ext in '' $ac_executable_extensions; do 14137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14138 ac_cv_prog_ac_ct_OTOOL="otool" 14139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14140 break 2 14141 fi 14142done 14143 done 14144IFS=$as_save_IFS 14145 14146fi 14147fi 14148ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14149if test -n "$ac_ct_OTOOL"; then 14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14151$as_echo "$ac_ct_OTOOL" >&6; } 14152else 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14154$as_echo "no" >&6; } 14155fi 14156 14157 if test "x$ac_ct_OTOOL" = x; then 14158 OTOOL=":" 14159 else 14160 case $cross_compiling:$ac_tool_warned in 14161yes:) 14162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14164ac_tool_warned=yes ;; 14165esac 14166 OTOOL=$ac_ct_OTOOL 14167 fi 14168else 14169 OTOOL="$ac_cv_prog_OTOOL" 14170fi 14171 14172 if test -n "$ac_tool_prefix"; then 14173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14174set dummy ${ac_tool_prefix}otool64; ac_word=$2 14175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14176$as_echo_n "checking for $ac_word... " >&6; } 14177if ${ac_cv_prog_OTOOL64+:} false; then : 14178 $as_echo_n "(cached) " >&6 14179else 14180 if test -n "$OTOOL64"; then 14181 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14182else 14183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14184for as_dir in $PATH 14185do 14186 IFS=$as_save_IFS 14187 test -z "$as_dir" && as_dir=. 14188 for ac_exec_ext in '' $ac_executable_extensions; do 14189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14190 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14192 break 2 14193 fi 14194done 14195 done 14196IFS=$as_save_IFS 14197 14198fi 14199fi 14200OTOOL64=$ac_cv_prog_OTOOL64 14201if test -n "$OTOOL64"; then 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14203$as_echo "$OTOOL64" >&6; } 14204else 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14206$as_echo "no" >&6; } 14207fi 14208 14209 14210fi 14211if test -z "$ac_cv_prog_OTOOL64"; then 14212 ac_ct_OTOOL64=$OTOOL64 14213 # Extract the first word of "otool64", so it can be a program name with args. 14214set dummy otool64; ac_word=$2 14215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14216$as_echo_n "checking for $ac_word... " >&6; } 14217if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14218 $as_echo_n "(cached) " >&6 14219else 14220 if test -n "$ac_ct_OTOOL64"; then 14221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14222else 14223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14224for as_dir in $PATH 14225do 14226 IFS=$as_save_IFS 14227 test -z "$as_dir" && as_dir=. 14228 for ac_exec_ext in '' $ac_executable_extensions; do 14229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14230 ac_cv_prog_ac_ct_OTOOL64="otool64" 14231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14232 break 2 14233 fi 14234done 14235 done 14236IFS=$as_save_IFS 14237 14238fi 14239fi 14240ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14241if test -n "$ac_ct_OTOOL64"; then 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14243$as_echo "$ac_ct_OTOOL64" >&6; } 14244else 14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14246$as_echo "no" >&6; } 14247fi 14248 14249 if test "x$ac_ct_OTOOL64" = x; then 14250 OTOOL64=":" 14251 else 14252 case $cross_compiling:$ac_tool_warned in 14253yes:) 14254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14256ac_tool_warned=yes ;; 14257esac 14258 OTOOL64=$ac_ct_OTOOL64 14259 fi 14260else 14261 OTOOL64="$ac_cv_prog_OTOOL64" 14262fi 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14291$as_echo_n "checking for -single_module linker flag... " >&6; } 14292if ${lt_cv_apple_cc_single_mod+:} false; then : 14293 $as_echo_n "(cached) " >&6 14294else 14295 lt_cv_apple_cc_single_mod=no 14296 if test -z "$LT_MULTI_MODULE"; then 14297 # By default we will add the -single_module flag. You can override 14298 # by either setting the environment variable LT_MULTI_MODULE 14299 # non-empty at configure time, or by adding -multi_module to the 14300 # link flags. 14301 rm -rf libconftest.dylib* 14302 echo "int foo(void){return 1;}" > conftest.c 14303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14304-dynamiclib -Wl,-single_module conftest.c" >&5 14305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14307 _lt_result=$? 14308 # If there is a non-empty error log, and "single_module" 14309 # appears in it, assume the flag caused a linker warning 14310 if test -s conftest.err && $GREP single_module conftest.err; then 14311 cat conftest.err >&5 14312 # Otherwise, if the output was created with a 0 exit code from 14313 # the compiler, it worked. 14314 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14315 lt_cv_apple_cc_single_mod=yes 14316 else 14317 cat conftest.err >&5 14318 fi 14319 rm -rf libconftest.dylib* 14320 rm -f conftest.* 14321 fi 14322fi 14323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14324$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14325 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14327$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14328if ${lt_cv_ld_exported_symbols_list+:} false; then : 14329 $as_echo_n "(cached) " >&6 14330else 14331 lt_cv_ld_exported_symbols_list=no 14332 save_LDFLAGS=$LDFLAGS 14333 echo "_main" > conftest.sym 14334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14336/* end confdefs.h. */ 14337 14338int 14339main () 14340{ 14341 14342 ; 14343 return 0; 14344} 14345_ACEOF 14346if ac_fn_c_try_link "$LINENO"; then : 14347 lt_cv_ld_exported_symbols_list=yes 14348else 14349 lt_cv_ld_exported_symbols_list=no 14350fi 14351rm -f core conftest.err conftest.$ac_objext \ 14352 conftest$ac_exeext conftest.$ac_ext 14353 LDFLAGS=$save_LDFLAGS 14354 14355fi 14356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14357$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14358 14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14360$as_echo_n "checking for -force_load linker flag... " >&6; } 14361if ${lt_cv_ld_force_load+:} false; then : 14362 $as_echo_n "(cached) " >&6 14363else 14364 lt_cv_ld_force_load=no 14365 cat > conftest.c << _LT_EOF 14366int forced_loaded() { return 2;} 14367_LT_EOF 14368 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14369 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14370 echo "$AR cru libconftest.a conftest.o" >&5 14371 $AR cru libconftest.a conftest.o 2>&5 14372 echo "$RANLIB libconftest.a" >&5 14373 $RANLIB libconftest.a 2>&5 14374 cat > conftest.c << _LT_EOF 14375int main() { return 0;} 14376_LT_EOF 14377 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14378 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14379 _lt_result=$? 14380 if test -s conftest.err && $GREP force_load conftest.err; then 14381 cat conftest.err >&5 14382 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14383 lt_cv_ld_force_load=yes 14384 else 14385 cat conftest.err >&5 14386 fi 14387 rm -f conftest.err libconftest.a conftest conftest.c 14388 rm -rf conftest.dSYM 14389 14390fi 14391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14392$as_echo "$lt_cv_ld_force_load" >&6; } 14393 case $host_os in 14394 rhapsody* | darwin1.[012]) 14395 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14396 darwin1.*) 14397 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14398 darwin*) # darwin 5.x on 14399 # if running on 10.5 or later, the deployment target defaults 14400 # to the OS version, if on x86, and 10.4, the deployment 14401 # target defaults to 10.4. Don't you love it? 14402 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14403 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14404 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14405 10.[012][,.]*) 14406 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14407 10.*) 14408 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14409 esac 14410 ;; 14411 esac 14412 if test yes = "$lt_cv_apple_cc_single_mod"; then 14413 _lt_dar_single_mod='$single_module' 14414 fi 14415 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14416 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14417 else 14418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14419 fi 14420 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14421 _lt_dsymutil='~$DSYMUTIL $lib || :' 14422 else 14423 _lt_dsymutil= 14424 fi 14425 ;; 14426 esac 14427 14428# func_munge_path_list VARIABLE PATH 14429# ----------------------------------- 14430# VARIABLE is name of variable containing _space_ separated list of 14431# directories to be munged by the contents of PATH, which is string 14432# having a format: 14433# "DIR[:DIR]:" 14434# string "DIR[ DIR]" will be prepended to VARIABLE 14435# ":DIR[:DIR]" 14436# string "DIR[ DIR]" will be appended to VARIABLE 14437# "DIRP[:DIRP]::[DIRA:]DIRA" 14438# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14439# "DIRA[ DIRA]" will be appended to VARIABLE 14440# "DIR[:DIR]" 14441# VARIABLE will be replaced by "DIR[ DIR]" 14442func_munge_path_list () 14443{ 14444 case x$2 in 14445 x) 14446 ;; 14447 *:) 14448 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14449 ;; 14450 x:*) 14451 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14452 ;; 14453 *::*) 14454 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14455 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14456 ;; 14457 *) 14458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14459 ;; 14460 esac 14461} 14462 14463for ac_header in dlfcn.h 14464do : 14465 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14466" 14467if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14468 cat >>confdefs.h <<_ACEOF 14469#define HAVE_DLFCN_H 1 14470_ACEOF 14471 14472fi 14473 14474done 14475 14476 14477 14478 14479 14480# Set options 14481 14482 14483 14484 enable_dlopen=no 14485 14486 14487 enable_win32_dll=no 14488 14489 14490 # Check whether --enable-shared was given. 14491if test "${enable_shared+set}" = set; then : 14492 enableval=$enable_shared; p=${PACKAGE-default} 14493 case $enableval in 14494 yes) enable_shared=yes ;; 14495 no) enable_shared=no ;; 14496 *) 14497 enable_shared=no 14498 # Look at the argument we got. We use all the common list separators. 14499 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14500 for pkg in $enableval; do 14501 IFS=$lt_save_ifs 14502 if test "X$pkg" = "X$p"; then 14503 enable_shared=yes 14504 fi 14505 done 14506 IFS=$lt_save_ifs 14507 ;; 14508 esac 14509else 14510 enable_shared=yes 14511fi 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523# Check whether --with-pic was given. 14524if test "${with_pic+set}" = set; then : 14525 withval=$with_pic; lt_p=${PACKAGE-default} 14526 case $withval in 14527 yes|no) pic_mode=$withval ;; 14528 *) 14529 pic_mode=default 14530 # Look at the argument we got. We use all the common list separators. 14531 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14532 for lt_pkg in $withval; do 14533 IFS=$lt_save_ifs 14534 if test "X$lt_pkg" = "X$lt_p"; then 14535 pic_mode=yes 14536 fi 14537 done 14538 IFS=$lt_save_ifs 14539 ;; 14540 esac 14541else 14542 pic_mode=default 14543fi 14544 14545 14546 14547 14548 14549 14550 14551 14552 # Check whether --enable-fast-install was given. 14553if test "${enable_fast_install+set}" = set; then : 14554 enableval=$enable_fast_install; p=${PACKAGE-default} 14555 case $enableval in 14556 yes) enable_fast_install=yes ;; 14557 no) enable_fast_install=no ;; 14558 *) 14559 enable_fast_install=no 14560 # Look at the argument we got. We use all the common list separators. 14561 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14562 for pkg in $enableval; do 14563 IFS=$lt_save_ifs 14564 if test "X$pkg" = "X$p"; then 14565 enable_fast_install=yes 14566 fi 14567 done 14568 IFS=$lt_save_ifs 14569 ;; 14570 esac 14571else 14572 enable_fast_install=yes 14573fi 14574 14575 14576 14577 14578 14579 14580 14581 14582 shared_archive_member_spec= 14583case $host,$enable_shared in 14584power*-*-aix[5-9]*,yes) 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14586$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14587 14588# Check whether --with-aix-soname was given. 14589if test "${with_aix_soname+set}" = set; then : 14590 withval=$with_aix_soname; case $withval in 14591 aix|svr4|both) 14592 ;; 14593 *) 14594 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14595 ;; 14596 esac 14597 lt_cv_with_aix_soname=$with_aix_soname 14598else 14599 if ${lt_cv_with_aix_soname+:} false; then : 14600 $as_echo_n "(cached) " >&6 14601else 14602 lt_cv_with_aix_soname=aix 14603fi 14604 14605 with_aix_soname=$lt_cv_with_aix_soname 14606fi 14607 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14609$as_echo "$with_aix_soname" >&6; } 14610 if test aix != "$with_aix_soname"; then 14611 # For the AIX way of multilib, we name the shared archive member 14612 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14613 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14614 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14615 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14616 if test 64 = "${OBJECT_MODE-32}"; then 14617 shared_archive_member_spec=shr_64 14618 else 14619 shared_archive_member_spec=shr 14620 fi 14621 fi 14622 ;; 14623*) 14624 with_aix_soname=aix 14625 ;; 14626esac 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637# This can be used to rebuild libtool when needed 14638LIBTOOL_DEPS=$ltmain 14639 14640# Always use our own libtool. 14641LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672test -z "$LN_S" && LN_S="ln -s" 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687if test -n "${ZSH_VERSION+set}"; then 14688 setopt NO_GLOB_SUBST 14689fi 14690 14691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14692$as_echo_n "checking for objdir... " >&6; } 14693if ${lt_cv_objdir+:} false; then : 14694 $as_echo_n "(cached) " >&6 14695else 14696 rm -f .libs 2>/dev/null 14697mkdir .libs 2>/dev/null 14698if test -d .libs; then 14699 lt_cv_objdir=.libs 14700else 14701 # MS-DOS does not allow filenames that begin with a dot. 14702 lt_cv_objdir=_libs 14703fi 14704rmdir .libs 2>/dev/null 14705fi 14706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14707$as_echo "$lt_cv_objdir" >&6; } 14708objdir=$lt_cv_objdir 14709 14710 14711 14712 14713 14714cat >>confdefs.h <<_ACEOF 14715#define LT_OBJDIR "$lt_cv_objdir/" 14716_ACEOF 14717 14718 14719 14720 14721case $host_os in 14722aix3*) 14723 # AIX sometimes has problems with the GCC collect2 program. For some 14724 # reason, if we set the COLLECT_NAMES environment variable, the problems 14725 # vanish in a puff of smoke. 14726 if test set != "${COLLECT_NAMES+set}"; then 14727 COLLECT_NAMES= 14728 export COLLECT_NAMES 14729 fi 14730 ;; 14731esac 14732 14733# Global variables: 14734ofile=libtool 14735can_build_shared=yes 14736 14737# All known linkers require a '.a' archive for static linking (except MSVC, 14738# which needs '.lib'). 14739libext=a 14740 14741with_gnu_ld=$lt_cv_prog_gnu_ld 14742 14743old_CC=$CC 14744old_CFLAGS=$CFLAGS 14745 14746# Set sane defaults for various variables 14747test -z "$CC" && CC=cc 14748test -z "$LTCC" && LTCC=$CC 14749test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14750test -z "$LD" && LD=ld 14751test -z "$ac_objext" && ac_objext=o 14752 14753func_cc_basename $compiler 14754cc_basename=$func_cc_basename_result 14755 14756 14757# Only perform the check for file, if the check method requires it 14758test -z "$MAGIC_CMD" && MAGIC_CMD=file 14759case $deplibs_check_method in 14760file_magic*) 14761 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14763$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14764if ${lt_cv_path_MAGIC_CMD+:} false; then : 14765 $as_echo_n "(cached) " >&6 14766else 14767 case $MAGIC_CMD in 14768[\\/*] | ?:[\\/]*) 14769 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14770 ;; 14771*) 14772 lt_save_MAGIC_CMD=$MAGIC_CMD 14773 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14774 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14775 for ac_dir in $ac_dummy; do 14776 IFS=$lt_save_ifs 14777 test -z "$ac_dir" && ac_dir=. 14778 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14779 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14780 if test -n "$file_magic_test_file"; then 14781 case $deplibs_check_method in 14782 "file_magic "*) 14783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14784 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14786 $EGREP "$file_magic_regex" > /dev/null; then 14787 : 14788 else 14789 cat <<_LT_EOF 1>&2 14790 14791*** Warning: the command libtool uses to detect shared libraries, 14792*** $file_magic_cmd, produces output that libtool cannot recognize. 14793*** The result is that libtool may fail to recognize shared libraries 14794*** as such. This will affect the creation of libtool libraries that 14795*** depend on shared libraries, but programs linked with such libtool 14796*** libraries will work regardless of this problem. Nevertheless, you 14797*** may want to report the problem to your system manager and/or to 14798*** bug-libtool@gnu.org 14799 14800_LT_EOF 14801 fi ;; 14802 esac 14803 fi 14804 break 14805 fi 14806 done 14807 IFS=$lt_save_ifs 14808 MAGIC_CMD=$lt_save_MAGIC_CMD 14809 ;; 14810esac 14811fi 14812 14813MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14814if test -n "$MAGIC_CMD"; then 14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14816$as_echo "$MAGIC_CMD" >&6; } 14817else 14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14819$as_echo "no" >&6; } 14820fi 14821 14822 14823 14824 14825 14826if test -z "$lt_cv_path_MAGIC_CMD"; then 14827 if test -n "$ac_tool_prefix"; then 14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14829$as_echo_n "checking for file... " >&6; } 14830if ${lt_cv_path_MAGIC_CMD+:} false; then : 14831 $as_echo_n "(cached) " >&6 14832else 14833 case $MAGIC_CMD in 14834[\\/*] | ?:[\\/]*) 14835 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14836 ;; 14837*) 14838 lt_save_MAGIC_CMD=$MAGIC_CMD 14839 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14840 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14841 for ac_dir in $ac_dummy; do 14842 IFS=$lt_save_ifs 14843 test -z "$ac_dir" && ac_dir=. 14844 if test -f "$ac_dir/file"; then 14845 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14846 if test -n "$file_magic_test_file"; then 14847 case $deplibs_check_method in 14848 "file_magic "*) 14849 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14850 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14851 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14852 $EGREP "$file_magic_regex" > /dev/null; then 14853 : 14854 else 14855 cat <<_LT_EOF 1>&2 14856 14857*** Warning: the command libtool uses to detect shared libraries, 14858*** $file_magic_cmd, produces output that libtool cannot recognize. 14859*** The result is that libtool may fail to recognize shared libraries 14860*** as such. This will affect the creation of libtool libraries that 14861*** depend on shared libraries, but programs linked with such libtool 14862*** libraries will work regardless of this problem. Nevertheless, you 14863*** may want to report the problem to your system manager and/or to 14864*** bug-libtool@gnu.org 14865 14866_LT_EOF 14867 fi ;; 14868 esac 14869 fi 14870 break 14871 fi 14872 done 14873 IFS=$lt_save_ifs 14874 MAGIC_CMD=$lt_save_MAGIC_CMD 14875 ;; 14876esac 14877fi 14878 14879MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14880if test -n "$MAGIC_CMD"; then 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14882$as_echo "$MAGIC_CMD" >&6; } 14883else 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14885$as_echo "no" >&6; } 14886fi 14887 14888 14889 else 14890 MAGIC_CMD=: 14891 fi 14892fi 14893 14894 fi 14895 ;; 14896esac 14897 14898# Use C for the default configuration in the libtool script 14899 14900lt_save_CC=$CC 14901ac_ext=c 14902ac_cpp='$CPP $CPPFLAGS' 14903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14905ac_compiler_gnu=$ac_cv_c_compiler_gnu 14906 14907 14908# Source file extension for C test sources. 14909ac_ext=c 14910 14911# Object file extension for compiled C test sources. 14912objext=o 14913objext=$objext 14914 14915# Code to be used in simple compile tests 14916lt_simple_compile_test_code="int some_variable = 0;" 14917 14918# Code to be used in simple link tests 14919lt_simple_link_test_code='int main(){return(0);}' 14920 14921 14922 14923 14924 14925 14926 14927# If no C compiler was specified, use CC. 14928LTCC=${LTCC-"$CC"} 14929 14930# If no C compiler flags were specified, use CFLAGS. 14931LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14932 14933# Allow CC to be a program name with arguments. 14934compiler=$CC 14935 14936# Save the default compiler, since it gets overwritten when the other 14937# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14938compiler_DEFAULT=$CC 14939 14940# save warnings/boilerplate of simple test code 14941ac_outfile=conftest.$ac_objext 14942echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14943eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14944_lt_compiler_boilerplate=`cat conftest.err` 14945$RM conftest* 14946 14947ac_outfile=conftest.$ac_objext 14948echo "$lt_simple_link_test_code" >conftest.$ac_ext 14949eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14950_lt_linker_boilerplate=`cat conftest.err` 14951$RM -r conftest* 14952 14953 14954if test -n "$compiler"; then 14955 14956lt_prog_compiler_no_builtin_flag= 14957 14958if test yes = "$GCC"; then 14959 case $cc_basename in 14960 nvcc*) 14961 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14962 *) 14963 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14964 esac 14965 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14967$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14968if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14969 $as_echo_n "(cached) " >&6 14970else 14971 lt_cv_prog_compiler_rtti_exceptions=no 14972 ac_outfile=conftest.$ac_objext 14973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14974 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14975 # Insert the option either (1) after the last *FLAGS variable, or 14976 # (2) before a word containing "conftest.", or (3) at the end. 14977 # Note that $ac_compile itself does not contain backslashes and begins 14978 # with a dollar sign (not a hyphen), so the echo should work correctly. 14979 # The option is referenced via a variable to avoid confusing sed. 14980 lt_compile=`echo "$ac_compile" | $SED \ 14981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14983 -e 's:$: $lt_compiler_flag:'` 14984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14985 (eval "$lt_compile" 2>conftest.err) 14986 ac_status=$? 14987 cat conftest.err >&5 14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14989 if (exit $ac_status) && test -s "$ac_outfile"; then 14990 # The compiler can only warn and ignore the option if not recognized 14991 # So say no if there are warnings other than the usual output. 14992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14995 lt_cv_prog_compiler_rtti_exceptions=yes 14996 fi 14997 fi 14998 $RM conftest* 14999 15000fi 15001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15002$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15003 15004if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15005 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15006else 15007 : 15008fi 15009 15010fi 15011 15012 15013 15014 15015 15016 15017 lt_prog_compiler_wl= 15018lt_prog_compiler_pic= 15019lt_prog_compiler_static= 15020 15021 15022 if test yes = "$GCC"; then 15023 lt_prog_compiler_wl='-Wl,' 15024 lt_prog_compiler_static='-static' 15025 15026 case $host_os in 15027 aix*) 15028 # All AIX code is PIC. 15029 if test ia64 = "$host_cpu"; then 15030 # AIX 5 now supports IA64 processor 15031 lt_prog_compiler_static='-Bstatic' 15032 fi 15033 lt_prog_compiler_pic='-fPIC' 15034 ;; 15035 15036 amigaos*) 15037 case $host_cpu in 15038 powerpc) 15039 # see comment about AmigaOS4 .so support 15040 lt_prog_compiler_pic='-fPIC' 15041 ;; 15042 m68k) 15043 # FIXME: we need at least 68020 code to build shared libraries, but 15044 # adding the '-m68020' flag to GCC prevents building anything better, 15045 # like '-m68040'. 15046 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15047 ;; 15048 esac 15049 ;; 15050 15051 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15052 # PIC is the default for these OSes. 15053 ;; 15054 15055 mingw* | cygwin* | pw32* | os2* | cegcc*) 15056 # This hack is so that the source file can tell whether it is being 15057 # built for inclusion in a dll (and should export symbols for example). 15058 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15059 # (--disable-auto-import) libraries 15060 lt_prog_compiler_pic='-DDLL_EXPORT' 15061 case $host_os in 15062 os2*) 15063 lt_prog_compiler_static='$wl-static' 15064 ;; 15065 esac 15066 ;; 15067 15068 darwin* | rhapsody*) 15069 # PIC is the default on this platform 15070 # Common symbols not allowed in MH_DYLIB files 15071 lt_prog_compiler_pic='-fno-common' 15072 ;; 15073 15074 haiku*) 15075 # PIC is the default for Haiku. 15076 # The "-static" flag exists, but is broken. 15077 lt_prog_compiler_static= 15078 ;; 15079 15080 hpux*) 15081 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15082 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15083 # sets the default TLS model and affects inlining. 15084 case $host_cpu in 15085 hppa*64*) 15086 # +Z the default 15087 ;; 15088 *) 15089 lt_prog_compiler_pic='-fPIC' 15090 ;; 15091 esac 15092 ;; 15093 15094 interix[3-9]*) 15095 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15096 # Instead, we relocate shared libraries at runtime. 15097 ;; 15098 15099 msdosdjgpp*) 15100 # Just because we use GCC doesn't mean we suddenly get shared libraries 15101 # on systems that don't support them. 15102 lt_prog_compiler_can_build_shared=no 15103 enable_shared=no 15104 ;; 15105 15106 *nto* | *qnx*) 15107 # QNX uses GNU C++, but need to define -shared option too, otherwise 15108 # it will coredump. 15109 lt_prog_compiler_pic='-fPIC -shared' 15110 ;; 15111 15112 sysv4*MP*) 15113 if test -d /usr/nec; then 15114 lt_prog_compiler_pic=-Kconform_pic 15115 fi 15116 ;; 15117 15118 *) 15119 lt_prog_compiler_pic='-fPIC' 15120 ;; 15121 esac 15122 15123 case $cc_basename in 15124 nvcc*) # Cuda Compiler Driver 2.2 15125 lt_prog_compiler_wl='-Xlinker ' 15126 if test -n "$lt_prog_compiler_pic"; then 15127 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15128 fi 15129 ;; 15130 esac 15131 else 15132 # PORTME Check for flag to pass linker flags through the system compiler. 15133 case $host_os in 15134 aix*) 15135 lt_prog_compiler_wl='-Wl,' 15136 if test ia64 = "$host_cpu"; then 15137 # AIX 5 now supports IA64 processor 15138 lt_prog_compiler_static='-Bstatic' 15139 else 15140 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15141 fi 15142 ;; 15143 15144 darwin* | rhapsody*) 15145 # PIC is the default on this platform 15146 # Common symbols not allowed in MH_DYLIB files 15147 lt_prog_compiler_pic='-fno-common' 15148 case $cc_basename in 15149 nagfor*) 15150 # NAG Fortran compiler 15151 lt_prog_compiler_wl='-Wl,-Wl,,' 15152 lt_prog_compiler_pic='-PIC' 15153 lt_prog_compiler_static='-Bstatic' 15154 ;; 15155 esac 15156 ;; 15157 15158 mingw* | cygwin* | pw32* | os2* | cegcc*) 15159 # This hack is so that the source file can tell whether it is being 15160 # built for inclusion in a dll (and should export symbols for example). 15161 lt_prog_compiler_pic='-DDLL_EXPORT' 15162 case $host_os in 15163 os2*) 15164 lt_prog_compiler_static='$wl-static' 15165 ;; 15166 esac 15167 ;; 15168 15169 hpux9* | hpux10* | hpux11*) 15170 lt_prog_compiler_wl='-Wl,' 15171 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15172 # not for PA HP-UX. 15173 case $host_cpu in 15174 hppa*64*|ia64*) 15175 # +Z the default 15176 ;; 15177 *) 15178 lt_prog_compiler_pic='+Z' 15179 ;; 15180 esac 15181 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15182 lt_prog_compiler_static='$wl-a ${wl}archive' 15183 ;; 15184 15185 irix5* | irix6* | nonstopux*) 15186 lt_prog_compiler_wl='-Wl,' 15187 # PIC (with -KPIC) is the default. 15188 lt_prog_compiler_static='-non_shared' 15189 ;; 15190 15191 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15192 case $cc_basename in 15193 # old Intel for x86_64, which still supported -KPIC. 15194 ecc*) 15195 lt_prog_compiler_wl='-Wl,' 15196 lt_prog_compiler_pic='-KPIC' 15197 lt_prog_compiler_static='-static' 15198 ;; 15199 # icc used to be incompatible with GCC. 15200 # ICC 10 doesn't accept -KPIC any more. 15201 icc* | ifort*) 15202 lt_prog_compiler_wl='-Wl,' 15203 lt_prog_compiler_pic='-fPIC' 15204 lt_prog_compiler_static='-static' 15205 ;; 15206 # Lahey Fortran 8.1. 15207 lf95*) 15208 lt_prog_compiler_wl='-Wl,' 15209 lt_prog_compiler_pic='--shared' 15210 lt_prog_compiler_static='--static' 15211 ;; 15212 nagfor*) 15213 # NAG Fortran compiler 15214 lt_prog_compiler_wl='-Wl,-Wl,,' 15215 lt_prog_compiler_pic='-PIC' 15216 lt_prog_compiler_static='-Bstatic' 15217 ;; 15218 tcc*) 15219 # Fabrice Bellard et al's Tiny C Compiler 15220 lt_prog_compiler_wl='-Wl,' 15221 lt_prog_compiler_pic='-fPIC' 15222 lt_prog_compiler_static='-static' 15223 ;; 15224 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15225 # Portland Group compilers (*not* the Pentium gcc compiler, 15226 # which looks to be a dead project) 15227 lt_prog_compiler_wl='-Wl,' 15228 lt_prog_compiler_pic='-fpic' 15229 lt_prog_compiler_static='-Bstatic' 15230 ;; 15231 ccc*) 15232 lt_prog_compiler_wl='-Wl,' 15233 # All Alpha code is PIC. 15234 lt_prog_compiler_static='-non_shared' 15235 ;; 15236 xl* | bgxl* | bgf* | mpixl*) 15237 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15238 lt_prog_compiler_wl='-Wl,' 15239 lt_prog_compiler_pic='-qpic' 15240 lt_prog_compiler_static='-qstaticlink' 15241 ;; 15242 *) 15243 case `$CC -V 2>&1 | sed 5q` in 15244 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15245 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15246 lt_prog_compiler_pic='-KPIC' 15247 lt_prog_compiler_static='-Bstatic' 15248 lt_prog_compiler_wl='' 15249 ;; 15250 *Sun\ F* | *Sun*Fortran*) 15251 lt_prog_compiler_pic='-KPIC' 15252 lt_prog_compiler_static='-Bstatic' 15253 lt_prog_compiler_wl='-Qoption ld ' 15254 ;; 15255 *Sun\ C*) 15256 # Sun C 5.9 15257 lt_prog_compiler_pic='-KPIC' 15258 lt_prog_compiler_static='-Bstatic' 15259 lt_prog_compiler_wl='-Wl,' 15260 ;; 15261 *Intel*\ [CF]*Compiler*) 15262 lt_prog_compiler_wl='-Wl,' 15263 lt_prog_compiler_pic='-fPIC' 15264 lt_prog_compiler_static='-static' 15265 ;; 15266 *Portland\ Group*) 15267 lt_prog_compiler_wl='-Wl,' 15268 lt_prog_compiler_pic='-fpic' 15269 lt_prog_compiler_static='-Bstatic' 15270 ;; 15271 esac 15272 ;; 15273 esac 15274 ;; 15275 15276 newsos6) 15277 lt_prog_compiler_pic='-KPIC' 15278 lt_prog_compiler_static='-Bstatic' 15279 ;; 15280 15281 *nto* | *qnx*) 15282 # QNX uses GNU C++, but need to define -shared option too, otherwise 15283 # it will coredump. 15284 lt_prog_compiler_pic='-fPIC -shared' 15285 ;; 15286 15287 osf3* | osf4* | osf5*) 15288 lt_prog_compiler_wl='-Wl,' 15289 # All OSF/1 code is PIC. 15290 lt_prog_compiler_static='-non_shared' 15291 ;; 15292 15293 rdos*) 15294 lt_prog_compiler_static='-non_shared' 15295 ;; 15296 15297 solaris*) 15298 lt_prog_compiler_pic='-KPIC' 15299 lt_prog_compiler_static='-Bstatic' 15300 case $cc_basename in 15301 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15302 lt_prog_compiler_wl='-Qoption ld ';; 15303 *) 15304 lt_prog_compiler_wl='-Wl,';; 15305 esac 15306 ;; 15307 15308 sunos4*) 15309 lt_prog_compiler_wl='-Qoption ld ' 15310 lt_prog_compiler_pic='-PIC' 15311 lt_prog_compiler_static='-Bstatic' 15312 ;; 15313 15314 sysv4 | sysv4.2uw2* | sysv4.3*) 15315 lt_prog_compiler_wl='-Wl,' 15316 lt_prog_compiler_pic='-KPIC' 15317 lt_prog_compiler_static='-Bstatic' 15318 ;; 15319 15320 sysv4*MP*) 15321 if test -d /usr/nec; then 15322 lt_prog_compiler_pic='-Kconform_pic' 15323 lt_prog_compiler_static='-Bstatic' 15324 fi 15325 ;; 15326 15327 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15328 lt_prog_compiler_wl='-Wl,' 15329 lt_prog_compiler_pic='-KPIC' 15330 lt_prog_compiler_static='-Bstatic' 15331 ;; 15332 15333 unicos*) 15334 lt_prog_compiler_wl='-Wl,' 15335 lt_prog_compiler_can_build_shared=no 15336 ;; 15337 15338 uts4*) 15339 lt_prog_compiler_pic='-pic' 15340 lt_prog_compiler_static='-Bstatic' 15341 ;; 15342 15343 *) 15344 lt_prog_compiler_can_build_shared=no 15345 ;; 15346 esac 15347 fi 15348 15349case $host_os in 15350 # For platforms that do not support PIC, -DPIC is meaningless: 15351 *djgpp*) 15352 lt_prog_compiler_pic= 15353 ;; 15354 *) 15355 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15356 ;; 15357esac 15358 15359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15360$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15361if ${lt_cv_prog_compiler_pic+:} false; then : 15362 $as_echo_n "(cached) " >&6 15363else 15364 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15365fi 15366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15367$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15368lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15369 15370# 15371# Check to make sure the PIC flag actually works. 15372# 15373if test -n "$lt_prog_compiler_pic"; then 15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15375$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15376if ${lt_cv_prog_compiler_pic_works+:} false; then : 15377 $as_echo_n "(cached) " >&6 15378else 15379 lt_cv_prog_compiler_pic_works=no 15380 ac_outfile=conftest.$ac_objext 15381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15382 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15383 # Insert the option either (1) after the last *FLAGS variable, or 15384 # (2) before a word containing "conftest.", or (3) at the end. 15385 # Note that $ac_compile itself does not contain backslashes and begins 15386 # with a dollar sign (not a hyphen), so the echo should work correctly. 15387 # The option is referenced via a variable to avoid confusing sed. 15388 lt_compile=`echo "$ac_compile" | $SED \ 15389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15391 -e 's:$: $lt_compiler_flag:'` 15392 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15393 (eval "$lt_compile" 2>conftest.err) 15394 ac_status=$? 15395 cat conftest.err >&5 15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15397 if (exit $ac_status) && test -s "$ac_outfile"; then 15398 # The compiler can only warn and ignore the option if not recognized 15399 # So say no if there are warnings other than the usual output. 15400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15402 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15403 lt_cv_prog_compiler_pic_works=yes 15404 fi 15405 fi 15406 $RM conftest* 15407 15408fi 15409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15410$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15411 15412if test yes = "$lt_cv_prog_compiler_pic_works"; then 15413 case $lt_prog_compiler_pic in 15414 "" | " "*) ;; 15415 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15416 esac 15417else 15418 lt_prog_compiler_pic= 15419 lt_prog_compiler_can_build_shared=no 15420fi 15421 15422fi 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434# 15435# Check to make sure the static flag actually works. 15436# 15437wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15439$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15440if ${lt_cv_prog_compiler_static_works+:} false; then : 15441 $as_echo_n "(cached) " >&6 15442else 15443 lt_cv_prog_compiler_static_works=no 15444 save_LDFLAGS=$LDFLAGS 15445 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15446 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15447 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15448 # The linker can only warn and ignore the option if not recognized 15449 # So say no if there are warnings 15450 if test -s conftest.err; then 15451 # Append any errors to the config.log. 15452 cat conftest.err 1>&5 15453 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15455 if diff conftest.exp conftest.er2 >/dev/null; then 15456 lt_cv_prog_compiler_static_works=yes 15457 fi 15458 else 15459 lt_cv_prog_compiler_static_works=yes 15460 fi 15461 fi 15462 $RM -r conftest* 15463 LDFLAGS=$save_LDFLAGS 15464 15465fi 15466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15467$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15468 15469if test yes = "$lt_cv_prog_compiler_static_works"; then 15470 : 15471else 15472 lt_prog_compiler_static= 15473fi 15474 15475 15476 15477 15478 15479 15480 15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15482$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15483if ${lt_cv_prog_compiler_c_o+:} false; then : 15484 $as_echo_n "(cached) " >&6 15485else 15486 lt_cv_prog_compiler_c_o=no 15487 $RM -r conftest 2>/dev/null 15488 mkdir conftest 15489 cd conftest 15490 mkdir out 15491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15492 15493 lt_compiler_flag="-o out/conftest2.$ac_objext" 15494 # Insert the option either (1) after the last *FLAGS variable, or 15495 # (2) before a word containing "conftest.", or (3) at the end. 15496 # Note that $ac_compile itself does not contain backslashes and begins 15497 # with a dollar sign (not a hyphen), so the echo should work correctly. 15498 lt_compile=`echo "$ac_compile" | $SED \ 15499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15501 -e 's:$: $lt_compiler_flag:'` 15502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15503 (eval "$lt_compile" 2>out/conftest.err) 15504 ac_status=$? 15505 cat out/conftest.err >&5 15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15507 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15508 then 15509 # The compiler can only warn and ignore the option if not recognized 15510 # So say no if there are warnings 15511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15514 lt_cv_prog_compiler_c_o=yes 15515 fi 15516 fi 15517 chmod u+w . 2>&5 15518 $RM conftest* 15519 # SGI C++ compiler will create directory out/ii_files/ for 15520 # template instantiation 15521 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15522 $RM out/* && rmdir out 15523 cd .. 15524 $RM -r conftest 15525 $RM conftest* 15526 15527fi 15528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15529$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15530 15531 15532 15533 15534 15535 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15537$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15538if ${lt_cv_prog_compiler_c_o+:} false; then : 15539 $as_echo_n "(cached) " >&6 15540else 15541 lt_cv_prog_compiler_c_o=no 15542 $RM -r conftest 2>/dev/null 15543 mkdir conftest 15544 cd conftest 15545 mkdir out 15546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15547 15548 lt_compiler_flag="-o out/conftest2.$ac_objext" 15549 # Insert the option either (1) after the last *FLAGS variable, or 15550 # (2) before a word containing "conftest.", or (3) at the end. 15551 # Note that $ac_compile itself does not contain backslashes and begins 15552 # with a dollar sign (not a hyphen), so the echo should work correctly. 15553 lt_compile=`echo "$ac_compile" | $SED \ 15554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15556 -e 's:$: $lt_compiler_flag:'` 15557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15558 (eval "$lt_compile" 2>out/conftest.err) 15559 ac_status=$? 15560 cat out/conftest.err >&5 15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15562 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15563 then 15564 # The compiler can only warn and ignore the option if not recognized 15565 # So say no if there are warnings 15566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15569 lt_cv_prog_compiler_c_o=yes 15570 fi 15571 fi 15572 chmod u+w . 2>&5 15573 $RM conftest* 15574 # SGI C++ compiler will create directory out/ii_files/ for 15575 # template instantiation 15576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15577 $RM out/* && rmdir out 15578 cd .. 15579 $RM -r conftest 15580 $RM conftest* 15581 15582fi 15583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15584$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15585 15586 15587 15588 15589hard_links=nottested 15590if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15591 # do not overwrite the value of need_locks provided by the user 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15593$as_echo_n "checking if we can lock with hard links... " >&6; } 15594 hard_links=yes 15595 $RM conftest* 15596 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15597 touch conftest.a 15598 ln conftest.a conftest.b 2>&5 || hard_links=no 15599 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15601$as_echo "$hard_links" >&6; } 15602 if test no = "$hard_links"; then 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15604$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15605 need_locks=warn 15606 fi 15607else 15608 need_locks=no 15609fi 15610 15611 15612 15613 15614 15615 15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15617$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15618 15619 runpath_var= 15620 allow_undefined_flag= 15621 always_export_symbols=no 15622 archive_cmds= 15623 archive_expsym_cmds= 15624 compiler_needs_object=no 15625 enable_shared_with_static_runtimes=no 15626 export_dynamic_flag_spec= 15627 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15628 hardcode_automatic=no 15629 hardcode_direct=no 15630 hardcode_direct_absolute=no 15631 hardcode_libdir_flag_spec= 15632 hardcode_libdir_separator= 15633 hardcode_minus_L=no 15634 hardcode_shlibpath_var=unsupported 15635 inherit_rpath=no 15636 link_all_deplibs=unknown 15637 module_cmds= 15638 module_expsym_cmds= 15639 old_archive_from_new_cmds= 15640 old_archive_from_expsyms_cmds= 15641 thread_safe_flag_spec= 15642 whole_archive_flag_spec= 15643 # include_expsyms should be a list of space-separated symbols to be *always* 15644 # included in the symbol list 15645 include_expsyms= 15646 # exclude_expsyms can be an extended regexp of symbols to exclude 15647 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15648 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15649 # as well as any symbol that contains 'd'. 15650 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15652 # platforms (ab)use it in PIC code, but their linkers get confused if 15653 # the symbol is explicitly referenced. Since portable code cannot 15654 # rely on this symbol name, it's probably fine to never include it in 15655 # preloaded symbol tables. 15656 # Exclude shared library initialization/finalization symbols. 15657 extract_expsyms_cmds= 15658 15659 case $host_os in 15660 cygwin* | mingw* | pw32* | cegcc*) 15661 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15662 # When not using gcc, we currently assume that we are using 15663 # Microsoft Visual C++. 15664 if test yes != "$GCC"; then 15665 with_gnu_ld=no 15666 fi 15667 ;; 15668 interix*) 15669 # we just hope/assume this is gcc and not c89 (= MSVC++) 15670 with_gnu_ld=yes 15671 ;; 15672 openbsd* | bitrig*) 15673 with_gnu_ld=no 15674 ;; 15675 linux* | k*bsd*-gnu | gnu*) 15676 link_all_deplibs=no 15677 ;; 15678 esac 15679 15680 ld_shlibs=yes 15681 15682 # On some targets, GNU ld is compatible enough with the native linker 15683 # that we're better off using the native interface for both. 15684 lt_use_gnu_ld_interface=no 15685 if test yes = "$with_gnu_ld"; then 15686 case $host_os in 15687 aix*) 15688 # The AIX port of GNU ld has always aspired to compatibility 15689 # with the native linker. However, as the warning in the GNU ld 15690 # block says, versions before 2.19.5* couldn't really create working 15691 # shared libraries, regardless of the interface used. 15692 case `$LD -v 2>&1` in 15693 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15694 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15695 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15696 *) 15697 lt_use_gnu_ld_interface=yes 15698 ;; 15699 esac 15700 ;; 15701 *) 15702 lt_use_gnu_ld_interface=yes 15703 ;; 15704 esac 15705 fi 15706 15707 if test yes = "$lt_use_gnu_ld_interface"; then 15708 # If archive_cmds runs LD, not CC, wlarc should be empty 15709 wlarc='$wl' 15710 15711 # Set some defaults for GNU ld with shared library support. These 15712 # are reset later if shared libraries are not supported. Putting them 15713 # here allows them to be overridden if necessary. 15714 runpath_var=LD_RUN_PATH 15715 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15716 export_dynamic_flag_spec='$wl--export-dynamic' 15717 # ancient GNU ld didn't support --whole-archive et. al. 15718 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15719 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15720 else 15721 whole_archive_flag_spec= 15722 fi 15723 supports_anon_versioning=no 15724 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15725 *GNU\ gold*) supports_anon_versioning=yes ;; 15726 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15727 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15728 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15729 *\ 2.11.*) ;; # other 2.11 versions 15730 *) supports_anon_versioning=yes ;; 15731 esac 15732 15733 # See if GNU ld supports shared libraries. 15734 case $host_os in 15735 aix[3-9]*) 15736 # On AIX/PPC, the GNU linker is very broken 15737 if test ia64 != "$host_cpu"; then 15738 ld_shlibs=no 15739 cat <<_LT_EOF 1>&2 15740 15741*** Warning: the GNU linker, at least up to release 2.19, is reported 15742*** to be unable to reliably create shared libraries on AIX. 15743*** Therefore, libtool is disabling shared libraries support. If you 15744*** really care for shared libraries, you may want to install binutils 15745*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15746*** You will then need to restart the configuration process. 15747 15748_LT_EOF 15749 fi 15750 ;; 15751 15752 amigaos*) 15753 case $host_cpu in 15754 powerpc) 15755 # see comment about AmigaOS4 .so support 15756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15757 archive_expsym_cmds='' 15758 ;; 15759 m68k) 15760 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)' 15761 hardcode_libdir_flag_spec='-L$libdir' 15762 hardcode_minus_L=yes 15763 ;; 15764 esac 15765 ;; 15766 15767 beos*) 15768 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15769 allow_undefined_flag=unsupported 15770 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15771 # support --undefined. This deserves some investigation. FIXME 15772 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15773 else 15774 ld_shlibs=no 15775 fi 15776 ;; 15777 15778 cygwin* | mingw* | pw32* | cegcc*) 15779 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15780 # as there is no search path for DLLs. 15781 hardcode_libdir_flag_spec='-L$libdir' 15782 export_dynamic_flag_spec='$wl--export-all-symbols' 15783 allow_undefined_flag=unsupported 15784 always_export_symbols=no 15785 enable_shared_with_static_runtimes=yes 15786 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' 15787 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15788 15789 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15791 # If the export-symbols file already is a .def file, use it as 15792 # is; otherwise, prepend EXPORTS... 15793 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15794 cp $export_symbols $output_objdir/$soname.def; 15795 else 15796 echo EXPORTS > $output_objdir/$soname.def; 15797 cat $export_symbols >> $output_objdir/$soname.def; 15798 fi~ 15799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15800 else 15801 ld_shlibs=no 15802 fi 15803 ;; 15804 15805 haiku*) 15806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15807 link_all_deplibs=yes 15808 ;; 15809 15810 os2*) 15811 hardcode_libdir_flag_spec='-L$libdir' 15812 hardcode_minus_L=yes 15813 allow_undefined_flag=unsupported 15814 shrext_cmds=.dll 15815 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15816 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15817 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15818 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15819 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15820 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15821 emximp -o $lib $output_objdir/$libname.def' 15822 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15823 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15824 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15825 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15826 prefix_cmds="$SED"~ 15827 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15828 prefix_cmds="$prefix_cmds -e 1d"; 15829 fi~ 15830 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15831 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15832 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15833 emximp -o $lib $output_objdir/$libname.def' 15834 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15835 enable_shared_with_static_runtimes=yes 15836 ;; 15837 15838 interix[3-9]*) 15839 hardcode_direct=no 15840 hardcode_shlibpath_var=no 15841 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15842 export_dynamic_flag_spec='$wl-E' 15843 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15844 # Instead, shared libraries are loaded at an image base (0x10000000 by 15845 # default) and relocated if they conflict, which is a slow very memory 15846 # consuming and fragmenting process. To avoid this, we pick a random, 15847 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15848 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15850 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' 15851 ;; 15852 15853 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15854 tmp_diet=no 15855 if test linux-dietlibc = "$host_os"; then 15856 case $cc_basename in 15857 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15858 esac 15859 fi 15860 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15861 && test no = "$tmp_diet" 15862 then 15863 tmp_addflag=' $pic_flag' 15864 tmp_sharedflag='-shared' 15865 case $cc_basename,$host_cpu in 15866 pgcc*) # Portland Group C compiler 15867 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15868 tmp_addflag=' $pic_flag' 15869 ;; 15870 pgf77* | pgf90* | pgf95* | pgfortran*) 15871 # Portland Group f77 and f90 compilers 15872 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' 15873 tmp_addflag=' $pic_flag -Mnomain' ;; 15874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15875 tmp_addflag=' -i_dynamic' ;; 15876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15877 tmp_addflag=' -i_dynamic -nofor_main' ;; 15878 ifc* | ifort*) # Intel Fortran compiler 15879 tmp_addflag=' -nofor_main' ;; 15880 lf95*) # Lahey Fortran 8.1 15881 whole_archive_flag_spec= 15882 tmp_sharedflag='--shared' ;; 15883 nagfor*) # NAGFOR 5.3 15884 tmp_sharedflag='-Wl,-shared' ;; 15885 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15886 tmp_sharedflag='-qmkshrobj' 15887 tmp_addflag= ;; 15888 nvcc*) # Cuda Compiler Driver 2.2 15889 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' 15890 compiler_needs_object=yes 15891 ;; 15892 esac 15893 case `$CC -V 2>&1 | sed 5q` in 15894 *Sun\ C*) # Sun C 5.9 15895 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' 15896 compiler_needs_object=yes 15897 tmp_sharedflag='-G' ;; 15898 *Sun\ F*) # Sun Fortran 8.3 15899 tmp_sharedflag='-G' ;; 15900 esac 15901 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15902 15903 if test yes = "$supports_anon_versioning"; then 15904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15906 echo "local: *; };" >> $output_objdir/$libname.ver~ 15907 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15908 fi 15909 15910 case $cc_basename in 15911 tcc*) 15912 export_dynamic_flag_spec='-rdynamic' 15913 ;; 15914 xlf* | bgf* | bgxlf* | mpixlf*) 15915 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15916 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15917 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15918 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15919 if test yes = "$supports_anon_versioning"; then 15920 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15921 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15922 echo "local: *; };" >> $output_objdir/$libname.ver~ 15923 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15924 fi 15925 ;; 15926 esac 15927 else 15928 ld_shlibs=no 15929 fi 15930 ;; 15931 15932 netbsd* | netbsdelf*-gnu) 15933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15934 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15935 wlarc= 15936 else 15937 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15938 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15939 fi 15940 ;; 15941 15942 solaris*) 15943 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15944 ld_shlibs=no 15945 cat <<_LT_EOF 1>&2 15946 15947*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15948*** create shared libraries on Solaris systems. Therefore, libtool 15949*** is disabling shared libraries support. We urge you to upgrade GNU 15950*** binutils to release 2.9.1 or newer. Another option is to modify 15951*** your PATH or compiler configuration so that the native linker is 15952*** used, and then restart. 15953 15954_LT_EOF 15955 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15956 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15957 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15958 else 15959 ld_shlibs=no 15960 fi 15961 ;; 15962 15963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15964 case `$LD -v 2>&1` in 15965 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15966 ld_shlibs=no 15967 cat <<_LT_EOF 1>&2 15968 15969*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15970*** reliably create shared libraries on SCO systems. Therefore, libtool 15971*** is disabling shared libraries support. We urge you to upgrade GNU 15972*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15973*** your PATH or compiler configuration so that the native linker is 15974*** used, and then restart. 15975 15976_LT_EOF 15977 ;; 15978 *) 15979 # For security reasons, it is highly recommended that you always 15980 # use absolute paths for naming shared libraries, and exclude the 15981 # DT_RUNPATH tag from executables and libraries. But doing so 15982 # requires that you compile everything twice, which is a pain. 15983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15984 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15987 else 15988 ld_shlibs=no 15989 fi 15990 ;; 15991 esac 15992 ;; 15993 15994 sunos4*) 15995 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15996 wlarc= 15997 hardcode_direct=yes 15998 hardcode_shlibpath_var=no 15999 ;; 16000 16001 *) 16002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16004 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16005 else 16006 ld_shlibs=no 16007 fi 16008 ;; 16009 esac 16010 16011 if test no = "$ld_shlibs"; then 16012 runpath_var= 16013 hardcode_libdir_flag_spec= 16014 export_dynamic_flag_spec= 16015 whole_archive_flag_spec= 16016 fi 16017 else 16018 # PORTME fill in a description of your system's linker (not GNU ld) 16019 case $host_os in 16020 aix3*) 16021 allow_undefined_flag=unsupported 16022 always_export_symbols=yes 16023 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' 16024 # Note: this linker hardcodes the directories in LIBPATH if there 16025 # are no directories specified by -L. 16026 hardcode_minus_L=yes 16027 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16028 # Neither direct hardcoding nor static linking is supported with a 16029 # broken collect2. 16030 hardcode_direct=unsupported 16031 fi 16032 ;; 16033 16034 aix[4-9]*) 16035 if test ia64 = "$host_cpu"; then 16036 # On IA64, the linker does run time linking by default, so we don't 16037 # have to do anything special. 16038 aix_use_runtimelinking=no 16039 exp_sym_flag='-Bexport' 16040 no_entry_flag= 16041 else 16042 # If we're using GNU nm, then we don't want the "-C" option. 16043 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16044 # Without the "-l" option, or with the "-B" option, AIX nm treats 16045 # weak defined symbols like other global defined symbols, whereas 16046 # GNU nm marks them as "W". 16047 # While the 'weak' keyword is ignored in the Export File, we need 16048 # it in the Import File for the 'aix-soname' feature, so we have 16049 # to replace the "-B" option with "-P" for AIX nm. 16050 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16051 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' 16052 else 16053 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' 16054 fi 16055 aix_use_runtimelinking=no 16056 16057 # Test if we are trying to use run time linking or normal 16058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16059 # have runtime linking enabled, and use it for executables. 16060 # For shared libraries, we enable/disable runtime linking 16061 # depending on the kind of the shared library created - 16062 # when "with_aix_soname,aix_use_runtimelinking" is: 16063 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16064 # "aix,yes" lib.so shared, rtl:yes, for executables 16065 # lib.a static archive 16066 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16067 # lib.a(lib.so.V) shared, rtl:no, for executables 16068 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16069 # lib.a(lib.so.V) shared, rtl:no 16070 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16071 # lib.a static archive 16072 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16073 for ld_flag in $LDFLAGS; do 16074 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16075 aix_use_runtimelinking=yes 16076 break 16077 fi 16078 done 16079 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16080 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16081 # so we don't have lib.a shared libs to link our executables. 16082 # We have to force runtime linking in this case. 16083 aix_use_runtimelinking=yes 16084 LDFLAGS="$LDFLAGS -Wl,-brtl" 16085 fi 16086 ;; 16087 esac 16088 16089 exp_sym_flag='-bexport' 16090 no_entry_flag='-bnoentry' 16091 fi 16092 16093 # When large executables or shared objects are built, AIX ld can 16094 # have problems creating the table of contents. If linking a library 16095 # or program results in "error TOC overflow" add -mminimal-toc to 16096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16098 16099 archive_cmds='' 16100 hardcode_direct=yes 16101 hardcode_direct_absolute=yes 16102 hardcode_libdir_separator=':' 16103 link_all_deplibs=yes 16104 file_list_spec='$wl-f,' 16105 case $with_aix_soname,$aix_use_runtimelinking in 16106 aix,*) ;; # traditional, no import file 16107 svr4,* | *,yes) # use import file 16108 # The Import File defines what to hardcode. 16109 hardcode_direct=no 16110 hardcode_direct_absolute=no 16111 ;; 16112 esac 16113 16114 if test yes = "$GCC"; then 16115 case $host_os in aix4.[012]|aix4.[012].*) 16116 # We only want to do this on AIX 4.2 and lower, the check 16117 # below for broken collect2 doesn't work under 4.3+ 16118 collect2name=`$CC -print-prog-name=collect2` 16119 if test -f "$collect2name" && 16120 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16121 then 16122 # We have reworked collect2 16123 : 16124 else 16125 # We have old collect2 16126 hardcode_direct=unsupported 16127 # It fails to find uninstalled libraries when the uninstalled 16128 # path is not listed in the libpath. Setting hardcode_minus_L 16129 # to unsupported forces relinking 16130 hardcode_minus_L=yes 16131 hardcode_libdir_flag_spec='-L$libdir' 16132 hardcode_libdir_separator= 16133 fi 16134 ;; 16135 esac 16136 shared_flag='-shared' 16137 if test yes = "$aix_use_runtimelinking"; then 16138 shared_flag="$shared_flag "'$wl-G' 16139 fi 16140 # Need to ensure runtime linking is disabled for the traditional 16141 # shared library, or the linker may eventually find shared libraries 16142 # /with/ Import File - we do not want to mix them. 16143 shared_flag_aix='-shared' 16144 shared_flag_svr4='-shared $wl-G' 16145 else 16146 # not using gcc 16147 if test ia64 = "$host_cpu"; then 16148 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16149 # chokes on -Wl,-G. The following line is correct: 16150 shared_flag='-G' 16151 else 16152 if test yes = "$aix_use_runtimelinking"; then 16153 shared_flag='$wl-G' 16154 else 16155 shared_flag='$wl-bM:SRE' 16156 fi 16157 shared_flag_aix='$wl-bM:SRE' 16158 shared_flag_svr4='$wl-G' 16159 fi 16160 fi 16161 16162 export_dynamic_flag_spec='$wl-bexpall' 16163 # It seems that -bexpall does not export symbols beginning with 16164 # underscore (_), so it is better to generate a list of symbols to export. 16165 always_export_symbols=yes 16166 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16167 # Warning - without using the other runtime loading flags (-brtl), 16168 # -berok will link without error, but may produce a broken library. 16169 allow_undefined_flag='-berok' 16170 # Determine the default libpath from the value encoded in an 16171 # empty executable. 16172 if test set = "${lt_cv_aix_libpath+set}"; then 16173 aix_libpath=$lt_cv_aix_libpath 16174else 16175 if ${lt_cv_aix_libpath_+:} false; then : 16176 $as_echo_n "(cached) " >&6 16177else 16178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16179/* end confdefs.h. */ 16180 16181int 16182main () 16183{ 16184 16185 ; 16186 return 0; 16187} 16188_ACEOF 16189if ac_fn_c_try_link "$LINENO"; then : 16190 16191 lt_aix_libpath_sed=' 16192 /Import File Strings/,/^$/ { 16193 /^0/ { 16194 s/^0 *\([^ ]*\) *$/\1/ 16195 p 16196 } 16197 }' 16198 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16199 # Check for a 64-bit object if we didn't find anything. 16200 if test -z "$lt_cv_aix_libpath_"; then 16201 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16202 fi 16203fi 16204rm -f core conftest.err conftest.$ac_objext \ 16205 conftest$ac_exeext conftest.$ac_ext 16206 if test -z "$lt_cv_aix_libpath_"; then 16207 lt_cv_aix_libpath_=/usr/lib:/lib 16208 fi 16209 16210fi 16211 16212 aix_libpath=$lt_cv_aix_libpath_ 16213fi 16214 16215 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16216 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 16217 else 16218 if test ia64 = "$host_cpu"; then 16219 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16220 allow_undefined_flag="-z nodefs" 16221 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" 16222 else 16223 # Determine the default libpath from the value encoded in an 16224 # empty executable. 16225 if test set = "${lt_cv_aix_libpath+set}"; then 16226 aix_libpath=$lt_cv_aix_libpath 16227else 16228 if ${lt_cv_aix_libpath_+:} false; then : 16229 $as_echo_n "(cached) " >&6 16230else 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233 16234int 16235main () 16236{ 16237 16238 ; 16239 return 0; 16240} 16241_ACEOF 16242if ac_fn_c_try_link "$LINENO"; then : 16243 16244 lt_aix_libpath_sed=' 16245 /Import File Strings/,/^$/ { 16246 /^0/ { 16247 s/^0 *\([^ ]*\) *$/\1/ 16248 p 16249 } 16250 }' 16251 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16252 # Check for a 64-bit object if we didn't find anything. 16253 if test -z "$lt_cv_aix_libpath_"; then 16254 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16255 fi 16256fi 16257rm -f core conftest.err conftest.$ac_objext \ 16258 conftest$ac_exeext conftest.$ac_ext 16259 if test -z "$lt_cv_aix_libpath_"; then 16260 lt_cv_aix_libpath_=/usr/lib:/lib 16261 fi 16262 16263fi 16264 16265 aix_libpath=$lt_cv_aix_libpath_ 16266fi 16267 16268 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16269 # Warning - without using the other run time loading flags, 16270 # -berok will link without error, but may produce a broken library. 16271 no_undefined_flag=' $wl-bernotok' 16272 allow_undefined_flag=' $wl-berok' 16273 if test yes = "$with_gnu_ld"; then 16274 # We only use this code for GNU lds that support --whole-archive. 16275 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16276 else 16277 # Exported symbols can be pulled into shared objects from archives 16278 whole_archive_flag_spec='$convenience' 16279 fi 16280 archive_cmds_need_lc=yes 16281 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16282 # -brtl affects multiple linker settings, -berok does not and is overridden later 16283 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16284 if test svr4 != "$with_aix_soname"; then 16285 # This is similar to how AIX traditionally builds its shared libraries. 16286 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' 16287 fi 16288 if test aix != "$with_aix_soname"; then 16289 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' 16290 else 16291 # used by -dlpreopen to get the symbols 16292 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16293 fi 16294 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16295 fi 16296 fi 16297 ;; 16298 16299 amigaos*) 16300 case $host_cpu in 16301 powerpc) 16302 # see comment about AmigaOS4 .so support 16303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16304 archive_expsym_cmds='' 16305 ;; 16306 m68k) 16307 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)' 16308 hardcode_libdir_flag_spec='-L$libdir' 16309 hardcode_minus_L=yes 16310 ;; 16311 esac 16312 ;; 16313 16314 bsdi[45]*) 16315 export_dynamic_flag_spec=-rdynamic 16316 ;; 16317 16318 cygwin* | mingw* | pw32* | cegcc*) 16319 # When not using gcc, we currently assume that we are using 16320 # Microsoft Visual C++. 16321 # hardcode_libdir_flag_spec is actually meaningless, as there is 16322 # no search path for DLLs. 16323 case $cc_basename in 16324 cl*) 16325 # Native MSVC 16326 hardcode_libdir_flag_spec=' ' 16327 allow_undefined_flag=unsupported 16328 always_export_symbols=yes 16329 file_list_spec='@' 16330 # Tell ltmain to make .lib files, not .a files. 16331 libext=lib 16332 # Tell ltmain to make .dll files, not .so files. 16333 shrext_cmds=.dll 16334 # FIXME: Setting linknames here is a bad hack. 16335 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16336 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16337 cp "$export_symbols" "$output_objdir/$soname.def"; 16338 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16339 else 16340 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16341 fi~ 16342 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16343 linknames=' 16344 # The linker will not automatically build a static lib if we build a DLL. 16345 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16346 enable_shared_with_static_runtimes=yes 16347 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16349 # Don't use ranlib 16350 old_postinstall_cmds='chmod 644 $oldlib' 16351 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16352 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16353 case $lt_outputfile in 16354 *.exe|*.EXE) ;; 16355 *) 16356 lt_outputfile=$lt_outputfile.exe 16357 lt_tool_outputfile=$lt_tool_outputfile.exe 16358 ;; 16359 esac~ 16360 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16361 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16362 $RM "$lt_outputfile.manifest"; 16363 fi' 16364 ;; 16365 *) 16366 # Assume MSVC wrapper 16367 hardcode_libdir_flag_spec=' ' 16368 allow_undefined_flag=unsupported 16369 # Tell ltmain to make .lib files, not .a files. 16370 libext=lib 16371 # Tell ltmain to make .dll files, not .so files. 16372 shrext_cmds=.dll 16373 # FIXME: Setting linknames here is a bad hack. 16374 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16375 # The linker will automatically build a .lib file if we build a DLL. 16376 old_archive_from_new_cmds='true' 16377 # FIXME: Should let the user specify the lib program. 16378 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16379 enable_shared_with_static_runtimes=yes 16380 ;; 16381 esac 16382 ;; 16383 16384 darwin* | rhapsody*) 16385 16386 16387 archive_cmds_need_lc=no 16388 hardcode_direct=no 16389 hardcode_automatic=yes 16390 hardcode_shlibpath_var=unsupported 16391 if test yes = "$lt_cv_ld_force_load"; then 16392 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\"`' 16393 16394 else 16395 whole_archive_flag_spec='' 16396 fi 16397 link_all_deplibs=yes 16398 allow_undefined_flag=$_lt_dar_allow_undefined 16399 case $cc_basename in 16400 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16401 *) _lt_dar_can_shared=$GCC ;; 16402 esac 16403 if test yes = "$_lt_dar_can_shared"; then 16404 output_verbose_link_cmd=func_echo_all 16405 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16406 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16407 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" 16408 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" 16409 16410 else 16411 ld_shlibs=no 16412 fi 16413 16414 ;; 16415 16416 dgux*) 16417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16418 hardcode_libdir_flag_spec='-L$libdir' 16419 hardcode_shlibpath_var=no 16420 ;; 16421 16422 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16423 # support. Future versions do this automatically, but an explicit c++rt0.o 16424 # does not break anything, and helps significantly (at the cost of a little 16425 # extra space). 16426 freebsd2.2*) 16427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16428 hardcode_libdir_flag_spec='-R$libdir' 16429 hardcode_direct=yes 16430 hardcode_shlibpath_var=no 16431 ;; 16432 16433 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16434 freebsd2.*) 16435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16436 hardcode_direct=yes 16437 hardcode_minus_L=yes 16438 hardcode_shlibpath_var=no 16439 ;; 16440 16441 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16442 freebsd* | dragonfly*) 16443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16444 hardcode_libdir_flag_spec='-R$libdir' 16445 hardcode_direct=yes 16446 hardcode_shlibpath_var=no 16447 ;; 16448 16449 hpux9*) 16450 if test yes = "$GCC"; then 16451 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' 16452 else 16453 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' 16454 fi 16455 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16456 hardcode_libdir_separator=: 16457 hardcode_direct=yes 16458 16459 # hardcode_minus_L: Not really in the search PATH, 16460 # but as the default location of the library. 16461 hardcode_minus_L=yes 16462 export_dynamic_flag_spec='$wl-E' 16463 ;; 16464 16465 hpux10*) 16466 if test yes,no = "$GCC,$with_gnu_ld"; then 16467 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16468 else 16469 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16470 fi 16471 if test no = "$with_gnu_ld"; then 16472 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16473 hardcode_libdir_separator=: 16474 hardcode_direct=yes 16475 hardcode_direct_absolute=yes 16476 export_dynamic_flag_spec='$wl-E' 16477 # hardcode_minus_L: Not really in the search PATH, 16478 # but as the default location of the library. 16479 hardcode_minus_L=yes 16480 fi 16481 ;; 16482 16483 hpux11*) 16484 if test yes,no = "$GCC,$with_gnu_ld"; then 16485 case $host_cpu in 16486 hppa*64*) 16487 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16488 ;; 16489 ia64*) 16490 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16491 ;; 16492 *) 16493 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16494 ;; 16495 esac 16496 else 16497 case $host_cpu in 16498 hppa*64*) 16499 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16500 ;; 16501 ia64*) 16502 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16503 ;; 16504 *) 16505 16506 # Older versions of the 11.00 compiler do not understand -b yet 16507 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16509$as_echo_n "checking if $CC understands -b... " >&6; } 16510if ${lt_cv_prog_compiler__b+:} false; then : 16511 $as_echo_n "(cached) " >&6 16512else 16513 lt_cv_prog_compiler__b=no 16514 save_LDFLAGS=$LDFLAGS 16515 LDFLAGS="$LDFLAGS -b" 16516 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16518 # The linker can only warn and ignore the option if not recognized 16519 # So say no if there are warnings 16520 if test -s conftest.err; then 16521 # Append any errors to the config.log. 16522 cat conftest.err 1>&5 16523 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16525 if diff conftest.exp conftest.er2 >/dev/null; then 16526 lt_cv_prog_compiler__b=yes 16527 fi 16528 else 16529 lt_cv_prog_compiler__b=yes 16530 fi 16531 fi 16532 $RM -r conftest* 16533 LDFLAGS=$save_LDFLAGS 16534 16535fi 16536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16537$as_echo "$lt_cv_prog_compiler__b" >&6; } 16538 16539if test yes = "$lt_cv_prog_compiler__b"; then 16540 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16541else 16542 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16543fi 16544 16545 ;; 16546 esac 16547 fi 16548 if test no = "$with_gnu_ld"; then 16549 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16550 hardcode_libdir_separator=: 16551 16552 case $host_cpu in 16553 hppa*64*|ia64*) 16554 hardcode_direct=no 16555 hardcode_shlibpath_var=no 16556 ;; 16557 *) 16558 hardcode_direct=yes 16559 hardcode_direct_absolute=yes 16560 export_dynamic_flag_spec='$wl-E' 16561 16562 # hardcode_minus_L: Not really in the search PATH, 16563 # but as the default location of the library. 16564 hardcode_minus_L=yes 16565 ;; 16566 esac 16567 fi 16568 ;; 16569 16570 irix5* | irix6* | nonstopux*) 16571 if test yes = "$GCC"; then 16572 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' 16573 # Try to use the -exported_symbol ld option, if it does not 16574 # work, assume that -exports_file does not work either and 16575 # implicitly export all symbols. 16576 # This should be the same for all languages, so no per-tag cache variable. 16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16578$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16579if ${lt_cv_irix_exported_symbol+:} false; then : 16580 $as_echo_n "(cached) " >&6 16581else 16582 save_LDFLAGS=$LDFLAGS 16583 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16585/* end confdefs.h. */ 16586int foo (void) { return 0; } 16587_ACEOF 16588if ac_fn_c_try_link "$LINENO"; then : 16589 lt_cv_irix_exported_symbol=yes 16590else 16591 lt_cv_irix_exported_symbol=no 16592fi 16593rm -f core conftest.err conftest.$ac_objext \ 16594 conftest$ac_exeext conftest.$ac_ext 16595 LDFLAGS=$save_LDFLAGS 16596fi 16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16598$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16599 if test yes = "$lt_cv_irix_exported_symbol"; then 16600 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' 16601 fi 16602 link_all_deplibs=no 16603 else 16604 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' 16605 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' 16606 fi 16607 archive_cmds_need_lc='no' 16608 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16609 hardcode_libdir_separator=: 16610 inherit_rpath=yes 16611 link_all_deplibs=yes 16612 ;; 16613 16614 linux*) 16615 case $cc_basename in 16616 tcc*) 16617 # Fabrice Bellard et al's Tiny C Compiler 16618 ld_shlibs=yes 16619 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16620 ;; 16621 esac 16622 ;; 16623 16624 netbsd* | netbsdelf*-gnu) 16625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16627 else 16628 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16629 fi 16630 hardcode_libdir_flag_spec='-R$libdir' 16631 hardcode_direct=yes 16632 hardcode_shlibpath_var=no 16633 ;; 16634 16635 newsos6) 16636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16637 hardcode_direct=yes 16638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16639 hardcode_libdir_separator=: 16640 hardcode_shlibpath_var=no 16641 ;; 16642 16643 *nto* | *qnx*) 16644 ;; 16645 16646 openbsd* | bitrig*) 16647 if test -f /usr/libexec/ld.so; then 16648 hardcode_direct=yes 16649 hardcode_shlibpath_var=no 16650 hardcode_direct_absolute=yes 16651 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16653 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16654 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16655 export_dynamic_flag_spec='$wl-E' 16656 else 16657 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16658 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16659 fi 16660 else 16661 ld_shlibs=no 16662 fi 16663 ;; 16664 16665 os2*) 16666 hardcode_libdir_flag_spec='-L$libdir' 16667 hardcode_minus_L=yes 16668 allow_undefined_flag=unsupported 16669 shrext_cmds=.dll 16670 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16671 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16672 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16673 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16674 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16675 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16676 emximp -o $lib $output_objdir/$libname.def' 16677 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16678 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16679 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16680 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16681 prefix_cmds="$SED"~ 16682 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16683 prefix_cmds="$prefix_cmds -e 1d"; 16684 fi~ 16685 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16686 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16687 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16688 emximp -o $lib $output_objdir/$libname.def' 16689 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16690 enable_shared_with_static_runtimes=yes 16691 ;; 16692 16693 osf3*) 16694 if test yes = "$GCC"; then 16695 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16696 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' 16697 else 16698 allow_undefined_flag=' -expect_unresolved \*' 16699 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' 16700 fi 16701 archive_cmds_need_lc='no' 16702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16703 hardcode_libdir_separator=: 16704 ;; 16705 16706 osf4* | osf5*) # as osf3* with the addition of -msym flag 16707 if test yes = "$GCC"; then 16708 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16709 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' 16710 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16711 else 16712 allow_undefined_flag=' -expect_unresolved \*' 16713 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' 16714 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~ 16715 $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' 16716 16717 # Both c and cxx compiler support -rpath directly 16718 hardcode_libdir_flag_spec='-rpath $libdir' 16719 fi 16720 archive_cmds_need_lc='no' 16721 hardcode_libdir_separator=: 16722 ;; 16723 16724 solaris*) 16725 no_undefined_flag=' -z defs' 16726 if test yes = "$GCC"; then 16727 wlarc='$wl' 16728 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16729 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16730 $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' 16731 else 16732 case `$CC -V 2>&1` in 16733 *"Compilers 5.0"*) 16734 wlarc='' 16735 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16737 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16738 ;; 16739 *) 16740 wlarc='$wl' 16741 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16742 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16743 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16744 ;; 16745 esac 16746 fi 16747 hardcode_libdir_flag_spec='-R$libdir' 16748 hardcode_shlibpath_var=no 16749 case $host_os in 16750 solaris2.[0-5] | solaris2.[0-5].*) ;; 16751 *) 16752 # The compiler driver will combine and reorder linker options, 16753 # but understands '-z linker_flag'. GCC discards it without '$wl', 16754 # but is careful enough not to reorder. 16755 # Supported since Solaris 2.6 (maybe 2.5.1?) 16756 if test yes = "$GCC"; then 16757 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16758 else 16759 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16760 fi 16761 ;; 16762 esac 16763 link_all_deplibs=yes 16764 ;; 16765 16766 sunos4*) 16767 if test sequent = "$host_vendor"; then 16768 # Use $CC to link under sequent, because it throws in some extra .o 16769 # files that make .init and .fini sections work. 16770 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16771 else 16772 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16773 fi 16774 hardcode_libdir_flag_spec='-L$libdir' 16775 hardcode_direct=yes 16776 hardcode_minus_L=yes 16777 hardcode_shlibpath_var=no 16778 ;; 16779 16780 sysv4) 16781 case $host_vendor in 16782 sni) 16783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16784 hardcode_direct=yes # is this really true??? 16785 ;; 16786 siemens) 16787 ## LD is ld it makes a PLAMLIB 16788 ## CC just makes a GrossModule. 16789 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16790 reload_cmds='$CC -r -o $output$reload_objs' 16791 hardcode_direct=no 16792 ;; 16793 motorola) 16794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16795 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16796 ;; 16797 esac 16798 runpath_var='LD_RUN_PATH' 16799 hardcode_shlibpath_var=no 16800 ;; 16801 16802 sysv4.3*) 16803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16804 hardcode_shlibpath_var=no 16805 export_dynamic_flag_spec='-Bexport' 16806 ;; 16807 16808 sysv4*MP*) 16809 if test -d /usr/nec; then 16810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16811 hardcode_shlibpath_var=no 16812 runpath_var=LD_RUN_PATH 16813 hardcode_runpath_var=yes 16814 ld_shlibs=yes 16815 fi 16816 ;; 16817 16818 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16819 no_undefined_flag='$wl-z,text' 16820 archive_cmds_need_lc=no 16821 hardcode_shlibpath_var=no 16822 runpath_var='LD_RUN_PATH' 16823 16824 if test yes = "$GCC"; then 16825 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16826 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16827 else 16828 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16829 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16830 fi 16831 ;; 16832 16833 sysv5* | sco3.2v5* | sco5v6*) 16834 # Note: We CANNOT use -z defs as we might desire, because we do not 16835 # link with -lc, and that would cause any symbols used from libc to 16836 # always be unresolved, which means just about no library would 16837 # ever link correctly. If we're not using GNU ld we use -z text 16838 # though, which does catch some bad symbols but isn't as heavy-handed 16839 # as -z defs. 16840 no_undefined_flag='$wl-z,text' 16841 allow_undefined_flag='$wl-z,nodefs' 16842 archive_cmds_need_lc=no 16843 hardcode_shlibpath_var=no 16844 hardcode_libdir_flag_spec='$wl-R,$libdir' 16845 hardcode_libdir_separator=':' 16846 link_all_deplibs=yes 16847 export_dynamic_flag_spec='$wl-Bexport' 16848 runpath_var='LD_RUN_PATH' 16849 16850 if test yes = "$GCC"; then 16851 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16852 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16853 else 16854 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16855 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16856 fi 16857 ;; 16858 16859 uts4*) 16860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16861 hardcode_libdir_flag_spec='-L$libdir' 16862 hardcode_shlibpath_var=no 16863 ;; 16864 16865 *) 16866 ld_shlibs=no 16867 ;; 16868 esac 16869 16870 if test sni = "$host_vendor"; then 16871 case $host in 16872 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16873 export_dynamic_flag_spec='$wl-Blargedynsym' 16874 ;; 16875 esac 16876 fi 16877 fi 16878 16879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16880$as_echo "$ld_shlibs" >&6; } 16881test no = "$ld_shlibs" && can_build_shared=no 16882 16883with_gnu_ld=$with_gnu_ld 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899# 16900# Do we need to explicitly link libc? 16901# 16902case "x$archive_cmds_need_lc" in 16903x|xyes) 16904 # Assume -lc should be added 16905 archive_cmds_need_lc=yes 16906 16907 if test yes,yes = "$GCC,$enable_shared"; then 16908 case $archive_cmds in 16909 *'~'*) 16910 # FIXME: we may have to deal with multi-command sequences. 16911 ;; 16912 '$CC '*) 16913 # Test whether the compiler implicitly links with -lc since on some 16914 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16915 # to ld, don't add -lc before -lgcc. 16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16917$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16918if ${lt_cv_archive_cmds_need_lc+:} false; then : 16919 $as_echo_n "(cached) " >&6 16920else 16921 $RM conftest* 16922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16923 16924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16925 (eval $ac_compile) 2>&5 16926 ac_status=$? 16927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16928 test $ac_status = 0; } 2>conftest.err; then 16929 soname=conftest 16930 lib=conftest 16931 libobjs=conftest.$ac_objext 16932 deplibs= 16933 wl=$lt_prog_compiler_wl 16934 pic_flag=$lt_prog_compiler_pic 16935 compiler_flags=-v 16936 linker_flags=-v 16937 verstring= 16938 output_objdir=. 16939 libname=conftest 16940 lt_save_allow_undefined_flag=$allow_undefined_flag 16941 allow_undefined_flag= 16942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16943 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16944 ac_status=$? 16945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16946 test $ac_status = 0; } 16947 then 16948 lt_cv_archive_cmds_need_lc=no 16949 else 16950 lt_cv_archive_cmds_need_lc=yes 16951 fi 16952 allow_undefined_flag=$lt_save_allow_undefined_flag 16953 else 16954 cat conftest.err 1>&5 16955 fi 16956 $RM conftest* 16957 16958fi 16959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16960$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16961 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16962 ;; 16963 esac 16964 fi 16965 ;; 16966esac 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17120$as_echo_n "checking dynamic linker characteristics... " >&6; } 17121 17122if test yes = "$GCC"; then 17123 case $host_os in 17124 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17125 *) lt_awk_arg='/^libraries:/' ;; 17126 esac 17127 case $host_os in 17128 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17129 *) lt_sed_strip_eq='s|=/|/|g' ;; 17130 esac 17131 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17132 case $lt_search_path_spec in 17133 *\;*) 17134 # if the path contains ";" then we assume it to be the separator 17135 # otherwise default to the standard path separator (i.e. ":") - it is 17136 # assumed that no part of a normal pathname contains ";" but that should 17137 # okay in the real world where ";" in dirpaths is itself problematic. 17138 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17139 ;; 17140 *) 17141 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17142 ;; 17143 esac 17144 # Ok, now we have the path, separated by spaces, we can step through it 17145 # and add multilib dir if necessary... 17146 lt_tmp_lt_search_path_spec= 17147 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17148 # ...but if some path component already ends with the multilib dir we assume 17149 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17150 case "$lt_multi_os_dir; $lt_search_path_spec " in 17151 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17152 lt_multi_os_dir= 17153 ;; 17154 esac 17155 for lt_sys_path in $lt_search_path_spec; do 17156 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17158 elif test -n "$lt_multi_os_dir"; then 17159 test -d "$lt_sys_path" && \ 17160 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17161 fi 17162 done 17163 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17164BEGIN {RS = " "; FS = "/|\n";} { 17165 lt_foo = ""; 17166 lt_count = 0; 17167 for (lt_i = NF; lt_i > 0; lt_i--) { 17168 if ($lt_i != "" && $lt_i != ".") { 17169 if ($lt_i == "..") { 17170 lt_count++; 17171 } else { 17172 if (lt_count == 0) { 17173 lt_foo = "/" $lt_i lt_foo; 17174 } else { 17175 lt_count--; 17176 } 17177 } 17178 } 17179 } 17180 if (lt_foo != "") { lt_freq[lt_foo]++; } 17181 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17182}'` 17183 # AWK program above erroneously prepends '/' to C:/dos/paths 17184 # for these hosts. 17185 case $host_os in 17186 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17187 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17188 esac 17189 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17190else 17191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17192fi 17193library_names_spec= 17194libname_spec='lib$name' 17195soname_spec= 17196shrext_cmds=.so 17197postinstall_cmds= 17198postuninstall_cmds= 17199finish_cmds= 17200finish_eval= 17201shlibpath_var= 17202shlibpath_overrides_runpath=unknown 17203version_type=none 17204dynamic_linker="$host_os ld.so" 17205sys_lib_dlsearch_path_spec="/lib /usr/lib" 17206need_lib_prefix=unknown 17207hardcode_into_libs=no 17208 17209# when you set need_version to no, make sure it does not cause -set_version 17210# flags to be left without arguments 17211need_version=unknown 17212 17213 17214 17215case $host_os in 17216aix3*) 17217 version_type=linux # correct to gnu/linux during the next big refactor 17218 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17219 shlibpath_var=LIBPATH 17220 17221 # AIX 3 has no versioning support, so we append a major version to the name. 17222 soname_spec='$libname$release$shared_ext$major' 17223 ;; 17224 17225aix[4-9]*) 17226 version_type=linux # correct to gnu/linux during the next big refactor 17227 need_lib_prefix=no 17228 need_version=no 17229 hardcode_into_libs=yes 17230 if test ia64 = "$host_cpu"; then 17231 # AIX 5 supports IA64 17232 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17233 shlibpath_var=LD_LIBRARY_PATH 17234 else 17235 # With GCC up to 2.95.x, collect2 would create an import file 17236 # for dependence libraries. The import file would start with 17237 # the line '#! .'. This would cause the generated library to 17238 # depend on '.', always an invalid library. This was fixed in 17239 # development snapshots of GCC prior to 3.0. 17240 case $host_os in 17241 aix4 | aix4.[01] | aix4.[01].*) 17242 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17243 echo ' yes ' 17244 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17245 : 17246 else 17247 can_build_shared=no 17248 fi 17249 ;; 17250 esac 17251 # Using Import Files as archive members, it is possible to support 17252 # filename-based versioning of shared library archives on AIX. While 17253 # this would work for both with and without runtime linking, it will 17254 # prevent static linking of such archives. So we do filename-based 17255 # shared library versioning with .so extension only, which is used 17256 # when both runtime linking and shared linking is enabled. 17257 # Unfortunately, runtime linking may impact performance, so we do 17258 # not want this to be the default eventually. Also, we use the 17259 # versioned .so libs for executables only if there is the -brtl 17260 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17261 # To allow for filename-based versioning support, we need to create 17262 # libNAME.so.V as an archive file, containing: 17263 # *) an Import File, referring to the versioned filename of the 17264 # archive as well as the shared archive member, telling the 17265 # bitwidth (32 or 64) of that shared object, and providing the 17266 # list of exported symbols of that shared object, eventually 17267 # decorated with the 'weak' keyword 17268 # *) the shared object with the F_LOADONLY flag set, to really avoid 17269 # it being seen by the linker. 17270 # At run time we better use the real file rather than another symlink, 17271 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17272 17273 case $with_aix_soname,$aix_use_runtimelinking in 17274 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17275 # soname into executable. Probably we can add versioning support to 17276 # collect2, so additional links can be useful in future. 17277 aix,yes) # traditional libtool 17278 dynamic_linker='AIX unversionable lib.so' 17279 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17280 # instead of lib<name>.a to let people know that these are not 17281 # typical AIX shared libraries. 17282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17283 ;; 17284 aix,no) # traditional AIX only 17285 dynamic_linker='AIX lib.a(lib.so.V)' 17286 # We preserve .a as extension for shared libraries through AIX4.2 17287 # and later when we are not doing run time linking. 17288 library_names_spec='$libname$release.a $libname.a' 17289 soname_spec='$libname$release$shared_ext$major' 17290 ;; 17291 svr4,*) # full svr4 only 17292 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17293 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17294 # We do not specify a path in Import Files, so LIBPATH fires. 17295 shlibpath_overrides_runpath=yes 17296 ;; 17297 *,yes) # both, prefer svr4 17298 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17299 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17300 # unpreferred sharedlib libNAME.a needs extra handling 17301 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"' 17302 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"' 17303 # We do not specify a path in Import Files, so LIBPATH fires. 17304 shlibpath_overrides_runpath=yes 17305 ;; 17306 *,no) # both, prefer aix 17307 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17308 library_names_spec='$libname$release.a $libname.a' 17309 soname_spec='$libname$release$shared_ext$major' 17310 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17311 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)' 17312 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"' 17313 ;; 17314 esac 17315 shlibpath_var=LIBPATH 17316 fi 17317 ;; 17318 17319amigaos*) 17320 case $host_cpu in 17321 powerpc) 17322 # Since July 2007 AmigaOS4 officially supports .so libraries. 17323 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17325 ;; 17326 m68k) 17327 library_names_spec='$libname.ixlibrary $libname.a' 17328 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17329 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' 17330 ;; 17331 esac 17332 ;; 17333 17334beos*) 17335 library_names_spec='$libname$shared_ext' 17336 dynamic_linker="$host_os ld.so" 17337 shlibpath_var=LIBRARY_PATH 17338 ;; 17339 17340bsdi[45]*) 17341 version_type=linux # correct to gnu/linux during the next big refactor 17342 need_version=no 17343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17344 soname_spec='$libname$release$shared_ext$major' 17345 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17346 shlibpath_var=LD_LIBRARY_PATH 17347 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17348 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17349 # the default ld.so.conf also contains /usr/contrib/lib and 17350 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17351 # libtool to hard-code these into programs 17352 ;; 17353 17354cygwin* | mingw* | pw32* | cegcc*) 17355 version_type=windows 17356 shrext_cmds=.dll 17357 need_version=no 17358 need_lib_prefix=no 17359 17360 case $GCC,$cc_basename in 17361 yes,*) 17362 # gcc 17363 library_names_spec='$libname.dll.a' 17364 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17365 postinstall_cmds='base_file=`basename \$file`~ 17366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17367 dldir=$destdir/`dirname \$dlpath`~ 17368 test -d \$dldir || mkdir -p \$dldir~ 17369 $install_prog $dir/$dlname \$dldir/$dlname~ 17370 chmod a+x \$dldir/$dlname~ 17371 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17372 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17373 fi' 17374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17375 dlpath=$dir/\$dldll~ 17376 $RM \$dlpath' 17377 shlibpath_overrides_runpath=yes 17378 17379 case $host_os in 17380 cygwin*) 17381 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17382 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17383 17384 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17385 ;; 17386 mingw* | cegcc*) 17387 # MinGW DLLs use traditional 'lib' prefix 17388 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17389 ;; 17390 pw32*) 17391 # pw32 DLLs use 'pw' prefix rather than 'lib' 17392 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17393 ;; 17394 esac 17395 dynamic_linker='Win32 ld.exe' 17396 ;; 17397 17398 *,cl*) 17399 # Native MSVC 17400 libname_spec='$name' 17401 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17402 library_names_spec='$libname.dll.lib' 17403 17404 case $build_os in 17405 mingw*) 17406 sys_lib_search_path_spec= 17407 lt_save_ifs=$IFS 17408 IFS=';' 17409 for lt_path in $LIB 17410 do 17411 IFS=$lt_save_ifs 17412 # Let DOS variable expansion print the short 8.3 style file name. 17413 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17414 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17415 done 17416 IFS=$lt_save_ifs 17417 # Convert to MSYS style. 17418 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17419 ;; 17420 cygwin*) 17421 # Convert to unix form, then to dos form, then back to unix form 17422 # but this time dos style (no spaces!) so that the unix form looks 17423 # like /cygdrive/c/PROGRA~1:/cygdr... 17424 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17425 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17426 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17427 ;; 17428 *) 17429 sys_lib_search_path_spec=$LIB 17430 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17431 # It is most probably a Windows format PATH. 17432 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17433 else 17434 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17435 fi 17436 # FIXME: find the short name or the path components, as spaces are 17437 # common. (e.g. "Program Files" -> "PROGRA~1") 17438 ;; 17439 esac 17440 17441 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17442 postinstall_cmds='base_file=`basename \$file`~ 17443 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17444 dldir=$destdir/`dirname \$dlpath`~ 17445 test -d \$dldir || mkdir -p \$dldir~ 17446 $install_prog $dir/$dlname \$dldir/$dlname' 17447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17448 dlpath=$dir/\$dldll~ 17449 $RM \$dlpath' 17450 shlibpath_overrides_runpath=yes 17451 dynamic_linker='Win32 link.exe' 17452 ;; 17453 17454 *) 17455 # Assume MSVC wrapper 17456 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17457 dynamic_linker='Win32 ld.exe' 17458 ;; 17459 esac 17460 # FIXME: first we should search . and the directory the executable is in 17461 shlibpath_var=PATH 17462 ;; 17463 17464darwin* | rhapsody*) 17465 dynamic_linker="$host_os dyld" 17466 version_type=darwin 17467 need_lib_prefix=no 17468 need_version=no 17469 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17470 soname_spec='$libname$release$major$shared_ext' 17471 shlibpath_overrides_runpath=yes 17472 shlibpath_var=DYLD_LIBRARY_PATH 17473 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17474 17475 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17477 ;; 17478 17479dgux*) 17480 version_type=linux # correct to gnu/linux during the next big refactor 17481 need_lib_prefix=no 17482 need_version=no 17483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17484 soname_spec='$libname$release$shared_ext$major' 17485 shlibpath_var=LD_LIBRARY_PATH 17486 ;; 17487 17488freebsd* | dragonfly*) 17489 # DragonFly does not have aout. When/if they implement a new 17490 # versioning mechanism, adjust this. 17491 if test -x /usr/bin/objformat; then 17492 objformat=`/usr/bin/objformat` 17493 else 17494 case $host_os in 17495 freebsd[23].*) objformat=aout ;; 17496 *) objformat=elf ;; 17497 esac 17498 fi 17499 version_type=freebsd-$objformat 17500 case $version_type in 17501 freebsd-elf*) 17502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17503 soname_spec='$libname$release$shared_ext$major' 17504 need_version=no 17505 need_lib_prefix=no 17506 ;; 17507 freebsd-*) 17508 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17509 need_version=yes 17510 ;; 17511 esac 17512 shlibpath_var=LD_LIBRARY_PATH 17513 case $host_os in 17514 freebsd2.*) 17515 shlibpath_overrides_runpath=yes 17516 ;; 17517 freebsd3.[01]* | freebsdelf3.[01]*) 17518 shlibpath_overrides_runpath=yes 17519 hardcode_into_libs=yes 17520 ;; 17521 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17522 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17523 shlibpath_overrides_runpath=no 17524 hardcode_into_libs=yes 17525 ;; 17526 *) # from 4.6 on, and DragonFly 17527 shlibpath_overrides_runpath=yes 17528 hardcode_into_libs=yes 17529 ;; 17530 esac 17531 ;; 17532 17533haiku*) 17534 version_type=linux # correct to gnu/linux during the next big refactor 17535 need_lib_prefix=no 17536 need_version=no 17537 dynamic_linker="$host_os runtime_loader" 17538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17539 soname_spec='$libname$release$shared_ext$major' 17540 shlibpath_var=LIBRARY_PATH 17541 shlibpath_overrides_runpath=no 17542 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17543 hardcode_into_libs=yes 17544 ;; 17545 17546hpux9* | hpux10* | hpux11*) 17547 # Give a soname corresponding to the major version so that dld.sl refuses to 17548 # link against other versions. 17549 version_type=sunos 17550 need_lib_prefix=no 17551 need_version=no 17552 case $host_cpu in 17553 ia64*) 17554 shrext_cmds='.so' 17555 hardcode_into_libs=yes 17556 dynamic_linker="$host_os dld.so" 17557 shlibpath_var=LD_LIBRARY_PATH 17558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17560 soname_spec='$libname$release$shared_ext$major' 17561 if test 32 = "$HPUX_IA64_MODE"; then 17562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17563 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17564 else 17565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17566 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17567 fi 17568 ;; 17569 hppa*64*) 17570 shrext_cmds='.sl' 17571 hardcode_into_libs=yes 17572 dynamic_linker="$host_os dld.sl" 17573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17579 ;; 17580 *) 17581 shrext_cmds='.sl' 17582 dynamic_linker="$host_os dld.sl" 17583 shlibpath_var=SHLIB_PATH 17584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17586 soname_spec='$libname$release$shared_ext$major' 17587 ;; 17588 esac 17589 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17590 postinstall_cmds='chmod 555 $lib' 17591 # or fails outright, so override atomically: 17592 install_override_mode=555 17593 ;; 17594 17595interix[3-9]*) 17596 version_type=linux # correct to gnu/linux during the next big refactor 17597 need_lib_prefix=no 17598 need_version=no 17599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17600 soname_spec='$libname$release$shared_ext$major' 17601 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17602 shlibpath_var=LD_LIBRARY_PATH 17603 shlibpath_overrides_runpath=no 17604 hardcode_into_libs=yes 17605 ;; 17606 17607irix5* | irix6* | nonstopux*) 17608 case $host_os in 17609 nonstopux*) version_type=nonstopux ;; 17610 *) 17611 if test yes = "$lt_cv_prog_gnu_ld"; then 17612 version_type=linux # correct to gnu/linux during the next big refactor 17613 else 17614 version_type=irix 17615 fi ;; 17616 esac 17617 need_lib_prefix=no 17618 need_version=no 17619 soname_spec='$libname$release$shared_ext$major' 17620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17621 case $host_os in 17622 irix5* | nonstopux*) 17623 libsuff= shlibsuff= 17624 ;; 17625 *) 17626 case $LD in # libtool.m4 will add one of these switches to LD 17627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17628 libsuff= shlibsuff= libmagic=32-bit;; 17629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17630 libsuff=32 shlibsuff=N32 libmagic=N32;; 17631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17632 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17633 *) libsuff= shlibsuff= libmagic=never-match;; 17634 esac 17635 ;; 17636 esac 17637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17638 shlibpath_overrides_runpath=no 17639 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17640 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17641 hardcode_into_libs=yes 17642 ;; 17643 17644# No shared lib support for Linux oldld, aout, or coff. 17645linux*oldld* | linux*aout* | linux*coff*) 17646 dynamic_linker=no 17647 ;; 17648 17649linux*android*) 17650 version_type=none # Android doesn't support versioned libraries. 17651 need_lib_prefix=no 17652 need_version=no 17653 library_names_spec='$libname$release$shared_ext' 17654 soname_spec='$libname$release$shared_ext' 17655 finish_cmds= 17656 shlibpath_var=LD_LIBRARY_PATH 17657 shlibpath_overrides_runpath=yes 17658 17659 # This implies no fast_install, which is unacceptable. 17660 # Some rework will be needed to allow for fast_install 17661 # before this can be enabled. 17662 hardcode_into_libs=yes 17663 17664 dynamic_linker='Android linker' 17665 # Don't embed -rpath directories since the linker doesn't support them. 17666 hardcode_libdir_flag_spec='-L$libdir' 17667 ;; 17668 17669# This must be glibc/ELF. 17670linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17671 version_type=linux # correct to gnu/linux during the next big refactor 17672 need_lib_prefix=no 17673 need_version=no 17674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17675 soname_spec='$libname$release$shared_ext$major' 17676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17677 shlibpath_var=LD_LIBRARY_PATH 17678 shlibpath_overrides_runpath=no 17679 17680 # Some binutils ld are patched to set DT_RUNPATH 17681 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17682 $as_echo_n "(cached) " >&6 17683else 17684 lt_cv_shlibpath_overrides_runpath=no 17685 save_LDFLAGS=$LDFLAGS 17686 save_libdir=$libdir 17687 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17688 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17690/* end confdefs.h. */ 17691 17692int 17693main () 17694{ 17695 17696 ; 17697 return 0; 17698} 17699_ACEOF 17700if ac_fn_c_try_link "$LINENO"; then : 17701 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17702 lt_cv_shlibpath_overrides_runpath=yes 17703fi 17704fi 17705rm -f core conftest.err conftest.$ac_objext \ 17706 conftest$ac_exeext conftest.$ac_ext 17707 LDFLAGS=$save_LDFLAGS 17708 libdir=$save_libdir 17709 17710fi 17711 17712 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17713 17714 # This implies no fast_install, which is unacceptable. 17715 # Some rework will be needed to allow for fast_install 17716 # before this can be enabled. 17717 hardcode_into_libs=yes 17718 17719 # Ideally, we could use ldconfig to report *all* directores which are 17720 # searched for libraries, however this is still not possible. Aside from not 17721 # being certain /sbin/ldconfig is available, command 17722 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17723 # even though it is searched at run-time. Try to do the best guess by 17724 # appending ld.so.conf contents (and includes) to the search path. 17725 if test -f /etc/ld.so.conf; then 17726 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' ' '` 17727 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17728 fi 17729 17730 # We used to test for /lib/ld.so.1 and disable shared libraries on 17731 # powerpc, because MkLinux only supported shared libraries with the 17732 # GNU dynamic linker. Since this was broken with cross compilers, 17733 # most powerpc-linux boxes support dynamic linking these days and 17734 # people can always --disable-shared, the test was removed, and we 17735 # assume the GNU/Linux dynamic linker is in use. 17736 dynamic_linker='GNU/Linux ld.so' 17737 ;; 17738 17739netbsdelf*-gnu) 17740 version_type=linux 17741 need_lib_prefix=no 17742 need_version=no 17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17744 soname_spec='${libname}${release}${shared_ext}$major' 17745 shlibpath_var=LD_LIBRARY_PATH 17746 shlibpath_overrides_runpath=no 17747 hardcode_into_libs=yes 17748 dynamic_linker='NetBSD ld.elf_so' 17749 ;; 17750 17751netbsd*) 17752 version_type=sunos 17753 need_lib_prefix=no 17754 need_version=no 17755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17756 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17758 dynamic_linker='NetBSD (a.out) ld.so' 17759 else 17760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17761 soname_spec='$libname$release$shared_ext$major' 17762 dynamic_linker='NetBSD ld.elf_so' 17763 fi 17764 shlibpath_var=LD_LIBRARY_PATH 17765 shlibpath_overrides_runpath=yes 17766 hardcode_into_libs=yes 17767 ;; 17768 17769newsos6) 17770 version_type=linux # correct to gnu/linux during the next big refactor 17771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17772 shlibpath_var=LD_LIBRARY_PATH 17773 shlibpath_overrides_runpath=yes 17774 ;; 17775 17776*nto* | *qnx*) 17777 version_type=qnx 17778 need_lib_prefix=no 17779 need_version=no 17780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17781 soname_spec='$libname$release$shared_ext$major' 17782 shlibpath_var=LD_LIBRARY_PATH 17783 shlibpath_overrides_runpath=no 17784 hardcode_into_libs=yes 17785 dynamic_linker='ldqnx.so' 17786 ;; 17787 17788openbsd* | bitrig*) 17789 version_type=sunos 17790 sys_lib_dlsearch_path_spec=/usr/lib 17791 need_lib_prefix=no 17792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17793 need_version=no 17794 else 17795 need_version=yes 17796 fi 17797 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17799 shlibpath_var=LD_LIBRARY_PATH 17800 shlibpath_overrides_runpath=yes 17801 ;; 17802 17803os2*) 17804 libname_spec='$name' 17805 version_type=windows 17806 shrext_cmds=.dll 17807 need_version=no 17808 need_lib_prefix=no 17809 # OS/2 can only load a DLL with a base name of 8 characters or less. 17810 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17811 v=$($ECHO $release$versuffix | tr -d .-); 17812 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17813 $ECHO $n$v`$shared_ext' 17814 library_names_spec='${libname}_dll.$libext' 17815 dynamic_linker='OS/2 ld.exe' 17816 shlibpath_var=BEGINLIBPATH 17817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17819 postinstall_cmds='base_file=`basename \$file`~ 17820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17821 dldir=$destdir/`dirname \$dlpath`~ 17822 test -d \$dldir || mkdir -p \$dldir~ 17823 $install_prog $dir/$dlname \$dldir/$dlname~ 17824 chmod a+x \$dldir/$dlname~ 17825 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17826 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17827 fi' 17828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17829 dlpath=$dir/\$dldll~ 17830 $RM \$dlpath' 17831 ;; 17832 17833osf3* | osf4* | osf5*) 17834 version_type=osf 17835 need_lib_prefix=no 17836 need_version=no 17837 soname_spec='$libname$release$shared_ext$major' 17838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17839 shlibpath_var=LD_LIBRARY_PATH 17840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17842 ;; 17843 17844rdos*) 17845 dynamic_linker=no 17846 ;; 17847 17848solaris*) 17849 version_type=linux # correct to gnu/linux during the next big refactor 17850 need_lib_prefix=no 17851 need_version=no 17852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17853 soname_spec='$libname$release$shared_ext$major' 17854 shlibpath_var=LD_LIBRARY_PATH 17855 shlibpath_overrides_runpath=yes 17856 hardcode_into_libs=yes 17857 # ldd complains unless libraries are executable 17858 postinstall_cmds='chmod +x $lib' 17859 ;; 17860 17861sunos4*) 17862 version_type=sunos 17863 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17865 shlibpath_var=LD_LIBRARY_PATH 17866 shlibpath_overrides_runpath=yes 17867 if test yes = "$with_gnu_ld"; then 17868 need_lib_prefix=no 17869 fi 17870 need_version=yes 17871 ;; 17872 17873sysv4 | sysv4.3*) 17874 version_type=linux # correct to gnu/linux during the next big refactor 17875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17876 soname_spec='$libname$release$shared_ext$major' 17877 shlibpath_var=LD_LIBRARY_PATH 17878 case $host_vendor in 17879 sni) 17880 shlibpath_overrides_runpath=no 17881 need_lib_prefix=no 17882 runpath_var=LD_RUN_PATH 17883 ;; 17884 siemens) 17885 need_lib_prefix=no 17886 ;; 17887 motorola) 17888 need_lib_prefix=no 17889 need_version=no 17890 shlibpath_overrides_runpath=no 17891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17892 ;; 17893 esac 17894 ;; 17895 17896sysv4*MP*) 17897 if test -d /usr/nec; then 17898 version_type=linux # correct to gnu/linux during the next big refactor 17899 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17900 soname_spec='$libname$shared_ext.$major' 17901 shlibpath_var=LD_LIBRARY_PATH 17902 fi 17903 ;; 17904 17905sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17906 version_type=sco 17907 need_lib_prefix=no 17908 need_version=no 17909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17910 soname_spec='$libname$release$shared_ext$major' 17911 shlibpath_var=LD_LIBRARY_PATH 17912 shlibpath_overrides_runpath=yes 17913 hardcode_into_libs=yes 17914 if test yes = "$with_gnu_ld"; then 17915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17916 else 17917 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17918 case $host_os in 17919 sco3.2v5*) 17920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17921 ;; 17922 esac 17923 fi 17924 sys_lib_dlsearch_path_spec='/usr/lib' 17925 ;; 17926 17927tpf*) 17928 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17929 version_type=linux # correct to gnu/linux during the next big refactor 17930 need_lib_prefix=no 17931 need_version=no 17932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17933 shlibpath_var=LD_LIBRARY_PATH 17934 shlibpath_overrides_runpath=no 17935 hardcode_into_libs=yes 17936 ;; 17937 17938uts4*) 17939 version_type=linux # correct to gnu/linux during the next big refactor 17940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17941 soname_spec='$libname$release$shared_ext$major' 17942 shlibpath_var=LD_LIBRARY_PATH 17943 ;; 17944 17945*) 17946 dynamic_linker=no 17947 ;; 17948esac 17949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17950$as_echo "$dynamic_linker" >&6; } 17951test no = "$dynamic_linker" && can_build_shared=no 17952 17953variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17954if test yes = "$GCC"; then 17955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17956fi 17957 17958if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17959 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17960fi 17961 17962if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17963 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17964fi 17965 17966# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17967configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17968 17969# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17970func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17971 17972# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17973configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18072$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18073hardcode_action= 18074if test -n "$hardcode_libdir_flag_spec" || 18075 test -n "$runpath_var" || 18076 test yes = "$hardcode_automatic"; then 18077 18078 # We can hardcode non-existent directories. 18079 if test no != "$hardcode_direct" && 18080 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18081 # have to relink, otherwise we might link with an installed library 18082 # when we should be linking with a yet-to-be-installed one 18083 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18084 test no != "$hardcode_minus_L"; then 18085 # Linking always hardcodes the temporary library directory. 18086 hardcode_action=relink 18087 else 18088 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18089 hardcode_action=immediate 18090 fi 18091else 18092 # We cannot hardcode anything, or else we can only hardcode existing 18093 # directories. 18094 hardcode_action=unsupported 18095fi 18096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18097$as_echo "$hardcode_action" >&6; } 18098 18099if test relink = "$hardcode_action" || 18100 test yes = "$inherit_rpath"; then 18101 # Fast installation is not supported 18102 enable_fast_install=no 18103elif test yes = "$shlibpath_overrides_runpath" || 18104 test no = "$enable_shared"; then 18105 # Fast installation is not necessary 18106 enable_fast_install=needless 18107fi 18108 18109 18110 18111 18112 18113 18114 if test yes != "$enable_dlopen"; then 18115 enable_dlopen=unknown 18116 enable_dlopen_self=unknown 18117 enable_dlopen_self_static=unknown 18118else 18119 lt_cv_dlopen=no 18120 lt_cv_dlopen_libs= 18121 18122 case $host_os in 18123 beos*) 18124 lt_cv_dlopen=load_add_on 18125 lt_cv_dlopen_libs= 18126 lt_cv_dlopen_self=yes 18127 ;; 18128 18129 mingw* | pw32* | cegcc*) 18130 lt_cv_dlopen=LoadLibrary 18131 lt_cv_dlopen_libs= 18132 ;; 18133 18134 cygwin*) 18135 lt_cv_dlopen=dlopen 18136 lt_cv_dlopen_libs= 18137 ;; 18138 18139 darwin*) 18140 # if libdl is installed we need to link against it 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18142$as_echo_n "checking for dlopen in -ldl... " >&6; } 18143if ${ac_cv_lib_dl_dlopen+:} false; then : 18144 $as_echo_n "(cached) " >&6 18145else 18146 ac_check_lib_save_LIBS=$LIBS 18147LIBS="-ldl $LIBS" 18148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18149/* end confdefs.h. */ 18150 18151/* Override any GCC internal prototype to avoid an error. 18152 Use char because int might match the return type of a GCC 18153 builtin and then its argument prototype would still apply. */ 18154#ifdef __cplusplus 18155extern "C" 18156#endif 18157char dlopen (); 18158int 18159main () 18160{ 18161return dlopen (); 18162 ; 18163 return 0; 18164} 18165_ACEOF 18166if ac_fn_c_try_link "$LINENO"; then : 18167 ac_cv_lib_dl_dlopen=yes 18168else 18169 ac_cv_lib_dl_dlopen=no 18170fi 18171rm -f core conftest.err conftest.$ac_objext \ 18172 conftest$ac_exeext conftest.$ac_ext 18173LIBS=$ac_check_lib_save_LIBS 18174fi 18175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18176$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18177if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18178 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18179else 18180 18181 lt_cv_dlopen=dyld 18182 lt_cv_dlopen_libs= 18183 lt_cv_dlopen_self=yes 18184 18185fi 18186 18187 ;; 18188 18189 tpf*) 18190 # Don't try to run any link tests for TPF. We know it's impossible 18191 # because TPF is a cross-compiler, and we know how we open DSOs. 18192 lt_cv_dlopen=dlopen 18193 lt_cv_dlopen_libs= 18194 lt_cv_dlopen_self=no 18195 ;; 18196 18197 *) 18198 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18199if test "x$ac_cv_func_shl_load" = xyes; then : 18200 lt_cv_dlopen=shl_load 18201else 18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18203$as_echo_n "checking for shl_load in -ldld... " >&6; } 18204if ${ac_cv_lib_dld_shl_load+:} false; then : 18205 $as_echo_n "(cached) " >&6 18206else 18207 ac_check_lib_save_LIBS=$LIBS 18208LIBS="-ldld $LIBS" 18209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18210/* end confdefs.h. */ 18211 18212/* Override any GCC internal prototype to avoid an error. 18213 Use char because int might match the return type of a GCC 18214 builtin and then its argument prototype would still apply. */ 18215#ifdef __cplusplus 18216extern "C" 18217#endif 18218char shl_load (); 18219int 18220main () 18221{ 18222return shl_load (); 18223 ; 18224 return 0; 18225} 18226_ACEOF 18227if ac_fn_c_try_link "$LINENO"; then : 18228 ac_cv_lib_dld_shl_load=yes 18229else 18230 ac_cv_lib_dld_shl_load=no 18231fi 18232rm -f core conftest.err conftest.$ac_objext \ 18233 conftest$ac_exeext conftest.$ac_ext 18234LIBS=$ac_check_lib_save_LIBS 18235fi 18236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18237$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18238if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18239 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18240else 18241 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18242if test "x$ac_cv_func_dlopen" = xyes; then : 18243 lt_cv_dlopen=dlopen 18244else 18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18246$as_echo_n "checking for dlopen in -ldl... " >&6; } 18247if ${ac_cv_lib_dl_dlopen+:} false; then : 18248 $as_echo_n "(cached) " >&6 18249else 18250 ac_check_lib_save_LIBS=$LIBS 18251LIBS="-ldl $LIBS" 18252cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18253/* end confdefs.h. */ 18254 18255/* Override any GCC internal prototype to avoid an error. 18256 Use char because int might match the return type of a GCC 18257 builtin and then its argument prototype would still apply. */ 18258#ifdef __cplusplus 18259extern "C" 18260#endif 18261char dlopen (); 18262int 18263main () 18264{ 18265return dlopen (); 18266 ; 18267 return 0; 18268} 18269_ACEOF 18270if ac_fn_c_try_link "$LINENO"; then : 18271 ac_cv_lib_dl_dlopen=yes 18272else 18273 ac_cv_lib_dl_dlopen=no 18274fi 18275rm -f core conftest.err conftest.$ac_objext \ 18276 conftest$ac_exeext conftest.$ac_ext 18277LIBS=$ac_check_lib_save_LIBS 18278fi 18279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18280$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18281if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18282 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18283else 18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18285$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18286if ${ac_cv_lib_svld_dlopen+:} false; then : 18287 $as_echo_n "(cached) " >&6 18288else 18289 ac_check_lib_save_LIBS=$LIBS 18290LIBS="-lsvld $LIBS" 18291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18292/* end confdefs.h. */ 18293 18294/* Override any GCC internal prototype to avoid an error. 18295 Use char because int might match the return type of a GCC 18296 builtin and then its argument prototype would still apply. */ 18297#ifdef __cplusplus 18298extern "C" 18299#endif 18300char dlopen (); 18301int 18302main () 18303{ 18304return dlopen (); 18305 ; 18306 return 0; 18307} 18308_ACEOF 18309if ac_fn_c_try_link "$LINENO"; then : 18310 ac_cv_lib_svld_dlopen=yes 18311else 18312 ac_cv_lib_svld_dlopen=no 18313fi 18314rm -f core conftest.err conftest.$ac_objext \ 18315 conftest$ac_exeext conftest.$ac_ext 18316LIBS=$ac_check_lib_save_LIBS 18317fi 18318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18319$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18320if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18321 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18322else 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18324$as_echo_n "checking for dld_link in -ldld... " >&6; } 18325if ${ac_cv_lib_dld_dld_link+:} false; then : 18326 $as_echo_n "(cached) " >&6 18327else 18328 ac_check_lib_save_LIBS=$LIBS 18329LIBS="-ldld $LIBS" 18330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18331/* end confdefs.h. */ 18332 18333/* Override any GCC internal prototype to avoid an error. 18334 Use char because int might match the return type of a GCC 18335 builtin and then its argument prototype would still apply. */ 18336#ifdef __cplusplus 18337extern "C" 18338#endif 18339char dld_link (); 18340int 18341main () 18342{ 18343return dld_link (); 18344 ; 18345 return 0; 18346} 18347_ACEOF 18348if ac_fn_c_try_link "$LINENO"; then : 18349 ac_cv_lib_dld_dld_link=yes 18350else 18351 ac_cv_lib_dld_dld_link=no 18352fi 18353rm -f core conftest.err conftest.$ac_objext \ 18354 conftest$ac_exeext conftest.$ac_ext 18355LIBS=$ac_check_lib_save_LIBS 18356fi 18357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18358$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18359if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18360 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18361fi 18362 18363 18364fi 18365 18366 18367fi 18368 18369 18370fi 18371 18372 18373fi 18374 18375 18376fi 18377 18378 ;; 18379 esac 18380 18381 if test no = "$lt_cv_dlopen"; then 18382 enable_dlopen=no 18383 else 18384 enable_dlopen=yes 18385 fi 18386 18387 case $lt_cv_dlopen in 18388 dlopen) 18389 save_CPPFLAGS=$CPPFLAGS 18390 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18391 18392 save_LDFLAGS=$LDFLAGS 18393 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18394 18395 save_LIBS=$LIBS 18396 LIBS="$lt_cv_dlopen_libs $LIBS" 18397 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18399$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18400if ${lt_cv_dlopen_self+:} false; then : 18401 $as_echo_n "(cached) " >&6 18402else 18403 if test yes = "$cross_compiling"; then : 18404 lt_cv_dlopen_self=cross 18405else 18406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18407 lt_status=$lt_dlunknown 18408 cat > conftest.$ac_ext <<_LT_EOF 18409#line $LINENO "configure" 18410#include "confdefs.h" 18411 18412#if HAVE_DLFCN_H 18413#include <dlfcn.h> 18414#endif 18415 18416#include <stdio.h> 18417 18418#ifdef RTLD_GLOBAL 18419# define LT_DLGLOBAL RTLD_GLOBAL 18420#else 18421# ifdef DL_GLOBAL 18422# define LT_DLGLOBAL DL_GLOBAL 18423# else 18424# define LT_DLGLOBAL 0 18425# endif 18426#endif 18427 18428/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18429 find out it does not work in some platform. */ 18430#ifndef LT_DLLAZY_OR_NOW 18431# ifdef RTLD_LAZY 18432# define LT_DLLAZY_OR_NOW RTLD_LAZY 18433# else 18434# ifdef DL_LAZY 18435# define LT_DLLAZY_OR_NOW DL_LAZY 18436# else 18437# ifdef RTLD_NOW 18438# define LT_DLLAZY_OR_NOW RTLD_NOW 18439# else 18440# ifdef DL_NOW 18441# define LT_DLLAZY_OR_NOW DL_NOW 18442# else 18443# define LT_DLLAZY_OR_NOW 0 18444# endif 18445# endif 18446# endif 18447# endif 18448#endif 18449 18450/* When -fvisibility=hidden is used, assume the code has been annotated 18451 correspondingly for the symbols needed. */ 18452#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18453int fnord () __attribute__((visibility("default"))); 18454#endif 18455 18456int fnord () { return 42; } 18457int main () 18458{ 18459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18460 int status = $lt_dlunknown; 18461 18462 if (self) 18463 { 18464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18465 else 18466 { 18467 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18468 else puts (dlerror ()); 18469 } 18470 /* dlclose (self); */ 18471 } 18472 else 18473 puts (dlerror ()); 18474 18475 return status; 18476} 18477_LT_EOF 18478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18479 (eval $ac_link) 2>&5 18480 ac_status=$? 18481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18482 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18483 (./conftest; exit; ) >&5 2>/dev/null 18484 lt_status=$? 18485 case x$lt_status in 18486 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18487 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18488 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18489 esac 18490 else : 18491 # compilation failed 18492 lt_cv_dlopen_self=no 18493 fi 18494fi 18495rm -fr conftest* 18496 18497 18498fi 18499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18500$as_echo "$lt_cv_dlopen_self" >&6; } 18501 18502 if test yes = "$lt_cv_dlopen_self"; then 18503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18505$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18506if ${lt_cv_dlopen_self_static+:} false; then : 18507 $as_echo_n "(cached) " >&6 18508else 18509 if test yes = "$cross_compiling"; then : 18510 lt_cv_dlopen_self_static=cross 18511else 18512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18513 lt_status=$lt_dlunknown 18514 cat > conftest.$ac_ext <<_LT_EOF 18515#line $LINENO "configure" 18516#include "confdefs.h" 18517 18518#if HAVE_DLFCN_H 18519#include <dlfcn.h> 18520#endif 18521 18522#include <stdio.h> 18523 18524#ifdef RTLD_GLOBAL 18525# define LT_DLGLOBAL RTLD_GLOBAL 18526#else 18527# ifdef DL_GLOBAL 18528# define LT_DLGLOBAL DL_GLOBAL 18529# else 18530# define LT_DLGLOBAL 0 18531# endif 18532#endif 18533 18534/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18535 find out it does not work in some platform. */ 18536#ifndef LT_DLLAZY_OR_NOW 18537# ifdef RTLD_LAZY 18538# define LT_DLLAZY_OR_NOW RTLD_LAZY 18539# else 18540# ifdef DL_LAZY 18541# define LT_DLLAZY_OR_NOW DL_LAZY 18542# else 18543# ifdef RTLD_NOW 18544# define LT_DLLAZY_OR_NOW RTLD_NOW 18545# else 18546# ifdef DL_NOW 18547# define LT_DLLAZY_OR_NOW DL_NOW 18548# else 18549# define LT_DLLAZY_OR_NOW 0 18550# endif 18551# endif 18552# endif 18553# endif 18554#endif 18555 18556/* When -fvisibility=hidden is used, assume the code has been annotated 18557 correspondingly for the symbols needed. */ 18558#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18559int fnord () __attribute__((visibility("default"))); 18560#endif 18561 18562int fnord () { return 42; } 18563int main () 18564{ 18565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18566 int status = $lt_dlunknown; 18567 18568 if (self) 18569 { 18570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18571 else 18572 { 18573 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18574 else puts (dlerror ()); 18575 } 18576 /* dlclose (self); */ 18577 } 18578 else 18579 puts (dlerror ()); 18580 18581 return status; 18582} 18583_LT_EOF 18584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18585 (eval $ac_link) 2>&5 18586 ac_status=$? 18587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18588 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18589 (./conftest; exit; ) >&5 2>/dev/null 18590 lt_status=$? 18591 case x$lt_status in 18592 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18593 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18594 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18595 esac 18596 else : 18597 # compilation failed 18598 lt_cv_dlopen_self_static=no 18599 fi 18600fi 18601rm -fr conftest* 18602 18603 18604fi 18605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18606$as_echo "$lt_cv_dlopen_self_static" >&6; } 18607 fi 18608 18609 CPPFLAGS=$save_CPPFLAGS 18610 LDFLAGS=$save_LDFLAGS 18611 LIBS=$save_LIBS 18612 ;; 18613 esac 18614 18615 case $lt_cv_dlopen_self in 18616 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18617 *) enable_dlopen_self=unknown ;; 18618 esac 18619 18620 case $lt_cv_dlopen_self_static in 18621 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18622 *) enable_dlopen_self_static=unknown ;; 18623 esac 18624fi 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642striplib= 18643old_striplib= 18644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18645$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18646if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18647 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18648 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18650$as_echo "yes" >&6; } 18651else 18652# FIXME - insert some real tests, host_os isn't really good enough 18653 case $host_os in 18654 darwin*) 18655 if test -n "$STRIP"; then 18656 striplib="$STRIP -x" 18657 old_striplib="$STRIP -S" 18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18659$as_echo "yes" >&6; } 18660 else 18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18662$as_echo "no" >&6; } 18663 fi 18664 ;; 18665 *) 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18667$as_echo "no" >&6; } 18668 ;; 18669 esac 18670fi 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 # Report what library types will actually be built 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18685$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18687$as_echo "$can_build_shared" >&6; } 18688 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18690$as_echo_n "checking whether to build shared libraries... " >&6; } 18691 test no = "$can_build_shared" && enable_shared=no 18692 18693 # On AIX, shared libraries and static libraries use the same namespace, and 18694 # are all built from PIC. 18695 case $host_os in 18696 aix3*) 18697 test yes = "$enable_shared" && enable_static=no 18698 if test -n "$RANLIB"; then 18699 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18700 postinstall_cmds='$RANLIB $lib' 18701 fi 18702 ;; 18703 18704 aix[4-9]*) 18705 if test ia64 != "$host_cpu"; then 18706 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18707 yes,aix,yes) ;; # shared object as lib.so file only 18708 yes,svr4,*) ;; # shared object as lib.so archive member only 18709 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18710 esac 18711 fi 18712 ;; 18713 esac 18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18715$as_echo "$enable_shared" >&6; } 18716 18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18718$as_echo_n "checking whether to build static libraries... " >&6; } 18719 # Make sure either enable_shared or enable_static is yes. 18720 test yes = "$enable_shared" || enable_static=yes 18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18722$as_echo "$enable_static" >&6; } 18723 18724 18725 18726 18727fi 18728ac_ext=c 18729ac_cpp='$CPP $CPPFLAGS' 18730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18732ac_compiler_gnu=$ac_cv_c_compiler_gnu 18733 18734CC=$lt_save_CC 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 ac_config_commands="$ac_config_commands libtool" 18751 18752 18753 18754 18755# Only expand once: 18756 18757 18758 18759# Checks for programs. 18760 18761 18762if test "x$GCC" = "xyes"; then 18763 CPPFLAGS="$CPPFLAGS -Wall" 18764fi 18765 18766 18767 18768# Define a configure option for an alternate module directory 18769 18770# Check whether --with-xorg-module-dir was given. 18771if test "${with_xorg_module_dir+set}" = set; then : 18772 withval=$with_xorg_module_dir; moduledir="$withval" 18773else 18774 moduledir="$libdir/xorg/modules" 18775fi 18776 18777 18778# Store the list of server defined optional extensions in REQUIRED_MODULES 18779 18780 18781 SAVE_CFLAGS="$CFLAGS" 18782 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18784/* end confdefs.h. */ 18785 18786#include "xorg-server.h" 18787#if !defined RANDR 18788#error RANDR not defined 18789#endif 18790 18791int 18792main () 18793{ 18794 18795 ; 18796 return 0; 18797} 18798_ACEOF 18799if ac_fn_c_try_compile "$LINENO"; then : 18800 _EXT_CHECK=yes 18801else 18802 _EXT_CHECK=no 18803fi 18804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18805 CFLAGS="$SAVE_CFLAGS" 18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18807$as_echo_n "checking if RANDR is defined... " >&6; } 18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18809$as_echo "$_EXT_CHECK" >&6; } 18810 if test "$_EXT_CHECK" != no; then 18811 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18812 fi 18813 18814 18815 18816 SAVE_CFLAGS="$CFLAGS" 18817 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18819/* end confdefs.h. */ 18820 18821#include "xorg-server.h" 18822#if !defined RENDER 18823#error RENDER not defined 18824#endif 18825 18826int 18827main () 18828{ 18829 18830 ; 18831 return 0; 18832} 18833_ACEOF 18834if ac_fn_c_try_compile "$LINENO"; then : 18835 _EXT_CHECK=yes 18836else 18837 _EXT_CHECK=no 18838fi 18839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18840 CFLAGS="$SAVE_CFLAGS" 18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18842$as_echo_n "checking if RENDER is defined... " >&6; } 18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18844$as_echo "$_EXT_CHECK" >&6; } 18845 if test "$_EXT_CHECK" != no; then 18846 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18847 fi 18848 18849 18850 18851 SAVE_CFLAGS="$CFLAGS" 18852 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18854/* end confdefs.h. */ 18855 18856#include "xorg-server.h" 18857#if !defined XV 18858#error XV not defined 18859#endif 18860 18861int 18862main () 18863{ 18864 18865 ; 18866 return 0; 18867} 18868_ACEOF 18869if ac_fn_c_try_compile "$LINENO"; then : 18870 _EXT_CHECK=yes 18871else 18872 _EXT_CHECK=no 18873fi 18874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18875 CFLAGS="$SAVE_CFLAGS" 18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18877$as_echo_n "checking if XV is defined... " >&6; } 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18879$as_echo "$_EXT_CHECK" >&6; } 18880 if test "$_EXT_CHECK" != no; then 18881 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18882 fi 18883 18884 18885 18886 SAVE_CFLAGS="$CFLAGS" 18887 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18889/* end confdefs.h. */ 18890 18891#include "xorg-server.h" 18892#if !defined DPMSExtension 18893#error DPMSExtension not defined 18894#endif 18895 18896int 18897main () 18898{ 18899 18900 ; 18901 return 0; 18902} 18903_ACEOF 18904if ac_fn_c_try_compile "$LINENO"; then : 18905 _EXT_CHECK=yes 18906else 18907 _EXT_CHECK=no 18908fi 18909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18910 CFLAGS="$SAVE_CFLAGS" 18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18912$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18914$as_echo "$_EXT_CHECK" >&6; } 18915 if test "$_EXT_CHECK" != no; then 18916 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18917 fi 18918 18919 18920# Checks for libraries. 18921 18922pkg_failed=no 18923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 18924$as_echo_n "checking for LIBDRM... " >&6; } 18925 18926if test -n "$LIBDRM_CFLAGS"; then 18927 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 18928 elif test -n "$PKG_CONFIG"; then 18929 if test -n "$PKG_CONFIG" && \ 18930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.58\""; } >&5 18931 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.58") 2>&5 18932 ac_status=$? 18933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18934 test $ac_status = 0; }; then 18935 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.58" 2>/dev/null` 18936 test "x$?" != "x0" && pkg_failed=yes 18937else 18938 pkg_failed=yes 18939fi 18940 else 18941 pkg_failed=untried 18942fi 18943if test -n "$LIBDRM_LIBS"; then 18944 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 18945 elif test -n "$PKG_CONFIG"; then 18946 if test -n "$PKG_CONFIG" && \ 18947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.58\""; } >&5 18948 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.58") 2>&5 18949 ac_status=$? 18950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18951 test $ac_status = 0; }; then 18952 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.58" 2>/dev/null` 18953 test "x$?" != "x0" && pkg_failed=yes 18954else 18955 pkg_failed=yes 18956fi 18957 else 18958 pkg_failed=untried 18959fi 18960 18961 18962 18963if test $pkg_failed = yes; then 18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18965$as_echo "no" >&6; } 18966 18967if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18968 _pkg_short_errors_supported=yes 18969else 18970 _pkg_short_errors_supported=no 18971fi 18972 if test $_pkg_short_errors_supported = yes; then 18973 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.58" 2>&1` 18974 else 18975 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.58" 2>&1` 18976 fi 18977 # Put the nasty error message in config.log where it belongs 18978 echo "$LIBDRM_PKG_ERRORS" >&5 18979 18980 as_fn_error $? "Package requirements (libdrm >= 2.4.58) were not met: 18981 18982$LIBDRM_PKG_ERRORS 18983 18984Consider adjusting the PKG_CONFIG_PATH environment variable if you 18985installed software in a non-standard prefix. 18986 18987Alternatively, you may set the environment variables LIBDRM_CFLAGS 18988and LIBDRM_LIBS to avoid the need to call pkg-config. 18989See the pkg-config man page for more details." "$LINENO" 5 18990elif test $pkg_failed = untried; then 18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18992$as_echo "no" >&6; } 18993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18995as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18996is in your PATH or set the PKG_CONFIG environment variable to the full 18997path to pkg-config. 18998 18999Alternatively, you may set the environment variables LIBDRM_CFLAGS 19000and LIBDRM_LIBS to avoid the need to call pkg-config. 19001See the pkg-config man page for more details. 19002 19003To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19004See \`config.log' for more details" "$LINENO" 5; } 19005else 19006 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 19007 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19009$as_echo "yes" >&6; } 19010 19011fi 19012 19013pkg_failed=no 19014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_AMDGPU" >&5 19015$as_echo_n "checking for LIBDRM_AMDGPU... " >&6; } 19016 19017if test -n "$LIBDRM_AMDGPU_CFLAGS"; then 19018 pkg_cv_LIBDRM_AMDGPU_CFLAGS="$LIBDRM_AMDGPU_CFLAGS" 19019 elif test -n "$PKG_CONFIG"; then 19020 if test -n "$PKG_CONFIG" && \ 19021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu\""; } >&5 19022 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu") 2>&5 19023 ac_status=$? 19024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19025 test $ac_status = 0; }; then 19026 pkg_cv_LIBDRM_AMDGPU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_amdgpu" 2>/dev/null` 19027 test "x$?" != "x0" && pkg_failed=yes 19028else 19029 pkg_failed=yes 19030fi 19031 else 19032 pkg_failed=untried 19033fi 19034if test -n "$LIBDRM_AMDGPU_LIBS"; then 19035 pkg_cv_LIBDRM_AMDGPU_LIBS="$LIBDRM_AMDGPU_LIBS" 19036 elif test -n "$PKG_CONFIG"; then 19037 if test -n "$PKG_CONFIG" && \ 19038 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu\""; } >&5 19039 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu") 2>&5 19040 ac_status=$? 19041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19042 test $ac_status = 0; }; then 19043 pkg_cv_LIBDRM_AMDGPU_LIBS=`$PKG_CONFIG --libs "libdrm_amdgpu" 2>/dev/null` 19044 test "x$?" != "x0" && pkg_failed=yes 19045else 19046 pkg_failed=yes 19047fi 19048 else 19049 pkg_failed=untried 19050fi 19051 19052 19053 19054if test $pkg_failed = yes; then 19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19056$as_echo "no" >&6; } 19057 19058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19059 _pkg_short_errors_supported=yes 19060else 19061 _pkg_short_errors_supported=no 19062fi 19063 if test $_pkg_short_errors_supported = yes; then 19064 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_amdgpu" 2>&1` 19065 else 19066 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_amdgpu" 2>&1` 19067 fi 19068 # Put the nasty error message in config.log where it belongs 19069 echo "$LIBDRM_AMDGPU_PKG_ERRORS" >&5 19070 19071 as_fn_error $? "Package requirements (libdrm_amdgpu) were not met: 19072 19073$LIBDRM_AMDGPU_PKG_ERRORS 19074 19075Consider adjusting the PKG_CONFIG_PATH environment variable if you 19076installed software in a non-standard prefix. 19077 19078Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS 19079and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config. 19080See the pkg-config man page for more details." "$LINENO" 5 19081elif test $pkg_failed = untried; then 19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19083$as_echo "no" >&6; } 19084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19086as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19087is in your PATH or set the PKG_CONFIG environment variable to the full 19088path to pkg-config. 19089 19090Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS 19091and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config. 19092See the pkg-config man page for more details. 19093 19094To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19095See \`config.log' for more details" "$LINENO" 5; } 19096else 19097 LIBDRM_AMDGPU_CFLAGS=$pkg_cv_LIBDRM_AMDGPU_CFLAGS 19098 LIBDRM_AMDGPU_LIBS=$pkg_cv_LIBDRM_AMDGPU_LIBS 19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19100$as_echo "yes" >&6; } 19101 19102fi 19103 19104pkg_failed=no 19105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 19106$as_echo_n "checking for GBM... " >&6; } 19107 19108if test -n "$GBM_CFLAGS"; then 19109 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 19110 elif test -n "$PKG_CONFIG"; then 19111 if test -n "$PKG_CONFIG" && \ 19112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 19113 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 19114 ac_status=$? 19115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19116 test $ac_status = 0; }; then 19117 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm" 2>/dev/null` 19118 test "x$?" != "x0" && pkg_failed=yes 19119else 19120 pkg_failed=yes 19121fi 19122 else 19123 pkg_failed=untried 19124fi 19125if test -n "$GBM_LIBS"; then 19126 pkg_cv_GBM_LIBS="$GBM_LIBS" 19127 elif test -n "$PKG_CONFIG"; then 19128 if test -n "$PKG_CONFIG" && \ 19129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 19130 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 19131 ac_status=$? 19132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19133 test $ac_status = 0; }; then 19134 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm" 2>/dev/null` 19135 test "x$?" != "x0" && pkg_failed=yes 19136else 19137 pkg_failed=yes 19138fi 19139 else 19140 pkg_failed=untried 19141fi 19142 19143 19144 19145if test $pkg_failed = yes; then 19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19147$as_echo "no" >&6; } 19148 19149if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19150 _pkg_short_errors_supported=yes 19151else 19152 _pkg_short_errors_supported=no 19153fi 19154 if test $_pkg_short_errors_supported = yes; then 19155 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm" 2>&1` 19156 else 19157 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm" 2>&1` 19158 fi 19159 # Put the nasty error message in config.log where it belongs 19160 echo "$GBM_PKG_ERRORS" >&5 19161 19162 as_fn_error $? "Package requirements (gbm) were not met: 19163 19164$GBM_PKG_ERRORS 19165 19166Consider adjusting the PKG_CONFIG_PATH environment variable if you 19167installed software in a non-standard prefix. 19168 19169Alternatively, you may set the environment variables GBM_CFLAGS 19170and GBM_LIBS to avoid the need to call pkg-config. 19171See the pkg-config man page for more details." "$LINENO" 5 19172elif test $pkg_failed = untried; then 19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19174$as_echo "no" >&6; } 19175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19177as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19178is in your PATH or set the PKG_CONFIG environment variable to the full 19179path to pkg-config. 19180 19181Alternatively, you may set the environment variables GBM_CFLAGS 19182and GBM_LIBS to avoid the need to call pkg-config. 19183See the pkg-config man page for more details. 19184 19185To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19186See \`config.log' for more details" "$LINENO" 5; } 19187else 19188 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 19189 GBM_LIBS=$pkg_cv_GBM_LIBS 19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19191$as_echo "yes" >&6; } 19192 19193fi 19194 19195# Obtain compiler/linker options for the driver dependencies 19196 19197pkg_failed=no 19198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19199$as_echo_n "checking for XORG... " >&6; } 19200 19201if test -n "$XORG_CFLAGS"; then 19202 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19203 elif test -n "$PKG_CONFIG"; then 19204 if test -n "$PKG_CONFIG" && \ 19205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.9 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19206 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19207 ac_status=$? 19208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19209 test $ac_status = 0; }; then 19210 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19211 test "x$?" != "x0" && pkg_failed=yes 19212else 19213 pkg_failed=yes 19214fi 19215 else 19216 pkg_failed=untried 19217fi 19218if test -n "$XORG_LIBS"; then 19219 pkg_cv_XORG_LIBS="$XORG_LIBS" 19220 elif test -n "$PKG_CONFIG"; then 19221 if test -n "$PKG_CONFIG" && \ 19222 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.9 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19223 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19224 ac_status=$? 19225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19226 test $ac_status = 0; }; then 19227 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19228 test "x$?" != "x0" && pkg_failed=yes 19229else 19230 pkg_failed=yes 19231fi 19232 else 19233 pkg_failed=untried 19234fi 19235 19236 19237 19238if test $pkg_failed = yes; then 19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19240$as_echo "no" >&6; } 19241 19242if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19243 _pkg_short_errors_supported=yes 19244else 19245 _pkg_short_errors_supported=no 19246fi 19247 if test $_pkg_short_errors_supported = yes; then 19248 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19249 else 19250 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19251 fi 19252 # Put the nasty error message in config.log where it belongs 19253 echo "$XORG_PKG_ERRORS" >&5 19254 19255 as_fn_error $? "Package requirements (xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met: 19256 19257$XORG_PKG_ERRORS 19258 19259Consider adjusting the PKG_CONFIG_PATH environment variable if you 19260installed software in a non-standard prefix. 19261 19262Alternatively, you may set the environment variables XORG_CFLAGS 19263and XORG_LIBS to avoid the need to call pkg-config. 19264See the pkg-config man page for more details." "$LINENO" 5 19265elif test $pkg_failed = untried; then 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19267$as_echo "no" >&6; } 19268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19270as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19271is in your PATH or set the PKG_CONFIG environment variable to the full 19272path to pkg-config. 19273 19274Alternatively, you may set the environment variables XORG_CFLAGS 19275and XORG_LIBS to avoid the need to call pkg-config. 19276See the pkg-config man page for more details. 19277 19278To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19279See \`config.log' for more details" "$LINENO" 5; } 19280else 19281 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19282 XORG_LIBS=$pkg_cv_XORG_LIBS 19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19284$as_echo "yes" >&6; } 19285 19286fi 19287 19288pkg_failed=no 19289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19290$as_echo_n "checking for XEXT... " >&6; } 19291 19292if test -n "$XEXT_CFLAGS"; then 19293 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19294 elif test -n "$PKG_CONFIG"; then 19295 if test -n "$PKG_CONFIG" && \ 19296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19297 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19298 ac_status=$? 19299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19300 test $ac_status = 0; }; then 19301 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19302 test "x$?" != "x0" && pkg_failed=yes 19303else 19304 pkg_failed=yes 19305fi 19306 else 19307 pkg_failed=untried 19308fi 19309if test -n "$XEXT_LIBS"; then 19310 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19311 elif test -n "$PKG_CONFIG"; then 19312 if test -n "$PKG_CONFIG" && \ 19313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19314 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19315 ac_status=$? 19316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19317 test $ac_status = 0; }; then 19318 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19319 test "x$?" != "x0" && pkg_failed=yes 19320else 19321 pkg_failed=yes 19322fi 19323 else 19324 pkg_failed=untried 19325fi 19326 19327 19328 19329if test $pkg_failed = yes; then 19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19331$as_echo "no" >&6; } 19332 19333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19334 _pkg_short_errors_supported=yes 19335else 19336 _pkg_short_errors_supported=no 19337fi 19338 if test $_pkg_short_errors_supported = yes; then 19339 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19340 else 19341 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19342 fi 19343 # Put the nasty error message in config.log where it belongs 19344 echo "$XEXT_PKG_ERRORS" >&5 19345 19346 HAVE_XEXTPROTO_71="no" 19347elif test $pkg_failed = untried; then 19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19349$as_echo "no" >&6; } 19350 HAVE_XEXTPROTO_71="no" 19351else 19352 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19353 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19355$as_echo "yes" >&6; } 19356 HAVE_XEXTPROTO_71="yes"; 19357$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19358 19359fi 19360 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19361 HAVE_XEXTPROTO_71_TRUE= 19362 HAVE_XEXTPROTO_71_FALSE='#' 19363else 19364 HAVE_XEXTPROTO_71_TRUE='#' 19365 HAVE_XEXTPROTO_71_FALSE= 19366fi 19367 19368 19369# Define a configure option for an alternate X Server configuration directory 19370# Section "OutputClass" is only supported as of xserver 1.16 19371if test -n "$PKG_CONFIG" && \ 19372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5 19373 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5 19374 ac_status=$? 19375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19376 test $ac_status = 0; }; then 19377 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server` 19378else 19379 sysconfigdir="" 19380fi 19381 19382# Check whether --with-xorg-conf-dir was given. 19383if test "${with_xorg_conf_dir+set}" = set; then : 19384 withval=$with_xorg_conf_dir; configdir="$withval" 19385else 19386 configdir="$sysconfigdir" 19387fi 19388 19389 19390 if test "x$sysconfigdir" != "x"; then 19391 HAS_XORG_CONF_DIR_TRUE= 19392 HAS_XORG_CONF_DIR_FALSE='#' 19393else 19394 HAS_XORG_CONF_DIR_TRUE='#' 19395 HAS_XORG_CONF_DIR_FALSE= 19396fi 19397 19398 19399# Check whether --enable-udev was given. 19400if test "${enable_udev+set}" = set; then : 19401 enableval=$enable_udev; enable_udev="$enableval" 19402else 19403 enable_udev=auto 19404fi 19405 19406if test "x$enable_udev" != "xno"; then 19407 19408pkg_failed=no 19409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 19410$as_echo_n "checking for LIBUDEV... " >&6; } 19411 19412if test -n "$LIBUDEV_CFLAGS"; then 19413 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 19414 elif test -n "$PKG_CONFIG"; then 19415 if test -n "$PKG_CONFIG" && \ 19416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19417 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19418 ac_status=$? 19419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19420 test $ac_status = 0; }; then 19421 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 19422 test "x$?" != "x0" && pkg_failed=yes 19423else 19424 pkg_failed=yes 19425fi 19426 else 19427 pkg_failed=untried 19428fi 19429if test -n "$LIBUDEV_LIBS"; then 19430 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 19431 elif test -n "$PKG_CONFIG"; then 19432 if test -n "$PKG_CONFIG" && \ 19433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19434 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19435 ac_status=$? 19436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19437 test $ac_status = 0; }; then 19438 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 19439 test "x$?" != "x0" && pkg_failed=yes 19440else 19441 pkg_failed=yes 19442fi 19443 else 19444 pkg_failed=untried 19445fi 19446 19447 19448 19449if test $pkg_failed = yes; then 19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19451$as_echo "no" >&6; } 19452 19453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19454 _pkg_short_errors_supported=yes 19455else 19456 _pkg_short_errors_supported=no 19457fi 19458 if test $_pkg_short_errors_supported = yes; then 19459 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 19460 else 19461 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 19462 fi 19463 # Put the nasty error message in config.log where it belongs 19464 echo "$LIBUDEV_PKG_ERRORS" >&5 19465 19466 LIBUDEV=no 19467elif test $pkg_failed = untried; then 19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19469$as_echo "no" >&6; } 19470 LIBUDEV=no 19471else 19472 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 19473 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19475$as_echo "yes" >&6; } 19476 LIBUDEV=yes 19477fi 19478 if test "x$LIBUDEV" = xyes; then 19479 19480$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 19481 19482 elif test "x$enable_udev" != "xauto"; then 19483 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5 19484 fi 19485fi 19486 if test x$LIBUDEV = xyes; then 19487 LIBUDEV_TRUE= 19488 LIBUDEV_FALSE='#' 19489else 19490 LIBUDEV_TRUE='#' 19491 LIBUDEV_FALSE= 19492fi 19493 19494 19495SAVE_CPPFLAGS="$CPPFLAGS" 19496CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19497 19498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5 19499$as_echo_n "checking whether to include GLAMOR support... " >&6; } 19500# Check whether --enable-glamor was given. 19501if test "${enable_glamor+set}" = set; then : 19502 enableval=$enable_glamor; GLAMOR="$enableval" 19503else 19504 GLAMOR=yes 19505fi 19506 19507 19508if test "x$GLAMOR" != "xno"; then 19509 for ac_header in glamor.h 19510do : 19511 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\" 19512" 19513if test "x$ac_cv_header_glamor_h" = xyes; then : 19514 cat >>confdefs.h <<_ACEOF 19515#define HAVE_GLAMOR_H 1 19516_ACEOF 19517 GLAMOR_H="yes" 19518else 19519 GLAMOR_H="no" 19520fi 19521 19522done 19523 19524 19525 if test "x$GLAMOR_H" = xyes; then 19526 ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\" 19527 #include \"glamor.h\" 19528" 19529if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then : 19530 GLAMOR_XSERVER="yes" 19531else 19532 GLAMOR_XSERVER="no" 19533fi 19534 19535 19536 ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\" 19537 #include \"glamor.h\" 19538" 19539if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then : 19540 19541$as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h 19542 19543fi 19544 19545 19546 ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\" 19547 #include \"glamor.h\" 19548" 19549if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then : 19550 19551$as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h 19552 19553fi 19554 19555 fi 19556 19557 19558pkg_failed=no 19559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGL" >&5 19560$as_echo_n "checking for LIBGL... " >&6; } 19561 19562if test -n "$LIBGL_CFLAGS"; then 19563 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS" 19564 elif test -n "$PKG_CONFIG"; then 19565 if test -n "$PKG_CONFIG" && \ 19566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 19567 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 19568 ac_status=$? 19569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19570 test $ac_status = 0; }; then 19571 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null` 19572 test "x$?" != "x0" && pkg_failed=yes 19573else 19574 pkg_failed=yes 19575fi 19576 else 19577 pkg_failed=untried 19578fi 19579if test -n "$LIBGL_LIBS"; then 19580 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS" 19581 elif test -n "$PKG_CONFIG"; then 19582 if test -n "$PKG_CONFIG" && \ 19583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 19584 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 19585 ac_status=$? 19586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19587 test $ac_status = 0; }; then 19588 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null` 19589 test "x$?" != "x0" && pkg_failed=yes 19590else 19591 pkg_failed=yes 19592fi 19593 else 19594 pkg_failed=untried 19595fi 19596 19597 19598 19599if test $pkg_failed = yes; then 19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19601$as_echo "no" >&6; } 19602 19603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19604 _pkg_short_errors_supported=yes 19605else 19606 _pkg_short_errors_supported=no 19607fi 19608 if test $_pkg_short_errors_supported = yes; then 19609 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` 19610 else 19611 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` 19612 fi 19613 # Put the nasty error message in config.log where it belongs 19614 echo "$LIBGL_PKG_ERRORS" >&5 19615 19616 as_fn_error $? "Package requirements (gl) were not met: 19617 19618$LIBGL_PKG_ERRORS 19619 19620Consider adjusting the PKG_CONFIG_PATH environment variable if you 19621installed software in a non-standard prefix. 19622 19623Alternatively, you may set the environment variables LIBGL_CFLAGS 19624and LIBGL_LIBS to avoid the need to call pkg-config. 19625See the pkg-config man page for more details." "$LINENO" 5 19626elif test $pkg_failed = untried; then 19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19628$as_echo "no" >&6; } 19629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19631as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19632is in your PATH or set the PKG_CONFIG environment variable to the full 19633path to pkg-config. 19634 19635Alternatively, you may set the environment variables LIBGL_CFLAGS 19636and LIBGL_LIBS to avoid the need to call pkg-config. 19637See the pkg-config man page for more details. 19638 19639To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19640See \`config.log' for more details" "$LINENO" 5; } 19641else 19642 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS 19643 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS 19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19645$as_echo "yes" >&6; } 19646 19647fi 19648 19649 if test "x$GLAMOR_XSERVER" != xyes; then 19650 19651pkg_failed=no 19652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5 19653$as_echo_n "checking for LIBGLAMOR... " >&6; } 19654 19655if test -n "$LIBGLAMOR_CFLAGS"; then 19656 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS" 19657 elif test -n "$PKG_CONFIG"; then 19658 if test -n "$PKG_CONFIG" && \ 19659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19660 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19661 ac_status=$? 19662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19663 test $ac_status = 0; }; then 19664 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null` 19665 test "x$?" != "x0" && pkg_failed=yes 19666else 19667 pkg_failed=yes 19668fi 19669 else 19670 pkg_failed=untried 19671fi 19672if test -n "$LIBGLAMOR_LIBS"; then 19673 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS" 19674 elif test -n "$PKG_CONFIG"; then 19675 if test -n "$PKG_CONFIG" && \ 19676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19677 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19678 ac_status=$? 19679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19680 test $ac_status = 0; }; then 19681 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null` 19682 test "x$?" != "x0" && pkg_failed=yes 19683else 19684 pkg_failed=yes 19685fi 19686 else 19687 pkg_failed=untried 19688fi 19689 19690 19691 19692if test $pkg_failed = yes; then 19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19694$as_echo "no" >&6; } 19695 19696if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19697 _pkg_short_errors_supported=yes 19698else 19699 _pkg_short_errors_supported=no 19700fi 19701 if test $_pkg_short_errors_supported = yes; then 19702 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19703 else 19704 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19705 fi 19706 # Put the nasty error message in config.log where it belongs 19707 echo "$LIBGLAMOR_PKG_ERRORS" >&5 19708 19709 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met: 19710 19711$LIBGLAMOR_PKG_ERRORS 19712 19713Consider adjusting the PKG_CONFIG_PATH environment variable if you 19714installed software in a non-standard prefix. 19715 19716Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19717and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19718See the pkg-config man page for more details." "$LINENO" 5 19719elif test $pkg_failed = untried; then 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19721$as_echo "no" >&6; } 19722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19724as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19725is in your PATH or set the PKG_CONFIG environment variable to the full 19726path to pkg-config. 19727 19728Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19729and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19730See the pkg-config man page for more details. 19731 19732To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19733See \`config.log' for more details" "$LINENO" 5; } 19734else 19735 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS 19736 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19738$as_echo "yes" >&6; } 19739 19740fi 19741 19742pkg_failed=no 19743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5 19744$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; } 19745 19746if test -n "$LIBGLAMOR_EGL_CFLAGS"; then 19747 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS" 19748 elif test -n "$PKG_CONFIG"; then 19749 if test -n "$PKG_CONFIG" && \ 19750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19751 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19752 ac_status=$? 19753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19754 test $ac_status = 0; }; then 19755 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null` 19756 test "x$?" != "x0" && pkg_failed=yes 19757else 19758 pkg_failed=yes 19759fi 19760 else 19761 pkg_failed=untried 19762fi 19763if test -n "$LIBGLAMOR_EGL_LIBS"; then 19764 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS" 19765 elif test -n "$PKG_CONFIG"; then 19766 if test -n "$PKG_CONFIG" && \ 19767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19768 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19769 ac_status=$? 19770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19771 test $ac_status = 0; }; then 19772 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null` 19773 test "x$?" != "x0" && pkg_failed=yes 19774else 19775 pkg_failed=yes 19776fi 19777 else 19778 pkg_failed=untried 19779fi 19780 19781 19782 19783if test $pkg_failed = yes; then 19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19785$as_echo "no" >&6; } 19786 19787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19788 _pkg_short_errors_supported=yes 19789else 19790 _pkg_short_errors_supported=no 19791fi 19792 if test $_pkg_short_errors_supported = yes; then 19793 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1` 19794 else 19795 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1` 19796 fi 19797 # Put the nasty error message in config.log where it belongs 19798 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5 19799 19800 as_fn_error $? "Package requirements (glamor-egl) were not met: 19801 19802$LIBGLAMOR_EGL_PKG_ERRORS 19803 19804Consider adjusting the PKG_CONFIG_PATH environment variable if you 19805installed software in a non-standard prefix. 19806 19807Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19808and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19809See the pkg-config man page for more details." "$LINENO" 5 19810elif test $pkg_failed = untried; then 19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19812$as_echo "no" >&6; } 19813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19815as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19816is in your PATH or set the PKG_CONFIG environment variable to the full 19817path to pkg-config. 19818 19819Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19820and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19821See the pkg-config man page for more details. 19822 19823To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19824See \`config.log' for more details" "$LINENO" 5; } 19825else 19826 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS 19827 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS 19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19829$as_echo "yes" >&6; } 19830 19831fi 19832 fi 19833 19834$as_echo "#define USE_GLAMOR 1" >>confdefs.h 19835 19836else 19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5 19838$as_echo "$GLAMOR" >&6; } 19839fi 19840 if test x$GLAMOR != xno; then 19841 GLAMOR_TRUE= 19842 GLAMOR_FALSE='#' 19843else 19844 GLAMOR_TRUE='#' 19845 GLAMOR_FALSE= 19846fi 19847 19848 19849ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h> 19850 #include <X11/Xfuncproto.h> 19851 #include <X11/extensions/renderproto.h> 19852 #include <xorg-server.h> 19853 #include <picture.h> 19854 #include <glyphstr.h> 19855 #include <fbpict.h> 19856" 19857if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then : 19858 19859$as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h 19860 19861fi 19862 19863 19864ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h> 19865 #include <xf86Cursor.h> 19866" 19867if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then : 19868 19869$as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h 19870 19871fi 19872 19873 19874ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h> 19875 #include \"xorg-server.h\" 19876 #include \"list.h\" 19877" 19878if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then : 19879 19880$as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h 19881 19882fi 19883 19884 19885ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 19886 #include <gbm.h> 19887" 19888if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then : 19889 19890$as_echo "#define HAVE_GBM_BO_USE_LINEAR 1" >>confdefs.h 19891 19892fi 19893 19894 19895for ac_header in misyncshm.h 19896do : 19897 ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h> 19898 #include <X11/Xfuncproto.h> 19899 #include <xorg-server.h> 19900 #include <screenint.h> 19901" 19902if test "x$ac_cv_header_misyncshm_h" = xyes; then : 19903 cat >>confdefs.h <<_ACEOF 19904#define HAVE_MISYNCSHM_H 1 19905_ACEOF 19906 19907fi 19908 19909done 19910 19911 19912for ac_header in present.h 19913do : 19914 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h> 19915 #include <X11/Xproto.h> 19916 #include <X11/X.h> 19917 #include \"xorg-server.h\" 19918" 19919if test "x$ac_cv_header_present_h" = xyes; then : 19920 cat >>confdefs.h <<_ACEOF 19921#define HAVE_PRESENT_H 1 19922_ACEOF 19923 19924fi 19925 19926done 19927 19928 19929for ac_header in dri3.h 19930do : 19931 ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h> 19932 #include <xorg-server.h> 19933" 19934if test "x$ac_cv_header_dri3_h" = xyes; then : 19935 cat >>confdefs.h <<_ACEOF 19936#define HAVE_DRI3_H 1 19937_ACEOF 19938 19939fi 19940 19941done 19942 19943 19944CPPFLAGS="$SAVE_CPPFLAGS" 19945 19946# Checks for headers/macros for byte swapping 19947# Known variants: 19948# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 19949# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 19950# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 19951# and a fallback to local macros if none of the above are found 19952 19953# if <byteswap.h> is found, assume it's the correct version 19954for ac_header in byteswap.h 19955do : 19956 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 19957if test "x$ac_cv_header_byteswap_h" = xyes; then : 19958 cat >>confdefs.h <<_ACEOF 19959#define HAVE_BYTESWAP_H 1 19960_ACEOF 19961 19962fi 19963 19964done 19965 19966 19967# if <sys/endian.h> is found, have to check which version 19968ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 19969if test "x$ac_cv_header_sys_endian_h" = xyes; then : 19970 HAVE_SYS_ENDIAN_H="yes" 19971else 19972 HAVE_SYS_ENDIAN_H="no" 19973fi 19974 19975 19976 19977if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 19979$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 19980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19981/* end confdefs.h. */ 19982 19983#include <sys/types.h> 19984#include <sys/endian.h> 19985 19986int 19987main () 19988{ 19989 19990int a = 1, b; 19991b = __swap16(a); 19992 19993 ; 19994 return 0; 19995} 19996 19997_ACEOF 19998if ac_fn_c_try_link "$LINENO"; then : 19999 SYS_ENDIAN__SWAP='yes' 20000else 20001 SYS_ENDIAN__SWAP='no' 20002fi 20003rm -f core conftest.err conftest.$ac_objext \ 20004 conftest$ac_exeext conftest.$ac_ext 20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 20006$as_echo "$SYS_ENDIAN__SWAP" >&6; } 20007 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 20009$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20011/* end confdefs.h. */ 20012 20013#include <sys/types.h> 20014#include <sys/endian.h> 20015 20016int 20017main () 20018{ 20019 20020int a = 1, b; 20021b = bswap16(a); 20022 20023 ; 20024 return 0; 20025} 20026 20027_ACEOF 20028if ac_fn_c_try_link "$LINENO"; then : 20029 SYS_ENDIAN_BSWAP='yes' 20030else 20031 SYS_ENDIAN_BSWAP='no' 20032fi 20033rm -f core conftest.err conftest.$ac_objext \ 20034 conftest$ac_exeext conftest.$ac_ext 20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 20036$as_echo "$SYS_ENDIAN_BSWAP" >&6; } 20037 20038 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 20039 USE_SYS_ENDIAN_H=yes 20040 BSWAP=bswap 20041 else 20042 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 20043 USE_SYS_ENDIAN_H=yes 20044 BSWAP=__swap 20045 else 20046 USE_SYS_ENDIAN_H=no 20047 fi 20048 fi 20049 20050 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 20051 20052$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h 20053 20054 20055cat >>confdefs.h <<_ACEOF 20056#define bswap_16 ${BSWAP}16 20057_ACEOF 20058 20059 20060cat >>confdefs.h <<_ACEOF 20061#define bswap_32 ${BSWAP}32 20062_ACEOF 20063 20064 20065cat >>confdefs.h <<_ACEOF 20066#define bswap_64 ${BSWAP}64 20067_ACEOF 20068 20069 fi 20070fi 20071 20072 20073 20074DRIVER_NAME=amdgpu 20075 20076 20077ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile" 20078 20079cat >confcache <<\_ACEOF 20080# This file is a shell script that caches the results of configure 20081# tests run on this system so they can be shared between configure 20082# scripts and configure runs, see configure's option --config-cache. 20083# It is not useful on other systems. If it contains results you don't 20084# want to keep, you may remove or edit it. 20085# 20086# config.status only pays attention to the cache file if you give it 20087# the --recheck option to rerun configure. 20088# 20089# `ac_cv_env_foo' variables (set or unset) will be overridden when 20090# loading this file, other *unset* `ac_cv_foo' will be assigned the 20091# following values. 20092 20093_ACEOF 20094 20095# The following way of writing the cache mishandles newlines in values, 20096# but we know of no workaround that is simple, portable, and efficient. 20097# So, we kill variables containing newlines. 20098# Ultrix sh set writes to stderr and can't be redirected directly, 20099# and sets the high bit in the cache file unless we assign to the vars. 20100( 20101 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20102 eval ac_val=\$$ac_var 20103 case $ac_val in #( 20104 *${as_nl}*) 20105 case $ac_var in #( 20106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20108 esac 20109 case $ac_var in #( 20110 _ | IFS | as_nl) ;; #( 20111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20112 *) { eval $ac_var=; unset $ac_var;} ;; 20113 esac ;; 20114 esac 20115 done 20116 20117 (set) 2>&1 | 20118 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20119 *${as_nl}ac_space=\ *) 20120 # `set' does not quote correctly, so add quotes: double-quote 20121 # substitution turns \\\\ into \\, and sed turns \\ into \. 20122 sed -n \ 20123 "s/'/'\\\\''/g; 20124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20125 ;; #( 20126 *) 20127 # `set' quotes correctly as required by POSIX, so do not add quotes. 20128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20129 ;; 20130 esac | 20131 sort 20132) | 20133 sed ' 20134 /^ac_cv_env_/b end 20135 t clear 20136 :clear 20137 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20138 t end 20139 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20140 :end' >>confcache 20141if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20142 if test -w "$cache_file"; then 20143 if test "x$cache_file" != "x/dev/null"; then 20144 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20145$as_echo "$as_me: updating cache $cache_file" >&6;} 20146 if test ! -f "$cache_file" || test -h "$cache_file"; then 20147 cat confcache >"$cache_file" 20148 else 20149 case $cache_file in #( 20150 */* | ?:*) 20151 mv -f confcache "$cache_file"$$ && 20152 mv -f "$cache_file"$$ "$cache_file" ;; #( 20153 *) 20154 mv -f confcache "$cache_file" ;; 20155 esac 20156 fi 20157 fi 20158 else 20159 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20160$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20161 fi 20162fi 20163rm -f confcache 20164 20165test "x$prefix" = xNONE && prefix=$ac_default_prefix 20166# Let make expand exec_prefix. 20167test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20168 20169DEFS=-DHAVE_CONFIG_H 20170 20171ac_libobjs= 20172ac_ltlibobjs= 20173U= 20174for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20175 # 1. Remove the extension, and $U if already installed. 20176 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20177 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20178 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20179 # will be set to the directory where LIBOBJS objects are built. 20180 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20181 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20182done 20183LIBOBJS=$ac_libobjs 20184 20185LTLIBOBJS=$ac_ltlibobjs 20186 20187 20188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20189$as_echo_n "checking that generated files are newer than configure... " >&6; } 20190 if test -n "$am_sleep_pid"; then 20191 # Hide warnings about reused PIDs. 20192 wait $am_sleep_pid 2>/dev/null 20193 fi 20194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20195$as_echo "done" >&6; } 20196 if test -n "$EXEEXT"; then 20197 am__EXEEXT_TRUE= 20198 am__EXEEXT_FALSE='#' 20199else 20200 am__EXEEXT_TRUE='#' 20201 am__EXEEXT_FALSE= 20202fi 20203 20204if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20205 as_fn_error $? "conditional \"AMDEP\" was never defined. 20206Usually this means the macro was only invoked conditionally." "$LINENO" 5 20207fi 20208if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20209 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20210Usually this means the macro was only invoked conditionally." "$LINENO" 5 20211fi 20212if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20213 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20214Usually this means the macro was only invoked conditionally." "$LINENO" 5 20215fi 20216if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20217 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20218Usually this means the macro was only invoked conditionally." "$LINENO" 5 20219fi 20220if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then 20221 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined. 20222Usually this means the macro was only invoked conditionally." "$LINENO" 5 20223fi 20224if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20225 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20226Usually this means the macro was only invoked conditionally." "$LINENO" 5 20227fi 20228if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 20229 as_fn_error $? "conditional \"GLAMOR\" was never defined. 20230Usually this means the macro was only invoked conditionally." "$LINENO" 5 20231fi 20232 20233: "${CONFIG_STATUS=./config.status}" 20234ac_write_fail=0 20235ac_clean_files_save=$ac_clean_files 20236ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20237{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20238$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20239as_write_fail=0 20240cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20241#! $SHELL 20242# Generated by $as_me. 20243# Run this file to recreate the current configuration. 20244# Compiler output produced by configure, useful for debugging 20245# configure, is in config.log if it exists. 20246 20247debug=false 20248ac_cs_recheck=false 20249ac_cs_silent=false 20250 20251SHELL=\${CONFIG_SHELL-$SHELL} 20252export SHELL 20253_ASEOF 20254cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20255## -------------------- ## 20256## M4sh Initialization. ## 20257## -------------------- ## 20258 20259# Be more Bourne compatible 20260DUALCASE=1; export DUALCASE # for MKS sh 20261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20262 emulate sh 20263 NULLCMD=: 20264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20265 # is contrary to our usage. Disable this feature. 20266 alias -g '${1+"$@"}'='"$@"' 20267 setopt NO_GLOB_SUBST 20268else 20269 case `(set -o) 2>/dev/null` in #( 20270 *posix*) : 20271 set -o posix ;; #( 20272 *) : 20273 ;; 20274esac 20275fi 20276 20277 20278as_nl=' 20279' 20280export as_nl 20281# Printing a long string crashes Solaris 7 /usr/bin/printf. 20282as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20283as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20284as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20285# Prefer a ksh shell builtin over an external printf program on Solaris, 20286# but without wasting forks for bash or zsh. 20287if test -z "$BASH_VERSION$ZSH_VERSION" \ 20288 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20289 as_echo='print -r --' 20290 as_echo_n='print -rn --' 20291elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20292 as_echo='printf %s\n' 20293 as_echo_n='printf %s' 20294else 20295 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20296 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20297 as_echo_n='/usr/ucb/echo -n' 20298 else 20299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20300 as_echo_n_body='eval 20301 arg=$1; 20302 case $arg in #( 20303 *"$as_nl"*) 20304 expr "X$arg" : "X\\(.*\\)$as_nl"; 20305 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20306 esac; 20307 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20308 ' 20309 export as_echo_n_body 20310 as_echo_n='sh -c $as_echo_n_body as_echo' 20311 fi 20312 export as_echo_body 20313 as_echo='sh -c $as_echo_body as_echo' 20314fi 20315 20316# The user is always right. 20317if test "${PATH_SEPARATOR+set}" != set; then 20318 PATH_SEPARATOR=: 20319 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20320 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20321 PATH_SEPARATOR=';' 20322 } 20323fi 20324 20325 20326# IFS 20327# We need space, tab and new line, in precisely that order. Quoting is 20328# there to prevent editors from complaining about space-tab. 20329# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20330# splitting by setting IFS to empty value.) 20331IFS=" "" $as_nl" 20332 20333# Find who we are. Look in the path if we contain no directory separator. 20334as_myself= 20335case $0 in #(( 20336 *[\\/]* ) as_myself=$0 ;; 20337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20338for as_dir in $PATH 20339do 20340 IFS=$as_save_IFS 20341 test -z "$as_dir" && as_dir=. 20342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20343 done 20344IFS=$as_save_IFS 20345 20346 ;; 20347esac 20348# We did not find ourselves, most probably we were run as `sh COMMAND' 20349# in which case we are not to be found in the path. 20350if test "x$as_myself" = x; then 20351 as_myself=$0 20352fi 20353if test ! -f "$as_myself"; then 20354 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20355 exit 1 20356fi 20357 20358# Unset variables that we do not need and which cause bugs (e.g. in 20359# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20360# suppresses any "Segmentation fault" message there. '((' could 20361# trigger a bug in pdksh 5.2.14. 20362for as_var in BASH_ENV ENV MAIL MAILPATH 20363do eval test x\${$as_var+set} = xset \ 20364 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20365done 20366PS1='$ ' 20367PS2='> ' 20368PS4='+ ' 20369 20370# NLS nuisances. 20371LC_ALL=C 20372export LC_ALL 20373LANGUAGE=C 20374export LANGUAGE 20375 20376# CDPATH. 20377(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20378 20379 20380# as_fn_error STATUS ERROR [LINENO LOG_FD] 20381# ---------------------------------------- 20382# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20383# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20384# script with STATUS, using 1 if that was 0. 20385as_fn_error () 20386{ 20387 as_status=$1; test $as_status -eq 0 && as_status=1 20388 if test "$4"; then 20389 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20390 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20391 fi 20392 $as_echo "$as_me: error: $2" >&2 20393 as_fn_exit $as_status 20394} # as_fn_error 20395 20396 20397# as_fn_set_status STATUS 20398# ----------------------- 20399# Set $? to STATUS, without forking. 20400as_fn_set_status () 20401{ 20402 return $1 20403} # as_fn_set_status 20404 20405# as_fn_exit STATUS 20406# ----------------- 20407# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20408as_fn_exit () 20409{ 20410 set +e 20411 as_fn_set_status $1 20412 exit $1 20413} # as_fn_exit 20414 20415# as_fn_unset VAR 20416# --------------- 20417# Portably unset VAR. 20418as_fn_unset () 20419{ 20420 { eval $1=; unset $1;} 20421} 20422as_unset=as_fn_unset 20423# as_fn_append VAR VALUE 20424# ---------------------- 20425# Append the text in VALUE to the end of the definition contained in VAR. Take 20426# advantage of any shell optimizations that allow amortized linear growth over 20427# repeated appends, instead of the typical quadratic growth present in naive 20428# implementations. 20429if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20430 eval 'as_fn_append () 20431 { 20432 eval $1+=\$2 20433 }' 20434else 20435 as_fn_append () 20436 { 20437 eval $1=\$$1\$2 20438 } 20439fi # as_fn_append 20440 20441# as_fn_arith ARG... 20442# ------------------ 20443# Perform arithmetic evaluation on the ARGs, and store the result in the 20444# global $as_val. Take advantage of shells that can avoid forks. The arguments 20445# must be portable across $(()) and expr. 20446if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20447 eval 'as_fn_arith () 20448 { 20449 as_val=$(( $* )) 20450 }' 20451else 20452 as_fn_arith () 20453 { 20454 as_val=`expr "$@" || test $? -eq 1` 20455 } 20456fi # as_fn_arith 20457 20458 20459if expr a : '\(a\)' >/dev/null 2>&1 && 20460 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20461 as_expr=expr 20462else 20463 as_expr=false 20464fi 20465 20466if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20467 as_basename=basename 20468else 20469 as_basename=false 20470fi 20471 20472if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20473 as_dirname=dirname 20474else 20475 as_dirname=false 20476fi 20477 20478as_me=`$as_basename -- "$0" || 20479$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20480 X"$0" : 'X\(//\)$' \| \ 20481 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20482$as_echo X/"$0" | 20483 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20484 s//\1/ 20485 q 20486 } 20487 /^X\/\(\/\/\)$/{ 20488 s//\1/ 20489 q 20490 } 20491 /^X\/\(\/\).*/{ 20492 s//\1/ 20493 q 20494 } 20495 s/.*/./; q'` 20496 20497# Avoid depending upon Character Ranges. 20498as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20499as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20500as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20501as_cr_digits='0123456789' 20502as_cr_alnum=$as_cr_Letters$as_cr_digits 20503 20504ECHO_C= ECHO_N= ECHO_T= 20505case `echo -n x` in #((((( 20506-n*) 20507 case `echo 'xy\c'` in 20508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20509 xy) ECHO_C='\c';; 20510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20511 ECHO_T=' ';; 20512 esac;; 20513*) 20514 ECHO_N='-n';; 20515esac 20516 20517rm -f conf$$ conf$$.exe conf$$.file 20518if test -d conf$$.dir; then 20519 rm -f conf$$.dir/conf$$.file 20520else 20521 rm -f conf$$.dir 20522 mkdir conf$$.dir 2>/dev/null 20523fi 20524if (echo >conf$$.file) 2>/dev/null; then 20525 if ln -s conf$$.file conf$$ 2>/dev/null; then 20526 as_ln_s='ln -s' 20527 # ... but there are two gotchas: 20528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20530 # In both cases, we have to default to `cp -pR'. 20531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20532 as_ln_s='cp -pR' 20533 elif ln conf$$.file conf$$ 2>/dev/null; then 20534 as_ln_s=ln 20535 else 20536 as_ln_s='cp -pR' 20537 fi 20538else 20539 as_ln_s='cp -pR' 20540fi 20541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20542rmdir conf$$.dir 2>/dev/null 20543 20544 20545# as_fn_mkdir_p 20546# ------------- 20547# Create "$as_dir" as a directory, including parents if necessary. 20548as_fn_mkdir_p () 20549{ 20550 20551 case $as_dir in #( 20552 -*) as_dir=./$as_dir;; 20553 esac 20554 test -d "$as_dir" || eval $as_mkdir_p || { 20555 as_dirs= 20556 while :; do 20557 case $as_dir in #( 20558 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20559 *) as_qdir=$as_dir;; 20560 esac 20561 as_dirs="'$as_qdir' $as_dirs" 20562 as_dir=`$as_dirname -- "$as_dir" || 20563$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20564 X"$as_dir" : 'X\(//\)[^/]' \| \ 20565 X"$as_dir" : 'X\(//\)$' \| \ 20566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20567$as_echo X"$as_dir" | 20568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20569 s//\1/ 20570 q 20571 } 20572 /^X\(\/\/\)[^/].*/{ 20573 s//\1/ 20574 q 20575 } 20576 /^X\(\/\/\)$/{ 20577 s//\1/ 20578 q 20579 } 20580 /^X\(\/\).*/{ 20581 s//\1/ 20582 q 20583 } 20584 s/.*/./; q'` 20585 test -d "$as_dir" && break 20586 done 20587 test -z "$as_dirs" || eval "mkdir $as_dirs" 20588 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20589 20590 20591} # as_fn_mkdir_p 20592if mkdir -p . 2>/dev/null; then 20593 as_mkdir_p='mkdir -p "$as_dir"' 20594else 20595 test -d ./-p && rmdir ./-p 20596 as_mkdir_p=false 20597fi 20598 20599 20600# as_fn_executable_p FILE 20601# ----------------------- 20602# Test if FILE is an executable regular file. 20603as_fn_executable_p () 20604{ 20605 test -f "$1" && test -x "$1" 20606} # as_fn_executable_p 20607as_test_x='test -x' 20608as_executable_p=as_fn_executable_p 20609 20610# Sed expression to map a string onto a valid CPP name. 20611as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20612 20613# Sed expression to map a string onto a valid variable name. 20614as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20615 20616 20617exec 6>&1 20618## ----------------------------------- ## 20619## Main body of $CONFIG_STATUS script. ## 20620## ----------------------------------- ## 20621_ASEOF 20622test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20623 20624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20625# Save the log message, to keep $0 and so on meaningful, and to 20626# report actual input values of CONFIG_FILES etc. instead of their 20627# values after options handling. 20628ac_log=" 20629This file was extended by xf86-video-amdgpu $as_me 1.1.0, which was 20630generated by GNU Autoconf 2.69. Invocation command line was 20631 20632 CONFIG_FILES = $CONFIG_FILES 20633 CONFIG_HEADERS = $CONFIG_HEADERS 20634 CONFIG_LINKS = $CONFIG_LINKS 20635 CONFIG_COMMANDS = $CONFIG_COMMANDS 20636 $ $0 $@ 20637 20638on `(hostname || uname -n) 2>/dev/null | sed 1q` 20639" 20640 20641_ACEOF 20642 20643case $ac_config_files in *" 20644"*) set x $ac_config_files; shift; ac_config_files=$*;; 20645esac 20646 20647case $ac_config_headers in *" 20648"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20649esac 20650 20651 20652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20653# Files that config.status was made for. 20654config_files="$ac_config_files" 20655config_headers="$ac_config_headers" 20656config_commands="$ac_config_commands" 20657 20658_ACEOF 20659 20660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20661ac_cs_usage="\ 20662\`$as_me' instantiates files and other configuration actions 20663from templates according to the current configuration. Unless the files 20664and actions are specified as TAGs, all are instantiated by default. 20665 20666Usage: $0 [OPTION]... [TAG]... 20667 20668 -h, --help print this help, then exit 20669 -V, --version print version number and configuration settings, then exit 20670 --config print configuration, then exit 20671 -q, --quiet, --silent 20672 do not print progress messages 20673 -d, --debug don't remove temporary files 20674 --recheck update $as_me by reconfiguring in the same conditions 20675 --file=FILE[:TEMPLATE] 20676 instantiate the configuration file FILE 20677 --header=FILE[:TEMPLATE] 20678 instantiate the configuration header FILE 20679 20680Configuration files: 20681$config_files 20682 20683Configuration headers: 20684$config_headers 20685 20686Configuration commands: 20687$config_commands 20688 20689Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 20690 20691_ACEOF 20692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20693ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20694ac_cs_version="\\ 20695xf86-video-amdgpu config.status 1.1.0 20696configured by $0, generated by GNU Autoconf 2.69, 20697 with options \\"\$ac_cs_config\\" 20698 20699Copyright (C) 2012 Free Software Foundation, Inc. 20700This config.status script is free software; the Free Software Foundation 20701gives unlimited permission to copy, distribute and modify it." 20702 20703ac_pwd='$ac_pwd' 20704srcdir='$srcdir' 20705INSTALL='$INSTALL' 20706MKDIR_P='$MKDIR_P' 20707AWK='$AWK' 20708test -n "\$AWK" || AWK=awk 20709_ACEOF 20710 20711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20712# The default lists apply if the user does not specify any file. 20713ac_need_defaults=: 20714while test $# != 0 20715do 20716 case $1 in 20717 --*=?*) 20718 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20719 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20720 ac_shift=: 20721 ;; 20722 --*=) 20723 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20724 ac_optarg= 20725 ac_shift=: 20726 ;; 20727 *) 20728 ac_option=$1 20729 ac_optarg=$2 20730 ac_shift=shift 20731 ;; 20732 esac 20733 20734 case $ac_option in 20735 # Handling of the options. 20736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20737 ac_cs_recheck=: ;; 20738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20739 $as_echo "$ac_cs_version"; exit ;; 20740 --config | --confi | --conf | --con | --co | --c ) 20741 $as_echo "$ac_cs_config"; exit ;; 20742 --debug | --debu | --deb | --de | --d | -d ) 20743 debug=: ;; 20744 --file | --fil | --fi | --f ) 20745 $ac_shift 20746 case $ac_optarg in 20747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20748 '') as_fn_error $? "missing file argument" ;; 20749 esac 20750 as_fn_append CONFIG_FILES " '$ac_optarg'" 20751 ac_need_defaults=false;; 20752 --header | --heade | --head | --hea ) 20753 $ac_shift 20754 case $ac_optarg in 20755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20756 esac 20757 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20758 ac_need_defaults=false;; 20759 --he | --h) 20760 # Conflict between --help and --header 20761 as_fn_error $? "ambiguous option: \`$1' 20762Try \`$0 --help' for more information.";; 20763 --help | --hel | -h ) 20764 $as_echo "$ac_cs_usage"; exit ;; 20765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20766 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20767 ac_cs_silent=: ;; 20768 20769 # This is an error. 20770 -*) as_fn_error $? "unrecognized option: \`$1' 20771Try \`$0 --help' for more information." ;; 20772 20773 *) as_fn_append ac_config_targets " $1" 20774 ac_need_defaults=false ;; 20775 20776 esac 20777 shift 20778done 20779 20780ac_configure_extra_args= 20781 20782if $ac_cs_silent; then 20783 exec 6>/dev/null 20784 ac_configure_extra_args="$ac_configure_extra_args --silent" 20785fi 20786 20787_ACEOF 20788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20789if \$ac_cs_recheck; then 20790 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20791 shift 20792 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20793 CONFIG_SHELL='$SHELL' 20794 export CONFIG_SHELL 20795 exec "\$@" 20796fi 20797 20798_ACEOF 20799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20800exec 5>>config.log 20801{ 20802 echo 20803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20804## Running $as_me. ## 20805_ASBOX 20806 $as_echo "$ac_log" 20807} >&5 20808 20809_ACEOF 20810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20811# 20812# INIT-COMMANDS 20813# 20814AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20815 20816 20817# The HP-UX ksh and POSIX shell print the target directory to stdout 20818# if CDPATH is set. 20819(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20820 20821sed_quote_subst='$sed_quote_subst' 20822double_quote_subst='$double_quote_subst' 20823delay_variable_subst='$delay_variable_subst' 20824enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20825macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20826macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20827enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20828pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20829enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20830shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20831SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20832ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20833PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20834host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20835host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20836host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20837build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20838build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20839build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20840SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20841Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20842GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20843EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20844FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20845LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20846NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20847LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20848max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20849ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20850exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20851lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20852lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20853lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20854lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20855lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20856reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20857reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20858OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20859deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20860file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20861file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20862want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20863DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20864sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20865AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20866AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20867archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20868STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20869RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20870old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20871old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20872old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20873lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20874CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20875CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20876compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20877GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20878lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20879lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20880lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20881lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20882lt_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"`' 20883lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20884nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20885lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20886lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20887objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20888MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20889lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20890lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20891lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20892lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20893lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20894need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20895MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20896DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20897NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20898LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20899OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20900OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20901libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20902shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20903extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20904archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20905enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20906export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20907whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20908compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20909old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20910old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20911archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20912archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20913module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20914module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20915with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20916allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20917no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20918hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20919hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20920hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20921hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20922hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20923hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20924hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20925inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20926link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20927always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20928export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20929exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20930include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20931prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20932postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20933file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20934variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20935need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20936need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20937version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20938runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20939shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20940shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20941libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20942library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20943soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20944install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20945postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20946postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20947finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20948finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20949hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20950sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20951configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20952configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20953hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20954enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20955enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20956enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20957old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20958striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20959 20960LTCC='$LTCC' 20961LTCFLAGS='$LTCFLAGS' 20962compiler='$compiler_DEFAULT' 20963 20964# A function that is used when there is no print builtin or printf. 20965func_fallback_echo () 20966{ 20967 eval 'cat <<_LTECHO_EOF 20968\$1 20969_LTECHO_EOF' 20970} 20971 20972# Quote evaled strings. 20973for var in SHELL \ 20974ECHO \ 20975PATH_SEPARATOR \ 20976SED \ 20977GREP \ 20978EGREP \ 20979FGREP \ 20980LD \ 20981NM \ 20982LN_S \ 20983lt_SP2NL \ 20984lt_NL2SP \ 20985reload_flag \ 20986OBJDUMP \ 20987deplibs_check_method \ 20988file_magic_cmd \ 20989file_magic_glob \ 20990want_nocaseglob \ 20991DLLTOOL \ 20992sharedlib_from_linklib_cmd \ 20993AR \ 20994AR_FLAGS \ 20995archiver_list_spec \ 20996STRIP \ 20997RANLIB \ 20998CC \ 20999CFLAGS \ 21000compiler \ 21001lt_cv_sys_global_symbol_pipe \ 21002lt_cv_sys_global_symbol_to_cdecl \ 21003lt_cv_sys_global_symbol_to_import \ 21004lt_cv_sys_global_symbol_to_c_name_address \ 21005lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21006lt_cv_nm_interface \ 21007nm_file_list_spec \ 21008lt_cv_truncate_bin \ 21009lt_prog_compiler_no_builtin_flag \ 21010lt_prog_compiler_pic \ 21011lt_prog_compiler_wl \ 21012lt_prog_compiler_static \ 21013lt_cv_prog_compiler_c_o \ 21014need_locks \ 21015MANIFEST_TOOL \ 21016DSYMUTIL \ 21017NMEDIT \ 21018LIPO \ 21019OTOOL \ 21020OTOOL64 \ 21021shrext_cmds \ 21022export_dynamic_flag_spec \ 21023whole_archive_flag_spec \ 21024compiler_needs_object \ 21025with_gnu_ld \ 21026allow_undefined_flag \ 21027no_undefined_flag \ 21028hardcode_libdir_flag_spec \ 21029hardcode_libdir_separator \ 21030exclude_expsyms \ 21031include_expsyms \ 21032file_list_spec \ 21033variables_saved_for_relink \ 21034libname_spec \ 21035library_names_spec \ 21036soname_spec \ 21037install_override_mode \ 21038finish_eval \ 21039old_striplib \ 21040striplib; do 21041 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21042 *[\\\\\\\`\\"\\\$]*) 21043 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21044 ;; 21045 *) 21046 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21047 ;; 21048 esac 21049done 21050 21051# Double-quote double-evaled strings. 21052for var in reload_cmds \ 21053old_postinstall_cmds \ 21054old_postuninstall_cmds \ 21055old_archive_cmds \ 21056extract_expsyms_cmds \ 21057old_archive_from_new_cmds \ 21058old_archive_from_expsyms_cmds \ 21059archive_cmds \ 21060archive_expsym_cmds \ 21061module_cmds \ 21062module_expsym_cmds \ 21063export_symbols_cmds \ 21064prelink_cmds \ 21065postlink_cmds \ 21066postinstall_cmds \ 21067postuninstall_cmds \ 21068finish_cmds \ 21069sys_lib_search_path_spec \ 21070configure_time_dlsearch_path \ 21071configure_time_lt_sys_library_path; do 21072 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21073 *[\\\\\\\`\\"\\\$]*) 21074 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21075 ;; 21076 *) 21077 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21078 ;; 21079 esac 21080done 21081 21082ac_aux_dir='$ac_aux_dir' 21083 21084# See if we are running on zsh, and set the options that allow our 21085# commands through without removal of \ escapes INIT. 21086if test -n "\${ZSH_VERSION+set}"; then 21087 setopt NO_GLOB_SUBST 21088fi 21089 21090 21091 PACKAGE='$PACKAGE' 21092 VERSION='$VERSION' 21093 RM='$RM' 21094 ofile='$ofile' 21095 21096 21097 21098 21099_ACEOF 21100 21101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21102 21103# Handling of arguments. 21104for ac_config_target in $ac_config_targets 21105do 21106 case $ac_config_target in 21107 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21108 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21109 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21110 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21111 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21112 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21113 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 21114 21115 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21116 esac 21117done 21118 21119 21120# If the user did not use the arguments to specify the items to instantiate, 21121# then the envvar interface is used. Set only those that are not. 21122# We use the long form for the default assignment because of an extremely 21123# bizarre bug on SunOS 4.1.3. 21124if $ac_need_defaults; then 21125 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21126 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21127 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21128fi 21129 21130# Have a temporary directory for convenience. Make it in the build tree 21131# simply because there is no reason against having it here, and in addition, 21132# creating and moving files from /tmp can sometimes cause problems. 21133# Hook for its removal unless debugging. 21134# Note that there is a small window in which the directory will not be cleaned: 21135# after its creation but before its name has been assigned to `$tmp'. 21136$debug || 21137{ 21138 tmp= ac_tmp= 21139 trap 'exit_status=$? 21140 : "${ac_tmp:=$tmp}" 21141 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21142' 0 21143 trap 'as_fn_exit 1' 1 2 13 15 21144} 21145# Create a (secure) tmp directory for tmp files. 21146 21147{ 21148 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21149 test -d "$tmp" 21150} || 21151{ 21152 tmp=./conf$$-$RANDOM 21153 (umask 077 && mkdir "$tmp") 21154} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21155ac_tmp=$tmp 21156 21157# Set up the scripts for CONFIG_FILES section. 21158# No need to generate them if there are no CONFIG_FILES. 21159# This happens for instance with `./config.status config.h'. 21160if test -n "$CONFIG_FILES"; then 21161 21162 21163ac_cr=`echo X | tr X '\015'` 21164# On cygwin, bash can eat \r inside `` if the user requested igncr. 21165# But we know of no other shell where ac_cr would be empty at this 21166# point, so we can use a bashism as a fallback. 21167if test "x$ac_cr" = x; then 21168 eval ac_cr=\$\'\\r\' 21169fi 21170ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21171if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21172 ac_cs_awk_cr='\\r' 21173else 21174 ac_cs_awk_cr=$ac_cr 21175fi 21176 21177echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21178_ACEOF 21179 21180 21181{ 21182 echo "cat >conf$$subs.awk <<_ACEOF" && 21183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21184 echo "_ACEOF" 21185} >conf$$subs.sh || 21186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21187ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21188ac_delim='%!_!# ' 21189for ac_last_try in false false false false false :; do 21190 . ./conf$$subs.sh || 21191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21192 21193 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21194 if test $ac_delim_n = $ac_delim_num; then 21195 break 21196 elif $ac_last_try; then 21197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21198 else 21199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21200 fi 21201done 21202rm -f conf$$subs.sh 21203 21204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21205cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21206_ACEOF 21207sed -n ' 21208h 21209s/^/S["/; s/!.*/"]=/ 21210p 21211g 21212s/^[^!]*!// 21213:repl 21214t repl 21215s/'"$ac_delim"'$// 21216t delim 21217:nl 21218h 21219s/\(.\{148\}\)..*/\1/ 21220t more1 21221s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21222p 21223n 21224b repl 21225:more1 21226s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21227p 21228g 21229s/.\{148\}// 21230t nl 21231:delim 21232h 21233s/\(.\{148\}\)..*/\1/ 21234t more2 21235s/["\\]/\\&/g; s/^/"/; s/$/"/ 21236p 21237b 21238:more2 21239s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21240p 21241g 21242s/.\{148\}// 21243t delim 21244' <conf$$subs.awk | sed ' 21245/^[^""]/{ 21246 N 21247 s/\n// 21248} 21249' >>$CONFIG_STATUS || ac_write_fail=1 21250rm -f conf$$subs.awk 21251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21252_ACAWK 21253cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21254 for (key in S) S_is_set[key] = 1 21255 FS = "" 21256 21257} 21258{ 21259 line = $ 0 21260 nfields = split(line, field, "@") 21261 substed = 0 21262 len = length(field[1]) 21263 for (i = 2; i < nfields; i++) { 21264 key = field[i] 21265 keylen = length(key) 21266 if (S_is_set[key]) { 21267 value = S[key] 21268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21269 len += length(value) + length(field[++i]) 21270 substed = 1 21271 } else 21272 len += 1 + keylen 21273 } 21274 21275 print line 21276} 21277 21278_ACAWK 21279_ACEOF 21280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21281if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21282 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21283else 21284 cat 21285fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21286 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21287_ACEOF 21288 21289# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21290# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21291# trailing colons and then remove the whole line if VPATH becomes empty 21292# (actually we leave an empty line to preserve line numbers). 21293if test "x$srcdir" = x.; then 21294 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21295h 21296s/// 21297s/^/:/ 21298s/[ ]*$/:/ 21299s/:\$(srcdir):/:/g 21300s/:\${srcdir}:/:/g 21301s/:@srcdir@:/:/g 21302s/^:*// 21303s/:*$// 21304x 21305s/\(=[ ]*\).*/\1/ 21306G 21307s/\n// 21308s/^[^=]*=[ ]*$// 21309}' 21310fi 21311 21312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21313fi # test -n "$CONFIG_FILES" 21314 21315# Set up the scripts for CONFIG_HEADERS section. 21316# No need to generate them if there are no CONFIG_HEADERS. 21317# This happens for instance with `./config.status Makefile'. 21318if test -n "$CONFIG_HEADERS"; then 21319cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21320BEGIN { 21321_ACEOF 21322 21323# Transform confdefs.h into an awk script `defines.awk', embedded as 21324# here-document in config.status, that substitutes the proper values into 21325# config.h.in to produce config.h. 21326 21327# Create a delimiter string that does not exist in confdefs.h, to ease 21328# handling of long lines. 21329ac_delim='%!_!# ' 21330for ac_last_try in false false :; do 21331 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21332 if test -z "$ac_tt"; then 21333 break 21334 elif $ac_last_try; then 21335 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21336 else 21337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21338 fi 21339done 21340 21341# For the awk script, D is an array of macro values keyed by name, 21342# likewise P contains macro parameters if any. Preserve backslash 21343# newline sequences. 21344 21345ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21346sed -n ' 21347s/.\{148\}/&'"$ac_delim"'/g 21348t rset 21349:rset 21350s/^[ ]*#[ ]*define[ ][ ]*/ / 21351t def 21352d 21353:def 21354s/\\$// 21355t bsnl 21356s/["\\]/\\&/g 21357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21358D["\1"]=" \3"/p 21359s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21360d 21361:bsnl 21362s/["\\]/\\&/g 21363s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21364D["\1"]=" \3\\\\\\n"\\/p 21365t cont 21366s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21367t cont 21368d 21369:cont 21370n 21371s/.\{148\}/&'"$ac_delim"'/g 21372t clear 21373:clear 21374s/\\$// 21375t bsnlc 21376s/["\\]/\\&/g; s/^/"/; s/$/"/p 21377d 21378:bsnlc 21379s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21380b cont 21381' <confdefs.h | sed ' 21382s/'"$ac_delim"'/"\\\ 21383"/g' >>$CONFIG_STATUS || ac_write_fail=1 21384 21385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21386 for (key in D) D_is_set[key] = 1 21387 FS = "" 21388} 21389/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21390 line = \$ 0 21391 split(line, arg, " ") 21392 if (arg[1] == "#") { 21393 defundef = arg[2] 21394 mac1 = arg[3] 21395 } else { 21396 defundef = substr(arg[1], 2) 21397 mac1 = arg[2] 21398 } 21399 split(mac1, mac2, "(") #) 21400 macro = mac2[1] 21401 prefix = substr(line, 1, index(line, defundef) - 1) 21402 if (D_is_set[macro]) { 21403 # Preserve the white space surrounding the "#". 21404 print prefix "define", macro P[macro] D[macro] 21405 next 21406 } else { 21407 # Replace #undef with comments. This is necessary, for example, 21408 # in the case of _POSIX_SOURCE, which is predefined and required 21409 # on some systems where configure will not decide to define it. 21410 if (defundef == "undef") { 21411 print "/*", prefix defundef, macro, "*/" 21412 next 21413 } 21414 } 21415} 21416{ print } 21417_ACAWK 21418_ACEOF 21419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21420 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21421fi # test -n "$CONFIG_HEADERS" 21422 21423 21424eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21425shift 21426for ac_tag 21427do 21428 case $ac_tag in 21429 :[FHLC]) ac_mode=$ac_tag; continue;; 21430 esac 21431 case $ac_mode$ac_tag in 21432 :[FHL]*:*);; 21433 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21434 :[FH]-) ac_tag=-:-;; 21435 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21436 esac 21437 ac_save_IFS=$IFS 21438 IFS=: 21439 set x $ac_tag 21440 IFS=$ac_save_IFS 21441 shift 21442 ac_file=$1 21443 shift 21444 21445 case $ac_mode in 21446 :L) ac_source=$1;; 21447 :[FH]) 21448 ac_file_inputs= 21449 for ac_f 21450 do 21451 case $ac_f in 21452 -) ac_f="$ac_tmp/stdin";; 21453 *) # Look for the file first in the build tree, then in the source tree 21454 # (if the path is not absolute). The absolute path cannot be DOS-style, 21455 # because $ac_f cannot contain `:'. 21456 test -f "$ac_f" || 21457 case $ac_f in 21458 [\\/$]*) false;; 21459 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21460 esac || 21461 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21462 esac 21463 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21464 as_fn_append ac_file_inputs " '$ac_f'" 21465 done 21466 21467 # Let's still pretend it is `configure' which instantiates (i.e., don't 21468 # use $as_me), people would be surprised to read: 21469 # /* config.h. Generated by config.status. */ 21470 configure_input='Generated from '` 21471 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21472 `' by configure.' 21473 if test x"$ac_file" != x-; then 21474 configure_input="$ac_file. $configure_input" 21475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21476$as_echo "$as_me: creating $ac_file" >&6;} 21477 fi 21478 # Neutralize special characters interpreted by sed in replacement strings. 21479 case $configure_input in #( 21480 *\&* | *\|* | *\\* ) 21481 ac_sed_conf_input=`$as_echo "$configure_input" | 21482 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21483 *) ac_sed_conf_input=$configure_input;; 21484 esac 21485 21486 case $ac_tag in 21487 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21489 esac 21490 ;; 21491 esac 21492 21493 ac_dir=`$as_dirname -- "$ac_file" || 21494$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21495 X"$ac_file" : 'X\(//\)[^/]' \| \ 21496 X"$ac_file" : 'X\(//\)$' \| \ 21497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21498$as_echo X"$ac_file" | 21499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21500 s//\1/ 21501 q 21502 } 21503 /^X\(\/\/\)[^/].*/{ 21504 s//\1/ 21505 q 21506 } 21507 /^X\(\/\/\)$/{ 21508 s//\1/ 21509 q 21510 } 21511 /^X\(\/\).*/{ 21512 s//\1/ 21513 q 21514 } 21515 s/.*/./; q'` 21516 as_dir="$ac_dir"; as_fn_mkdir_p 21517 ac_builddir=. 21518 21519case "$ac_dir" in 21520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21521*) 21522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21523 # A ".." for each directory in $ac_dir_suffix. 21524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21525 case $ac_top_builddir_sub in 21526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21528 esac ;; 21529esac 21530ac_abs_top_builddir=$ac_pwd 21531ac_abs_builddir=$ac_pwd$ac_dir_suffix 21532# for backward compatibility: 21533ac_top_builddir=$ac_top_build_prefix 21534 21535case $srcdir in 21536 .) # We are building in place. 21537 ac_srcdir=. 21538 ac_top_srcdir=$ac_top_builddir_sub 21539 ac_abs_top_srcdir=$ac_pwd ;; 21540 [\\/]* | ?:[\\/]* ) # Absolute name. 21541 ac_srcdir=$srcdir$ac_dir_suffix; 21542 ac_top_srcdir=$srcdir 21543 ac_abs_top_srcdir=$srcdir ;; 21544 *) # Relative name. 21545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21546 ac_top_srcdir=$ac_top_build_prefix$srcdir 21547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21548esac 21549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21550 21551 21552 case $ac_mode in 21553 :F) 21554 # 21555 # CONFIG_FILE 21556 # 21557 21558 case $INSTALL in 21559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21560 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21561 esac 21562 ac_MKDIR_P=$MKDIR_P 21563 case $MKDIR_P in 21564 [\\/$]* | ?:[\\/]* ) ;; 21565 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21566 esac 21567_ACEOF 21568 21569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21570# If the template does not know about datarootdir, expand it. 21571# FIXME: This hack should be removed a few years after 2.60. 21572ac_datarootdir_hack=; ac_datarootdir_seen= 21573ac_sed_dataroot=' 21574/datarootdir/ { 21575 p 21576 q 21577} 21578/@datadir@/p 21579/@docdir@/p 21580/@infodir@/p 21581/@localedir@/p 21582/@mandir@/p' 21583case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21584*datarootdir*) ac_datarootdir_seen=yes;; 21585*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21587$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21588_ACEOF 21589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21590 ac_datarootdir_hack=' 21591 s&@datadir@&$datadir&g 21592 s&@docdir@&$docdir&g 21593 s&@infodir@&$infodir&g 21594 s&@localedir@&$localedir&g 21595 s&@mandir@&$mandir&g 21596 s&\\\${datarootdir}&$datarootdir&g' ;; 21597esac 21598_ACEOF 21599 21600# Neutralize VPATH when `$srcdir' = `.'. 21601# Shell code in configure.ac might set extrasub. 21602# FIXME: do we really want to maintain this feature? 21603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21604ac_sed_extra="$ac_vpsub 21605$extrasub 21606_ACEOF 21607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21608:t 21609/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21610s|@configure_input@|$ac_sed_conf_input|;t t 21611s&@top_builddir@&$ac_top_builddir_sub&;t t 21612s&@top_build_prefix@&$ac_top_build_prefix&;t t 21613s&@srcdir@&$ac_srcdir&;t t 21614s&@abs_srcdir@&$ac_abs_srcdir&;t t 21615s&@top_srcdir@&$ac_top_srcdir&;t t 21616s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21617s&@builddir@&$ac_builddir&;t t 21618s&@abs_builddir@&$ac_abs_builddir&;t t 21619s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21620s&@INSTALL@&$ac_INSTALL&;t t 21621s&@MKDIR_P@&$ac_MKDIR_P&;t t 21622$ac_datarootdir_hack 21623" 21624eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21625 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21626 21627test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21628 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21630 "$ac_tmp/out"`; test -z "$ac_out"; } && 21631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21632which seems to be undefined. Please make sure it is defined" >&5 21633$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21634which seems to be undefined. Please make sure it is defined" >&2;} 21635 21636 rm -f "$ac_tmp/stdin" 21637 case $ac_file in 21638 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21639 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21640 esac \ 21641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21642 ;; 21643 :H) 21644 # 21645 # CONFIG_HEADER 21646 # 21647 if test x"$ac_file" != x-; then 21648 { 21649 $as_echo "/* $configure_input */" \ 21650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21651 } >"$ac_tmp/config.h" \ 21652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21653 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21654 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21655$as_echo "$as_me: $ac_file is unchanged" >&6;} 21656 else 21657 rm -f "$ac_file" 21658 mv "$ac_tmp/config.h" "$ac_file" \ 21659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21660 fi 21661 else 21662 $as_echo "/* $configure_input */" \ 21663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21664 || as_fn_error $? "could not create -" "$LINENO" 5 21665 fi 21666# Compute "$ac_file"'s index in $config_headers. 21667_am_arg="$ac_file" 21668_am_stamp_count=1 21669for _am_header in $config_headers :; do 21670 case $_am_header in 21671 $_am_arg | $_am_arg:* ) 21672 break ;; 21673 * ) 21674 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21675 esac 21676done 21677echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21678$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21679 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21680 X"$_am_arg" : 'X\(//\)$' \| \ 21681 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21682$as_echo X"$_am_arg" | 21683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21684 s//\1/ 21685 q 21686 } 21687 /^X\(\/\/\)[^/].*/{ 21688 s//\1/ 21689 q 21690 } 21691 /^X\(\/\/\)$/{ 21692 s//\1/ 21693 q 21694 } 21695 /^X\(\/\).*/{ 21696 s//\1/ 21697 q 21698 } 21699 s/.*/./; q'`/stamp-h$_am_stamp_count 21700 ;; 21701 21702 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21703$as_echo "$as_me: executing $ac_file commands" >&6;} 21704 ;; 21705 esac 21706 21707 21708 case $ac_file$ac_mode in 21709 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21710 # Older Autoconf quotes --file arguments for eval, but not when files 21711 # are listed without --file. Let's play safe and only enable the eval 21712 # if we detect the quoting. 21713 case $CONFIG_FILES in 21714 *\'*) eval set x "$CONFIG_FILES" ;; 21715 *) set x $CONFIG_FILES ;; 21716 esac 21717 shift 21718 for mf 21719 do 21720 # Strip MF so we end up with the name of the file. 21721 mf=`echo "$mf" | sed -e 's/:.*$//'` 21722 # Check whether this is an Automake generated Makefile or not. 21723 # We used to match only the files named 'Makefile.in', but 21724 # some people rename them; so instead we look at the file content. 21725 # Grep'ing the first line is not enough: some people post-process 21726 # each Makefile.in and add a new line on top of each file to say so. 21727 # Grep'ing the whole file is not good either: AIX grep has a line 21728 # limit of 2048, but all sed's we know have understand at least 4000. 21729 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21730 dirpart=`$as_dirname -- "$mf" || 21731$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21732 X"$mf" : 'X\(//\)[^/]' \| \ 21733 X"$mf" : 'X\(//\)$' \| \ 21734 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21735$as_echo X"$mf" | 21736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21737 s//\1/ 21738 q 21739 } 21740 /^X\(\/\/\)[^/].*/{ 21741 s//\1/ 21742 q 21743 } 21744 /^X\(\/\/\)$/{ 21745 s//\1/ 21746 q 21747 } 21748 /^X\(\/\).*/{ 21749 s//\1/ 21750 q 21751 } 21752 s/.*/./; q'` 21753 else 21754 continue 21755 fi 21756 # Extract the definition of DEPDIR, am__include, and am__quote 21757 # from the Makefile without running 'make'. 21758 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21759 test -z "$DEPDIR" && continue 21760 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21761 test -z "$am__include" && continue 21762 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21763 # Find all dependency output files, they are included files with 21764 # $(DEPDIR) in their names. We invoke sed twice because it is the 21765 # simplest approach to changing $(DEPDIR) to its actual value in the 21766 # expansion. 21767 for file in `sed -n " 21768 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21769 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21770 # Make sure the directory exists. 21771 test -f "$dirpart/$file" && continue 21772 fdir=`$as_dirname -- "$file" || 21773$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21774 X"$file" : 'X\(//\)[^/]' \| \ 21775 X"$file" : 'X\(//\)$' \| \ 21776 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21777$as_echo X"$file" | 21778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21779 s//\1/ 21780 q 21781 } 21782 /^X\(\/\/\)[^/].*/{ 21783 s//\1/ 21784 q 21785 } 21786 /^X\(\/\/\)$/{ 21787 s//\1/ 21788 q 21789 } 21790 /^X\(\/\).*/{ 21791 s//\1/ 21792 q 21793 } 21794 s/.*/./; q'` 21795 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21796 # echo "creating $dirpart/$file" 21797 echo '# dummy' > "$dirpart/$file" 21798 done 21799 done 21800} 21801 ;; 21802 "libtool":C) 21803 21804 # See if we are running on zsh, and set the options that allow our 21805 # commands through without removal of \ escapes. 21806 if test -n "${ZSH_VERSION+set}"; then 21807 setopt NO_GLOB_SUBST 21808 fi 21809 21810 cfgfile=${ofile}T 21811 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21812 $RM "$cfgfile" 21813 21814 cat <<_LT_EOF >> "$cfgfile" 21815#! $SHELL 21816# Generated automatically by $as_me ($PACKAGE) $VERSION 21817# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21818# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21819 21820# Provide generalized library-building support services. 21821# Written by Gordon Matzigkeit, 1996 21822 21823# Copyright (C) 2014 Free Software Foundation, Inc. 21824# This is free software; see the source for copying conditions. There is NO 21825# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21826 21827# GNU Libtool is free software; you can redistribute it and/or modify 21828# it under the terms of the GNU General Public License as published by 21829# the Free Software Foundation; either version 2 of of the License, or 21830# (at your option) any later version. 21831# 21832# As a special exception to the GNU General Public License, if you 21833# distribute this file as part of a program or library that is built 21834# using GNU Libtool, you may include this file under the same 21835# distribution terms that you use for the rest of that program. 21836# 21837# GNU Libtool is distributed in the hope that it will be useful, but 21838# WITHOUT ANY WARRANTY; without even the implied warranty of 21839# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21840# GNU General Public License for more details. 21841# 21842# You should have received a copy of the GNU General Public License 21843# along with this program. If not, see <http://www.gnu.org/licenses/>. 21844 21845 21846# The names of the tagged configurations supported by this script. 21847available_tags='' 21848 21849# Configured defaults for sys_lib_dlsearch_path munging. 21850: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21851 21852# ### BEGIN LIBTOOL CONFIG 21853 21854# Whether or not to build static libraries. 21855build_old_libs=$enable_static 21856 21857# Which release of libtool.m4 was used? 21858macro_version=$macro_version 21859macro_revision=$macro_revision 21860 21861# Whether or not to build shared libraries. 21862build_libtool_libs=$enable_shared 21863 21864# What type of objects to build. 21865pic_mode=$pic_mode 21866 21867# Whether or not to optimize for fast installation. 21868fast_install=$enable_fast_install 21869 21870# Shared archive member basename,for filename based shared library versioning on AIX. 21871shared_archive_member_spec=$shared_archive_member_spec 21872 21873# Shell to use when invoking shell scripts. 21874SHELL=$lt_SHELL 21875 21876# An echo program that protects backslashes. 21877ECHO=$lt_ECHO 21878 21879# The PATH separator for the build system. 21880PATH_SEPARATOR=$lt_PATH_SEPARATOR 21881 21882# The host system. 21883host_alias=$host_alias 21884host=$host 21885host_os=$host_os 21886 21887# The build system. 21888build_alias=$build_alias 21889build=$build 21890build_os=$build_os 21891 21892# A sed program that does not truncate output. 21893SED=$lt_SED 21894 21895# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21896Xsed="\$SED -e 1s/^X//" 21897 21898# A grep program that handles long lines. 21899GREP=$lt_GREP 21900 21901# An ERE matcher. 21902EGREP=$lt_EGREP 21903 21904# A literal string matcher. 21905FGREP=$lt_FGREP 21906 21907# A BSD- or MS-compatible name lister. 21908NM=$lt_NM 21909 21910# Whether we need soft or hard links. 21911LN_S=$lt_LN_S 21912 21913# What is the maximum length of a command? 21914max_cmd_len=$max_cmd_len 21915 21916# Object file suffix (normally "o"). 21917objext=$ac_objext 21918 21919# Executable file suffix (normally ""). 21920exeext=$exeext 21921 21922# whether the shell understands "unset". 21923lt_unset=$lt_unset 21924 21925# turn spaces into newlines. 21926SP2NL=$lt_lt_SP2NL 21927 21928# turn newlines into spaces. 21929NL2SP=$lt_lt_NL2SP 21930 21931# convert \$build file names to \$host format. 21932to_host_file_cmd=$lt_cv_to_host_file_cmd 21933 21934# convert \$build files to toolchain format. 21935to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21936 21937# An object symbol dumper. 21938OBJDUMP=$lt_OBJDUMP 21939 21940# Method to check whether dependent libraries are shared objects. 21941deplibs_check_method=$lt_deplibs_check_method 21942 21943# Command to use when deplibs_check_method = "file_magic". 21944file_magic_cmd=$lt_file_magic_cmd 21945 21946# How to find potential files when deplibs_check_method = "file_magic". 21947file_magic_glob=$lt_file_magic_glob 21948 21949# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21950want_nocaseglob=$lt_want_nocaseglob 21951 21952# DLL creation program. 21953DLLTOOL=$lt_DLLTOOL 21954 21955# Command to associate shared and link libraries. 21956sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21957 21958# The archiver. 21959AR=$lt_AR 21960 21961# Flags to create an archive. 21962AR_FLAGS=$lt_AR_FLAGS 21963 21964# How to feed a file listing to the archiver. 21965archiver_list_spec=$lt_archiver_list_spec 21966 21967# A symbol stripping program. 21968STRIP=$lt_STRIP 21969 21970# Commands used to install an old-style archive. 21971RANLIB=$lt_RANLIB 21972old_postinstall_cmds=$lt_old_postinstall_cmds 21973old_postuninstall_cmds=$lt_old_postuninstall_cmds 21974 21975# Whether to use a lock for old archive extraction. 21976lock_old_archive_extraction=$lock_old_archive_extraction 21977 21978# A C compiler. 21979LTCC=$lt_CC 21980 21981# LTCC compiler flags. 21982LTCFLAGS=$lt_CFLAGS 21983 21984# Take the output of nm and produce a listing of raw symbols and C names. 21985global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21986 21987# Transform the output of nm in a proper C declaration. 21988global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21989 21990# Transform the output of nm into a list of symbols to manually relocate. 21991global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21992 21993# Transform the output of nm in a C name address pair. 21994global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21995 21996# Transform the output of nm in a C name address pair when lib prefix is needed. 21997global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21998 21999# The name lister interface. 22000nm_interface=$lt_lt_cv_nm_interface 22001 22002# Specify filename containing input files for \$NM. 22003nm_file_list_spec=$lt_nm_file_list_spec 22004 22005# The root where to search for dependent libraries,and where our libraries should be installed. 22006lt_sysroot=$lt_sysroot 22007 22008# Command to truncate a binary pipe. 22009lt_truncate_bin=$lt_lt_cv_truncate_bin 22010 22011# The name of the directory that contains temporary libtool files. 22012objdir=$objdir 22013 22014# Used to examine libraries when file_magic_cmd begins with "file". 22015MAGIC_CMD=$MAGIC_CMD 22016 22017# Must we lock files when doing compilation? 22018need_locks=$lt_need_locks 22019 22020# Manifest tool. 22021MANIFEST_TOOL=$lt_MANIFEST_TOOL 22022 22023# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22024DSYMUTIL=$lt_DSYMUTIL 22025 22026# Tool to change global to local symbols on Mac OS X. 22027NMEDIT=$lt_NMEDIT 22028 22029# Tool to manipulate fat objects and archives on Mac OS X. 22030LIPO=$lt_LIPO 22031 22032# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22033OTOOL=$lt_OTOOL 22034 22035# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22036OTOOL64=$lt_OTOOL64 22037 22038# Old archive suffix (normally "a"). 22039libext=$libext 22040 22041# Shared library suffix (normally ".so"). 22042shrext_cmds=$lt_shrext_cmds 22043 22044# The commands to extract the exported symbol list from a shared archive. 22045extract_expsyms_cmds=$lt_extract_expsyms_cmds 22046 22047# Variables whose values should be saved in libtool wrapper scripts and 22048# restored at link time. 22049variables_saved_for_relink=$lt_variables_saved_for_relink 22050 22051# Do we need the "lib" prefix for modules? 22052need_lib_prefix=$need_lib_prefix 22053 22054# Do we need a version for libraries? 22055need_version=$need_version 22056 22057# Library versioning type. 22058version_type=$version_type 22059 22060# Shared library runtime path variable. 22061runpath_var=$runpath_var 22062 22063# Shared library path variable. 22064shlibpath_var=$shlibpath_var 22065 22066# Is shlibpath searched before the hard-coded library search path? 22067shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22068 22069# Format of library name prefix. 22070libname_spec=$lt_libname_spec 22071 22072# List of archive names. First name is the real one, the rest are links. 22073# The last name is the one that the linker finds with -lNAME 22074library_names_spec=$lt_library_names_spec 22075 22076# The coded name of the library, if different from the real name. 22077soname_spec=$lt_soname_spec 22078 22079# Permission mode override for installation of shared libraries. 22080install_override_mode=$lt_install_override_mode 22081 22082# Command to use after installation of a shared archive. 22083postinstall_cmds=$lt_postinstall_cmds 22084 22085# Command to use after uninstallation of a shared archive. 22086postuninstall_cmds=$lt_postuninstall_cmds 22087 22088# Commands used to finish a libtool library installation in a directory. 22089finish_cmds=$lt_finish_cmds 22090 22091# As "finish_cmds", except a single script fragment to be evaled but 22092# not shown. 22093finish_eval=$lt_finish_eval 22094 22095# Whether we should hardcode library paths into libraries. 22096hardcode_into_libs=$hardcode_into_libs 22097 22098# Compile-time system search path for libraries. 22099sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22100 22101# Detected run-time system search path for libraries. 22102sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22103 22104# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22105configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22106 22107# Whether dlopen is supported. 22108dlopen_support=$enable_dlopen 22109 22110# Whether dlopen of programs is supported. 22111dlopen_self=$enable_dlopen_self 22112 22113# Whether dlopen of statically linked programs is supported. 22114dlopen_self_static=$enable_dlopen_self_static 22115 22116# Commands to strip libraries. 22117old_striplib=$lt_old_striplib 22118striplib=$lt_striplib 22119 22120 22121# The linker used to build libraries. 22122LD=$lt_LD 22123 22124# How to create reloadable object files. 22125reload_flag=$lt_reload_flag 22126reload_cmds=$lt_reload_cmds 22127 22128# Commands used to build an old-style archive. 22129old_archive_cmds=$lt_old_archive_cmds 22130 22131# A language specific compiler. 22132CC=$lt_compiler 22133 22134# Is the compiler the GNU compiler? 22135with_gcc=$GCC 22136 22137# Compiler flag to turn off builtin functions. 22138no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22139 22140# Additional compiler flags for building library objects. 22141pic_flag=$lt_lt_prog_compiler_pic 22142 22143# How to pass a linker flag through the compiler. 22144wl=$lt_lt_prog_compiler_wl 22145 22146# Compiler flag to prevent dynamic linking. 22147link_static_flag=$lt_lt_prog_compiler_static 22148 22149# Does compiler simultaneously support -c and -o options? 22150compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22151 22152# Whether or not to add -lc for building shared libraries. 22153build_libtool_need_lc=$archive_cmds_need_lc 22154 22155# Whether or not to disallow shared libs when runtime libs are static. 22156allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22157 22158# Compiler flag to allow reflexive dlopens. 22159export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22160 22161# Compiler flag to generate shared objects directly from archives. 22162whole_archive_flag_spec=$lt_whole_archive_flag_spec 22163 22164# Whether the compiler copes with passing no objects directly. 22165compiler_needs_object=$lt_compiler_needs_object 22166 22167# Create an old-style archive from a shared archive. 22168old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22169 22170# Create a temporary old-style archive to link instead of a shared archive. 22171old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22172 22173# Commands used to build a shared archive. 22174archive_cmds=$lt_archive_cmds 22175archive_expsym_cmds=$lt_archive_expsym_cmds 22176 22177# Commands used to build a loadable module if different from building 22178# a shared archive. 22179module_cmds=$lt_module_cmds 22180module_expsym_cmds=$lt_module_expsym_cmds 22181 22182# Whether we are building with GNU ld or not. 22183with_gnu_ld=$lt_with_gnu_ld 22184 22185# Flag that allows shared libraries with undefined symbols to be built. 22186allow_undefined_flag=$lt_allow_undefined_flag 22187 22188# Flag that enforces no undefined symbols. 22189no_undefined_flag=$lt_no_undefined_flag 22190 22191# Flag to hardcode \$libdir into a binary during linking. 22192# This must work even if \$libdir does not exist 22193hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22194 22195# Whether we need a single "-rpath" flag with a separated argument. 22196hardcode_libdir_separator=$lt_hardcode_libdir_separator 22197 22198# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22199# DIR into the resulting binary. 22200hardcode_direct=$hardcode_direct 22201 22202# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22203# DIR into the resulting binary and the resulting library dependency is 22204# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22205# library is relocated. 22206hardcode_direct_absolute=$hardcode_direct_absolute 22207 22208# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22209# into the resulting binary. 22210hardcode_minus_L=$hardcode_minus_L 22211 22212# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22213# into the resulting binary. 22214hardcode_shlibpath_var=$hardcode_shlibpath_var 22215 22216# Set to "yes" if building a shared library automatically hardcodes DIR 22217# into the library and all subsequent libraries and executables linked 22218# against it. 22219hardcode_automatic=$hardcode_automatic 22220 22221# Set to yes if linker adds runtime paths of dependent libraries 22222# to runtime path list. 22223inherit_rpath=$inherit_rpath 22224 22225# Whether libtool must link a program against all its dependency libraries. 22226link_all_deplibs=$link_all_deplibs 22227 22228# Set to "yes" if exported symbols are required. 22229always_export_symbols=$always_export_symbols 22230 22231# The commands to list exported symbols. 22232export_symbols_cmds=$lt_export_symbols_cmds 22233 22234# Symbols that should not be listed in the preloaded symbols. 22235exclude_expsyms=$lt_exclude_expsyms 22236 22237# Symbols that must always be exported. 22238include_expsyms=$lt_include_expsyms 22239 22240# Commands necessary for linking programs (against libraries) with templates. 22241prelink_cmds=$lt_prelink_cmds 22242 22243# Commands necessary for finishing linking programs. 22244postlink_cmds=$lt_postlink_cmds 22245 22246# Specify filename containing input files. 22247file_list_spec=$lt_file_list_spec 22248 22249# How to hardcode a shared library path into an executable. 22250hardcode_action=$hardcode_action 22251 22252# ### END LIBTOOL CONFIG 22253 22254_LT_EOF 22255 22256 cat <<'_LT_EOF' >> "$cfgfile" 22257 22258# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22259 22260# func_munge_path_list VARIABLE PATH 22261# ----------------------------------- 22262# VARIABLE is name of variable containing _space_ separated list of 22263# directories to be munged by the contents of PATH, which is string 22264# having a format: 22265# "DIR[:DIR]:" 22266# string "DIR[ DIR]" will be prepended to VARIABLE 22267# ":DIR[:DIR]" 22268# string "DIR[ DIR]" will be appended to VARIABLE 22269# "DIRP[:DIRP]::[DIRA:]DIRA" 22270# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22271# "DIRA[ DIRA]" will be appended to VARIABLE 22272# "DIR[:DIR]" 22273# VARIABLE will be replaced by "DIR[ DIR]" 22274func_munge_path_list () 22275{ 22276 case x$2 in 22277 x) 22278 ;; 22279 *:) 22280 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22281 ;; 22282 x:*) 22283 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22284 ;; 22285 *::*) 22286 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22287 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22288 ;; 22289 *) 22290 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22291 ;; 22292 esac 22293} 22294 22295 22296# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22297func_cc_basename () 22298{ 22299 for cc_temp in $*""; do 22300 case $cc_temp in 22301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22303 \-*) ;; 22304 *) break;; 22305 esac 22306 done 22307 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22308} 22309 22310 22311# ### END FUNCTIONS SHARED WITH CONFIGURE 22312 22313_LT_EOF 22314 22315 case $host_os in 22316 aix3*) 22317 cat <<\_LT_EOF >> "$cfgfile" 22318# AIX sometimes has problems with the GCC collect2 program. For some 22319# reason, if we set the COLLECT_NAMES environment variable, the problems 22320# vanish in a puff of smoke. 22321if test set != "${COLLECT_NAMES+set}"; then 22322 COLLECT_NAMES= 22323 export COLLECT_NAMES 22324fi 22325_LT_EOF 22326 ;; 22327 esac 22328 22329 22330ltmain=$ac_aux_dir/ltmain.sh 22331 22332 22333 # We use sed instead of cat because bash on DJGPP gets confused if 22334 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22335 # text mode, it properly converts lines to CR/LF. This bash problem 22336 # is reportedly fixed, but why not run on old versions too? 22337 sed '$q' "$ltmain" >> "$cfgfile" \ 22338 || (rm -f "$cfgfile"; exit 1) 22339 22340 mv -f "$cfgfile" "$ofile" || 22341 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22342 chmod +x "$ofile" 22343 22344 ;; 22345 22346 esac 22347done # for ac_tag 22348 22349 22350as_fn_exit 0 22351_ACEOF 22352ac_clean_files=$ac_clean_files_save 22353 22354test $ac_write_fail = 0 || 22355 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22356 22357 22358# configure is writing to config.log, and then calls config.status. 22359# config.status does its own redirection, appending to config.log. 22360# Unfortunately, on DOS this fails, as config.log is still kept open 22361# by configure, so config.status won't be able to write to it; its 22362# output is simply discarded. So we exec the FD to /dev/null, 22363# effectively closing config.log, so it can be properly (re)opened and 22364# appended to by config.status. When coming back to configure, we 22365# need to make the FD available again. 22366if test "$no_create" != yes; then 22367 ac_cs_success=: 22368 ac_config_status_args= 22369 test "$silent" = yes && 22370 ac_config_status_args="$ac_config_status_args --quiet" 22371 exec 5>/dev/null 22372 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22373 exec 5>>config.log 22374 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22375 # would make configure fail if this is the last instruction. 22376 $ac_cs_success || as_fn_exit 1 22377fi 22378if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22380$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22381fi 22382 22383 22384echo "" 22385echo " prefix: $prefix" 22386echo " exec_prefix: $exec_prefix" 22387echo " libdir: $libdir" 22388echo " includedir: $includedir" 22389 22390echo "" 22391echo " CFLAGS: $CFLAGS" 22392echo " CXXFLAGS: $CXXFLAGS" 22393echo " Macros: $DEFINES" 22394 22395echo "" 22396echo " Run '${MAKE-make}' to build xf86-video-amdgpu" 22397echo "" 22398