configure revision fda9279d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-nouveau 1.0.11. 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-nouveau' 593PACKAGE_TARNAME='xf86-video-nouveau' 594PACKAGE_VERSION='1.0.11' 595PACKAGE_STRING='xf86-video-nouveau 1.0.11' 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 642LIBUDEV_FALSE 643LIBUDEV_TRUE 644LIBUDEV_LIBS 645LIBUDEV_CFLAGS 646PCIACCESS_LIBS 647PCIACCESS_CFLAGS 648HAVE_XEXTPROTO_71_FALSE 649HAVE_XEXTPROTO_71_TRUE 650XEXT_LIBS 651XEXT_CFLAGS 652XORG_LIBS 653XORG_CFLAGS 654LIBDRM_NOUVEAU_LIBS 655LIBDRM_NOUVEAU_CFLAGS 656LIBDRM_LIBS 657LIBDRM_CFLAGS 658OTOOL64 659OTOOL 660LIPO 661NMEDIT 662DSYMUTIL 663MANIFEST_TOOL 664RANLIB 665ac_ct_AR 666AR 667DLLTOOL 668OBJDUMP 669LN_S 670NM 671ac_ct_DUMPBIN 672DUMPBIN 673LD 674FGREP 675LIBTOOL 676MAN_SUBSTS 677XORG_MAN_PAGE 678ADMIN_MAN_DIR 679DRIVER_MAN_DIR 680MISC_MAN_DIR 681FILE_MAN_DIR 682LIB_MAN_DIR 683APP_MAN_DIR 684ADMIN_MAN_SUFFIX 685DRIVER_MAN_SUFFIX 686MISC_MAN_SUFFIX 687FILE_MAN_SUFFIX 688LIB_MAN_SUFFIX 689APP_MAN_SUFFIX 690SED 691host_os 692host_vendor 693host_cpu 694host 695build_os 696build_vendor 697build_cpu 698build 699INSTALL_CMD 700PKG_CONFIG_LIBDIR 701PKG_CONFIG_PATH 702PKG_CONFIG 703CHANGELOG_CMD 704STRICT_CFLAGS 705CWARNFLAGS 706BASE_CFLAGS 707EGREP 708GREP 709CPP 710am__fastdepCC_FALSE 711am__fastdepCC_TRUE 712CCDEPMODE 713am__nodep 714AMDEPBACKSLASH 715AMDEP_FALSE 716AMDEP_TRUE 717am__quote 718am__include 719DEPDIR 720OBJEXT 721EXEEXT 722ac_ct_CC 723CPPFLAGS 724LDFLAGS 725CFLAGS 726CC 727AM_BACKSLASH 728AM_DEFAULT_VERBOSITY 729AM_DEFAULT_V 730AM_V 731am__untar 732am__tar 733AMTAR 734am__leading_dot 735SET_MAKE 736AWK 737mkdir_p 738MKDIR_P 739INSTALL_STRIP_PROGRAM 740STRIP 741install_sh 742MAKEINFO 743AUTOHEADER 744AUTOMAKE 745AUTOCONF 746ACLOCAL 747VERSION 748PACKAGE 749CYGPATH_W 750am__isrc 751INSTALL_DATA 752INSTALL_SCRIPT 753INSTALL_PROGRAM 754target_alias 755host_alias 756build_alias 757LIBS 758ECHO_T 759ECHO_N 760ECHO_C 761DEFS 762mandir 763localedir 764libdir 765psdir 766pdfdir 767dvidir 768htmldir 769infodir 770docdir 771oldincludedir 772includedir 773localstatedir 774sharedstatedir 775sysconfdir 776datadir 777datarootdir 778libexecdir 779sbindir 780bindir 781program_transform_name 782prefix 783exec_prefix 784PACKAGE_URL 785PACKAGE_BUGREPORT 786PACKAGE_STRING 787PACKAGE_VERSION 788PACKAGE_TARNAME 789PACKAGE_NAME 790PATH_SEPARATOR 791SHELL' 792ac_subst_files='' 793ac_user_opts=' 794enable_option_checking 795enable_silent_rules 796enable_dependency_tracking 797enable_selective_werror 798enable_strict_compilation 799enable_static 800enable_shared 801with_pic 802enable_fast_install 803with_gnu_ld 804with_sysroot 805enable_libtool_lock 806with_xorg_module_dir 807' 808 ac_precious_vars='build_alias 809host_alias 810target_alias 811CC 812CFLAGS 813LDFLAGS 814LIBS 815CPPFLAGS 816CPP 817PKG_CONFIG 818PKG_CONFIG_PATH 819PKG_CONFIG_LIBDIR 820LIBDRM_CFLAGS 821LIBDRM_LIBS 822LIBDRM_NOUVEAU_CFLAGS 823LIBDRM_NOUVEAU_LIBS 824XORG_CFLAGS 825XORG_LIBS 826XEXT_CFLAGS 827XEXT_LIBS 828PCIACCESS_CFLAGS 829PCIACCESS_LIBS 830LIBUDEV_CFLAGS 831LIBUDEV_LIBS' 832 833 834# Initialize some variables set by options. 835ac_init_help= 836ac_init_version=false 837ac_unrecognized_opts= 838ac_unrecognized_sep= 839# The variables have the same names as the options, with 840# dashes changed to underlines. 841cache_file=/dev/null 842exec_prefix=NONE 843no_create= 844no_recursion= 845prefix=NONE 846program_prefix=NONE 847program_suffix=NONE 848program_transform_name=s,x,x, 849silent= 850site= 851srcdir= 852verbose= 853x_includes=NONE 854x_libraries=NONE 855 856# Installation directory options. 857# These are left unexpanded so users can "make install exec_prefix=/foo" 858# and all the variables that are supposed to be based on exec_prefix 859# by default will actually change. 860# Use braces instead of parens because sh, perl, etc. also accept them. 861# (The list follows the same order as the GNU Coding Standards.) 862bindir='${exec_prefix}/bin' 863sbindir='${exec_prefix}/sbin' 864libexecdir='${exec_prefix}/libexec' 865datarootdir='${prefix}/share' 866datadir='${datarootdir}' 867sysconfdir='${prefix}/etc' 868sharedstatedir='${prefix}/com' 869localstatedir='${prefix}/var' 870includedir='${prefix}/include' 871oldincludedir='/usr/include' 872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 873infodir='${datarootdir}/info' 874htmldir='${docdir}' 875dvidir='${docdir}' 876pdfdir='${docdir}' 877psdir='${docdir}' 878libdir='${exec_prefix}/lib' 879localedir='${datarootdir}/locale' 880mandir='${datarootdir}/man' 881 882ac_prev= 883ac_dashdash= 884for ac_option 885do 886 # If the previous option needs an argument, assign it. 887 if test -n "$ac_prev"; then 888 eval $ac_prev=\$ac_option 889 ac_prev= 890 continue 891 fi 892 893 case $ac_option in 894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 895 *=) ac_optarg= ;; 896 *) ac_optarg=yes ;; 897 esac 898 899 # Accept the important Cygnus configure options, so we can diagnose typos. 900 901 case $ac_dashdash$ac_option in 902 --) 903 ac_dashdash=yes ;; 904 905 -bindir | --bindir | --bindi | --bind | --bin | --bi) 906 ac_prev=bindir ;; 907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 908 bindir=$ac_optarg ;; 909 910 -build | --build | --buil | --bui | --bu) 911 ac_prev=build_alias ;; 912 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 913 build_alias=$ac_optarg ;; 914 915 -cache-file | --cache-file | --cache-fil | --cache-fi \ 916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 917 ac_prev=cache_file ;; 918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 920 cache_file=$ac_optarg ;; 921 922 --config-cache | -C) 923 cache_file=config.cache ;; 924 925 -datadir | --datadir | --datadi | --datad) 926 ac_prev=datadir ;; 927 -datadir=* | --datadir=* | --datadi=* | --datad=*) 928 datadir=$ac_optarg ;; 929 930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 931 | --dataroo | --dataro | --datar) 932 ac_prev=datarootdir ;; 933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 935 datarootdir=$ac_optarg ;; 936 937 -disable-* | --disable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: $ac_useropt" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=no ;; 952 953 -docdir | --docdir | --docdi | --doc | --do) 954 ac_prev=docdir ;; 955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 956 docdir=$ac_optarg ;; 957 958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 959 ac_prev=dvidir ;; 960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 961 dvidir=$ac_optarg ;; 962 963 -enable-* | --enable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=\$ac_optarg ;; 978 979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 981 | --exec | --exe | --ex) 982 ac_prev=exec_prefix ;; 983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 985 | --exec=* | --exe=* | --ex=*) 986 exec_prefix=$ac_optarg ;; 987 988 -gas | --gas | --ga | --g) 989 # Obsolete; use --with-gas. 990 with_gas=yes ;; 991 992 -help | --help | --hel | --he | -h) 993 ac_init_help=long ;; 994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 995 ac_init_help=recursive ;; 996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 997 ac_init_help=short ;; 998 999 -host | --host | --hos | --ho) 1000 ac_prev=host_alias ;; 1001 -host=* | --host=* | --hos=* | --ho=*) 1002 host_alias=$ac_optarg ;; 1003 1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1005 ac_prev=htmldir ;; 1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1007 | --ht=*) 1008 htmldir=$ac_optarg ;; 1009 1010 -includedir | --includedir | --includedi | --included | --include \ 1011 | --includ | --inclu | --incl | --inc) 1012 ac_prev=includedir ;; 1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1014 | --includ=* | --inclu=* | --incl=* | --inc=*) 1015 includedir=$ac_optarg ;; 1016 1017 -infodir | --infodir | --infodi | --infod | --info | --inf) 1018 ac_prev=infodir ;; 1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1020 infodir=$ac_optarg ;; 1021 1022 -libdir | --libdir | --libdi | --libd) 1023 ac_prev=libdir ;; 1024 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1025 libdir=$ac_optarg ;; 1026 1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1028 | --libexe | --libex | --libe) 1029 ac_prev=libexecdir ;; 1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1031 | --libexe=* | --libex=* | --libe=*) 1032 libexecdir=$ac_optarg ;; 1033 1034 -localedir | --localedir | --localedi | --localed | --locale) 1035 ac_prev=localedir ;; 1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1037 localedir=$ac_optarg ;; 1038 1039 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1040 | --localstate | --localstat | --localsta | --localst | --locals) 1041 ac_prev=localstatedir ;; 1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1044 localstatedir=$ac_optarg ;; 1045 1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1047 ac_prev=mandir ;; 1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1049 mandir=$ac_optarg ;; 1050 1051 -nfp | --nfp | --nf) 1052 # Obsolete; use --without-fp. 1053 with_fp=no ;; 1054 1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1056 | --no-cr | --no-c | -n) 1057 no_create=yes ;; 1058 1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1061 no_recursion=yes ;; 1062 1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1065 | --oldin | --oldi | --old | --ol | --o) 1066 ac_prev=oldincludedir ;; 1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1070 oldincludedir=$ac_optarg ;; 1071 1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1073 ac_prev=prefix ;; 1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1075 prefix=$ac_optarg ;; 1076 1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1078 | --program-pre | --program-pr | --program-p) 1079 ac_prev=program_prefix ;; 1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1082 program_prefix=$ac_optarg ;; 1083 1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1085 | --program-suf | --program-su | --program-s) 1086 ac_prev=program_suffix ;; 1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1089 program_suffix=$ac_optarg ;; 1090 1091 -program-transform-name | --program-transform-name \ 1092 | --program-transform-nam | --program-transform-na \ 1093 | --program-transform-n | --program-transform- \ 1094 | --program-transform | --program-transfor \ 1095 | --program-transfo | --program-transf \ 1096 | --program-trans | --program-tran \ 1097 | --progr-tra | --program-tr | --program-t) 1098 ac_prev=program_transform_name ;; 1099 -program-transform-name=* | --program-transform-name=* \ 1100 | --program-transform-nam=* | --program-transform-na=* \ 1101 | --program-transform-n=* | --program-transform-=* \ 1102 | --program-transform=* | --program-transfor=* \ 1103 | --program-transfo=* | --program-transf=* \ 1104 | --program-trans=* | --program-tran=* \ 1105 | --progr-tra=* | --program-tr=* | --program-t=*) 1106 program_transform_name=$ac_optarg ;; 1107 1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1109 ac_prev=pdfdir ;; 1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1111 pdfdir=$ac_optarg ;; 1112 1113 -psdir | --psdir | --psdi | --psd | --ps) 1114 ac_prev=psdir ;; 1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1116 psdir=$ac_optarg ;; 1117 1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1119 | -silent | --silent | --silen | --sile | --sil) 1120 silent=yes ;; 1121 1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1123 ac_prev=sbindir ;; 1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1125 | --sbi=* | --sb=*) 1126 sbindir=$ac_optarg ;; 1127 1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1130 | --sharedst | --shareds | --shared | --share | --shar \ 1131 | --sha | --sh) 1132 ac_prev=sharedstatedir ;; 1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1136 | --sha=* | --sh=*) 1137 sharedstatedir=$ac_optarg ;; 1138 1139 -site | --site | --sit) 1140 ac_prev=site ;; 1141 -site=* | --site=* | --sit=*) 1142 site=$ac_optarg ;; 1143 1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1145 ac_prev=srcdir ;; 1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1147 srcdir=$ac_optarg ;; 1148 1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1150 | --syscon | --sysco | --sysc | --sys | --sy) 1151 ac_prev=sysconfdir ;; 1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1154 sysconfdir=$ac_optarg ;; 1155 1156 -target | --target | --targe | --targ | --tar | --ta | --t) 1157 ac_prev=target_alias ;; 1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1159 target_alias=$ac_optarg ;; 1160 1161 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1162 verbose=yes ;; 1163 1164 -version | --version | --versio | --versi | --vers | -V) 1165 ac_init_version=: ;; 1166 1167 -with-* | --with-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: $ac_useropt" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=\$ac_optarg ;; 1182 1183 -without-* | --without-*) 1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1185 # Reject names that are not valid shell variable names. 1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1187 as_fn_error $? "invalid package name: $ac_useropt" 1188 ac_useropt_orig=$ac_useropt 1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1190 case $ac_user_opts in 1191 *" 1192"with_$ac_useropt" 1193"*) ;; 1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1195 ac_unrecognized_sep=', ';; 1196 esac 1197 eval with_$ac_useropt=no ;; 1198 1199 --x) 1200 # Obsolete; use --with-x. 1201 with_x=yes ;; 1202 1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1204 | --x-incl | --x-inc | --x-in | --x-i) 1205 ac_prev=x_includes ;; 1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1208 x_includes=$ac_optarg ;; 1209 1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1212 ac_prev=x_libraries ;; 1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1215 x_libraries=$ac_optarg ;; 1216 1217 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1218Try \`$0 --help' for more information" 1219 ;; 1220 1221 *=*) 1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1223 # Reject names that are not valid shell variable names. 1224 case $ac_envvar in #( 1225 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1227 esac 1228 eval $ac_envvar=\$ac_optarg 1229 export $ac_envvar ;; 1230 1231 *) 1232 # FIXME: should be removed in autoconf 3.0. 1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1237 ;; 1238 1239 esac 1240done 1241 1242if test -n "$ac_prev"; then 1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1244 as_fn_error $? "missing argument to $ac_option" 1245fi 1246 1247if test -n "$ac_unrecognized_opts"; then 1248 case $enable_option_checking in 1249 no) ;; 1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1252 esac 1253fi 1254 1255# Check all directory arguments for consistency. 1256for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1257 datadir sysconfdir sharedstatedir localstatedir includedir \ 1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1259 libdir localedir mandir 1260do 1261 eval ac_val=\$$ac_var 1262 # Remove trailing slashes. 1263 case $ac_val in 1264 */ ) 1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1266 eval $ac_var=\$ac_val;; 1267 esac 1268 # Be sure to have absolute directory names. 1269 case $ac_val in 1270 [\\/$]* | ?:[\\/]* ) continue;; 1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1272 esac 1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1274done 1275 1276# There might be people who depend on the old broken behavior: `$host' 1277# used to hold the argument of --host etc. 1278# FIXME: To remove some day. 1279build=$build_alias 1280host=$host_alias 1281target=$target_alias 1282 1283# FIXME: To remove some day. 1284if test "x$host_alias" != x; then 1285 if test "x$build_alias" = x; then 1286 cross_compiling=maybe 1287 elif test "x$build_alias" != "x$host_alias"; then 1288 cross_compiling=yes 1289 fi 1290fi 1291 1292ac_tool_prefix= 1293test -n "$host_alias" && ac_tool_prefix=$host_alias- 1294 1295test "$silent" = yes && exec 6>/dev/null 1296 1297 1298ac_pwd=`pwd` && test -n "$ac_pwd" && 1299ac_ls_di=`ls -di .` && 1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1301 as_fn_error $? "working directory cannot be determined" 1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1303 as_fn_error $? "pwd does not report name of working directory" 1304 1305 1306# Find the source files, if location was not specified. 1307if test -z "$srcdir"; then 1308 ac_srcdir_defaulted=yes 1309 # Try the directory containing this script, then the parent directory. 1310 ac_confdir=`$as_dirname -- "$as_myself" || 1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1312 X"$as_myself" : 'X\(//\)[^/]' \| \ 1313 X"$as_myself" : 'X\(//\)$' \| \ 1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1315$as_echo X"$as_myself" | 1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\/\)[^/].*/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\/\)$/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\).*/{ 1329 s//\1/ 1330 q 1331 } 1332 s/.*/./; q'` 1333 srcdir=$ac_confdir 1334 if test ! -r "$srcdir/$ac_unique_file"; then 1335 srcdir=.. 1336 fi 1337else 1338 ac_srcdir_defaulted=no 1339fi 1340if test ! -r "$srcdir/$ac_unique_file"; then 1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1343fi 1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1345ac_abs_confdir=`( 1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1347 pwd)` 1348# When building in place, set srcdir=. 1349if test "$ac_abs_confdir" = "$ac_pwd"; then 1350 srcdir=. 1351fi 1352# Remove unnecessary trailing slashes from srcdir. 1353# Double slashes in file names in object file debugging info 1354# mess up M-x gdb in Emacs. 1355case $srcdir in 1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1357esac 1358for ac_var in $ac_precious_vars; do 1359 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1360 eval ac_env_${ac_var}_value=\$${ac_var} 1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1363done 1364 1365# 1366# Report the --help message. 1367# 1368if test "$ac_init_help" = "long"; then 1369 # Omit some internal or obsolete options to make the list less imposing. 1370 # This message is too long to be a string in the A/UX 3.1 sh. 1371 cat <<_ACEOF 1372\`configure' configures xf86-video-nouveau 1.0.11 to adapt to many kinds of systems. 1373 1374Usage: $0 [OPTION]... [VAR=VALUE]... 1375 1376To assign environment variables (e.g., CC, CFLAGS...), specify them as 1377VAR=VALUE. See below for descriptions of some of the useful variables. 1378 1379Defaults for the options are specified in brackets. 1380 1381Configuration: 1382 -h, --help display this help and exit 1383 --help=short display options specific to this package 1384 --help=recursive display the short help of all the included packages 1385 -V, --version display version information and exit 1386 -q, --quiet, --silent do not print \`checking ...' messages 1387 --cache-file=FILE cache test results in FILE [disabled] 1388 -C, --config-cache alias for \`--cache-file=config.cache' 1389 -n, --no-create do not create output files 1390 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1391 1392Installation directories: 1393 --prefix=PREFIX install architecture-independent files in PREFIX 1394 [$ac_default_prefix] 1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1396 [PREFIX] 1397 1398By default, \`make install' will install all the files in 1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1400an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1401for instance \`--prefix=\$HOME'. 1402 1403For better control, use the options below. 1404 1405Fine tuning of the installation directories: 1406 --bindir=DIR user executables [EPREFIX/bin] 1407 --sbindir=DIR system admin executables [EPREFIX/sbin] 1408 --libexecdir=DIR program executables [EPREFIX/libexec] 1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1412 --libdir=DIR object code libraries [EPREFIX/lib] 1413 --includedir=DIR C header files [PREFIX/include] 1414 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1417 --infodir=DIR info documentation [DATAROOTDIR/info] 1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1419 --mandir=DIR man documentation [DATAROOTDIR/man] 1420 --docdir=DIR documentation root 1421 [DATAROOTDIR/doc/xf86-video-nouveau] 1422 --htmldir=DIR html documentation [DOCDIR] 1423 --dvidir=DIR dvi documentation [DOCDIR] 1424 --pdfdir=DIR pdf documentation [DOCDIR] 1425 --psdir=DIR ps documentation [DOCDIR] 1426_ACEOF 1427 1428 cat <<\_ACEOF 1429 1430Program names: 1431 --program-prefix=PREFIX prepend PREFIX to installed program names 1432 --program-suffix=SUFFIX append SUFFIX to installed program names 1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1434 1435System types: 1436 --build=BUILD configure for building on BUILD [guessed] 1437 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1438_ACEOF 1439fi 1440 1441if test -n "$ac_init_help"; then 1442 case $ac_init_help in 1443 short | recursive ) echo "Configuration of xf86-video-nouveau 1.0.11:";; 1444 esac 1445 cat <<\_ACEOF 1446 1447Optional Features: 1448 --disable-option-checking ignore unrecognized --enable/--with options 1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1451 --enable-silent-rules less verbose build output (undo: "make V=1") 1452 --disable-silent-rules verbose build output (undo: "make V=0") 1453 --enable-dependency-tracking 1454 do not reject slow dependency extractors 1455 --disable-dependency-tracking 1456 speeds up one-time build 1457 --disable-selective-werror 1458 Turn off selective compiler errors. (default: 1459 enabled) 1460 --enable-strict-compilation 1461 Enable all warnings from compiler and make them 1462 errors (default: disabled) 1463 --enable-static[=PKGS] build static libraries [default=no] 1464 --enable-shared[=PKGS] build shared libraries [default=yes] 1465 --enable-fast-install[=PKGS] 1466 optimize for fast installation [default=yes] 1467 --disable-libtool-lock avoid locking (might break parallel builds) 1468 1469Optional Packages: 1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1472 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1473 both] 1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1475 --with-sysroot=DIR Search for dependent libraries within DIR 1476 (or the compiler's sysroot if not specified). 1477 --with-xorg-module-dir=DIR 1478 Default xorg module directory 1479 [[default=$libdir/xorg/modules]] 1480 1481Some influential environment variables: 1482 CC C compiler command 1483 CFLAGS C compiler flags 1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1485 nonstandard directory <lib dir> 1486 LIBS libraries to pass to the linker, e.g. -l<library> 1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1488 you have headers in a nonstandard directory <include dir> 1489 CPP C preprocessor 1490 PKG_CONFIG path to pkg-config utility 1491 PKG_CONFIG_PATH 1492 directories to add to pkg-config's search path 1493 PKG_CONFIG_LIBDIR 1494 path overriding pkg-config's built-in search path 1495 LIBDRM_CFLAGS 1496 C compiler flags for LIBDRM, overriding pkg-config 1497 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1498 LIBDRM_NOUVEAU_CFLAGS 1499 C compiler flags for LIBDRM_NOUVEAU, overriding pkg-config 1500 LIBDRM_NOUVEAU_LIBS 1501 linker flags for LIBDRM_NOUVEAU, overriding pkg-config 1502 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1503 XORG_LIBS linker flags for XORG, overriding pkg-config 1504 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1505 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1506 PCIACCESS_CFLAGS 1507 C compiler flags for PCIACCESS, overriding pkg-config 1508 PCIACCESS_LIBS 1509 linker flags for PCIACCESS, overriding pkg-config 1510 LIBUDEV_CFLAGS 1511 C compiler flags for LIBUDEV, overriding pkg-config 1512 LIBUDEV_LIBS 1513 linker flags for LIBUDEV, overriding pkg-config 1514 1515Use these variables to override the choices made by `configure' or to help 1516it to find libraries and programs with nonstandard names/locations. 1517 1518Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1519_ACEOF 1520ac_status=$? 1521fi 1522 1523if test "$ac_init_help" = "recursive"; then 1524 # If there are subdirs, report their specific --help. 1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1526 test -d "$ac_dir" || 1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1528 continue 1529 ac_builddir=. 1530 1531case "$ac_dir" in 1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1533*) 1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1535 # A ".." for each directory in $ac_dir_suffix. 1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1537 case $ac_top_builddir_sub in 1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1540 esac ;; 1541esac 1542ac_abs_top_builddir=$ac_pwd 1543ac_abs_builddir=$ac_pwd$ac_dir_suffix 1544# for backward compatibility: 1545ac_top_builddir=$ac_top_build_prefix 1546 1547case $srcdir in 1548 .) # We are building in place. 1549 ac_srcdir=. 1550 ac_top_srcdir=$ac_top_builddir_sub 1551 ac_abs_top_srcdir=$ac_pwd ;; 1552 [\\/]* | ?:[\\/]* ) # Absolute name. 1553 ac_srcdir=$srcdir$ac_dir_suffix; 1554 ac_top_srcdir=$srcdir 1555 ac_abs_top_srcdir=$srcdir ;; 1556 *) # Relative name. 1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1558 ac_top_srcdir=$ac_top_build_prefix$srcdir 1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1560esac 1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1562 1563 cd "$ac_dir" || { ac_status=$?; continue; } 1564 # Check for guested configure. 1565 if test -f "$ac_srcdir/configure.gnu"; then 1566 echo && 1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1568 elif test -f "$ac_srcdir/configure"; then 1569 echo && 1570 $SHELL "$ac_srcdir/configure" --help=recursive 1571 else 1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1573 fi || ac_status=$? 1574 cd "$ac_pwd" || { ac_status=$?; break; } 1575 done 1576fi 1577 1578test -n "$ac_init_help" && exit $ac_status 1579if $ac_init_version; then 1580 cat <<\_ACEOF 1581xf86-video-nouveau configure 1.0.11 1582generated by GNU Autoconf 2.69 1583 1584Copyright (C) 2012 Free Software Foundation, Inc. 1585This configure script is free software; the Free Software Foundation 1586gives unlimited permission to copy, distribute and modify it. 1587_ACEOF 1588 exit 1589fi 1590 1591## ------------------------ ## 1592## Autoconf initialization. ## 1593## ------------------------ ## 1594 1595# ac_fn_c_try_compile LINENO 1596# -------------------------- 1597# Try to compile conftest.$ac_ext, and return whether this succeeded. 1598ac_fn_c_try_compile () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 rm -f conftest.$ac_objext 1602 if { { ac_try="$ac_compile" 1603case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606esac 1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608$as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_compile") 2>conftest.err 1610 ac_status=$? 1611 if test -s conftest.err; then 1612 grep -v '^ *+' conftest.err >conftest.er1 1613 cat conftest.er1 >&5 1614 mv -f conftest.er1 conftest.err 1615 fi 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } && { 1618 test -z "$ac_c_werror_flag" || 1619 test ! -s conftest.err 1620 } && test -s conftest.$ac_objext; then : 1621 ac_retval=0 1622else 1623 $as_echo "$as_me: failed program was:" >&5 1624sed 's/^/| /' conftest.$ac_ext >&5 1625 1626 ac_retval=1 1627fi 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 as_fn_set_status $ac_retval 1630 1631} # ac_fn_c_try_compile 1632 1633# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1634# --------------------------------------------- 1635# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1636# accordingly. 1637ac_fn_c_check_decl () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 as_decl_name=`echo $2|sed 's/ *(.*//'` 1641 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1643$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1644if eval \${$3+:} false; then : 1645 $as_echo_n "(cached) " >&6 1646else 1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1648/* end confdefs.h. */ 1649$4 1650int 1651main () 1652{ 1653#ifndef $as_decl_name 1654#ifdef __cplusplus 1655 (void) $as_decl_use; 1656#else 1657 (void) $as_decl_name; 1658#endif 1659#endif 1660 1661 ; 1662 return 0; 1663} 1664_ACEOF 1665if ac_fn_c_try_compile "$LINENO"; then : 1666 eval "$3=yes" 1667else 1668 eval "$3=no" 1669fi 1670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1671fi 1672eval ac_res=\$$3 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1674$as_echo "$ac_res" >&6; } 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 1677} # ac_fn_c_check_decl 1678 1679# ac_fn_c_try_cpp LINENO 1680# ---------------------- 1681# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1682ac_fn_c_try_cpp () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 if { { ac_try="$ac_cpp conftest.$ac_ext" 1686case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1693 ac_status=$? 1694 if test -s conftest.err; then 1695 grep -v '^ *+' conftest.err >conftest.er1 1696 cat conftest.er1 >&5 1697 mv -f conftest.er1 conftest.err 1698 fi 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } > conftest.i && { 1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1702 test ! -s conftest.err 1703 }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: failed program was:" >&5 1707sed 's/^/| /' conftest.$ac_ext >&5 1708 1709 ac_retval=1 1710fi 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 as_fn_set_status $ac_retval 1713 1714} # ac_fn_c_try_cpp 1715 1716# ac_fn_c_try_run LINENO 1717# ---------------------- 1718# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1719# that executables *can* be run. 1720ac_fn_c_try_run () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 if { { ac_try="$ac_link" 1724case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_link") 2>&5 1731 ac_status=$? 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1734 { { case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737esac 1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739$as_echo "$ac_try_echo"; } >&5 1740 (eval "$ac_try") 2>&5 1741 ac_status=$? 1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1743 test $ac_status = 0; }; }; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: program exited with status $ac_status" >&5 1747 $as_echo "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=$ac_status 1751fi 1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 as_fn_set_status $ac_retval 1755 1756} # ac_fn_c_try_run 1757 1758# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1759# ------------------------------------------------------- 1760# Tests whether HEADER exists and can be compiled using the include files in 1761# INCLUDES, setting the cache variable VAR accordingly. 1762ac_fn_c_check_header_compile () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1766$as_echo_n "checking for $2... " >&6; } 1767if eval \${$3+:} false; then : 1768 $as_echo_n "(cached) " >&6 1769else 1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1771/* end confdefs.h. */ 1772$4 1773#include <$2> 1774_ACEOF 1775if ac_fn_c_try_compile "$LINENO"; then : 1776 eval "$3=yes" 1777else 1778 eval "$3=no" 1779fi 1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1781fi 1782eval ac_res=\$$3 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1784$as_echo "$ac_res" >&6; } 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 1787} # ac_fn_c_check_header_compile 1788 1789# ac_fn_c_try_link LINENO 1790# ----------------------- 1791# Try to link conftest.$ac_ext, and return whether this succeeded. 1792ac_fn_c_try_link () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 rm -f conftest.$ac_objext conftest$ac_exeext 1796 if { { ac_try="$ac_link" 1797case "(($ac_try" in 1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1799 *) ac_try_echo=$ac_try;; 1800esac 1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1802$as_echo "$ac_try_echo"; } >&5 1803 (eval "$ac_link") 2>conftest.err 1804 ac_status=$? 1805 if test -s conftest.err; then 1806 grep -v '^ *+' conftest.err >conftest.er1 1807 cat conftest.er1 >&5 1808 mv -f conftest.er1 conftest.err 1809 fi 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1811 test $ac_status = 0; } && { 1812 test -z "$ac_c_werror_flag" || 1813 test ! -s conftest.err 1814 } && test -s conftest$ac_exeext && { 1815 test "$cross_compiling" = yes || 1816 test -x conftest$ac_exeext 1817 }; then : 1818 ac_retval=0 1819else 1820 $as_echo "$as_me: failed program was:" >&5 1821sed 's/^/| /' conftest.$ac_ext >&5 1822 1823 ac_retval=1 1824fi 1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1827 # interfere with the next link command; also delete a directory that is 1828 # left behind by Apple's compiler. We do this before executing the actions. 1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 as_fn_set_status $ac_retval 1832 1833} # ac_fn_c_try_link 1834 1835# ac_fn_c_check_func LINENO FUNC VAR 1836# ---------------------------------- 1837# Tests whether FUNC exists, setting the cache variable VAR accordingly 1838ac_fn_c_check_func () 1839{ 1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1842$as_echo_n "checking for $2... " >&6; } 1843if eval \${$3+:} false; then : 1844 $as_echo_n "(cached) " >&6 1845else 1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847/* end confdefs.h. */ 1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1850#define $2 innocuous_$2 1851 1852/* System header to define __stub macros and hopefully few prototypes, 1853 which can conflict with char $2 (); below. 1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1855 <limits.h> exists even on freestanding compilers. */ 1856 1857#ifdef __STDC__ 1858# include <limits.h> 1859#else 1860# include <assert.h> 1861#endif 1862 1863#undef $2 1864 1865/* Override any GCC internal prototype to avoid an error. 1866 Use char because int might match the return type of a GCC 1867 builtin and then its argument prototype would still apply. */ 1868#ifdef __cplusplus 1869extern "C" 1870#endif 1871char $2 (); 1872/* The GNU C library defines this for functions which it implements 1873 to always fail with ENOSYS. Some functions are actually named 1874 something starting with __ and the normal name is an alias. */ 1875#if defined __stub_$2 || defined __stub___$2 1876choke me 1877#endif 1878 1879int 1880main () 1881{ 1882return $2 (); 1883 ; 1884 return 0; 1885} 1886_ACEOF 1887if ac_fn_c_try_link "$LINENO"; then : 1888 eval "$3=yes" 1889else 1890 eval "$3=no" 1891fi 1892rm -f core conftest.err conftest.$ac_objext \ 1893 conftest$ac_exeext conftest.$ac_ext 1894fi 1895eval ac_res=\$$3 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1897$as_echo "$ac_res" >&6; } 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 1900} # ac_fn_c_check_func 1901cat >config.log <<_ACEOF 1902This file contains any messages produced by compilers while 1903running configure, to aid debugging if configure makes a mistake. 1904 1905It was created by xf86-video-nouveau $as_me 1.0.11, which was 1906generated by GNU Autoconf 2.69. Invocation command line was 1907 1908 $ $0 $@ 1909 1910_ACEOF 1911exec 5>>config.log 1912{ 1913cat <<_ASUNAME 1914## --------- ## 1915## Platform. ## 1916## --------- ## 1917 1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1919uname -m = `(uname -m) 2>/dev/null || echo unknown` 1920uname -r = `(uname -r) 2>/dev/null || echo unknown` 1921uname -s = `(uname -s) 2>/dev/null || echo unknown` 1922uname -v = `(uname -v) 2>/dev/null || echo unknown` 1923 1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1925/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1926 1927/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1928/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1930/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1931/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1932/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1933/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1934 1935_ASUNAME 1936 1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1938for as_dir in $PATH 1939do 1940 IFS=$as_save_IFS 1941 test -z "$as_dir" && as_dir=. 1942 $as_echo "PATH: $as_dir" 1943 done 1944IFS=$as_save_IFS 1945 1946} >&5 1947 1948cat >&5 <<_ACEOF 1949 1950 1951## ----------- ## 1952## Core tests. ## 1953## ----------- ## 1954 1955_ACEOF 1956 1957 1958# Keep a trace of the command line. 1959# Strip out --no-create and --no-recursion so they do not pile up. 1960# Strip out --silent because we don't want to record it for future runs. 1961# Also quote any args containing shell meta-characters. 1962# Make two passes to allow for proper duplicate-argument suppression. 1963ac_configure_args= 1964ac_configure_args0= 1965ac_configure_args1= 1966ac_must_keep_next=false 1967for ac_pass in 1 2 1968do 1969 for ac_arg 1970 do 1971 case $ac_arg in 1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1974 | -silent | --silent | --silen | --sile | --sil) 1975 continue ;; 1976 *\'*) 1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1978 esac 1979 case $ac_pass in 1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1981 2) 1982 as_fn_append ac_configure_args1 " '$ac_arg'" 1983 if test $ac_must_keep_next = true; then 1984 ac_must_keep_next=false # Got value, back to normal. 1985 else 1986 case $ac_arg in 1987 *=* | --config-cache | -C | -disable-* | --disable-* \ 1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1990 | -with-* | --with-* | -without-* | --without-* | --x) 1991 case "$ac_configure_args0 " in 1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1993 esac 1994 ;; 1995 -* ) ac_must_keep_next=true ;; 1996 esac 1997 fi 1998 as_fn_append ac_configure_args " '$ac_arg'" 1999 ;; 2000 esac 2001 done 2002done 2003{ ac_configure_args0=; unset ac_configure_args0;} 2004{ ac_configure_args1=; unset ac_configure_args1;} 2005 2006# When interrupted or exit'd, cleanup temporary files, and complete 2007# config.log. We remove comments because anyway the quotes in there 2008# would cause problems or look ugly. 2009# WARNING: Use '\'' to represent an apostrophe within the trap. 2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2011trap 'exit_status=$? 2012 # Save into config.log some information that might help in debugging. 2013 { 2014 echo 2015 2016 $as_echo "## ---------------- ## 2017## Cache variables. ## 2018## ---------------- ##" 2019 echo 2020 # The following way of writing the cache mishandles newlines in values, 2021( 2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2023 eval ac_val=\$$ac_var 2024 case $ac_val in #( 2025 *${as_nl}*) 2026 case $ac_var in #( 2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2028$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2029 esac 2030 case $ac_var in #( 2031 _ | IFS | as_nl) ;; #( 2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2033 *) { eval $ac_var=; unset $ac_var;} ;; 2034 esac ;; 2035 esac 2036 done 2037 (set) 2>&1 | 2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2039 *${as_nl}ac_space=\ *) 2040 sed -n \ 2041 "s/'\''/'\''\\\\'\'''\''/g; 2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2043 ;; #( 2044 *) 2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2046 ;; 2047 esac | 2048 sort 2049) 2050 echo 2051 2052 $as_echo "## ----------------- ## 2053## Output variables. ## 2054## ----------------- ##" 2055 echo 2056 for ac_var in $ac_subst_vars 2057 do 2058 eval ac_val=\$$ac_var 2059 case $ac_val in 2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2061 esac 2062 $as_echo "$ac_var='\''$ac_val'\''" 2063 done | sort 2064 echo 2065 2066 if test -n "$ac_subst_files"; then 2067 $as_echo "## ------------------- ## 2068## File substitutions. ## 2069## ------------------- ##" 2070 echo 2071 for ac_var in $ac_subst_files 2072 do 2073 eval ac_val=\$$ac_var 2074 case $ac_val in 2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2076 esac 2077 $as_echo "$ac_var='\''$ac_val'\''" 2078 done | sort 2079 echo 2080 fi 2081 2082 if test -s confdefs.h; then 2083 $as_echo "## ----------- ## 2084## confdefs.h. ## 2085## ----------- ##" 2086 echo 2087 cat confdefs.h 2088 echo 2089 fi 2090 test "$ac_signal" != 0 && 2091 $as_echo "$as_me: caught signal $ac_signal" 2092 $as_echo "$as_me: exit $exit_status" 2093 } >&5 2094 rm -f core *.core core.conftest.* && 2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2096 exit $exit_status 2097' 0 2098for ac_signal in 1 2 13 15; do 2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2100done 2101ac_signal=0 2102 2103# confdefs.h avoids OS command line length limits that DEFS can exceed. 2104rm -f -r conftest* confdefs.h 2105 2106$as_echo "/* confdefs.h */" > confdefs.h 2107 2108# Predefined preprocessor variables. 2109 2110cat >>confdefs.h <<_ACEOF 2111#define PACKAGE_NAME "$PACKAGE_NAME" 2112_ACEOF 2113 2114cat >>confdefs.h <<_ACEOF 2115#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2116_ACEOF 2117 2118cat >>confdefs.h <<_ACEOF 2119#define PACKAGE_VERSION "$PACKAGE_VERSION" 2120_ACEOF 2121 2122cat >>confdefs.h <<_ACEOF 2123#define PACKAGE_STRING "$PACKAGE_STRING" 2124_ACEOF 2125 2126cat >>confdefs.h <<_ACEOF 2127#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2128_ACEOF 2129 2130cat >>confdefs.h <<_ACEOF 2131#define PACKAGE_URL "$PACKAGE_URL" 2132_ACEOF 2133 2134 2135# Let the site file select an alternate cache file if it wants to. 2136# Prefer an explicitly selected file to automatically selected ones. 2137ac_site_file1=NONE 2138ac_site_file2=NONE 2139if test -n "$CONFIG_SITE"; then 2140 # We do not want a PATH search for config.site. 2141 case $CONFIG_SITE in #(( 2142 -*) ac_site_file1=./$CONFIG_SITE;; 2143 */*) ac_site_file1=$CONFIG_SITE;; 2144 *) ac_site_file1=./$CONFIG_SITE;; 2145 esac 2146elif test "x$prefix" != xNONE; then 2147 ac_site_file1=$prefix/share/config.site 2148 ac_site_file2=$prefix/etc/config.site 2149else 2150 ac_site_file1=$ac_default_prefix/share/config.site 2151 ac_site_file2=$ac_default_prefix/etc/config.site 2152fi 2153for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2154do 2155 test "x$ac_site_file" = xNONE && continue 2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2158$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2159 sed 's/^/| /' "$ac_site_file" >&5 2160 . "$ac_site_file" \ 2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2163as_fn_error $? "failed to load site script $ac_site_file 2164See \`config.log' for more details" "$LINENO" 5; } 2165 fi 2166done 2167 2168if test -r "$cache_file"; then 2169 # Some versions of bash will fail to source /dev/null (special files 2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2173$as_echo "$as_me: loading cache $cache_file" >&6;} 2174 case $cache_file in 2175 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2176 *) . "./$cache_file";; 2177 esac 2178 fi 2179else 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2181$as_echo "$as_me: creating cache $cache_file" >&6;} 2182 >$cache_file 2183fi 2184 2185# Check that the precious variables saved in the cache have kept the same 2186# value. 2187ac_cache_corrupted=false 2188for ac_var in $ac_precious_vars; do 2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2190 eval ac_new_set=\$ac_env_${ac_var}_set 2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2192 eval ac_new_val=\$ac_env_${ac_var}_value 2193 case $ac_old_set,$ac_new_set in 2194 set,) 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2196$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2197 ac_cache_corrupted=: ;; 2198 ,set) 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2200$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2201 ac_cache_corrupted=: ;; 2202 ,);; 2203 *) 2204 if test "x$ac_old_val" != "x$ac_new_val"; then 2205 # differences in whitespace do not lead to failure. 2206 ac_old_val_w=`echo x $ac_old_val` 2207 ac_new_val_w=`echo x $ac_new_val` 2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2210$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2211 ac_cache_corrupted=: 2212 else 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2214$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2215 eval $ac_var=\$ac_old_val 2216 fi 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2218$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2220$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2221 fi;; 2222 esac 2223 # Pass precious variables to config.status. 2224 if test "$ac_new_set" = set; then 2225 case $ac_new_val in 2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2227 *) ac_arg=$ac_var=$ac_new_val ;; 2228 esac 2229 case " $ac_configure_args " in 2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2232 esac 2233 fi 2234done 2235if $ac_cache_corrupted; then 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2239$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2241fi 2242## -------------------- ## 2243## Main body of script. ## 2244## -------------------- ## 2245 2246ac_ext=c 2247ac_cpp='$CPP $CPPFLAGS' 2248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2250ac_compiler_gnu=$ac_cv_c_compiler_gnu 2251 2252 2253 2254 2255cat >>confdefs.h <<_ACEOF 2256#define NV_MAJOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/') 2257_ACEOF 2258 2259 2260cat >>confdefs.h <<_ACEOF 2261#define NV_MINOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/') 2262_ACEOF 2263 2264 2265cat >>confdefs.h <<_ACEOF 2266#define NV_PATCHLEVEL $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/') 2267_ACEOF 2268 2269 2270cat >>confdefs.h <<_ACEOF 2271#define NV_DRIVER_DATE $(echo -n \";git log |head -3|tail -1|tr -d '\n';echo -n \") 2272_ACEOF 2273 2274 2275 2276ac_config_headers="$ac_config_headers config.h" 2277 2278ac_aux_dir= 2279for ac_dir in . "$srcdir"/.; do 2280 if test -f "$ac_dir/install-sh"; then 2281 ac_aux_dir=$ac_dir 2282 ac_install_sh="$ac_aux_dir/install-sh -c" 2283 break 2284 elif test -f "$ac_dir/install.sh"; then 2285 ac_aux_dir=$ac_dir 2286 ac_install_sh="$ac_aux_dir/install.sh -c" 2287 break 2288 elif test -f "$ac_dir/shtool"; then 2289 ac_aux_dir=$ac_dir 2290 ac_install_sh="$ac_aux_dir/shtool install -c" 2291 break 2292 fi 2293done 2294if test -z "$ac_aux_dir"; then 2295 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2296fi 2297 2298# These three variables are undocumented and unsupported, 2299# and are intended to be withdrawn in a future Autoconf release. 2300# They can cause serious problems if a builder's source tree is in a directory 2301# whose full name contains unusual characters. 2302ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2303ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2304ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2305 2306 2307 2308am__api_version='1.14' 2309 2310# Find a good install program. We prefer a C program (faster), 2311# so one script is as good as another. But avoid the broken or 2312# incompatible versions: 2313# SysV /etc/install, /usr/sbin/install 2314# SunOS /usr/etc/install 2315# IRIX /sbin/install 2316# AIX /bin/install 2317# AmigaOS /C/install, which installs bootblocks on floppy discs 2318# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2319# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2320# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2321# OS/2's system install, which has a completely different semantic 2322# ./install, which can be erroneously created by make from ./install.sh. 2323# Reject install programs that cannot install multiple files. 2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2325$as_echo_n "checking for a BSD-compatible install... " >&6; } 2326if test -z "$INSTALL"; then 2327if ${ac_cv_path_install+:} false; then : 2328 $as_echo_n "(cached) " >&6 2329else 2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2331for as_dir in $PATH 2332do 2333 IFS=$as_save_IFS 2334 test -z "$as_dir" && as_dir=. 2335 # Account for people who put trailing slashes in PATH elements. 2336case $as_dir/ in #(( 2337 ./ | .// | /[cC]/* | \ 2338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2339 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2340 /usr/ucb/* ) ;; 2341 *) 2342 # OSF1 and SCO ODT 3.0 have their own names for install. 2343 # Don't use installbsd from OSF since it installs stuff as root 2344 # by default. 2345 for ac_prog in ginstall scoinst install; do 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2348 if test $ac_prog = install && 2349 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2350 # AIX install. It has an incompatible calling convention. 2351 : 2352 elif test $ac_prog = install && 2353 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2354 # program-specific install script used by HP pwplus--don't use. 2355 : 2356 else 2357 rm -rf conftest.one conftest.two conftest.dir 2358 echo one > conftest.one 2359 echo two > conftest.two 2360 mkdir conftest.dir 2361 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2362 test -s conftest.one && test -s conftest.two && 2363 test -s conftest.dir/conftest.one && 2364 test -s conftest.dir/conftest.two 2365 then 2366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2367 break 3 2368 fi 2369 fi 2370 fi 2371 done 2372 done 2373 ;; 2374esac 2375 2376 done 2377IFS=$as_save_IFS 2378 2379rm -rf conftest.one conftest.two conftest.dir 2380 2381fi 2382 if test "${ac_cv_path_install+set}" = set; then 2383 INSTALL=$ac_cv_path_install 2384 else 2385 # As a last resort, use the slow shell script. Don't cache a 2386 # value for INSTALL within a source directory, because that will 2387 # break other packages using the cache if that directory is 2388 # removed, or if the value is a relative name. 2389 INSTALL=$ac_install_sh 2390 fi 2391fi 2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2393$as_echo "$INSTALL" >&6; } 2394 2395# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2396# It thinks the first close brace ends the variable substitution. 2397test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2398 2399test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2400 2401test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2402 2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2404$as_echo_n "checking whether build environment is sane... " >&6; } 2405# Reject unsafe characters in $srcdir or the absolute working directory 2406# name. Accept space and tab only in the latter. 2407am_lf=' 2408' 2409case `pwd` in 2410 *[\\\"\#\$\&\'\`$am_lf]*) 2411 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2412esac 2413case $srcdir in 2414 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2415 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2416esac 2417 2418# Do 'set' in a subshell so we don't clobber the current shell's 2419# arguments. Must try -L first in case configure is actually a 2420# symlink; some systems play weird games with the mod time of symlinks 2421# (eg FreeBSD returns the mod time of the symlink's containing 2422# directory). 2423if ( 2424 am_has_slept=no 2425 for am_try in 1 2; do 2426 echo "timestamp, slept: $am_has_slept" > conftest.file 2427 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2428 if test "$*" = "X"; then 2429 # -L didn't work. 2430 set X `ls -t "$srcdir/configure" conftest.file` 2431 fi 2432 if test "$*" != "X $srcdir/configure conftest.file" \ 2433 && test "$*" != "X conftest.file $srcdir/configure"; then 2434 2435 # If neither matched, then we have a broken ls. This can happen 2436 # if, for instance, CONFIG_SHELL is bash and it inherits a 2437 # broken ls alias from the environment. This has actually 2438 # happened. Such a system could not be considered "sane". 2439 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2440 alias in your environment" "$LINENO" 5 2441 fi 2442 if test "$2" = conftest.file || test $am_try -eq 2; then 2443 break 2444 fi 2445 # Just in case. 2446 sleep 1 2447 am_has_slept=yes 2448 done 2449 test "$2" = conftest.file 2450 ) 2451then 2452 # Ok. 2453 : 2454else 2455 as_fn_error $? "newly created file is older than distributed files! 2456Check your system clock" "$LINENO" 5 2457fi 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2459$as_echo "yes" >&6; } 2460# If we didn't sleep, we still need to ensure time stamps of config.status and 2461# generated files are strictly newer. 2462am_sleep_pid= 2463if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2464 ( sleep 1 ) & 2465 am_sleep_pid=$! 2466fi 2467 2468rm -f conftest.file 2469 2470test "$program_prefix" != NONE && 2471 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2472# Use a double $ so make ignores it. 2473test "$program_suffix" != NONE && 2474 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2475# Double any \ or $. 2476# By default was `s,x,x', remove it if useless. 2477ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2478program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2479 2480# expand $ac_aux_dir to an absolute path 2481am_aux_dir=`cd $ac_aux_dir && pwd` 2482 2483if test x"${MISSING+set}" != xset; then 2484 case $am_aux_dir in 2485 *\ * | *\ *) 2486 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2487 *) 2488 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2489 esac 2490fi 2491# Use eval to expand $SHELL 2492if eval "$MISSING --is-lightweight"; then 2493 am_missing_run="$MISSING " 2494else 2495 am_missing_run= 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2497$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2498fi 2499 2500if test x"${install_sh}" != xset; then 2501 case $am_aux_dir in 2502 *\ * | *\ *) 2503 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2504 *) 2505 install_sh="\${SHELL} $am_aux_dir/install-sh" 2506 esac 2507fi 2508 2509# Installed binaries are usually stripped using 'strip' when the user 2510# run "make install-strip". However 'strip' might not be the right 2511# tool to use in cross-compilation environments, therefore Automake 2512# will honor the 'STRIP' environment variable to overrule this program. 2513if test "$cross_compiling" != no; then 2514 if test -n "$ac_tool_prefix"; then 2515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2516set dummy ${ac_tool_prefix}strip; ac_word=$2 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2518$as_echo_n "checking for $ac_word... " >&6; } 2519if ${ac_cv_prog_STRIP+:} false; then : 2520 $as_echo_n "(cached) " >&6 2521else 2522 if test -n "$STRIP"; then 2523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2524else 2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2526for as_dir in $PATH 2527do 2528 IFS=$as_save_IFS 2529 test -z "$as_dir" && as_dir=. 2530 for ac_exec_ext in '' $ac_executable_extensions; do 2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2532 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2534 break 2 2535 fi 2536done 2537 done 2538IFS=$as_save_IFS 2539 2540fi 2541fi 2542STRIP=$ac_cv_prog_STRIP 2543if test -n "$STRIP"; then 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2545$as_echo "$STRIP" >&6; } 2546else 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2548$as_echo "no" >&6; } 2549fi 2550 2551 2552fi 2553if test -z "$ac_cv_prog_STRIP"; then 2554 ac_ct_STRIP=$STRIP 2555 # Extract the first word of "strip", so it can be a program name with args. 2556set dummy strip; ac_word=$2 2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2558$as_echo_n "checking for $ac_word... " >&6; } 2559if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2560 $as_echo_n "(cached) " >&6 2561else 2562 if test -n "$ac_ct_STRIP"; then 2563 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2564else 2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2566for as_dir in $PATH 2567do 2568 IFS=$as_save_IFS 2569 test -z "$as_dir" && as_dir=. 2570 for ac_exec_ext in '' $ac_executable_extensions; do 2571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2572 ac_cv_prog_ac_ct_STRIP="strip" 2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2574 break 2 2575 fi 2576done 2577 done 2578IFS=$as_save_IFS 2579 2580fi 2581fi 2582ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2583if test -n "$ac_ct_STRIP"; then 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2585$as_echo "$ac_ct_STRIP" >&6; } 2586else 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2588$as_echo "no" >&6; } 2589fi 2590 2591 if test "x$ac_ct_STRIP" = x; then 2592 STRIP=":" 2593 else 2594 case $cross_compiling:$ac_tool_warned in 2595yes:) 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2598ac_tool_warned=yes ;; 2599esac 2600 STRIP=$ac_ct_STRIP 2601 fi 2602else 2603 STRIP="$ac_cv_prog_STRIP" 2604fi 2605 2606fi 2607INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2608 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2610$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2611if test -z "$MKDIR_P"; then 2612 if ${ac_cv_path_mkdir+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614else 2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2616for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2617do 2618 IFS=$as_save_IFS 2619 test -z "$as_dir" && as_dir=. 2620 for ac_prog in mkdir gmkdir; do 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2623 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2624 'mkdir (GNU coreutils) '* | \ 2625 'mkdir (coreutils) '* | \ 2626 'mkdir (fileutils) '4.1*) 2627 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2628 break 3;; 2629 esac 2630 done 2631 done 2632 done 2633IFS=$as_save_IFS 2634 2635fi 2636 2637 test -d ./--version && rmdir ./--version 2638 if test "${ac_cv_path_mkdir+set}" = set; then 2639 MKDIR_P="$ac_cv_path_mkdir -p" 2640 else 2641 # As a last resort, use the slow shell script. Don't cache a 2642 # value for MKDIR_P within a source directory, because that will 2643 # break other packages using the cache if that directory is 2644 # removed, or if the value is a relative name. 2645 MKDIR_P="$ac_install_sh -d" 2646 fi 2647fi 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2649$as_echo "$MKDIR_P" >&6; } 2650 2651for ac_prog in gawk mawk nawk awk 2652do 2653 # Extract the first word of "$ac_prog", so it can be a program name with args. 2654set dummy $ac_prog; ac_word=$2 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2656$as_echo_n "checking for $ac_word... " >&6; } 2657if ${ac_cv_prog_AWK+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 if test -n "$AWK"; then 2661 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2662else 2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2664for as_dir in $PATH 2665do 2666 IFS=$as_save_IFS 2667 test -z "$as_dir" && as_dir=. 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2670 ac_cv_prog_AWK="$ac_prog" 2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2672 break 2 2673 fi 2674done 2675 done 2676IFS=$as_save_IFS 2677 2678fi 2679fi 2680AWK=$ac_cv_prog_AWK 2681if test -n "$AWK"; then 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2683$as_echo "$AWK" >&6; } 2684else 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2686$as_echo "no" >&6; } 2687fi 2688 2689 2690 test -n "$AWK" && break 2691done 2692 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2694$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2695set x ${MAKE-make} 2696ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2697if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2698 $as_echo_n "(cached) " >&6 2699else 2700 cat >conftest.make <<\_ACEOF 2701SHELL = /bin/sh 2702all: 2703 @echo '@@@%%%=$(MAKE)=@@@%%%' 2704_ACEOF 2705# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2706case `${MAKE-make} -f conftest.make 2>/dev/null` in 2707 *@@@%%%=?*=@@@%%%*) 2708 eval ac_cv_prog_make_${ac_make}_set=yes;; 2709 *) 2710 eval ac_cv_prog_make_${ac_make}_set=no;; 2711esac 2712rm -f conftest.make 2713fi 2714if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2716$as_echo "yes" >&6; } 2717 SET_MAKE= 2718else 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2720$as_echo "no" >&6; } 2721 SET_MAKE="MAKE=${MAKE-make}" 2722fi 2723 2724rm -rf .tst 2>/dev/null 2725mkdir .tst 2>/dev/null 2726if test -d .tst; then 2727 am__leading_dot=. 2728else 2729 am__leading_dot=_ 2730fi 2731rmdir .tst 2>/dev/null 2732 2733# Check whether --enable-silent-rules was given. 2734if test "${enable_silent_rules+set}" = set; then : 2735 enableval=$enable_silent_rules; 2736fi 2737 2738case $enable_silent_rules in # ((( 2739 yes) AM_DEFAULT_VERBOSITY=0;; 2740 no) AM_DEFAULT_VERBOSITY=1;; 2741 *) AM_DEFAULT_VERBOSITY=1;; 2742esac 2743am_make=${MAKE-make} 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2745$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2746if ${am_cv_make_support_nested_variables+:} false; then : 2747 $as_echo_n "(cached) " >&6 2748else 2749 if $as_echo 'TRUE=$(BAR$(V)) 2750BAR0=false 2751BAR1=true 2752V=1 2753am__doit: 2754 @$(TRUE) 2755.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2756 am_cv_make_support_nested_variables=yes 2757else 2758 am_cv_make_support_nested_variables=no 2759fi 2760fi 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2762$as_echo "$am_cv_make_support_nested_variables" >&6; } 2763if test $am_cv_make_support_nested_variables = yes; then 2764 AM_V='$(V)' 2765 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2766else 2767 AM_V=$AM_DEFAULT_VERBOSITY 2768 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2769fi 2770AM_BACKSLASH='\' 2771 2772if test "`cd $srcdir && pwd`" != "`pwd`"; then 2773 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2774 # is not polluted with repeated "-I." 2775 am__isrc=' -I$(srcdir)' 2776 # test to see if srcdir already configured 2777 if test -f $srcdir/config.status; then 2778 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2779 fi 2780fi 2781 2782# test whether we have cygpath 2783if test -z "$CYGPATH_W"; then 2784 if (cygpath --version) >/dev/null 2>/dev/null; then 2785 CYGPATH_W='cygpath -w' 2786 else 2787 CYGPATH_W=echo 2788 fi 2789fi 2790 2791 2792# Define the identity of the package. 2793 PACKAGE='xf86-video-nouveau' 2794 VERSION='1.0.11' 2795 2796 2797cat >>confdefs.h <<_ACEOF 2798#define PACKAGE "$PACKAGE" 2799_ACEOF 2800 2801 2802cat >>confdefs.h <<_ACEOF 2803#define VERSION "$VERSION" 2804_ACEOF 2805 2806# Some tools Automake needs. 2807 2808ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2809 2810 2811AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2812 2813 2814AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2815 2816 2817AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2818 2819 2820MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2821 2822# For better backward compatibility. To be removed once Automake 1.9.x 2823# dies out for good. For more background, see: 2824# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2825# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2826mkdir_p='$(MKDIR_P)' 2827 2828# We need awk for the "check" target. The system "awk" is bad on 2829# some platforms. 2830# Always define AMTAR for backward compatibility. Yes, it's still used 2831# in the wild :-( We should find a proper way to deprecate it ... 2832AMTAR='$${TAR-tar}' 2833 2834 2835# We'll loop over all known methods to create a tar archive until one works. 2836_am_tools='gnutar pax cpio none' 2837 2838am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2839 2840 2841 2842 2843 2844 2845# POSIX will say in a future version that running "rm -f" with no argument 2846# is OK; and we want to be able to make that assumption in our Makefile 2847# recipes. So use an aggressive probe to check that the usage we want is 2848# actually supported "in the wild" to an acceptable degree. 2849# See automake bug#10828. 2850# To make any issue more visible, cause the running configure to be aborted 2851# by default if the 'rm' program in use doesn't match our expectations; the 2852# user can still override this though. 2853if rm -f && rm -fr && rm -rf; then : OK; else 2854 cat >&2 <<'END' 2855Oops! 2856 2857Your 'rm' program seems unable to run without file operands specified 2858on the command line, even when the '-f' option is present. This is contrary 2859to the behaviour of most rm programs out there, and not conforming with 2860the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2861 2862Please tell bug-automake@gnu.org about your system, including the value 2863of your $PATH and any error possibly output before this message. This 2864can help us improve future automake versions. 2865 2866END 2867 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2868 echo 'Configuration will proceed anyway, since you have set the' >&2 2869 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2870 echo >&2 2871 else 2872 cat >&2 <<'END' 2873Aborting the configuration process, to ensure you take notice of the issue. 2874 2875You can download and install GNU coreutils to get an 'rm' implementation 2876that behaves properly: <http://www.gnu.org/software/coreutils/>. 2877 2878If you want to complete the configuration process using your problematic 2879'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2880to "yes", and re-run configure. 2881 2882END 2883 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2884 fi 2885fi 2886 2887# Check whether --enable-silent-rules was given. 2888if test "${enable_silent_rules+set}" = set; then : 2889 enableval=$enable_silent_rules; 2890fi 2891 2892case $enable_silent_rules in # ((( 2893 yes) AM_DEFAULT_VERBOSITY=0;; 2894 no) AM_DEFAULT_VERBOSITY=1;; 2895 *) AM_DEFAULT_VERBOSITY=0;; 2896esac 2897am_make=${MAKE-make} 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2899$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2900if ${am_cv_make_support_nested_variables+:} false; then : 2901 $as_echo_n "(cached) " >&6 2902else 2903 if $as_echo 'TRUE=$(BAR$(V)) 2904BAR0=false 2905BAR1=true 2906V=1 2907am__doit: 2908 @$(TRUE) 2909.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2910 am_cv_make_support_nested_variables=yes 2911else 2912 am_cv_make_support_nested_variables=no 2913fi 2914fi 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2916$as_echo "$am_cv_make_support_nested_variables" >&6; } 2917if test $am_cv_make_support_nested_variables = yes; then 2918 AM_V='$(V)' 2919 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2920else 2921 AM_V=$AM_DEFAULT_VERBOSITY 2922 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2923fi 2924AM_BACKSLASH='\' 2925 2926 2927# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940DEPDIR="${am__leading_dot}deps" 2941 2942ac_config_commands="$ac_config_commands depfiles" 2943 2944 2945am_make=${MAKE-make} 2946cat > confinc << 'END' 2947am__doit: 2948 @echo this is the am__doit target 2949.PHONY: am__doit 2950END 2951# If we don't find an include directive, just comment out the code. 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2953$as_echo_n "checking for style of include used by $am_make... " >&6; } 2954am__include="#" 2955am__quote= 2956_am_result=none 2957# First try GNU make style include. 2958echo "include confinc" > confmf 2959# Ignore all kinds of additional output from 'make'. 2960case `$am_make -s -f confmf 2> /dev/null` in #( 2961*the\ am__doit\ target*) 2962 am__include=include 2963 am__quote= 2964 _am_result=GNU 2965 ;; 2966esac 2967# Now try BSD make style include. 2968if test "$am__include" = "#"; then 2969 echo '.include "confinc"' > confmf 2970 case `$am_make -s -f confmf 2> /dev/null` in #( 2971 *the\ am__doit\ target*) 2972 am__include=.include 2973 am__quote="\"" 2974 _am_result=BSD 2975 ;; 2976 esac 2977fi 2978 2979 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2981$as_echo "$_am_result" >&6; } 2982rm -f confinc confmf 2983 2984# Check whether --enable-dependency-tracking was given. 2985if test "${enable_dependency_tracking+set}" = set; then : 2986 enableval=$enable_dependency_tracking; 2987fi 2988 2989if test "x$enable_dependency_tracking" != xno; then 2990 am_depcomp="$ac_aux_dir/depcomp" 2991 AMDEPBACKSLASH='\' 2992 am__nodep='_no' 2993fi 2994 if test "x$enable_dependency_tracking" != xno; then 2995 AMDEP_TRUE= 2996 AMDEP_FALSE='#' 2997else 2998 AMDEP_TRUE='#' 2999 AMDEP_FALSE= 3000fi 3001 3002 3003ac_ext=c 3004ac_cpp='$CPP $CPPFLAGS' 3005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3007ac_compiler_gnu=$ac_cv_c_compiler_gnu 3008if test -n "$ac_tool_prefix"; then 3009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3010set dummy ${ac_tool_prefix}gcc; ac_word=$2 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012$as_echo_n "checking for $ac_word... " >&6; } 3013if ${ac_cv_prog_CC+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 if test -n "$CC"; then 3017 ac_cv_prog_CC="$CC" # Let the user override the test. 3018else 3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020for as_dir in $PATH 3021do 3022 IFS=$as_save_IFS 3023 test -z "$as_dir" && as_dir=. 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3026 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030done 3031 done 3032IFS=$as_save_IFS 3033 3034fi 3035fi 3036CC=$ac_cv_prog_CC 3037if test -n "$CC"; then 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3039$as_echo "$CC" >&6; } 3040else 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042$as_echo "no" >&6; } 3043fi 3044 3045 3046fi 3047if test -z "$ac_cv_prog_CC"; then 3048 ac_ct_CC=$CC 3049 # Extract the first word of "gcc", so it can be a program name with args. 3050set dummy gcc; ac_word=$2 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052$as_echo_n "checking for $ac_word... " >&6; } 3053if ${ac_cv_prog_ac_ct_CC+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 if test -n "$ac_ct_CC"; then 3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3058else 3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3060for as_dir in $PATH 3061do 3062 IFS=$as_save_IFS 3063 test -z "$as_dir" && as_dir=. 3064 for ac_exec_ext in '' $ac_executable_extensions; do 3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3066 ac_cv_prog_ac_ct_CC="gcc" 3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3068 break 2 3069 fi 3070done 3071 done 3072IFS=$as_save_IFS 3073 3074fi 3075fi 3076ac_ct_CC=$ac_cv_prog_ac_ct_CC 3077if test -n "$ac_ct_CC"; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3079$as_echo "$ac_ct_CC" >&6; } 3080else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082$as_echo "no" >&6; } 3083fi 3084 3085 if test "x$ac_ct_CC" = x; then 3086 CC="" 3087 else 3088 case $cross_compiling:$ac_tool_warned in 3089yes:) 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3092ac_tool_warned=yes ;; 3093esac 3094 CC=$ac_ct_CC 3095 fi 3096else 3097 CC="$ac_cv_prog_CC" 3098fi 3099 3100if test -z "$CC"; then 3101 if test -n "$ac_tool_prefix"; then 3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3103set dummy ${ac_tool_prefix}cc; ac_word=$2 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3105$as_echo_n "checking for $ac_word... " >&6; } 3106if ${ac_cv_prog_CC+:} false; then : 3107 $as_echo_n "(cached) " >&6 3108else 3109 if test -n "$CC"; then 3110 ac_cv_prog_CC="$CC" # Let the user override the test. 3111else 3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3113for as_dir in $PATH 3114do 3115 IFS=$as_save_IFS 3116 test -z "$as_dir" && as_dir=. 3117 for ac_exec_ext in '' $ac_executable_extensions; do 3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3119 ac_cv_prog_CC="${ac_tool_prefix}cc" 3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3121 break 2 3122 fi 3123done 3124 done 3125IFS=$as_save_IFS 3126 3127fi 3128fi 3129CC=$ac_cv_prog_CC 3130if test -n "$CC"; then 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3132$as_echo "$CC" >&6; } 3133else 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3135$as_echo "no" >&6; } 3136fi 3137 3138 3139 fi 3140fi 3141if test -z "$CC"; then 3142 # Extract the first word of "cc", so it can be a program name with args. 3143set dummy cc; ac_word=$2 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3145$as_echo_n "checking for $ac_word... " >&6; } 3146if ${ac_cv_prog_CC+:} false; then : 3147 $as_echo_n "(cached) " >&6 3148else 3149 if test -n "$CC"; then 3150 ac_cv_prog_CC="$CC" # Let the user override the test. 3151else 3152 ac_prog_rejected=no 3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3154for as_dir in $PATH 3155do 3156 IFS=$as_save_IFS 3157 test -z "$as_dir" && as_dir=. 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3161 ac_prog_rejected=yes 3162 continue 3163 fi 3164 ac_cv_prog_CC="cc" 3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3166 break 2 3167 fi 3168done 3169 done 3170IFS=$as_save_IFS 3171 3172if test $ac_prog_rejected = yes; then 3173 # We found a bogon in the path, so make sure we never use it. 3174 set dummy $ac_cv_prog_CC 3175 shift 3176 if test $# != 0; then 3177 # We chose a different compiler from the bogus one. 3178 # However, it has the same basename, so the bogon will be chosen 3179 # first if we set CC to just the basename; use the full file name. 3180 shift 3181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3182 fi 3183fi 3184fi 3185fi 3186CC=$ac_cv_prog_CC 3187if test -n "$CC"; then 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3189$as_echo "$CC" >&6; } 3190else 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3192$as_echo "no" >&6; } 3193fi 3194 3195 3196fi 3197if test -z "$CC"; then 3198 if test -n "$ac_tool_prefix"; then 3199 for ac_prog in cl.exe 3200 do 3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3202set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3204$as_echo_n "checking for $ac_word... " >&6; } 3205if ${ac_cv_prog_CC+:} false; then : 3206 $as_echo_n "(cached) " >&6 3207else 3208 if test -n "$CC"; then 3209 ac_cv_prog_CC="$CC" # Let the user override the test. 3210else 3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3212for as_dir in $PATH 3213do 3214 IFS=$as_save_IFS 3215 test -z "$as_dir" && as_dir=. 3216 for ac_exec_ext in '' $ac_executable_extensions; do 3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3220 break 2 3221 fi 3222done 3223 done 3224IFS=$as_save_IFS 3225 3226fi 3227fi 3228CC=$ac_cv_prog_CC 3229if test -n "$CC"; then 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3231$as_echo "$CC" >&6; } 3232else 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3234$as_echo "no" >&6; } 3235fi 3236 3237 3238 test -n "$CC" && break 3239 done 3240fi 3241if test -z "$CC"; then 3242 ac_ct_CC=$CC 3243 for ac_prog in cl.exe 3244do 3245 # Extract the first word of "$ac_prog", so it can be a program name with args. 3246set dummy $ac_prog; ac_word=$2 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3248$as_echo_n "checking for $ac_word... " >&6; } 3249if ${ac_cv_prog_ac_ct_CC+:} false; then : 3250 $as_echo_n "(cached) " >&6 3251else 3252 if test -n "$ac_ct_CC"; then 3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3254else 3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3256for as_dir in $PATH 3257do 3258 IFS=$as_save_IFS 3259 test -z "$as_dir" && as_dir=. 3260 for ac_exec_ext in '' $ac_executable_extensions; do 3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3262 ac_cv_prog_ac_ct_CC="$ac_prog" 3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3264 break 2 3265 fi 3266done 3267 done 3268IFS=$as_save_IFS 3269 3270fi 3271fi 3272ac_ct_CC=$ac_cv_prog_ac_ct_CC 3273if test -n "$ac_ct_CC"; then 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3275$as_echo "$ac_ct_CC" >&6; } 3276else 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3278$as_echo "no" >&6; } 3279fi 3280 3281 3282 test -n "$ac_ct_CC" && break 3283done 3284 3285 if test "x$ac_ct_CC" = x; then 3286 CC="" 3287 else 3288 case $cross_compiling:$ac_tool_warned in 3289yes:) 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3292ac_tool_warned=yes ;; 3293esac 3294 CC=$ac_ct_CC 3295 fi 3296fi 3297 3298fi 3299 3300 3301test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3303as_fn_error $? "no acceptable C compiler found in \$PATH 3304See \`config.log' for more details" "$LINENO" 5; } 3305 3306# Provide some information about the compiler. 3307$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3308set X $ac_compile 3309ac_compiler=$2 3310for ac_option in --version -v -V -qversion; do 3311 { { ac_try="$ac_compiler $ac_option >&5" 3312case "(($ac_try" in 3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3314 *) ac_try_echo=$ac_try;; 3315esac 3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3317$as_echo "$ac_try_echo"; } >&5 3318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3319 ac_status=$? 3320 if test -s conftest.err; then 3321 sed '10a\ 3322... rest of stderr output deleted ... 3323 10q' conftest.err >conftest.er1 3324 cat conftest.er1 >&5 3325 fi 3326 rm -f conftest.er1 conftest.err 3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3328 test $ac_status = 0; } 3329done 3330 3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3332/* end confdefs.h. */ 3333 3334int 3335main () 3336{ 3337 3338 ; 3339 return 0; 3340} 3341_ACEOF 3342ac_clean_files_save=$ac_clean_files 3343ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3344# Try to create an executable without -o first, disregard a.out. 3345# It will help us diagnose broken compilers, and finding out an intuition 3346# of exeext. 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3348$as_echo_n "checking whether the C compiler works... " >&6; } 3349ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3350 3351# The possible output files: 3352ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3353 3354ac_rmfiles= 3355for ac_file in $ac_files 3356do 3357 case $ac_file in 3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3359 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3360 esac 3361done 3362rm -f $ac_rmfiles 3363 3364if { { ac_try="$ac_link_default" 3365case "(($ac_try" in 3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3367 *) ac_try_echo=$ac_try;; 3368esac 3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3370$as_echo "$ac_try_echo"; } >&5 3371 (eval "$ac_link_default") 2>&5 3372 ac_status=$? 3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3374 test $ac_status = 0; }; then : 3375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3376# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3377# in a Makefile. We should not override ac_cv_exeext if it was cached, 3378# so that the user can short-circuit this test for compilers unknown to 3379# Autoconf. 3380for ac_file in $ac_files '' 3381do 3382 test -f "$ac_file" || continue 3383 case $ac_file in 3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3385 ;; 3386 [ab].out ) 3387 # We found the default executable, but exeext='' is most 3388 # certainly right. 3389 break;; 3390 *.* ) 3391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3392 then :; else 3393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3394 fi 3395 # We set ac_cv_exeext here because the later test for it is not 3396 # safe: cross compilers may not add the suffix if given an `-o' 3397 # argument, so we may need to know it at that point already. 3398 # Even if this section looks crufty: it has the advantage of 3399 # actually working. 3400 break;; 3401 * ) 3402 break;; 3403 esac 3404done 3405test "$ac_cv_exeext" = no && ac_cv_exeext= 3406 3407else 3408 ac_file='' 3409fi 3410if test -z "$ac_file"; then : 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3412$as_echo "no" >&6; } 3413$as_echo "$as_me: failed program was:" >&5 3414sed 's/^/| /' conftest.$ac_ext >&5 3415 3416{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3418as_fn_error 77 "C compiler cannot create executables 3419See \`config.log' for more details" "$LINENO" 5; } 3420else 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3422$as_echo "yes" >&6; } 3423fi 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3425$as_echo_n "checking for C compiler default output file name... " >&6; } 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3427$as_echo "$ac_file" >&6; } 3428ac_exeext=$ac_cv_exeext 3429 3430rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3431ac_clean_files=$ac_clean_files_save 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3433$as_echo_n "checking for suffix of executables... " >&6; } 3434if { { ac_try="$ac_link" 3435case "(($ac_try" in 3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3437 *) ac_try_echo=$ac_try;; 3438esac 3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3440$as_echo "$ac_try_echo"; } >&5 3441 (eval "$ac_link") 2>&5 3442 ac_status=$? 3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3444 test $ac_status = 0; }; then : 3445 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3446# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3447# work properly (i.e., refer to `conftest.exe'), while it won't with 3448# `rm'. 3449for ac_file in conftest.exe conftest conftest.*; do 3450 test -f "$ac_file" || continue 3451 case $ac_file in 3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3453 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3454 break;; 3455 * ) break;; 3456 esac 3457done 3458else 3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3461as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3462See \`config.log' for more details" "$LINENO" 5; } 3463fi 3464rm -f conftest conftest$ac_cv_exeext 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3466$as_echo "$ac_cv_exeext" >&6; } 3467 3468rm -f conftest.$ac_ext 3469EXEEXT=$ac_cv_exeext 3470ac_exeext=$EXEEXT 3471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3472/* end confdefs.h. */ 3473#include <stdio.h> 3474int 3475main () 3476{ 3477FILE *f = fopen ("conftest.out", "w"); 3478 return ferror (f) || fclose (f) != 0; 3479 3480 ; 3481 return 0; 3482} 3483_ACEOF 3484ac_clean_files="$ac_clean_files conftest.out" 3485# Check that the compiler produces executables we can run. If not, either 3486# the compiler is broken, or we cross compile. 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3488$as_echo_n "checking whether we are cross compiling... " >&6; } 3489if test "$cross_compiling" != yes; then 3490 { { ac_try="$ac_link" 3491case "(($ac_try" in 3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3493 *) ac_try_echo=$ac_try;; 3494esac 3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3496$as_echo "$ac_try_echo"; } >&5 3497 (eval "$ac_link") 2>&5 3498 ac_status=$? 3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3500 test $ac_status = 0; } 3501 if { ac_try='./conftest$ac_cv_exeext' 3502 { { case "(($ac_try" in 3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3504 *) ac_try_echo=$ac_try;; 3505esac 3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3507$as_echo "$ac_try_echo"; } >&5 3508 (eval "$ac_try") 2>&5 3509 ac_status=$? 3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3511 test $ac_status = 0; }; }; then 3512 cross_compiling=no 3513 else 3514 if test "$cross_compiling" = maybe; then 3515 cross_compiling=yes 3516 else 3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3519as_fn_error $? "cannot run C compiled programs. 3520If you meant to cross compile, use \`--host'. 3521See \`config.log' for more details" "$LINENO" 5; } 3522 fi 3523 fi 3524fi 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3526$as_echo "$cross_compiling" >&6; } 3527 3528rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3529ac_clean_files=$ac_clean_files_save 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3531$as_echo_n "checking for suffix of object files... " >&6; } 3532if ${ac_cv_objext+:} false; then : 3533 $as_echo_n "(cached) " >&6 3534else 3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536/* end confdefs.h. */ 3537 3538int 3539main () 3540{ 3541 3542 ; 3543 return 0; 3544} 3545_ACEOF 3546rm -f conftest.o conftest.obj 3547if { { ac_try="$ac_compile" 3548case "(($ac_try" in 3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3550 *) ac_try_echo=$ac_try;; 3551esac 3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3553$as_echo "$ac_try_echo"; } >&5 3554 (eval "$ac_compile") 2>&5 3555 ac_status=$? 3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3557 test $ac_status = 0; }; then : 3558 for ac_file in conftest.o conftest.obj conftest.*; do 3559 test -f "$ac_file" || continue; 3560 case $ac_file in 3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3562 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3563 break;; 3564 esac 3565done 3566else 3567 $as_echo "$as_me: failed program was:" >&5 3568sed 's/^/| /' conftest.$ac_ext >&5 3569 3570{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3572as_fn_error $? "cannot compute suffix of object files: cannot compile 3573See \`config.log' for more details" "$LINENO" 5; } 3574fi 3575rm -f conftest.$ac_cv_objext conftest.$ac_ext 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3578$as_echo "$ac_cv_objext" >&6; } 3579OBJEXT=$ac_cv_objext 3580ac_objext=$OBJEXT 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3582$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3583if ${ac_cv_c_compiler_gnu+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585else 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588 3589int 3590main () 3591{ 3592#ifndef __GNUC__ 3593 choke me 3594#endif 3595 3596 ; 3597 return 0; 3598} 3599_ACEOF 3600if ac_fn_c_try_compile "$LINENO"; then : 3601 ac_compiler_gnu=yes 3602else 3603 ac_compiler_gnu=no 3604fi 3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3606ac_cv_c_compiler_gnu=$ac_compiler_gnu 3607 3608fi 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3610$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3611if test $ac_compiler_gnu = yes; then 3612 GCC=yes 3613else 3614 GCC= 3615fi 3616ac_test_CFLAGS=${CFLAGS+set} 3617ac_save_CFLAGS=$CFLAGS 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3619$as_echo_n "checking whether $CC accepts -g... " >&6; } 3620if ${ac_cv_prog_cc_g+:} false; then : 3621 $as_echo_n "(cached) " >&6 3622else 3623 ac_save_c_werror_flag=$ac_c_werror_flag 3624 ac_c_werror_flag=yes 3625 ac_cv_prog_cc_g=no 3626 CFLAGS="-g" 3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3628/* end confdefs.h. */ 3629 3630int 3631main () 3632{ 3633 3634 ; 3635 return 0; 3636} 3637_ACEOF 3638if ac_fn_c_try_compile "$LINENO"; then : 3639 ac_cv_prog_cc_g=yes 3640else 3641 CFLAGS="" 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644 3645int 3646main () 3647{ 3648 3649 ; 3650 return 0; 3651} 3652_ACEOF 3653if ac_fn_c_try_compile "$LINENO"; then : 3654 3655else 3656 ac_c_werror_flag=$ac_save_c_werror_flag 3657 CFLAGS="-g" 3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3659/* end confdefs.h. */ 3660 3661int 3662main () 3663{ 3664 3665 ; 3666 return 0; 3667} 3668_ACEOF 3669if ac_fn_c_try_compile "$LINENO"; then : 3670 ac_cv_prog_cc_g=yes 3671fi 3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3673fi 3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3675fi 3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3677 ac_c_werror_flag=$ac_save_c_werror_flag 3678fi 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3680$as_echo "$ac_cv_prog_cc_g" >&6; } 3681if test "$ac_test_CFLAGS" = set; then 3682 CFLAGS=$ac_save_CFLAGS 3683elif test $ac_cv_prog_cc_g = yes; then 3684 if test "$GCC" = yes; then 3685 CFLAGS="-g -O2" 3686 else 3687 CFLAGS="-g" 3688 fi 3689else 3690 if test "$GCC" = yes; then 3691 CFLAGS="-O2" 3692 else 3693 CFLAGS= 3694 fi 3695fi 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3697$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3698if ${ac_cv_prog_cc_c89+:} false; then : 3699 $as_echo_n "(cached) " >&6 3700else 3701 ac_cv_prog_cc_c89=no 3702ac_save_CC=$CC 3703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3704/* end confdefs.h. */ 3705#include <stdarg.h> 3706#include <stdio.h> 3707struct stat; 3708/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3709struct buf { int x; }; 3710FILE * (*rcsopen) (struct buf *, struct stat *, int); 3711static char *e (p, i) 3712 char **p; 3713 int i; 3714{ 3715 return p[i]; 3716} 3717static char *f (char * (*g) (char **, int), char **p, ...) 3718{ 3719 char *s; 3720 va_list v; 3721 va_start (v,p); 3722 s = g (p, va_arg (v,int)); 3723 va_end (v); 3724 return s; 3725} 3726 3727/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3728 function prototypes and stuff, but not '\xHH' hex character constants. 3729 These don't provoke an error unfortunately, instead are silently treated 3730 as 'x'. The following induces an error, until -std is added to get 3731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3732 array size at least. It's necessary to write '\x00'==0 to get something 3733 that's true only with -std. */ 3734int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3735 3736/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3737 inside strings and character constants. */ 3738#define FOO(x) 'x' 3739int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3740 3741int test (int i, double x); 3742struct s1 {int (*f) (int a);}; 3743struct s2 {int (*f) (double a);}; 3744int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3745int argc; 3746char **argv; 3747int 3748main () 3749{ 3750return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3751 ; 3752 return 0; 3753} 3754_ACEOF 3755for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3757do 3758 CC="$ac_save_CC $ac_arg" 3759 if ac_fn_c_try_compile "$LINENO"; then : 3760 ac_cv_prog_cc_c89=$ac_arg 3761fi 3762rm -f core conftest.err conftest.$ac_objext 3763 test "x$ac_cv_prog_cc_c89" != "xno" && break 3764done 3765rm -f conftest.$ac_ext 3766CC=$ac_save_CC 3767 3768fi 3769# AC_CACHE_VAL 3770case "x$ac_cv_prog_cc_c89" in 3771 x) 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3773$as_echo "none needed" >&6; } ;; 3774 xno) 3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3776$as_echo "unsupported" >&6; } ;; 3777 *) 3778 CC="$CC $ac_cv_prog_cc_c89" 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3780$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3781esac 3782if test "x$ac_cv_prog_cc_c89" != xno; then : 3783 3784fi 3785 3786ac_ext=c 3787ac_cpp='$CPP $CPPFLAGS' 3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3790ac_compiler_gnu=$ac_cv_c_compiler_gnu 3791 3792ac_ext=c 3793ac_cpp='$CPP $CPPFLAGS' 3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3796ac_compiler_gnu=$ac_cv_c_compiler_gnu 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3798$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3799if ${am_cv_prog_cc_c_o+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805int 3806main () 3807{ 3808 3809 ; 3810 return 0; 3811} 3812_ACEOF 3813 # Make sure it works both with $CC and with simple cc. 3814 # Following AC_PROG_CC_C_O, we do the test twice because some 3815 # compilers refuse to overwrite an existing .o file with -o, 3816 # though they will create one. 3817 am_cv_prog_cc_c_o=yes 3818 for am_i in 1 2; do 3819 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3820 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3821 ac_status=$? 3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3823 (exit $ac_status); } \ 3824 && test -f conftest2.$ac_objext; then 3825 : OK 3826 else 3827 am_cv_prog_cc_c_o=no 3828 break 3829 fi 3830 done 3831 rm -f core conftest* 3832 unset am_i 3833fi 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3835$as_echo "$am_cv_prog_cc_c_o" >&6; } 3836if test "$am_cv_prog_cc_c_o" != yes; then 3837 # Losing compiler, so override with the script. 3838 # FIXME: It is wrong to rewrite CC. 3839 # But if we don't then we get into trouble of one sort or another. 3840 # A longer-term fix would be to have automake use am__CC in this case, 3841 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3842 CC="$am_aux_dir/compile $CC" 3843fi 3844ac_ext=c 3845ac_cpp='$CPP $CPPFLAGS' 3846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3848ac_compiler_gnu=$ac_cv_c_compiler_gnu 3849 3850 3851depcc="$CC" am_compiler_list= 3852 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3854$as_echo_n "checking dependency style of $depcc... " >&6; } 3855if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3856 $as_echo_n "(cached) " >&6 3857else 3858 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3859 # We make a subdir and do the tests there. Otherwise we can end up 3860 # making bogus files that we don't know about and never remove. For 3861 # instance it was reported that on HP-UX the gcc test will end up 3862 # making a dummy file named 'D' -- because '-MD' means "put the output 3863 # in D". 3864 rm -rf conftest.dir 3865 mkdir conftest.dir 3866 # Copy depcomp to subdir because otherwise we won't find it if we're 3867 # using a relative directory. 3868 cp "$am_depcomp" conftest.dir 3869 cd conftest.dir 3870 # We will build objects and dependencies in a subdirectory because 3871 # it helps to detect inapplicable dependency modes. For instance 3872 # both Tru64's cc and ICC support -MD to output dependencies as a 3873 # side effect of compilation, but ICC will put the dependencies in 3874 # the current directory while Tru64 will put them in the object 3875 # directory. 3876 mkdir sub 3877 3878 am_cv_CC_dependencies_compiler_type=none 3879 if test "$am_compiler_list" = ""; then 3880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3881 fi 3882 am__universal=false 3883 case " $depcc " in #( 3884 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3885 esac 3886 3887 for depmode in $am_compiler_list; do 3888 # Setup a source with many dependencies, because some compilers 3889 # like to wrap large dependency lists on column 80 (with \), and 3890 # we should not choose a depcomp mode which is confused by this. 3891 # 3892 # We need to recreate these files for each test, as the compiler may 3893 # overwrite some of them when testing with obscure command lines. 3894 # This happens at least with the AIX C compiler. 3895 : > sub/conftest.c 3896 for i in 1 2 3 4 5 6; do 3897 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3898 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3899 # Solaris 10 /bin/sh. 3900 echo '/* dummy */' > sub/conftst$i.h 3901 done 3902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3903 3904 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3905 # mode. It turns out that the SunPro C++ compiler does not properly 3906 # handle '-M -o', and we need to detect this. Also, some Intel 3907 # versions had trouble with output in subdirs. 3908 am__obj=sub/conftest.${OBJEXT-o} 3909 am__minus_obj="-o $am__obj" 3910 case $depmode in 3911 gcc) 3912 # This depmode causes a compiler race in universal mode. 3913 test "$am__universal" = false || continue 3914 ;; 3915 nosideeffect) 3916 # After this tag, mechanisms are not by side-effect, so they'll 3917 # only be used when explicitly requested. 3918 if test "x$enable_dependency_tracking" = xyes; then 3919 continue 3920 else 3921 break 3922 fi 3923 ;; 3924 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3925 # This compiler won't grok '-c -o', but also, the minuso test has 3926 # not run yet. These depmodes are late enough in the game, and 3927 # so weak that their functioning should not be impacted. 3928 am__obj=conftest.${OBJEXT-o} 3929 am__minus_obj= 3930 ;; 3931 none) break ;; 3932 esac 3933 if depmode=$depmode \ 3934 source=sub/conftest.c object=$am__obj \ 3935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3936 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3937 >/dev/null 2>conftest.err && 3938 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3940 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3942 # icc doesn't choke on unknown options, it will just issue warnings 3943 # or remarks (even with -Werror). So we grep stderr for any message 3944 # that says an option was ignored or not supported. 3945 # When given -MP, icc 7.0 and 7.1 complain thusly: 3946 # icc: Command line warning: ignoring option '-M'; no argument required 3947 # The diagnosis changed in icc 8.0: 3948 # icc: Command line remark: option '-MP' not supported 3949 if (grep 'ignoring option' conftest.err || 3950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3951 am_cv_CC_dependencies_compiler_type=$depmode 3952 break 3953 fi 3954 fi 3955 done 3956 3957 cd .. 3958 rm -rf conftest.dir 3959else 3960 am_cv_CC_dependencies_compiler_type=none 3961fi 3962 3963fi 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3965$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3966CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3967 3968 if 3969 test "x$enable_dependency_tracking" != xno \ 3970 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3971 am__fastdepCC_TRUE= 3972 am__fastdepCC_FALSE='#' 3973else 3974 am__fastdepCC_TRUE='#' 3975 am__fastdepCC_FALSE= 3976fi 3977 3978 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3980$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3981if ${ac_cv_prog_cc_c99+:} false; then : 3982 $as_echo_n "(cached) " >&6 3983else 3984 ac_cv_prog_cc_c99=no 3985ac_save_CC=$CC 3986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987/* end confdefs.h. */ 3988#include <stdarg.h> 3989#include <stdbool.h> 3990#include <stdlib.h> 3991#include <wchar.h> 3992#include <stdio.h> 3993 3994// Check varargs macros. These examples are taken from C99 6.10.3.5. 3995#define debug(...) fprintf (stderr, __VA_ARGS__) 3996#define showlist(...) puts (#__VA_ARGS__) 3997#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3998static void 3999test_varargs_macros (void) 4000{ 4001 int x = 1234; 4002 int y = 5678; 4003 debug ("Flag"); 4004 debug ("X = %d\n", x); 4005 showlist (The first, second, and third items.); 4006 report (x>y, "x is %d but y is %d", x, y); 4007} 4008 4009// Check long long types. 4010#define BIG64 18446744073709551615ull 4011#define BIG32 4294967295ul 4012#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4013#if !BIG_OK 4014 your preprocessor is broken; 4015#endif 4016#if BIG_OK 4017#else 4018 your preprocessor is broken; 4019#endif 4020static long long int bignum = -9223372036854775807LL; 4021static unsigned long long int ubignum = BIG64; 4022 4023struct incomplete_array 4024{ 4025 int datasize; 4026 double data[]; 4027}; 4028 4029struct named_init { 4030 int number; 4031 const wchar_t *name; 4032 double average; 4033}; 4034 4035typedef const char *ccp; 4036 4037static inline int 4038test_restrict (ccp restrict text) 4039{ 4040 // See if C++-style comments work. 4041 // Iterate through items via the restricted pointer. 4042 // Also check for declarations in for loops. 4043 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4044 continue; 4045 return 0; 4046} 4047 4048// Check varargs and va_copy. 4049static void 4050test_varargs (const char *format, ...) 4051{ 4052 va_list args; 4053 va_start (args, format); 4054 va_list args_copy; 4055 va_copy (args_copy, args); 4056 4057 const char *str; 4058 int number; 4059 float fnumber; 4060 4061 while (*format) 4062 { 4063 switch (*format++) 4064 { 4065 case 's': // string 4066 str = va_arg (args_copy, const char *); 4067 break; 4068 case 'd': // int 4069 number = va_arg (args_copy, int); 4070 break; 4071 case 'f': // float 4072 fnumber = va_arg (args_copy, double); 4073 break; 4074 default: 4075 break; 4076 } 4077 } 4078 va_end (args_copy); 4079 va_end (args); 4080} 4081 4082int 4083main () 4084{ 4085 4086 // Check bool. 4087 _Bool success = false; 4088 4089 // Check restrict. 4090 if (test_restrict ("String literal") == 0) 4091 success = true; 4092 char *restrict newvar = "Another string"; 4093 4094 // Check varargs. 4095 test_varargs ("s, d' f .", "string", 65, 34.234); 4096 test_varargs_macros (); 4097 4098 // Check flexible array members. 4099 struct incomplete_array *ia = 4100 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4101 ia->datasize = 10; 4102 for (int i = 0; i < ia->datasize; ++i) 4103 ia->data[i] = i * 1.234; 4104 4105 // Check named initializers. 4106 struct named_init ni = { 4107 .number = 34, 4108 .name = L"Test wide string", 4109 .average = 543.34343, 4110 }; 4111 4112 ni.number = 58; 4113 4114 int dynamic_array[ni.number]; 4115 dynamic_array[ni.number - 1] = 543; 4116 4117 // work around unused variable warnings 4118 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4119 || dynamic_array[ni.number - 1] != 543); 4120 4121 ; 4122 return 0; 4123} 4124_ACEOF 4125for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4126do 4127 CC="$ac_save_CC $ac_arg" 4128 if ac_fn_c_try_compile "$LINENO"; then : 4129 ac_cv_prog_cc_c99=$ac_arg 4130fi 4131rm -f core conftest.err conftest.$ac_objext 4132 test "x$ac_cv_prog_cc_c99" != "xno" && break 4133done 4134rm -f conftest.$ac_ext 4135CC=$ac_save_CC 4136 4137fi 4138# AC_CACHE_VAL 4139case "x$ac_cv_prog_cc_c99" in 4140 x) 4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4142$as_echo "none needed" >&6; } ;; 4143 xno) 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4145$as_echo "unsupported" >&6; } ;; 4146 *) 4147 CC="$CC $ac_cv_prog_cc_c99" 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4149$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4150esac 4151if test "x$ac_cv_prog_cc_c99" != xno; then : 4152 4153fi 4154 4155 4156 4157ac_ext=c 4158ac_cpp='$CPP $CPPFLAGS' 4159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4161ac_compiler_gnu=$ac_cv_c_compiler_gnu 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4163$as_echo_n "checking how to run the C preprocessor... " >&6; } 4164# On Suns, sometimes $CPP names a directory. 4165if test -n "$CPP" && test -d "$CPP"; then 4166 CPP= 4167fi 4168if test -z "$CPP"; then 4169 if ${ac_cv_prog_CPP+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 # Double quotes because CPP needs to be expanded 4173 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4174 do 4175 ac_preproc_ok=false 4176for ac_c_preproc_warn_flag in '' yes 4177do 4178 # Use a header file that comes with gcc, so configuring glibc 4179 # with a fresh cross-compiler works. 4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4181 # <limits.h> exists even on freestanding compilers. 4182 # On the NeXT, cc -E runs the code through the compiler's parser, 4183 # not just through cpp. "Syntax error" is here to catch this case. 4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4185/* end confdefs.h. */ 4186#ifdef __STDC__ 4187# include <limits.h> 4188#else 4189# include <assert.h> 4190#endif 4191 Syntax error 4192_ACEOF 4193if ac_fn_c_try_cpp "$LINENO"; then : 4194 4195else 4196 # Broken: fails on valid input. 4197continue 4198fi 4199rm -f conftest.err conftest.i conftest.$ac_ext 4200 4201 # OK, works on sane cases. Now check whether nonexistent headers 4202 # can be detected and how. 4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204/* end confdefs.h. */ 4205#include <ac_nonexistent.h> 4206_ACEOF 4207if ac_fn_c_try_cpp "$LINENO"; then : 4208 # Broken: success on invalid input. 4209continue 4210else 4211 # Passes both tests. 4212ac_preproc_ok=: 4213break 4214fi 4215rm -f conftest.err conftest.i conftest.$ac_ext 4216 4217done 4218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4219rm -f conftest.i conftest.err conftest.$ac_ext 4220if $ac_preproc_ok; then : 4221 break 4222fi 4223 4224 done 4225 ac_cv_prog_CPP=$CPP 4226 4227fi 4228 CPP=$ac_cv_prog_CPP 4229else 4230 ac_cv_prog_CPP=$CPP 4231fi 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4233$as_echo "$CPP" >&6; } 4234ac_preproc_ok=false 4235for ac_c_preproc_warn_flag in '' yes 4236do 4237 # Use a header file that comes with gcc, so configuring glibc 4238 # with a fresh cross-compiler works. 4239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4240 # <limits.h> exists even on freestanding compilers. 4241 # On the NeXT, cc -E runs the code through the compiler's parser, 4242 # not just through cpp. "Syntax error" is here to catch this case. 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244/* end confdefs.h. */ 4245#ifdef __STDC__ 4246# include <limits.h> 4247#else 4248# include <assert.h> 4249#endif 4250 Syntax error 4251_ACEOF 4252if ac_fn_c_try_cpp "$LINENO"; then : 4253 4254else 4255 # Broken: fails on valid input. 4256continue 4257fi 4258rm -f conftest.err conftest.i conftest.$ac_ext 4259 4260 # OK, works on sane cases. Now check whether nonexistent headers 4261 # can be detected and how. 4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4263/* end confdefs.h. */ 4264#include <ac_nonexistent.h> 4265_ACEOF 4266if ac_fn_c_try_cpp "$LINENO"; then : 4267 # Broken: success on invalid input. 4268continue 4269else 4270 # Passes both tests. 4271ac_preproc_ok=: 4272break 4273fi 4274rm -f conftest.err conftest.i conftest.$ac_ext 4275 4276done 4277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4278rm -f conftest.i conftest.err conftest.$ac_ext 4279if $ac_preproc_ok; then : 4280 4281else 4282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4284as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4285See \`config.log' for more details" "$LINENO" 5; } 4286fi 4287 4288ac_ext=c 4289ac_cpp='$CPP $CPPFLAGS' 4290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4292ac_compiler_gnu=$ac_cv_c_compiler_gnu 4293 4294 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4296$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4297if ${ac_cv_path_GREP+:} false; then : 4298 $as_echo_n "(cached) " >&6 4299else 4300 if test -z "$GREP"; then 4301 ac_path_GREP_found=false 4302 # Loop through the user's path and test for each of PROGNAME-LIST 4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4305do 4306 IFS=$as_save_IFS 4307 test -z "$as_dir" && as_dir=. 4308 for ac_prog in grep ggrep; do 4309 for ac_exec_ext in '' $ac_executable_extensions; do 4310 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4311 as_fn_executable_p "$ac_path_GREP" || continue 4312# Check for GNU ac_path_GREP and select it if it is found. 4313 # Check for GNU $ac_path_GREP 4314case `"$ac_path_GREP" --version 2>&1` in 4315*GNU*) 4316 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4317*) 4318 ac_count=0 4319 $as_echo_n 0123456789 >"conftest.in" 4320 while : 4321 do 4322 cat "conftest.in" "conftest.in" >"conftest.tmp" 4323 mv "conftest.tmp" "conftest.in" 4324 cp "conftest.in" "conftest.nl" 4325 $as_echo 'GREP' >> "conftest.nl" 4326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4328 as_fn_arith $ac_count + 1 && ac_count=$as_val 4329 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4330 # Best one so far, save it but keep looking for a better one 4331 ac_cv_path_GREP="$ac_path_GREP" 4332 ac_path_GREP_max=$ac_count 4333 fi 4334 # 10*(2^10) chars as input seems more than enough 4335 test $ac_count -gt 10 && break 4336 done 4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4338esac 4339 4340 $ac_path_GREP_found && break 3 4341 done 4342 done 4343 done 4344IFS=$as_save_IFS 4345 if test -z "$ac_cv_path_GREP"; then 4346 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4347 fi 4348else 4349 ac_cv_path_GREP=$GREP 4350fi 4351 4352fi 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4354$as_echo "$ac_cv_path_GREP" >&6; } 4355 GREP="$ac_cv_path_GREP" 4356 4357 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4359$as_echo_n "checking for egrep... " >&6; } 4360if ${ac_cv_path_EGREP+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362else 4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4364 then ac_cv_path_EGREP="$GREP -E" 4365 else 4366 if test -z "$EGREP"; then 4367 ac_path_EGREP_found=false 4368 # Loop through the user's path and test for each of PROGNAME-LIST 4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4370for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4371do 4372 IFS=$as_save_IFS 4373 test -z "$as_dir" && as_dir=. 4374 for ac_prog in egrep; do 4375 for ac_exec_ext in '' $ac_executable_extensions; do 4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4377 as_fn_executable_p "$ac_path_EGREP" || continue 4378# Check for GNU ac_path_EGREP and select it if it is found. 4379 # Check for GNU $ac_path_EGREP 4380case `"$ac_path_EGREP" --version 2>&1` in 4381*GNU*) 4382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4383*) 4384 ac_count=0 4385 $as_echo_n 0123456789 >"conftest.in" 4386 while : 4387 do 4388 cat "conftest.in" "conftest.in" >"conftest.tmp" 4389 mv "conftest.tmp" "conftest.in" 4390 cp "conftest.in" "conftest.nl" 4391 $as_echo 'EGREP' >> "conftest.nl" 4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4394 as_fn_arith $ac_count + 1 && ac_count=$as_val 4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4396 # Best one so far, save it but keep looking for a better one 4397 ac_cv_path_EGREP="$ac_path_EGREP" 4398 ac_path_EGREP_max=$ac_count 4399 fi 4400 # 10*(2^10) chars as input seems more than enough 4401 test $ac_count -gt 10 && break 4402 done 4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4404esac 4405 4406 $ac_path_EGREP_found && break 3 4407 done 4408 done 4409 done 4410IFS=$as_save_IFS 4411 if test -z "$ac_cv_path_EGREP"; then 4412 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4413 fi 4414else 4415 ac_cv_path_EGREP=$EGREP 4416fi 4417 4418 fi 4419fi 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4421$as_echo "$ac_cv_path_EGREP" >&6; } 4422 EGREP="$ac_cv_path_EGREP" 4423 4424 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4426$as_echo_n "checking for ANSI C header files... " >&6; } 4427if ${ac_cv_header_stdc+:} false; then : 4428 $as_echo_n "(cached) " >&6 4429else 4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4431/* end confdefs.h. */ 4432#include <stdlib.h> 4433#include <stdarg.h> 4434#include <string.h> 4435#include <float.h> 4436 4437int 4438main () 4439{ 4440 4441 ; 4442 return 0; 4443} 4444_ACEOF 4445if ac_fn_c_try_compile "$LINENO"; then : 4446 ac_cv_header_stdc=yes 4447else 4448 ac_cv_header_stdc=no 4449fi 4450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4451 4452if test $ac_cv_header_stdc = yes; then 4453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455/* end confdefs.h. */ 4456#include <string.h> 4457 4458_ACEOF 4459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4460 $EGREP "memchr" >/dev/null 2>&1; then : 4461 4462else 4463 ac_cv_header_stdc=no 4464fi 4465rm -f conftest* 4466 4467fi 4468 4469if test $ac_cv_header_stdc = yes; then 4470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472/* end confdefs.h. */ 4473#include <stdlib.h> 4474 4475_ACEOF 4476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4477 $EGREP "free" >/dev/null 2>&1; then : 4478 4479else 4480 ac_cv_header_stdc=no 4481fi 4482rm -f conftest* 4483 4484fi 4485 4486if test $ac_cv_header_stdc = yes; then 4487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4488 if test "$cross_compiling" = yes; then : 4489 : 4490else 4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4492/* end confdefs.h. */ 4493#include <ctype.h> 4494#include <stdlib.h> 4495#if ((' ' & 0x0FF) == 0x020) 4496# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4497# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4498#else 4499# define ISLOWER(c) \ 4500 (('a' <= (c) && (c) <= 'i') \ 4501 || ('j' <= (c) && (c) <= 'r') \ 4502 || ('s' <= (c) && (c) <= 'z')) 4503# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4504#endif 4505 4506#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4507int 4508main () 4509{ 4510 int i; 4511 for (i = 0; i < 256; i++) 4512 if (XOR (islower (i), ISLOWER (i)) 4513 || toupper (i) != TOUPPER (i)) 4514 return 2; 4515 return 0; 4516} 4517_ACEOF 4518if ac_fn_c_try_run "$LINENO"; then : 4519 4520else 4521 ac_cv_header_stdc=no 4522fi 4523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4524 conftest.$ac_objext conftest.beam conftest.$ac_ext 4525fi 4526 4527fi 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4530$as_echo "$ac_cv_header_stdc" >&6; } 4531if test $ac_cv_header_stdc = yes; then 4532 4533$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4534 4535fi 4536 4537# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4538for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4539 inttypes.h stdint.h unistd.h 4540do : 4541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4542ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4543" 4544if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4545 cat >>confdefs.h <<_ACEOF 4546#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4547_ACEOF 4548 4549fi 4550 4551done 4552 4553 4554 4555 4556 4557 4558ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4559if test "x$ac_cv_have_decl___clang__" = xyes; then : 4560 CLANGCC="yes" 4561else 4562 CLANGCC="no" 4563fi 4564 4565ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4566if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4567 INTELCC="yes" 4568else 4569 INTELCC="no" 4570fi 4571 4572ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4573if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4574 SUNCC="yes" 4575else 4576 SUNCC="no" 4577fi 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4588 if test -n "$ac_tool_prefix"; then 4589 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4590set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4592$as_echo_n "checking for $ac_word... " >&6; } 4593if ${ac_cv_path_PKG_CONFIG+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595else 4596 case $PKG_CONFIG in 4597 [\\/]* | ?:[\\/]*) 4598 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4599 ;; 4600 *) 4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4602for as_dir in $PATH 4603do 4604 IFS=$as_save_IFS 4605 test -z "$as_dir" && as_dir=. 4606 for ac_exec_ext in '' $ac_executable_extensions; do 4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4608 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4610 break 2 4611 fi 4612done 4613 done 4614IFS=$as_save_IFS 4615 4616 ;; 4617esac 4618fi 4619PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4620if test -n "$PKG_CONFIG"; then 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4622$as_echo "$PKG_CONFIG" >&6; } 4623else 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4625$as_echo "no" >&6; } 4626fi 4627 4628 4629fi 4630if test -z "$ac_cv_path_PKG_CONFIG"; then 4631 ac_pt_PKG_CONFIG=$PKG_CONFIG 4632 # Extract the first word of "pkg-config", so it can be a program name with args. 4633set dummy pkg-config; ac_word=$2 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4635$as_echo_n "checking for $ac_word... " >&6; } 4636if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 case $ac_pt_PKG_CONFIG in 4640 [\\/]* | ?:[\\/]*) 4641 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4642 ;; 4643 *) 4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4645for as_dir in $PATH 4646do 4647 IFS=$as_save_IFS 4648 test -z "$as_dir" && as_dir=. 4649 for ac_exec_ext in '' $ac_executable_extensions; do 4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4651 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4653 break 2 4654 fi 4655done 4656 done 4657IFS=$as_save_IFS 4658 4659 ;; 4660esac 4661fi 4662ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4663if test -n "$ac_pt_PKG_CONFIG"; then 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4665$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4666else 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4668$as_echo "no" >&6; } 4669fi 4670 4671 if test "x$ac_pt_PKG_CONFIG" = x; then 4672 PKG_CONFIG="" 4673 else 4674 case $cross_compiling:$ac_tool_warned in 4675yes:) 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4678ac_tool_warned=yes ;; 4679esac 4680 PKG_CONFIG=$ac_pt_PKG_CONFIG 4681 fi 4682else 4683 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4684fi 4685 4686fi 4687if test -n "$PKG_CONFIG"; then 4688 _pkg_min_version=0.9.0 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4690$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4691 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4693$as_echo "yes" >&6; } 4694 else 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4696$as_echo "no" >&6; } 4697 PKG_CONFIG="" 4698 fi 4699fi 4700# Make sure we can run config.sub. 4701$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4702 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4703 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4705$as_echo_n "checking build system type... " >&6; } 4706if ${ac_cv_build+:} false; then : 4707 $as_echo_n "(cached) " >&6 4708else 4709 ac_build_alias=$build_alias 4710test "x$ac_build_alias" = x && 4711 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4712test "x$ac_build_alias" = x && 4713 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4714ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4715 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4716 4717fi 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4719$as_echo "$ac_cv_build" >&6; } 4720case $ac_cv_build in 4721*-*-*) ;; 4722*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4723esac 4724build=$ac_cv_build 4725ac_save_IFS=$IFS; IFS='-' 4726set x $ac_cv_build 4727shift 4728build_cpu=$1 4729build_vendor=$2 4730shift; shift 4731# Remember, the first character of IFS is used to create $*, 4732# except with old shells: 4733build_os=$* 4734IFS=$ac_save_IFS 4735case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4736 4737 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4739$as_echo_n "checking host system type... " >&6; } 4740if ${ac_cv_host+:} false; then : 4741 $as_echo_n "(cached) " >&6 4742else 4743 if test "x$host_alias" = x; then 4744 ac_cv_host=$ac_cv_build 4745else 4746 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4747 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4748fi 4749 4750fi 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4752$as_echo "$ac_cv_host" >&6; } 4753case $ac_cv_host in 4754*-*-*) ;; 4755*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4756esac 4757host=$ac_cv_host 4758ac_save_IFS=$IFS; IFS='-' 4759set x $ac_cv_host 4760shift 4761host_cpu=$1 4762host_vendor=$2 4763shift; shift 4764# Remember, the first character of IFS is used to create $*, 4765# except with old shells: 4766host_os=$* 4767IFS=$ac_save_IFS 4768case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4769 4770 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4772$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4773if ${ac_cv_path_SED+:} false; then : 4774 $as_echo_n "(cached) " >&6 4775else 4776 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4777 for ac_i in 1 2 3 4 5 6 7; do 4778 ac_script="$ac_script$as_nl$ac_script" 4779 done 4780 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4781 { ac_script=; unset ac_script;} 4782 if test -z "$SED"; then 4783 ac_path_SED_found=false 4784 # Loop through the user's path and test for each of PROGNAME-LIST 4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4786for as_dir in $PATH 4787do 4788 IFS=$as_save_IFS 4789 test -z "$as_dir" && as_dir=. 4790 for ac_prog in sed gsed; do 4791 for ac_exec_ext in '' $ac_executable_extensions; do 4792 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4793 as_fn_executable_p "$ac_path_SED" || continue 4794# Check for GNU ac_path_SED and select it if it is found. 4795 # Check for GNU $ac_path_SED 4796case `"$ac_path_SED" --version 2>&1` in 4797*GNU*) 4798 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4799*) 4800 ac_count=0 4801 $as_echo_n 0123456789 >"conftest.in" 4802 while : 4803 do 4804 cat "conftest.in" "conftest.in" >"conftest.tmp" 4805 mv "conftest.tmp" "conftest.in" 4806 cp "conftest.in" "conftest.nl" 4807 $as_echo '' >> "conftest.nl" 4808 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4810 as_fn_arith $ac_count + 1 && ac_count=$as_val 4811 if test $ac_count -gt ${ac_path_SED_max-0}; then 4812 # Best one so far, save it but keep looking for a better one 4813 ac_cv_path_SED="$ac_path_SED" 4814 ac_path_SED_max=$ac_count 4815 fi 4816 # 10*(2^10) chars as input seems more than enough 4817 test $ac_count -gt 10 && break 4818 done 4819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4820esac 4821 4822 $ac_path_SED_found && break 3 4823 done 4824 done 4825 done 4826IFS=$as_save_IFS 4827 if test -z "$ac_cv_path_SED"; then 4828 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4829 fi 4830else 4831 ac_cv_path_SED=$SED 4832fi 4833 4834fi 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4836$as_echo "$ac_cv_path_SED" >&6; } 4837 SED="$ac_cv_path_SED" 4838 rm -f conftest.sed 4839 4840 4841 4842 4843 4844 4845# Check whether --enable-selective-werror was given. 4846if test "${enable_selective_werror+set}" = set; then : 4847 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4848else 4849 SELECTIVE_WERROR=yes 4850fi 4851 4852 4853 4854 4855 4856# -v is too short to test reliably with XORG_TESTSET_CFLAG 4857if test "x$SUNCC" = "xyes"; then 4858 BASE_CFLAGS="-v" 4859else 4860 BASE_CFLAGS="" 4861fi 4862 4863# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877xorg_testset_save_CFLAGS="$CFLAGS" 4878 4879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4884 $as_echo_n "(cached) " >&6 4885else 4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887/* end confdefs.h. */ 4888int i; 4889_ACEOF 4890if ac_fn_c_try_compile "$LINENO"; then : 4891 xorg_cv_cc_flag_unknown_warning_option=yes 4892else 4893 xorg_cv_cc_flag_unknown_warning_option=no 4894fi 4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4896fi 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4900 CFLAGS="$xorg_testset_save_CFLAGS" 4901fi 4902 4903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4906 fi 4907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4914/* end confdefs.h. */ 4915int i; 4916_ACEOF 4917if ac_fn_c_try_compile "$LINENO"; then : 4918 xorg_cv_cc_flag_unused_command_line_argument=yes 4919else 4920 xorg_cv_cc_flag_unused_command_line_argument=no 4921fi 4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4923fi 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4927 CFLAGS="$xorg_testset_save_CFLAGS" 4928fi 4929 4930found="no" 4931 4932 if test $found = "no" ; then 4933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4935 fi 4936 4937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4939 fi 4940 4941 CFLAGS="$CFLAGS -Wall" 4942 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 4944$as_echo_n "checking if $CC supports-Wall... " >&6; } 4945 cacheid=xorg_cv_cc_flag__Wall 4946 if eval \${$cacheid+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951int i; 4952int 4953main () 4954{ 4955 4956 ; 4957 return 0; 4958} 4959_ACEOF 4960if ac_fn_c_try_link "$LINENO"; then : 4961 eval $cacheid=yes 4962else 4963 eval $cacheid=no 4964fi 4965rm -f core conftest.err conftest.$ac_objext \ 4966 conftest$ac_exeext conftest.$ac_ext 4967fi 4968 4969 4970 CFLAGS="$xorg_testset_save_CFLAGS" 4971 4972 eval supported=\$$cacheid 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4974$as_echo "$supported" >&6; } 4975 if test "$supported" = "yes" ; then 4976 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4977 found="yes" 4978 fi 4979 fi 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995xorg_testset_save_CFLAGS="$CFLAGS" 4996 4997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5005/* end confdefs.h. */ 5006int i; 5007_ACEOF 5008if ac_fn_c_try_compile "$LINENO"; then : 5009 xorg_cv_cc_flag_unknown_warning_option=yes 5010else 5011 xorg_cv_cc_flag_unknown_warning_option=no 5012fi 5013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5014fi 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5018 CFLAGS="$xorg_testset_save_CFLAGS" 5019fi 5020 5021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5024 fi 5025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5029 $as_echo_n "(cached) " >&6 5030else 5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5032/* end confdefs.h. */ 5033int i; 5034_ACEOF 5035if ac_fn_c_try_compile "$LINENO"; then : 5036 xorg_cv_cc_flag_unused_command_line_argument=yes 5037else 5038 xorg_cv_cc_flag_unused_command_line_argument=no 5039fi 5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5041fi 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5045 CFLAGS="$xorg_testset_save_CFLAGS" 5046fi 5047 5048found="no" 5049 5050 if test $found = "no" ; then 5051 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5053 fi 5054 5055 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5057 fi 5058 5059 CFLAGS="$CFLAGS -Wpointer-arith" 5060 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 5062$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 5063 cacheid=xorg_cv_cc_flag__Wpointer_arith 5064 if eval \${$cacheid+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5068/* end confdefs.h. */ 5069int i; 5070int 5071main () 5072{ 5073 5074 ; 5075 return 0; 5076} 5077_ACEOF 5078if ac_fn_c_try_link "$LINENO"; then : 5079 eval $cacheid=yes 5080else 5081 eval $cacheid=no 5082fi 5083rm -f core conftest.err conftest.$ac_objext \ 5084 conftest$ac_exeext conftest.$ac_ext 5085fi 5086 5087 5088 CFLAGS="$xorg_testset_save_CFLAGS" 5089 5090 eval supported=\$$cacheid 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5092$as_echo "$supported" >&6; } 5093 if test "$supported" = "yes" ; then 5094 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5095 found="yes" 5096 fi 5097 fi 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113xorg_testset_save_CFLAGS="$CFLAGS" 5114 5115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5120 $as_echo_n "(cached) " >&6 5121else 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124int i; 5125_ACEOF 5126if ac_fn_c_try_compile "$LINENO"; then : 5127 xorg_cv_cc_flag_unknown_warning_option=yes 5128else 5129 xorg_cv_cc_flag_unknown_warning_option=no 5130fi 5131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5132fi 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5136 CFLAGS="$xorg_testset_save_CFLAGS" 5137fi 5138 5139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5142 fi 5143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148else 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150/* end confdefs.h. */ 5151int i; 5152_ACEOF 5153if ac_fn_c_try_compile "$LINENO"; then : 5154 xorg_cv_cc_flag_unused_command_line_argument=yes 5155else 5156 xorg_cv_cc_flag_unused_command_line_argument=no 5157fi 5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5159fi 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5163 CFLAGS="$xorg_testset_save_CFLAGS" 5164fi 5165 5166found="no" 5167 5168 if test $found = "no" ; then 5169 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5171 fi 5172 5173 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5175 fi 5176 5177 CFLAGS="$CFLAGS -Wmissing-declarations" 5178 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 5180$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 5181 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5182 if eval \${$cacheid+:} false; then : 5183 $as_echo_n "(cached) " >&6 5184else 5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5186/* end confdefs.h. */ 5187int i; 5188int 5189main () 5190{ 5191 5192 ; 5193 return 0; 5194} 5195_ACEOF 5196if ac_fn_c_try_link "$LINENO"; then : 5197 eval $cacheid=yes 5198else 5199 eval $cacheid=no 5200fi 5201rm -f core conftest.err conftest.$ac_objext \ 5202 conftest$ac_exeext conftest.$ac_ext 5203fi 5204 5205 5206 CFLAGS="$xorg_testset_save_CFLAGS" 5207 5208 eval supported=\$$cacheid 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5210$as_echo "$supported" >&6; } 5211 if test "$supported" = "yes" ; then 5212 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5213 found="yes" 5214 fi 5215 fi 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231xorg_testset_save_CFLAGS="$CFLAGS" 5232 5233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5238 $as_echo_n "(cached) " >&6 5239else 5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5241/* end confdefs.h. */ 5242int i; 5243_ACEOF 5244if ac_fn_c_try_compile "$LINENO"; then : 5245 xorg_cv_cc_flag_unknown_warning_option=yes 5246else 5247 xorg_cv_cc_flag_unknown_warning_option=no 5248fi 5249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5250fi 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5254 CFLAGS="$xorg_testset_save_CFLAGS" 5255fi 5256 5257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5260 fi 5261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5265 $as_echo_n "(cached) " >&6 5266else 5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5268/* end confdefs.h. */ 5269int i; 5270_ACEOF 5271if ac_fn_c_try_compile "$LINENO"; then : 5272 xorg_cv_cc_flag_unused_command_line_argument=yes 5273else 5274 xorg_cv_cc_flag_unused_command_line_argument=no 5275fi 5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5277fi 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5281 CFLAGS="$xorg_testset_save_CFLAGS" 5282fi 5283 5284found="no" 5285 5286 if test $found = "no" ; then 5287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5289 fi 5290 5291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5293 fi 5294 5295 CFLAGS="$CFLAGS -Wformat=2" 5296 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 5298$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 5299 cacheid=xorg_cv_cc_flag__Wformat_2 5300 if eval \${$cacheid+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5304/* end confdefs.h. */ 5305int i; 5306int 5307main () 5308{ 5309 5310 ; 5311 return 0; 5312} 5313_ACEOF 5314if ac_fn_c_try_link "$LINENO"; then : 5315 eval $cacheid=yes 5316else 5317 eval $cacheid=no 5318fi 5319rm -f core conftest.err conftest.$ac_objext \ 5320 conftest$ac_exeext conftest.$ac_ext 5321fi 5322 5323 5324 CFLAGS="$xorg_testset_save_CFLAGS" 5325 5326 eval supported=\$$cacheid 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5328$as_echo "$supported" >&6; } 5329 if test "$supported" = "yes" ; then 5330 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5331 found="yes" 5332 fi 5333 fi 5334 5335 if test $found = "no" ; then 5336 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5338 fi 5339 5340 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5342 fi 5343 5344 CFLAGS="$CFLAGS -Wformat" 5345 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 5347$as_echo_n "checking if $CC supports-Wformat... " >&6; } 5348 cacheid=xorg_cv_cc_flag__Wformat 5349 if eval \${$cacheid+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5353/* end confdefs.h. */ 5354int i; 5355int 5356main () 5357{ 5358 5359 ; 5360 return 0; 5361} 5362_ACEOF 5363if ac_fn_c_try_link "$LINENO"; then : 5364 eval $cacheid=yes 5365else 5366 eval $cacheid=no 5367fi 5368rm -f core conftest.err conftest.$ac_objext \ 5369 conftest$ac_exeext conftest.$ac_ext 5370fi 5371 5372 5373 CFLAGS="$xorg_testset_save_CFLAGS" 5374 5375 eval supported=\$$cacheid 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5377$as_echo "$supported" >&6; } 5378 if test "$supported" = "yes" ; then 5379 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5380 found="yes" 5381 fi 5382 fi 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400xorg_testset_save_CFLAGS="$CFLAGS" 5401 5402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5410/* end confdefs.h. */ 5411int i; 5412_ACEOF 5413if ac_fn_c_try_compile "$LINENO"; then : 5414 xorg_cv_cc_flag_unknown_warning_option=yes 5415else 5416 xorg_cv_cc_flag_unknown_warning_option=no 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5419fi 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5423 CFLAGS="$xorg_testset_save_CFLAGS" 5424fi 5425 5426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5429 fi 5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437/* end confdefs.h. */ 5438int i; 5439_ACEOF 5440if ac_fn_c_try_compile "$LINENO"; then : 5441 xorg_cv_cc_flag_unused_command_line_argument=yes 5442else 5443 xorg_cv_cc_flag_unused_command_line_argument=no 5444fi 5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5446fi 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5450 CFLAGS="$xorg_testset_save_CFLAGS" 5451fi 5452 5453found="no" 5454 5455 if test $found = "no" ; then 5456 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5458 fi 5459 5460 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5462 fi 5463 5464 CFLAGS="$CFLAGS -Wstrict-prototypes" 5465 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 5467$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 5468 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5469 if eval \${$cacheid+:} false; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5473/* end confdefs.h. */ 5474int i; 5475int 5476main () 5477{ 5478 5479 ; 5480 return 0; 5481} 5482_ACEOF 5483if ac_fn_c_try_link "$LINENO"; then : 5484 eval $cacheid=yes 5485else 5486 eval $cacheid=no 5487fi 5488rm -f core conftest.err conftest.$ac_objext \ 5489 conftest$ac_exeext conftest.$ac_ext 5490fi 5491 5492 5493 CFLAGS="$xorg_testset_save_CFLAGS" 5494 5495 eval supported=\$$cacheid 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5497$as_echo "$supported" >&6; } 5498 if test "$supported" = "yes" ; then 5499 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5500 found="yes" 5501 fi 5502 fi 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518xorg_testset_save_CFLAGS="$CFLAGS" 5519 5520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5525 $as_echo_n "(cached) " >&6 5526else 5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5528/* end confdefs.h. */ 5529int i; 5530_ACEOF 5531if ac_fn_c_try_compile "$LINENO"; then : 5532 xorg_cv_cc_flag_unknown_warning_option=yes 5533else 5534 xorg_cv_cc_flag_unknown_warning_option=no 5535fi 5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5537fi 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5541 CFLAGS="$xorg_testset_save_CFLAGS" 5542fi 5543 5544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5547 fi 5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553else 5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555/* end confdefs.h. */ 5556int i; 5557_ACEOF 5558if ac_fn_c_try_compile "$LINENO"; then : 5559 xorg_cv_cc_flag_unused_command_line_argument=yes 5560else 5561 xorg_cv_cc_flag_unused_command_line_argument=no 5562fi 5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5564fi 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5568 CFLAGS="$xorg_testset_save_CFLAGS" 5569fi 5570 5571found="no" 5572 5573 if test $found = "no" ; then 5574 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5576 fi 5577 5578 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5580 fi 5581 5582 CFLAGS="$CFLAGS -Wmissing-prototypes" 5583 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 5585$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 5586 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5587 if eval \${$cacheid+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592int i; 5593int 5594main () 5595{ 5596 5597 ; 5598 return 0; 5599} 5600_ACEOF 5601if ac_fn_c_try_link "$LINENO"; then : 5602 eval $cacheid=yes 5603else 5604 eval $cacheid=no 5605fi 5606rm -f core conftest.err conftest.$ac_objext \ 5607 conftest$ac_exeext conftest.$ac_ext 5608fi 5609 5610 5611 CFLAGS="$xorg_testset_save_CFLAGS" 5612 5613 eval supported=\$$cacheid 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5615$as_echo "$supported" >&6; } 5616 if test "$supported" = "yes" ; then 5617 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5618 found="yes" 5619 fi 5620 fi 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636xorg_testset_save_CFLAGS="$CFLAGS" 5637 5638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5643 $as_echo_n "(cached) " >&6 5644else 5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5646/* end confdefs.h. */ 5647int i; 5648_ACEOF 5649if ac_fn_c_try_compile "$LINENO"; then : 5650 xorg_cv_cc_flag_unknown_warning_option=yes 5651else 5652 xorg_cv_cc_flag_unknown_warning_option=no 5653fi 5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5655fi 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5659 CFLAGS="$xorg_testset_save_CFLAGS" 5660fi 5661 5662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5665 fi 5666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5670 $as_echo_n "(cached) " >&6 5671else 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673/* end confdefs.h. */ 5674int i; 5675_ACEOF 5676if ac_fn_c_try_compile "$LINENO"; then : 5677 xorg_cv_cc_flag_unused_command_line_argument=yes 5678else 5679 xorg_cv_cc_flag_unused_command_line_argument=no 5680fi 5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5682fi 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5686 CFLAGS="$xorg_testset_save_CFLAGS" 5687fi 5688 5689found="no" 5690 5691 if test $found = "no" ; then 5692 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5694 fi 5695 5696 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5698 fi 5699 5700 CFLAGS="$CFLAGS -Wnested-externs" 5701 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 5703$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 5704 cacheid=xorg_cv_cc_flag__Wnested_externs 5705 if eval \${$cacheid+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5709/* end confdefs.h. */ 5710int i; 5711int 5712main () 5713{ 5714 5715 ; 5716 return 0; 5717} 5718_ACEOF 5719if ac_fn_c_try_link "$LINENO"; then : 5720 eval $cacheid=yes 5721else 5722 eval $cacheid=no 5723fi 5724rm -f core conftest.err conftest.$ac_objext \ 5725 conftest$ac_exeext conftest.$ac_ext 5726fi 5727 5728 5729 CFLAGS="$xorg_testset_save_CFLAGS" 5730 5731 eval supported=\$$cacheid 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5733$as_echo "$supported" >&6; } 5734 if test "$supported" = "yes" ; then 5735 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5736 found="yes" 5737 fi 5738 fi 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754xorg_testset_save_CFLAGS="$CFLAGS" 5755 5756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5761 $as_echo_n "(cached) " >&6 5762else 5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5764/* end confdefs.h. */ 5765int i; 5766_ACEOF 5767if ac_fn_c_try_compile "$LINENO"; then : 5768 xorg_cv_cc_flag_unknown_warning_option=yes 5769else 5770 xorg_cv_cc_flag_unknown_warning_option=no 5771fi 5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5773fi 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5777 CFLAGS="$xorg_testset_save_CFLAGS" 5778fi 5779 5780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5783 fi 5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5788 $as_echo_n "(cached) " >&6 5789else 5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5791/* end confdefs.h. */ 5792int i; 5793_ACEOF 5794if ac_fn_c_try_compile "$LINENO"; then : 5795 xorg_cv_cc_flag_unused_command_line_argument=yes 5796else 5797 xorg_cv_cc_flag_unused_command_line_argument=no 5798fi 5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5800fi 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5804 CFLAGS="$xorg_testset_save_CFLAGS" 5805fi 5806 5807found="no" 5808 5809 if test $found = "no" ; then 5810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5812 fi 5813 5814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5816 fi 5817 5818 CFLAGS="$CFLAGS -Wbad-function-cast" 5819 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 5821$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 5822 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5823 if eval \${$cacheid+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827/* end confdefs.h. */ 5828int i; 5829int 5830main () 5831{ 5832 5833 ; 5834 return 0; 5835} 5836_ACEOF 5837if ac_fn_c_try_link "$LINENO"; then : 5838 eval $cacheid=yes 5839else 5840 eval $cacheid=no 5841fi 5842rm -f core conftest.err conftest.$ac_objext \ 5843 conftest$ac_exeext conftest.$ac_ext 5844fi 5845 5846 5847 CFLAGS="$xorg_testset_save_CFLAGS" 5848 5849 eval supported=\$$cacheid 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5851$as_echo "$supported" >&6; } 5852 if test "$supported" = "yes" ; then 5853 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5854 found="yes" 5855 fi 5856 fi 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872xorg_testset_save_CFLAGS="$CFLAGS" 5873 5874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5879 $as_echo_n "(cached) " >&6 5880else 5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5882/* end confdefs.h. */ 5883int i; 5884_ACEOF 5885if ac_fn_c_try_compile "$LINENO"; then : 5886 xorg_cv_cc_flag_unknown_warning_option=yes 5887else 5888 xorg_cv_cc_flag_unknown_warning_option=no 5889fi 5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5891fi 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5895 CFLAGS="$xorg_testset_save_CFLAGS" 5896fi 5897 5898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5901 fi 5902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909/* end confdefs.h. */ 5910int i; 5911_ACEOF 5912if ac_fn_c_try_compile "$LINENO"; then : 5913 xorg_cv_cc_flag_unused_command_line_argument=yes 5914else 5915 xorg_cv_cc_flag_unused_command_line_argument=no 5916fi 5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5918fi 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5922 CFLAGS="$xorg_testset_save_CFLAGS" 5923fi 5924 5925found="no" 5926 5927 if test $found = "no" ; then 5928 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5930 fi 5931 5932 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5934 fi 5935 5936 CFLAGS="$CFLAGS -Wold-style-definition" 5937 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 5939$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 5940 cacheid=xorg_cv_cc_flag__Wold_style_definition 5941 if eval \${$cacheid+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5945/* end confdefs.h. */ 5946int i; 5947int 5948main () 5949{ 5950 5951 ; 5952 return 0; 5953} 5954_ACEOF 5955if ac_fn_c_try_link "$LINENO"; then : 5956 eval $cacheid=yes 5957else 5958 eval $cacheid=no 5959fi 5960rm -f core conftest.err conftest.$ac_objext \ 5961 conftest$ac_exeext conftest.$ac_ext 5962fi 5963 5964 5965 CFLAGS="$xorg_testset_save_CFLAGS" 5966 5967 eval supported=\$$cacheid 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5969$as_echo "$supported" >&6; } 5970 if test "$supported" = "yes" ; then 5971 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5972 found="yes" 5973 fi 5974 fi 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990xorg_testset_save_CFLAGS="$CFLAGS" 5991 5992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5996if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998else 5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6000/* end confdefs.h. */ 6001int i; 6002_ACEOF 6003if ac_fn_c_try_compile "$LINENO"; then : 6004 xorg_cv_cc_flag_unknown_warning_option=yes 6005else 6006 xorg_cv_cc_flag_unknown_warning_option=no 6007fi 6008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6009fi 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6013 CFLAGS="$xorg_testset_save_CFLAGS" 6014fi 6015 6016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6019 fi 6020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6024 $as_echo_n "(cached) " >&6 6025else 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6027/* end confdefs.h. */ 6028int i; 6029_ACEOF 6030if ac_fn_c_try_compile "$LINENO"; then : 6031 xorg_cv_cc_flag_unused_command_line_argument=yes 6032else 6033 xorg_cv_cc_flag_unused_command_line_argument=no 6034fi 6035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6036fi 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6040 CFLAGS="$xorg_testset_save_CFLAGS" 6041fi 6042 6043found="no" 6044 6045 if test $found = "no" ; then 6046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6048 fi 6049 6050 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6052 fi 6053 6054 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6055 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 6057$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 6058 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6059 if eval \${$cacheid+:} false; then : 6060 $as_echo_n "(cached) " >&6 6061else 6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6063/* end confdefs.h. */ 6064int i; 6065int 6066main () 6067{ 6068 6069 ; 6070 return 0; 6071} 6072_ACEOF 6073if ac_fn_c_try_link "$LINENO"; then : 6074 eval $cacheid=yes 6075else 6076 eval $cacheid=no 6077fi 6078rm -f core conftest.err conftest.$ac_objext \ 6079 conftest$ac_exeext conftest.$ac_ext 6080fi 6081 6082 6083 CFLAGS="$xorg_testset_save_CFLAGS" 6084 6085 eval supported=\$$cacheid 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6087$as_echo "$supported" >&6; } 6088 if test "$supported" = "yes" ; then 6089 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6090 found="yes" 6091 fi 6092 fi 6093 6094 6095 6096 6097 6098# This chunk adds additional warnings that could catch undesired effects. 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112xorg_testset_save_CFLAGS="$CFLAGS" 6113 6114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122/* end confdefs.h. */ 6123int i; 6124_ACEOF 6125if ac_fn_c_try_compile "$LINENO"; then : 6126 xorg_cv_cc_flag_unknown_warning_option=yes 6127else 6128 xorg_cv_cc_flag_unknown_warning_option=no 6129fi 6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6131fi 6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6135 CFLAGS="$xorg_testset_save_CFLAGS" 6136fi 6137 6138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6141 fi 6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6149/* end confdefs.h. */ 6150int i; 6151_ACEOF 6152if ac_fn_c_try_compile "$LINENO"; then : 6153 xorg_cv_cc_flag_unused_command_line_argument=yes 6154else 6155 xorg_cv_cc_flag_unused_command_line_argument=no 6156fi 6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6158fi 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6162 CFLAGS="$xorg_testset_save_CFLAGS" 6163fi 6164 6165found="no" 6166 6167 if test $found = "no" ; then 6168 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6170 fi 6171 6172 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6174 fi 6175 6176 CFLAGS="$CFLAGS -Wunused" 6177 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 6179$as_echo_n "checking if $CC supports-Wunused... " >&6; } 6180 cacheid=xorg_cv_cc_flag__Wunused 6181 if eval \${$cacheid+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185/* end confdefs.h. */ 6186int i; 6187int 6188main () 6189{ 6190 6191 ; 6192 return 0; 6193} 6194_ACEOF 6195if ac_fn_c_try_link "$LINENO"; then : 6196 eval $cacheid=yes 6197else 6198 eval $cacheid=no 6199fi 6200rm -f core conftest.err conftest.$ac_objext \ 6201 conftest$ac_exeext conftest.$ac_ext 6202fi 6203 6204 6205 CFLAGS="$xorg_testset_save_CFLAGS" 6206 6207 eval supported=\$$cacheid 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6209$as_echo "$supported" >&6; } 6210 if test "$supported" = "yes" ; then 6211 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6212 found="yes" 6213 fi 6214 fi 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230xorg_testset_save_CFLAGS="$CFLAGS" 6231 6232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6237 $as_echo_n "(cached) " >&6 6238else 6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6240/* end confdefs.h. */ 6241int i; 6242_ACEOF 6243if ac_fn_c_try_compile "$LINENO"; then : 6244 xorg_cv_cc_flag_unknown_warning_option=yes 6245else 6246 xorg_cv_cc_flag_unknown_warning_option=no 6247fi 6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6249fi 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6253 CFLAGS="$xorg_testset_save_CFLAGS" 6254fi 6255 6256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6259 fi 6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267/* end confdefs.h. */ 6268int i; 6269_ACEOF 6270if ac_fn_c_try_compile "$LINENO"; then : 6271 xorg_cv_cc_flag_unused_command_line_argument=yes 6272else 6273 xorg_cv_cc_flag_unused_command_line_argument=no 6274fi 6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6276fi 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6280 CFLAGS="$xorg_testset_save_CFLAGS" 6281fi 6282 6283found="no" 6284 6285 if test $found = "no" ; then 6286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6288 fi 6289 6290 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6292 fi 6293 6294 CFLAGS="$CFLAGS -Wuninitialized" 6295 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 6297$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 6298 cacheid=xorg_cv_cc_flag__Wuninitialized 6299 if eval \${$cacheid+:} false; then : 6300 $as_echo_n "(cached) " >&6 6301else 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303/* end confdefs.h. */ 6304int i; 6305int 6306main () 6307{ 6308 6309 ; 6310 return 0; 6311} 6312_ACEOF 6313if ac_fn_c_try_link "$LINENO"; then : 6314 eval $cacheid=yes 6315else 6316 eval $cacheid=no 6317fi 6318rm -f core conftest.err conftest.$ac_objext \ 6319 conftest$ac_exeext conftest.$ac_ext 6320fi 6321 6322 6323 CFLAGS="$xorg_testset_save_CFLAGS" 6324 6325 eval supported=\$$cacheid 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6327$as_echo "$supported" >&6; } 6328 if test "$supported" = "yes" ; then 6329 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6330 found="yes" 6331 fi 6332 fi 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348xorg_testset_save_CFLAGS="$CFLAGS" 6349 6350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6355 $as_echo_n "(cached) " >&6 6356else 6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6358/* end confdefs.h. */ 6359int i; 6360_ACEOF 6361if ac_fn_c_try_compile "$LINENO"; then : 6362 xorg_cv_cc_flag_unknown_warning_option=yes 6363else 6364 xorg_cv_cc_flag_unknown_warning_option=no 6365fi 6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6367fi 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6371 CFLAGS="$xorg_testset_save_CFLAGS" 6372fi 6373 6374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6377 fi 6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6385/* end confdefs.h. */ 6386int i; 6387_ACEOF 6388if ac_fn_c_try_compile "$LINENO"; then : 6389 xorg_cv_cc_flag_unused_command_line_argument=yes 6390else 6391 xorg_cv_cc_flag_unused_command_line_argument=no 6392fi 6393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6394fi 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6398 CFLAGS="$xorg_testset_save_CFLAGS" 6399fi 6400 6401found="no" 6402 6403 if test $found = "no" ; then 6404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6406 fi 6407 6408 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6410 fi 6411 6412 CFLAGS="$CFLAGS -Wshadow" 6413 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 6415$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 6416 cacheid=xorg_cv_cc_flag__Wshadow 6417 if eval \${$cacheid+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421/* end confdefs.h. */ 6422int i; 6423int 6424main () 6425{ 6426 6427 ; 6428 return 0; 6429} 6430_ACEOF 6431if ac_fn_c_try_link "$LINENO"; then : 6432 eval $cacheid=yes 6433else 6434 eval $cacheid=no 6435fi 6436rm -f core conftest.err conftest.$ac_objext \ 6437 conftest$ac_exeext conftest.$ac_ext 6438fi 6439 6440 6441 CFLAGS="$xorg_testset_save_CFLAGS" 6442 6443 eval supported=\$$cacheid 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6445$as_echo "$supported" >&6; } 6446 if test "$supported" = "yes" ; then 6447 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6448 found="yes" 6449 fi 6450 fi 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466xorg_testset_save_CFLAGS="$CFLAGS" 6467 6468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6473 $as_echo_n "(cached) " >&6 6474else 6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476/* end confdefs.h. */ 6477int i; 6478_ACEOF 6479if ac_fn_c_try_compile "$LINENO"; then : 6480 xorg_cv_cc_flag_unknown_warning_option=yes 6481else 6482 xorg_cv_cc_flag_unknown_warning_option=no 6483fi 6484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6485fi 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490fi 6491 6492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6495 fi 6496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504int i; 6505_ACEOF 6506if ac_fn_c_try_compile "$LINENO"; then : 6507 xorg_cv_cc_flag_unused_command_line_argument=yes 6508else 6509 xorg_cv_cc_flag_unused_command_line_argument=no 6510fi 6511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6512fi 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6516 CFLAGS="$xorg_testset_save_CFLAGS" 6517fi 6518 6519found="no" 6520 6521 if test $found = "no" ; then 6522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6524 fi 6525 6526 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6528 fi 6529 6530 CFLAGS="$CFLAGS -Wcast-qual" 6531 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 6533$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 6534 cacheid=xorg_cv_cc_flag__Wcast_qual 6535 if eval \${$cacheid+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539/* end confdefs.h. */ 6540int i; 6541int 6542main () 6543{ 6544 6545 ; 6546 return 0; 6547} 6548_ACEOF 6549if ac_fn_c_try_link "$LINENO"; then : 6550 eval $cacheid=yes 6551else 6552 eval $cacheid=no 6553fi 6554rm -f core conftest.err conftest.$ac_objext \ 6555 conftest$ac_exeext conftest.$ac_ext 6556fi 6557 6558 6559 CFLAGS="$xorg_testset_save_CFLAGS" 6560 6561 eval supported=\$$cacheid 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6563$as_echo "$supported" >&6; } 6564 if test "$supported" = "yes" ; then 6565 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6566 found="yes" 6567 fi 6568 fi 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584xorg_testset_save_CFLAGS="$CFLAGS" 6585 6586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6594/* end confdefs.h. */ 6595int i; 6596_ACEOF 6597if ac_fn_c_try_compile "$LINENO"; then : 6598 xorg_cv_cc_flag_unknown_warning_option=yes 6599else 6600 xorg_cv_cc_flag_unknown_warning_option=no 6601fi 6602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6603fi 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6607 CFLAGS="$xorg_testset_save_CFLAGS" 6608fi 6609 6610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6613 fi 6614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622int i; 6623_ACEOF 6624if ac_fn_c_try_compile "$LINENO"; then : 6625 xorg_cv_cc_flag_unused_command_line_argument=yes 6626else 6627 xorg_cv_cc_flag_unused_command_line_argument=no 6628fi 6629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6630fi 6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6634 CFLAGS="$xorg_testset_save_CFLAGS" 6635fi 6636 6637found="no" 6638 6639 if test $found = "no" ; then 6640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6642 fi 6643 6644 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6646 fi 6647 6648 CFLAGS="$CFLAGS -Wmissing-noreturn" 6649 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 6651$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 6652 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6653 if eval \${$cacheid+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658int i; 6659int 6660main () 6661{ 6662 6663 ; 6664 return 0; 6665} 6666_ACEOF 6667if ac_fn_c_try_link "$LINENO"; then : 6668 eval $cacheid=yes 6669else 6670 eval $cacheid=no 6671fi 6672rm -f core conftest.err conftest.$ac_objext \ 6673 conftest$ac_exeext conftest.$ac_ext 6674fi 6675 6676 6677 CFLAGS="$xorg_testset_save_CFLAGS" 6678 6679 eval supported=\$$cacheid 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6681$as_echo "$supported" >&6; } 6682 if test "$supported" = "yes" ; then 6683 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6684 found="yes" 6685 fi 6686 fi 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702xorg_testset_save_CFLAGS="$CFLAGS" 6703 6704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713int i; 6714_ACEOF 6715if ac_fn_c_try_compile "$LINENO"; then : 6716 xorg_cv_cc_flag_unknown_warning_option=yes 6717else 6718 xorg_cv_cc_flag_unknown_warning_option=no 6719fi 6720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6721fi 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6725 CFLAGS="$xorg_testset_save_CFLAGS" 6726fi 6727 6728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6731 fi 6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6736 $as_echo_n "(cached) " >&6 6737else 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740int i; 6741_ACEOF 6742if ac_fn_c_try_compile "$LINENO"; then : 6743 xorg_cv_cc_flag_unused_command_line_argument=yes 6744else 6745 xorg_cv_cc_flag_unused_command_line_argument=no 6746fi 6747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6748fi 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6752 CFLAGS="$xorg_testset_save_CFLAGS" 6753fi 6754 6755found="no" 6756 6757 if test $found = "no" ; then 6758 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6760 fi 6761 6762 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6764 fi 6765 6766 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6767 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 6769$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 6770 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6771 if eval \${$cacheid+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6775/* end confdefs.h. */ 6776int i; 6777int 6778main () 6779{ 6780 6781 ; 6782 return 0; 6783} 6784_ACEOF 6785if ac_fn_c_try_link "$LINENO"; then : 6786 eval $cacheid=yes 6787else 6788 eval $cacheid=no 6789fi 6790rm -f core conftest.err conftest.$ac_objext \ 6791 conftest$ac_exeext conftest.$ac_ext 6792fi 6793 6794 6795 CFLAGS="$xorg_testset_save_CFLAGS" 6796 6797 eval supported=\$$cacheid 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6799$as_echo "$supported" >&6; } 6800 if test "$supported" = "yes" ; then 6801 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6802 found="yes" 6803 fi 6804 fi 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820xorg_testset_save_CFLAGS="$CFLAGS" 6821 6822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828else 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830/* end confdefs.h. */ 6831int i; 6832_ACEOF 6833if ac_fn_c_try_compile "$LINENO"; then : 6834 xorg_cv_cc_flag_unknown_warning_option=yes 6835else 6836 xorg_cv_cc_flag_unknown_warning_option=no 6837fi 6838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6839fi 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6843 CFLAGS="$xorg_testset_save_CFLAGS" 6844fi 6845 6846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6849 fi 6850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6857/* end confdefs.h. */ 6858int i; 6859_ACEOF 6860if ac_fn_c_try_compile "$LINENO"; then : 6861 xorg_cv_cc_flag_unused_command_line_argument=yes 6862else 6863 xorg_cv_cc_flag_unused_command_line_argument=no 6864fi 6865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6866fi 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6870 CFLAGS="$xorg_testset_save_CFLAGS" 6871fi 6872 6873found="no" 6874 6875 if test $found = "no" ; then 6876 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6878 fi 6879 6880 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6882 fi 6883 6884 CFLAGS="$CFLAGS -Wredundant-decls" 6885 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 6887$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 6888 cacheid=xorg_cv_cc_flag__Wredundant_decls 6889 if eval \${$cacheid+:} false; then : 6890 $as_echo_n "(cached) " >&6 6891else 6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894int i; 6895int 6896main () 6897{ 6898 6899 ; 6900 return 0; 6901} 6902_ACEOF 6903if ac_fn_c_try_link "$LINENO"; then : 6904 eval $cacheid=yes 6905else 6906 eval $cacheid=no 6907fi 6908rm -f core conftest.err conftest.$ac_objext \ 6909 conftest$ac_exeext conftest.$ac_ext 6910fi 6911 6912 6913 CFLAGS="$xorg_testset_save_CFLAGS" 6914 6915 eval supported=\$$cacheid 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6917$as_echo "$supported" >&6; } 6918 if test "$supported" = "yes" ; then 6919 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6920 found="yes" 6921 fi 6922 fi 6923 6924 6925 6926# These are currently disabled because they are noisy. They will be enabled 6927# in the future once the codebase is sufficiently modernized to silence 6928# them. For now, I don't want them to drown out the other warnings. 6929# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6930# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6931# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6932 6933# Turn some warnings into errors, so we don't accidently get successful builds 6934# when there are problems that should be fixed. 6935 6936if test "x$SELECTIVE_WERROR" = "xyes" ; then 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950xorg_testset_save_CFLAGS="$CFLAGS" 6951 6952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6957 $as_echo_n "(cached) " >&6 6958else 6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961int i; 6962_ACEOF 6963if ac_fn_c_try_compile "$LINENO"; then : 6964 xorg_cv_cc_flag_unknown_warning_option=yes 6965else 6966 xorg_cv_cc_flag_unknown_warning_option=no 6967fi 6968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6969fi 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6973 CFLAGS="$xorg_testset_save_CFLAGS" 6974fi 6975 6976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6979 fi 6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985else 6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6987/* end confdefs.h. */ 6988int i; 6989_ACEOF 6990if ac_fn_c_try_compile "$LINENO"; then : 6991 xorg_cv_cc_flag_unused_command_line_argument=yes 6992else 6993 xorg_cv_cc_flag_unused_command_line_argument=no 6994fi 6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6996fi 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7000 CFLAGS="$xorg_testset_save_CFLAGS" 7001fi 7002 7003found="no" 7004 7005 if test $found = "no" ; then 7006 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7008 fi 7009 7010 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7012 fi 7013 7014 CFLAGS="$CFLAGS -Werror=implicit" 7015 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 7017$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 7018 cacheid=xorg_cv_cc_flag__Werror_implicit 7019 if eval \${$cacheid+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024int i; 7025int 7026main () 7027{ 7028 7029 ; 7030 return 0; 7031} 7032_ACEOF 7033if ac_fn_c_try_link "$LINENO"; then : 7034 eval $cacheid=yes 7035else 7036 eval $cacheid=no 7037fi 7038rm -f core conftest.err conftest.$ac_objext \ 7039 conftest$ac_exeext conftest.$ac_ext 7040fi 7041 7042 7043 CFLAGS="$xorg_testset_save_CFLAGS" 7044 7045 eval supported=\$$cacheid 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7047$as_echo "$supported" >&6; } 7048 if test "$supported" = "yes" ; then 7049 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7050 found="yes" 7051 fi 7052 fi 7053 7054 if test $found = "no" ; then 7055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7057 fi 7058 7059 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7061 fi 7062 7063 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7064 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7066$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7067 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7068 if eval \${$cacheid+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070else 7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7072/* end confdefs.h. */ 7073int i; 7074int 7075main () 7076{ 7077 7078 ; 7079 return 0; 7080} 7081_ACEOF 7082if ac_fn_c_try_link "$LINENO"; then : 7083 eval $cacheid=yes 7084else 7085 eval $cacheid=no 7086fi 7087rm -f core conftest.err conftest.$ac_objext \ 7088 conftest$ac_exeext conftest.$ac_ext 7089fi 7090 7091 7092 CFLAGS="$xorg_testset_save_CFLAGS" 7093 7094 eval supported=\$$cacheid 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7096$as_echo "$supported" >&6; } 7097 if test "$supported" = "yes" ; then 7098 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7099 found="yes" 7100 fi 7101 fi 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117xorg_testset_save_CFLAGS="$CFLAGS" 7118 7119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7123if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7127/* end confdefs.h. */ 7128int i; 7129_ACEOF 7130if ac_fn_c_try_compile "$LINENO"; then : 7131 xorg_cv_cc_flag_unknown_warning_option=yes 7132else 7133 xorg_cv_cc_flag_unknown_warning_option=no 7134fi 7135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7136fi 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7138$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7140 CFLAGS="$xorg_testset_save_CFLAGS" 7141fi 7142 7143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7146 fi 7147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155int i; 7156_ACEOF 7157if ac_fn_c_try_compile "$LINENO"; then : 7158 xorg_cv_cc_flag_unused_command_line_argument=yes 7159else 7160 xorg_cv_cc_flag_unused_command_line_argument=no 7161fi 7162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7163fi 7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7167 CFLAGS="$xorg_testset_save_CFLAGS" 7168fi 7169 7170found="no" 7171 7172 if test $found = "no" ; then 7173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7175 fi 7176 7177 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7179 fi 7180 7181 CFLAGS="$CFLAGS -Werror=nonnull" 7182 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 7184$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 7185 cacheid=xorg_cv_cc_flag__Werror_nonnull 7186 if eval \${$cacheid+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190/* end confdefs.h. */ 7191int i; 7192int 7193main () 7194{ 7195 7196 ; 7197 return 0; 7198} 7199_ACEOF 7200if ac_fn_c_try_link "$LINENO"; then : 7201 eval $cacheid=yes 7202else 7203 eval $cacheid=no 7204fi 7205rm -f core conftest.err conftest.$ac_objext \ 7206 conftest$ac_exeext conftest.$ac_ext 7207fi 7208 7209 7210 CFLAGS="$xorg_testset_save_CFLAGS" 7211 7212 eval supported=\$$cacheid 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7214$as_echo "$supported" >&6; } 7215 if test "$supported" = "yes" ; then 7216 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7217 found="yes" 7218 fi 7219 fi 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235xorg_testset_save_CFLAGS="$CFLAGS" 7236 7237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7240$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7241if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243else 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246int i; 7247_ACEOF 7248if ac_fn_c_try_compile "$LINENO"; then : 7249 xorg_cv_cc_flag_unknown_warning_option=yes 7250else 7251 xorg_cv_cc_flag_unknown_warning_option=no 7252fi 7253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7254fi 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7256$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7258 CFLAGS="$xorg_testset_save_CFLAGS" 7259fi 7260 7261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7264 fi 7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7268if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273int i; 7274_ACEOF 7275if ac_fn_c_try_compile "$LINENO"; then : 7276 xorg_cv_cc_flag_unused_command_line_argument=yes 7277else 7278 xorg_cv_cc_flag_unused_command_line_argument=no 7279fi 7280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7281fi 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7283$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7285 CFLAGS="$xorg_testset_save_CFLAGS" 7286fi 7287 7288found="no" 7289 7290 if test $found = "no" ; then 7291 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7293 fi 7294 7295 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7297 fi 7298 7299 CFLAGS="$CFLAGS -Werror=init-self" 7300 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 7302$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 7303 cacheid=xorg_cv_cc_flag__Werror_init_self 7304 if eval \${$cacheid+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308/* end confdefs.h. */ 7309int i; 7310int 7311main () 7312{ 7313 7314 ; 7315 return 0; 7316} 7317_ACEOF 7318if ac_fn_c_try_link "$LINENO"; then : 7319 eval $cacheid=yes 7320else 7321 eval $cacheid=no 7322fi 7323rm -f core conftest.err conftest.$ac_objext \ 7324 conftest$ac_exeext conftest.$ac_ext 7325fi 7326 7327 7328 CFLAGS="$xorg_testset_save_CFLAGS" 7329 7330 eval supported=\$$cacheid 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7332$as_echo "$supported" >&6; } 7333 if test "$supported" = "yes" ; then 7334 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7335 found="yes" 7336 fi 7337 fi 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353xorg_testset_save_CFLAGS="$CFLAGS" 7354 7355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7358$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7359if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361else 7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7363/* end confdefs.h. */ 7364int i; 7365_ACEOF 7366if ac_fn_c_try_compile "$LINENO"; then : 7367 xorg_cv_cc_flag_unknown_warning_option=yes 7368else 7369 xorg_cv_cc_flag_unknown_warning_option=no 7370fi 7371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7372fi 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7374$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7376 CFLAGS="$xorg_testset_save_CFLAGS" 7377fi 7378 7379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7382 fi 7383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7385$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7386if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7390/* end confdefs.h. */ 7391int i; 7392_ACEOF 7393if ac_fn_c_try_compile "$LINENO"; then : 7394 xorg_cv_cc_flag_unused_command_line_argument=yes 7395else 7396 xorg_cv_cc_flag_unused_command_line_argument=no 7397fi 7398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7399fi 7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7401$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7403 CFLAGS="$xorg_testset_save_CFLAGS" 7404fi 7405 7406found="no" 7407 7408 if test $found = "no" ; then 7409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7411 fi 7412 7413 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7415 fi 7416 7417 CFLAGS="$CFLAGS -Werror=main" 7418 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 7420$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 7421 cacheid=xorg_cv_cc_flag__Werror_main 7422 if eval \${$cacheid+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7426/* end confdefs.h. */ 7427int i; 7428int 7429main () 7430{ 7431 7432 ; 7433 return 0; 7434} 7435_ACEOF 7436if ac_fn_c_try_link "$LINENO"; then : 7437 eval $cacheid=yes 7438else 7439 eval $cacheid=no 7440fi 7441rm -f core conftest.err conftest.$ac_objext \ 7442 conftest$ac_exeext conftest.$ac_ext 7443fi 7444 7445 7446 CFLAGS="$xorg_testset_save_CFLAGS" 7447 7448 eval supported=\$$cacheid 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7450$as_echo "$supported" >&6; } 7451 if test "$supported" = "yes" ; then 7452 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7453 found="yes" 7454 fi 7455 fi 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471xorg_testset_save_CFLAGS="$CFLAGS" 7472 7473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481/* end confdefs.h. */ 7482int i; 7483_ACEOF 7484if ac_fn_c_try_compile "$LINENO"; then : 7485 xorg_cv_cc_flag_unknown_warning_option=yes 7486else 7487 xorg_cv_cc_flag_unknown_warning_option=no 7488fi 7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7490fi 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7494 CFLAGS="$xorg_testset_save_CFLAGS" 7495fi 7496 7497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7500 fi 7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509int i; 7510_ACEOF 7511if ac_fn_c_try_compile "$LINENO"; then : 7512 xorg_cv_cc_flag_unused_command_line_argument=yes 7513else 7514 xorg_cv_cc_flag_unused_command_line_argument=no 7515fi 7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7517fi 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7521 CFLAGS="$xorg_testset_save_CFLAGS" 7522fi 7523 7524found="no" 7525 7526 if test $found = "no" ; then 7527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7529 fi 7530 7531 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7533 fi 7534 7535 CFLAGS="$CFLAGS -Werror=missing-braces" 7536 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 7538$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 7539 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7540 if eval \${$cacheid+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545int i; 7546int 7547main () 7548{ 7549 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554if ac_fn_c_try_link "$LINENO"; then : 7555 eval $cacheid=yes 7556else 7557 eval $cacheid=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext \ 7560 conftest$ac_exeext conftest.$ac_ext 7561fi 7562 7563 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565 7566 eval supported=\$$cacheid 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7568$as_echo "$supported" >&6; } 7569 if test "$supported" = "yes" ; then 7570 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7571 found="yes" 7572 fi 7573 fi 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589xorg_testset_save_CFLAGS="$CFLAGS" 7590 7591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7594$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7595if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600int i; 7601_ACEOF 7602if ac_fn_c_try_compile "$LINENO"; then : 7603 xorg_cv_cc_flag_unknown_warning_option=yes 7604else 7605 xorg_cv_cc_flag_unknown_warning_option=no 7606fi 7607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7608fi 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7610$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7612 CFLAGS="$xorg_testset_save_CFLAGS" 7613fi 7614 7615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 fi 7619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7621$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7622if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7626/* end confdefs.h. */ 7627int i; 7628_ACEOF 7629if ac_fn_c_try_compile "$LINENO"; then : 7630 xorg_cv_cc_flag_unused_command_line_argument=yes 7631else 7632 xorg_cv_cc_flag_unused_command_line_argument=no 7633fi 7634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7635fi 7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7637$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7639 CFLAGS="$xorg_testset_save_CFLAGS" 7640fi 7641 7642found="no" 7643 7644 if test $found = "no" ; then 7645 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7647 fi 7648 7649 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7651 fi 7652 7653 CFLAGS="$CFLAGS -Werror=sequence-point" 7654 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 7656$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 7657 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7658 if eval \${$cacheid+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664int 7665main () 7666{ 7667 7668 ; 7669 return 0; 7670} 7671_ACEOF 7672if ac_fn_c_try_link "$LINENO"; then : 7673 eval $cacheid=yes 7674else 7675 eval $cacheid=no 7676fi 7677rm -f core conftest.err conftest.$ac_objext \ 7678 conftest$ac_exeext conftest.$ac_ext 7679fi 7680 7681 7682 CFLAGS="$xorg_testset_save_CFLAGS" 7683 7684 eval supported=\$$cacheid 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7686$as_echo "$supported" >&6; } 7687 if test "$supported" = "yes" ; then 7688 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7689 found="yes" 7690 fi 7691 fi 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707xorg_testset_save_CFLAGS="$CFLAGS" 7708 7709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717/* end confdefs.h. */ 7718int i; 7719_ACEOF 7720if ac_fn_c_try_compile "$LINENO"; then : 7721 xorg_cv_cc_flag_unknown_warning_option=yes 7722else 7723 xorg_cv_cc_flag_unknown_warning_option=no 7724fi 7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7726fi 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7730 CFLAGS="$xorg_testset_save_CFLAGS" 7731fi 7732 7733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7736 fi 7737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742else 7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7744/* end confdefs.h. */ 7745int i; 7746_ACEOF 7747if ac_fn_c_try_compile "$LINENO"; then : 7748 xorg_cv_cc_flag_unused_command_line_argument=yes 7749else 7750 xorg_cv_cc_flag_unused_command_line_argument=no 7751fi 7752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7753fi 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7757 CFLAGS="$xorg_testset_save_CFLAGS" 7758fi 7759 7760found="no" 7761 7762 if test $found = "no" ; then 7763 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7765 fi 7766 7767 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7769 fi 7770 7771 CFLAGS="$CFLAGS -Werror=return-type" 7772 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 7774$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 7775 cacheid=xorg_cv_cc_flag__Werror_return_type 7776 if eval \${$cacheid+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781int i; 7782int 7783main () 7784{ 7785 7786 ; 7787 return 0; 7788} 7789_ACEOF 7790if ac_fn_c_try_link "$LINENO"; then : 7791 eval $cacheid=yes 7792else 7793 eval $cacheid=no 7794fi 7795rm -f core conftest.err conftest.$ac_objext \ 7796 conftest$ac_exeext conftest.$ac_ext 7797fi 7798 7799 7800 CFLAGS="$xorg_testset_save_CFLAGS" 7801 7802 eval supported=\$$cacheid 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7804$as_echo "$supported" >&6; } 7805 if test "$supported" = "yes" ; then 7806 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7807 found="yes" 7808 fi 7809 fi 7810 7811 if test $found = "no" ; then 7812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7814 fi 7815 7816 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7818 fi 7819 7820 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7821 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7823$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7824 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7825 if eval \${$cacheid+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7829/* end confdefs.h. */ 7830int i; 7831int 7832main () 7833{ 7834 7835 ; 7836 return 0; 7837} 7838_ACEOF 7839if ac_fn_c_try_link "$LINENO"; then : 7840 eval $cacheid=yes 7841else 7842 eval $cacheid=no 7843fi 7844rm -f core conftest.err conftest.$ac_objext \ 7845 conftest$ac_exeext conftest.$ac_ext 7846fi 7847 7848 7849 CFLAGS="$xorg_testset_save_CFLAGS" 7850 7851 eval supported=\$$cacheid 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7853$as_echo "$supported" >&6; } 7854 if test "$supported" = "yes" ; then 7855 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7856 found="yes" 7857 fi 7858 fi 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874xorg_testset_save_CFLAGS="$CFLAGS" 7875 7876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882else 7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7884/* end confdefs.h. */ 7885int i; 7886_ACEOF 7887if ac_fn_c_try_compile "$LINENO"; then : 7888 xorg_cv_cc_flag_unknown_warning_option=yes 7889else 7890 xorg_cv_cc_flag_unknown_warning_option=no 7891fi 7892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7893fi 7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7897 CFLAGS="$xorg_testset_save_CFLAGS" 7898fi 7899 7900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7903 fi 7904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913_ACEOF 7914if ac_fn_c_try_compile "$LINENO"; then : 7915 xorg_cv_cc_flag_unused_command_line_argument=yes 7916else 7917 xorg_cv_cc_flag_unused_command_line_argument=no 7918fi 7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7920fi 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7924 CFLAGS="$xorg_testset_save_CFLAGS" 7925fi 7926 7927found="no" 7928 7929 if test $found = "no" ; then 7930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7932 fi 7933 7934 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7936 fi 7937 7938 CFLAGS="$CFLAGS -Werror=trigraphs" 7939 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 7941$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 7942 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7943 if eval \${$cacheid+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948int i; 7949int 7950main () 7951{ 7952 7953 ; 7954 return 0; 7955} 7956_ACEOF 7957if ac_fn_c_try_link "$LINENO"; then : 7958 eval $cacheid=yes 7959else 7960 eval $cacheid=no 7961fi 7962rm -f core conftest.err conftest.$ac_objext \ 7963 conftest$ac_exeext conftest.$ac_ext 7964fi 7965 7966 7967 CFLAGS="$xorg_testset_save_CFLAGS" 7968 7969 eval supported=\$$cacheid 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7971$as_echo "$supported" >&6; } 7972 if test "$supported" = "yes" ; then 7973 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7974 found="yes" 7975 fi 7976 fi 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992xorg_testset_save_CFLAGS="$CFLAGS" 7993 7994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7999 $as_echo_n "(cached) " >&6 8000else 8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002/* end confdefs.h. */ 8003int i; 8004_ACEOF 8005if ac_fn_c_try_compile "$LINENO"; then : 8006 xorg_cv_cc_flag_unknown_warning_option=yes 8007else 8008 xorg_cv_cc_flag_unknown_warning_option=no 8009fi 8010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8011fi 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016fi 8017 8018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8021 fi 8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8026 $as_echo_n "(cached) " >&6 8027else 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029/* end confdefs.h. */ 8030int i; 8031_ACEOF 8032if ac_fn_c_try_compile "$LINENO"; then : 8033 xorg_cv_cc_flag_unused_command_line_argument=yes 8034else 8035 xorg_cv_cc_flag_unused_command_line_argument=no 8036fi 8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8038fi 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8042 CFLAGS="$xorg_testset_save_CFLAGS" 8043fi 8044 8045found="no" 8046 8047 if test $found = "no" ; then 8048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8050 fi 8051 8052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8054 fi 8055 8056 CFLAGS="$CFLAGS -Werror=array-bounds" 8057 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 8059$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 8060 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8061 if eval \${$cacheid+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065/* end confdefs.h. */ 8066int i; 8067int 8068main () 8069{ 8070 8071 ; 8072 return 0; 8073} 8074_ACEOF 8075if ac_fn_c_try_link "$LINENO"; then : 8076 eval $cacheid=yes 8077else 8078 eval $cacheid=no 8079fi 8080rm -f core conftest.err conftest.$ac_objext \ 8081 conftest$ac_exeext conftest.$ac_ext 8082fi 8083 8084 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086 8087 eval supported=\$$cacheid 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8089$as_echo "$supported" >&6; } 8090 if test "$supported" = "yes" ; then 8091 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8092 found="yes" 8093 fi 8094 fi 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110xorg_testset_save_CFLAGS="$CFLAGS" 8111 8112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8117 $as_echo_n "(cached) " >&6 8118else 8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8120/* end confdefs.h. */ 8121int i; 8122_ACEOF 8123if ac_fn_c_try_compile "$LINENO"; then : 8124 xorg_cv_cc_flag_unknown_warning_option=yes 8125else 8126 xorg_cv_cc_flag_unknown_warning_option=no 8127fi 8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8129fi 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134fi 8135 8136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 fi 8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148int i; 8149_ACEOF 8150if ac_fn_c_try_compile "$LINENO"; then : 8151 xorg_cv_cc_flag_unused_command_line_argument=yes 8152else 8153 xorg_cv_cc_flag_unused_command_line_argument=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8156fi 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8160 CFLAGS="$xorg_testset_save_CFLAGS" 8161fi 8162 8163found="no" 8164 8165 if test $found = "no" ; then 8166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 fi 8169 8170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8172 fi 8173 8174 CFLAGS="$CFLAGS -Werror=write-strings" 8175 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 8177$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 8178 cacheid=xorg_cv_cc_flag__Werror_write_strings 8179 if eval \${$cacheid+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184int i; 8185int 8186main () 8187{ 8188 8189 ; 8190 return 0; 8191} 8192_ACEOF 8193if ac_fn_c_try_link "$LINENO"; then : 8194 eval $cacheid=yes 8195else 8196 eval $cacheid=no 8197fi 8198rm -f core conftest.err conftest.$ac_objext \ 8199 conftest$ac_exeext conftest.$ac_ext 8200fi 8201 8202 8203 CFLAGS="$xorg_testset_save_CFLAGS" 8204 8205 eval supported=\$$cacheid 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8207$as_echo "$supported" >&6; } 8208 if test "$supported" = "yes" ; then 8209 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8210 found="yes" 8211 fi 8212 fi 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228xorg_testset_save_CFLAGS="$CFLAGS" 8229 8230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8233$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8234if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236else 8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238/* end confdefs.h. */ 8239int i; 8240_ACEOF 8241if ac_fn_c_try_compile "$LINENO"; then : 8242 xorg_cv_cc_flag_unknown_warning_option=yes 8243else 8244 xorg_cv_cc_flag_unknown_warning_option=no 8245fi 8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8247fi 8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8249$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8251 CFLAGS="$xorg_testset_save_CFLAGS" 8252fi 8253 8254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8257 fi 8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8260$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8261if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266int i; 8267_ACEOF 8268if ac_fn_c_try_compile "$LINENO"; then : 8269 xorg_cv_cc_flag_unused_command_line_argument=yes 8270else 8271 xorg_cv_cc_flag_unused_command_line_argument=no 8272fi 8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8274fi 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8276$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8278 CFLAGS="$xorg_testset_save_CFLAGS" 8279fi 8280 8281found="no" 8282 8283 if test $found = "no" ; then 8284 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8286 fi 8287 8288 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8290 fi 8291 8292 CFLAGS="$CFLAGS -Werror=address" 8293 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 8295$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 8296 cacheid=xorg_cv_cc_flag__Werror_address 8297 if eval \${$cacheid+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302int i; 8303int 8304main () 8305{ 8306 8307 ; 8308 return 0; 8309} 8310_ACEOF 8311if ac_fn_c_try_link "$LINENO"; then : 8312 eval $cacheid=yes 8313else 8314 eval $cacheid=no 8315fi 8316rm -f core conftest.err conftest.$ac_objext \ 8317 conftest$ac_exeext conftest.$ac_ext 8318fi 8319 8320 8321 CFLAGS="$xorg_testset_save_CFLAGS" 8322 8323 eval supported=\$$cacheid 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8325$as_echo "$supported" >&6; } 8326 if test "$supported" = "yes" ; then 8327 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8328 found="yes" 8329 fi 8330 fi 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346xorg_testset_save_CFLAGS="$CFLAGS" 8347 8348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8351$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8352if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8356/* end confdefs.h. */ 8357int i; 8358_ACEOF 8359if ac_fn_c_try_compile "$LINENO"; then : 8360 xorg_cv_cc_flag_unknown_warning_option=yes 8361else 8362 xorg_cv_cc_flag_unknown_warning_option=no 8363fi 8364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8365fi 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8367$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8369 CFLAGS="$xorg_testset_save_CFLAGS" 8370fi 8371 8372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8375 fi 8376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8378$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8379if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8380 $as_echo_n "(cached) " >&6 8381else 8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384int i; 8385_ACEOF 8386if ac_fn_c_try_compile "$LINENO"; then : 8387 xorg_cv_cc_flag_unused_command_line_argument=yes 8388else 8389 xorg_cv_cc_flag_unused_command_line_argument=no 8390fi 8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8392fi 8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8394$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8396 CFLAGS="$xorg_testset_save_CFLAGS" 8397fi 8398 8399found="no" 8400 8401 if test $found = "no" ; then 8402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8404 fi 8405 8406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8408 fi 8409 8410 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8411 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 8413$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 8414 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8415 if eval \${$cacheid+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417else 8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8419/* end confdefs.h. */ 8420int i; 8421int 8422main () 8423{ 8424 8425 ; 8426 return 0; 8427} 8428_ACEOF 8429if ac_fn_c_try_link "$LINENO"; then : 8430 eval $cacheid=yes 8431else 8432 eval $cacheid=no 8433fi 8434rm -f core conftest.err conftest.$ac_objext \ 8435 conftest$ac_exeext conftest.$ac_ext 8436fi 8437 8438 8439 CFLAGS="$xorg_testset_save_CFLAGS" 8440 8441 eval supported=\$$cacheid 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8443$as_echo "$supported" >&6; } 8444 if test "$supported" = "yes" ; then 8445 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8446 found="yes" 8447 fi 8448 fi 8449 8450 if test $found = "no" ; then 8451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8453 fi 8454 8455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8457 fi 8458 8459 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8460 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8462$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8463 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8464 if eval \${$cacheid+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8468/* end confdefs.h. */ 8469int i; 8470int 8471main () 8472{ 8473 8474 ; 8475 return 0; 8476} 8477_ACEOF 8478if ac_fn_c_try_link "$LINENO"; then : 8479 eval $cacheid=yes 8480else 8481 eval $cacheid=no 8482fi 8483rm -f core conftest.err conftest.$ac_objext \ 8484 conftest$ac_exeext conftest.$ac_ext 8485fi 8486 8487 8488 CFLAGS="$xorg_testset_save_CFLAGS" 8489 8490 eval supported=\$$cacheid 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8492$as_echo "$supported" >&6; } 8493 if test "$supported" = "yes" ; then 8494 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8495 found="yes" 8496 fi 8497 fi 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513xorg_testset_save_CFLAGS="$CFLAGS" 8514 8515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8520 $as_echo_n "(cached) " >&6 8521else 8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8523/* end confdefs.h. */ 8524int i; 8525_ACEOF 8526if ac_fn_c_try_compile "$LINENO"; then : 8527 xorg_cv_cc_flag_unknown_warning_option=yes 8528else 8529 xorg_cv_cc_flag_unknown_warning_option=no 8530fi 8531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8532fi 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8536 CFLAGS="$xorg_testset_save_CFLAGS" 8537fi 8538 8539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8542 fi 8543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548else 8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8550/* end confdefs.h. */ 8551int i; 8552_ACEOF 8553if ac_fn_c_try_compile "$LINENO"; then : 8554 xorg_cv_cc_flag_unused_command_line_argument=yes 8555else 8556 xorg_cv_cc_flag_unused_command_line_argument=no 8557fi 8558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8559fi 8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8563 CFLAGS="$xorg_testset_save_CFLAGS" 8564fi 8565 8566found="no" 8567 8568 if test $found = "no" ; then 8569 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8571 fi 8572 8573 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8575 fi 8576 8577 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8578 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 8580$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 8581 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8582 if eval \${$cacheid+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586/* end confdefs.h. */ 8587int i; 8588int 8589main () 8590{ 8591 8592 ; 8593 return 0; 8594} 8595_ACEOF 8596if ac_fn_c_try_link "$LINENO"; then : 8597 eval $cacheid=yes 8598else 8599 eval $cacheid=no 8600fi 8601rm -f core conftest.err conftest.$ac_objext \ 8602 conftest$ac_exeext conftest.$ac_ext 8603fi 8604 8605 8606 CFLAGS="$xorg_testset_save_CFLAGS" 8607 8608 eval supported=\$$cacheid 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8610$as_echo "$supported" >&6; } 8611 if test "$supported" = "yes" ; then 8612 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8613 found="yes" 8614 fi 8615 fi 8616 8617 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8618else 8619{ $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 8620$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;} 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634xorg_testset_save_CFLAGS="$CFLAGS" 8635 8636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8641 $as_echo_n "(cached) " >&6 8642else 8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644/* end confdefs.h. */ 8645int i; 8646_ACEOF 8647if ac_fn_c_try_compile "$LINENO"; then : 8648 xorg_cv_cc_flag_unknown_warning_option=yes 8649else 8650 xorg_cv_cc_flag_unknown_warning_option=no 8651fi 8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8653fi 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8657 CFLAGS="$xorg_testset_save_CFLAGS" 8658fi 8659 8660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8663 fi 8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673_ACEOF 8674if ac_fn_c_try_compile "$LINENO"; then : 8675 xorg_cv_cc_flag_unused_command_line_argument=yes 8676else 8677 xorg_cv_cc_flag_unused_command_line_argument=no 8678fi 8679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8680fi 8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8684 CFLAGS="$xorg_testset_save_CFLAGS" 8685fi 8686 8687found="no" 8688 8689 if test $found = "no" ; then 8690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8692 fi 8693 8694 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8696 fi 8697 8698 CFLAGS="$CFLAGS -Wimplicit" 8699 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 8701$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 8702 cacheid=xorg_cv_cc_flag__Wimplicit 8703 if eval \${$cacheid+:} false; then : 8704 $as_echo_n "(cached) " >&6 8705else 8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8707/* end confdefs.h. */ 8708int i; 8709int 8710main () 8711{ 8712 8713 ; 8714 return 0; 8715} 8716_ACEOF 8717if ac_fn_c_try_link "$LINENO"; then : 8718 eval $cacheid=yes 8719else 8720 eval $cacheid=no 8721fi 8722rm -f core conftest.err conftest.$ac_objext \ 8723 conftest$ac_exeext conftest.$ac_ext 8724fi 8725 8726 8727 CFLAGS="$xorg_testset_save_CFLAGS" 8728 8729 eval supported=\$$cacheid 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8731$as_echo "$supported" >&6; } 8732 if test "$supported" = "yes" ; then 8733 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8734 found="yes" 8735 fi 8736 fi 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752xorg_testset_save_CFLAGS="$CFLAGS" 8753 8754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8759 $as_echo_n "(cached) " >&6 8760else 8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8762/* end confdefs.h. */ 8763int i; 8764_ACEOF 8765if ac_fn_c_try_compile "$LINENO"; then : 8766 xorg_cv_cc_flag_unknown_warning_option=yes 8767else 8768 xorg_cv_cc_flag_unknown_warning_option=no 8769fi 8770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8771fi 8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8775 CFLAGS="$xorg_testset_save_CFLAGS" 8776fi 8777 8778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8781 fi 8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8786 $as_echo_n "(cached) " >&6 8787else 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790int i; 8791_ACEOF 8792if ac_fn_c_try_compile "$LINENO"; then : 8793 xorg_cv_cc_flag_unused_command_line_argument=yes 8794else 8795 xorg_cv_cc_flag_unused_command_line_argument=no 8796fi 8797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8798fi 8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8802 CFLAGS="$xorg_testset_save_CFLAGS" 8803fi 8804 8805found="no" 8806 8807 if test $found = "no" ; then 8808 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8810 fi 8811 8812 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8814 fi 8815 8816 CFLAGS="$CFLAGS -Wnonnull" 8817 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 8819$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 8820 cacheid=xorg_cv_cc_flag__Wnonnull 8821 if eval \${$cacheid+:} false; then : 8822 $as_echo_n "(cached) " >&6 8823else 8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8825/* end confdefs.h. */ 8826int i; 8827int 8828main () 8829{ 8830 8831 ; 8832 return 0; 8833} 8834_ACEOF 8835if ac_fn_c_try_link "$LINENO"; then : 8836 eval $cacheid=yes 8837else 8838 eval $cacheid=no 8839fi 8840rm -f core conftest.err conftest.$ac_objext \ 8841 conftest$ac_exeext conftest.$ac_ext 8842fi 8843 8844 8845 CFLAGS="$xorg_testset_save_CFLAGS" 8846 8847 eval supported=\$$cacheid 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8849$as_echo "$supported" >&6; } 8850 if test "$supported" = "yes" ; then 8851 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8852 found="yes" 8853 fi 8854 fi 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870xorg_testset_save_CFLAGS="$CFLAGS" 8871 8872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878else 8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8880/* end confdefs.h. */ 8881int i; 8882_ACEOF 8883if ac_fn_c_try_compile "$LINENO"; then : 8884 xorg_cv_cc_flag_unknown_warning_option=yes 8885else 8886 xorg_cv_cc_flag_unknown_warning_option=no 8887fi 8888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8889fi 8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8893 CFLAGS="$xorg_testset_save_CFLAGS" 8894fi 8895 8896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8899 fi 8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905else 8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8907/* end confdefs.h. */ 8908int i; 8909_ACEOF 8910if ac_fn_c_try_compile "$LINENO"; then : 8911 xorg_cv_cc_flag_unused_command_line_argument=yes 8912else 8913 xorg_cv_cc_flag_unused_command_line_argument=no 8914fi 8915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8916fi 8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8920 CFLAGS="$xorg_testset_save_CFLAGS" 8921fi 8922 8923found="no" 8924 8925 if test $found = "no" ; then 8926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8928 fi 8929 8930 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8932 fi 8933 8934 CFLAGS="$CFLAGS -Winit-self" 8935 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 8937$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 8938 cacheid=xorg_cv_cc_flag__Winit_self 8939 if eval \${$cacheid+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941else 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943/* end confdefs.h. */ 8944int i; 8945int 8946main () 8947{ 8948 8949 ; 8950 return 0; 8951} 8952_ACEOF 8953if ac_fn_c_try_link "$LINENO"; then : 8954 eval $cacheid=yes 8955else 8956 eval $cacheid=no 8957fi 8958rm -f core conftest.err conftest.$ac_objext \ 8959 conftest$ac_exeext conftest.$ac_ext 8960fi 8961 8962 8963 CFLAGS="$xorg_testset_save_CFLAGS" 8964 8965 eval supported=\$$cacheid 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8967$as_echo "$supported" >&6; } 8968 if test "$supported" = "yes" ; then 8969 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8970 found="yes" 8971 fi 8972 fi 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988xorg_testset_save_CFLAGS="$CFLAGS" 8989 8990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8995 $as_echo_n "(cached) " >&6 8996else 8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8998/* end confdefs.h. */ 8999int i; 9000_ACEOF 9001if ac_fn_c_try_compile "$LINENO"; then : 9002 xorg_cv_cc_flag_unknown_warning_option=yes 9003else 9004 xorg_cv_cc_flag_unknown_warning_option=no 9005fi 9006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9007fi 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9009$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9011 CFLAGS="$xorg_testset_save_CFLAGS" 9012fi 9013 9014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9017 fi 9018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9022 $as_echo_n "(cached) " >&6 9023else 9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9025/* end confdefs.h. */ 9026int i; 9027_ACEOF 9028if ac_fn_c_try_compile "$LINENO"; then : 9029 xorg_cv_cc_flag_unused_command_line_argument=yes 9030else 9031 xorg_cv_cc_flag_unused_command_line_argument=no 9032fi 9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9034fi 9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9038 CFLAGS="$xorg_testset_save_CFLAGS" 9039fi 9040 9041found="no" 9042 9043 if test $found = "no" ; then 9044 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9046 fi 9047 9048 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9050 fi 9051 9052 CFLAGS="$CFLAGS -Wmain" 9053 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 9055$as_echo_n "checking if $CC supports-Wmain... " >&6; } 9056 cacheid=xorg_cv_cc_flag__Wmain 9057 if eval \${$cacheid+:} false; then : 9058 $as_echo_n "(cached) " >&6 9059else 9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9061/* end confdefs.h. */ 9062int i; 9063int 9064main () 9065{ 9066 9067 ; 9068 return 0; 9069} 9070_ACEOF 9071if ac_fn_c_try_link "$LINENO"; then : 9072 eval $cacheid=yes 9073else 9074 eval $cacheid=no 9075fi 9076rm -f core conftest.err conftest.$ac_objext \ 9077 conftest$ac_exeext conftest.$ac_ext 9078fi 9079 9080 9081 CFLAGS="$xorg_testset_save_CFLAGS" 9082 9083 eval supported=\$$cacheid 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9085$as_echo "$supported" >&6; } 9086 if test "$supported" = "yes" ; then 9087 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9088 found="yes" 9089 fi 9090 fi 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106xorg_testset_save_CFLAGS="$CFLAGS" 9107 9108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9113 $as_echo_n "(cached) " >&6 9114else 9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116/* end confdefs.h. */ 9117int i; 9118_ACEOF 9119if ac_fn_c_try_compile "$LINENO"; then : 9120 xorg_cv_cc_flag_unknown_warning_option=yes 9121else 9122 xorg_cv_cc_flag_unknown_warning_option=no 9123fi 9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9125fi 9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9129 CFLAGS="$xorg_testset_save_CFLAGS" 9130fi 9131 9132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9135 fi 9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9140 $as_echo_n "(cached) " >&6 9141else 9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9143/* end confdefs.h. */ 9144int i; 9145_ACEOF 9146if ac_fn_c_try_compile "$LINENO"; then : 9147 xorg_cv_cc_flag_unused_command_line_argument=yes 9148else 9149 xorg_cv_cc_flag_unused_command_line_argument=no 9150fi 9151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9152fi 9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9156 CFLAGS="$xorg_testset_save_CFLAGS" 9157fi 9158 9159found="no" 9160 9161 if test $found = "no" ; then 9162 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9164 fi 9165 9166 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9168 fi 9169 9170 CFLAGS="$CFLAGS -Wmissing-braces" 9171 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 9173$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 9174 cacheid=xorg_cv_cc_flag__Wmissing_braces 9175 if eval \${$cacheid+:} false; then : 9176 $as_echo_n "(cached) " >&6 9177else 9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9179/* end confdefs.h. */ 9180int i; 9181int 9182main () 9183{ 9184 9185 ; 9186 return 0; 9187} 9188_ACEOF 9189if ac_fn_c_try_link "$LINENO"; then : 9190 eval $cacheid=yes 9191else 9192 eval $cacheid=no 9193fi 9194rm -f core conftest.err conftest.$ac_objext \ 9195 conftest$ac_exeext conftest.$ac_ext 9196fi 9197 9198 9199 CFLAGS="$xorg_testset_save_CFLAGS" 9200 9201 eval supported=\$$cacheid 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9203$as_echo "$supported" >&6; } 9204 if test "$supported" = "yes" ; then 9205 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9206 found="yes" 9207 fi 9208 fi 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224xorg_testset_save_CFLAGS="$CFLAGS" 9225 9226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9229$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9230if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9231 $as_echo_n "(cached) " >&6 9232else 9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9234/* end confdefs.h. */ 9235int i; 9236_ACEOF 9237if ac_fn_c_try_compile "$LINENO"; then : 9238 xorg_cv_cc_flag_unknown_warning_option=yes 9239else 9240 xorg_cv_cc_flag_unknown_warning_option=no 9241fi 9242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9243fi 9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9245$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9247 CFLAGS="$xorg_testset_save_CFLAGS" 9248fi 9249 9250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9253 fi 9254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9256$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9257if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9261/* end confdefs.h. */ 9262int i; 9263_ACEOF 9264if ac_fn_c_try_compile "$LINENO"; then : 9265 xorg_cv_cc_flag_unused_command_line_argument=yes 9266else 9267 xorg_cv_cc_flag_unused_command_line_argument=no 9268fi 9269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9270fi 9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9272$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9274 CFLAGS="$xorg_testset_save_CFLAGS" 9275fi 9276 9277found="no" 9278 9279 if test $found = "no" ; then 9280 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9282 fi 9283 9284 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9286 fi 9287 9288 CFLAGS="$CFLAGS -Wsequence-point" 9289 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 9291$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 9292 cacheid=xorg_cv_cc_flag__Wsequence_point 9293 if eval \${$cacheid+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295else 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297/* end confdefs.h. */ 9298int i; 9299int 9300main () 9301{ 9302 9303 ; 9304 return 0; 9305} 9306_ACEOF 9307if ac_fn_c_try_link "$LINENO"; then : 9308 eval $cacheid=yes 9309else 9310 eval $cacheid=no 9311fi 9312rm -f core conftest.err conftest.$ac_objext \ 9313 conftest$ac_exeext conftest.$ac_ext 9314fi 9315 9316 9317 CFLAGS="$xorg_testset_save_CFLAGS" 9318 9319 eval supported=\$$cacheid 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9321$as_echo "$supported" >&6; } 9322 if test "$supported" = "yes" ; then 9323 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9324 found="yes" 9325 fi 9326 fi 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342xorg_testset_save_CFLAGS="$CFLAGS" 9343 9344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9347$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9348if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9349 $as_echo_n "(cached) " >&6 9350else 9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352/* end confdefs.h. */ 9353int i; 9354_ACEOF 9355if ac_fn_c_try_compile "$LINENO"; then : 9356 xorg_cv_cc_flag_unknown_warning_option=yes 9357else 9358 xorg_cv_cc_flag_unknown_warning_option=no 9359fi 9360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9361fi 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9363$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9365 CFLAGS="$xorg_testset_save_CFLAGS" 9366fi 9367 9368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9371 fi 9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9374$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9375if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9376 $as_echo_n "(cached) " >&6 9377else 9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379/* end confdefs.h. */ 9380int i; 9381_ACEOF 9382if ac_fn_c_try_compile "$LINENO"; then : 9383 xorg_cv_cc_flag_unused_command_line_argument=yes 9384else 9385 xorg_cv_cc_flag_unused_command_line_argument=no 9386fi 9387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9388fi 9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9390$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9392 CFLAGS="$xorg_testset_save_CFLAGS" 9393fi 9394 9395found="no" 9396 9397 if test $found = "no" ; then 9398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9400 fi 9401 9402 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9404 fi 9405 9406 CFLAGS="$CFLAGS -Wreturn-type" 9407 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 9409$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 9410 cacheid=xorg_cv_cc_flag__Wreturn_type 9411 if eval \${$cacheid+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413else 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416int i; 9417int 9418main () 9419{ 9420 9421 ; 9422 return 0; 9423} 9424_ACEOF 9425if ac_fn_c_try_link "$LINENO"; then : 9426 eval $cacheid=yes 9427else 9428 eval $cacheid=no 9429fi 9430rm -f core conftest.err conftest.$ac_objext \ 9431 conftest$ac_exeext conftest.$ac_ext 9432fi 9433 9434 9435 CFLAGS="$xorg_testset_save_CFLAGS" 9436 9437 eval supported=\$$cacheid 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9439$as_echo "$supported" >&6; } 9440 if test "$supported" = "yes" ; then 9441 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9442 found="yes" 9443 fi 9444 fi 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460xorg_testset_save_CFLAGS="$CFLAGS" 9461 9462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9467 $as_echo_n "(cached) " >&6 9468else 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471int i; 9472_ACEOF 9473if ac_fn_c_try_compile "$LINENO"; then : 9474 xorg_cv_cc_flag_unknown_warning_option=yes 9475else 9476 xorg_cv_cc_flag_unknown_warning_option=no 9477fi 9478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9479fi 9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9483 CFLAGS="$xorg_testset_save_CFLAGS" 9484fi 9485 9486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9489 fi 9490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495else 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498int i; 9499_ACEOF 9500if ac_fn_c_try_compile "$LINENO"; then : 9501 xorg_cv_cc_flag_unused_command_line_argument=yes 9502else 9503 xorg_cv_cc_flag_unused_command_line_argument=no 9504fi 9505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9506fi 9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9510 CFLAGS="$xorg_testset_save_CFLAGS" 9511fi 9512 9513found="no" 9514 9515 if test $found = "no" ; then 9516 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9518 fi 9519 9520 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9522 fi 9523 9524 CFLAGS="$CFLAGS -Wtrigraphs" 9525 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 9527$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 9528 cacheid=xorg_cv_cc_flag__Wtrigraphs 9529 if eval \${$cacheid+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534int i; 9535int 9536main () 9537{ 9538 9539 ; 9540 return 0; 9541} 9542_ACEOF 9543if ac_fn_c_try_link "$LINENO"; then : 9544 eval $cacheid=yes 9545else 9546 eval $cacheid=no 9547fi 9548rm -f core conftest.err conftest.$ac_objext \ 9549 conftest$ac_exeext conftest.$ac_ext 9550fi 9551 9552 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554 9555 eval supported=\$$cacheid 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9557$as_echo "$supported" >&6; } 9558 if test "$supported" = "yes" ; then 9559 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9560 found="yes" 9561 fi 9562 fi 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578xorg_testset_save_CFLAGS="$CFLAGS" 9579 9580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9585 $as_echo_n "(cached) " >&6 9586else 9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9588/* end confdefs.h. */ 9589int i; 9590_ACEOF 9591if ac_fn_c_try_compile "$LINENO"; then : 9592 xorg_cv_cc_flag_unknown_warning_option=yes 9593else 9594 xorg_cv_cc_flag_unknown_warning_option=no 9595fi 9596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9597fi 9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602fi 9603 9604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9607 fi 9608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9615/* end confdefs.h. */ 9616int i; 9617_ACEOF 9618if ac_fn_c_try_compile "$LINENO"; then : 9619 xorg_cv_cc_flag_unused_command_line_argument=yes 9620else 9621 xorg_cv_cc_flag_unused_command_line_argument=no 9622fi 9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9624fi 9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9628 CFLAGS="$xorg_testset_save_CFLAGS" 9629fi 9630 9631found="no" 9632 9633 if test $found = "no" ; then 9634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9636 fi 9637 9638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9640 fi 9641 9642 CFLAGS="$CFLAGS -Warray-bounds" 9643 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 9645$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 9646 cacheid=xorg_cv_cc_flag__Warray_bounds 9647 if eval \${$cacheid+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649else 9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9651/* end confdefs.h. */ 9652int i; 9653int 9654main () 9655{ 9656 9657 ; 9658 return 0; 9659} 9660_ACEOF 9661if ac_fn_c_try_link "$LINENO"; then : 9662 eval $cacheid=yes 9663else 9664 eval $cacheid=no 9665fi 9666rm -f core conftest.err conftest.$ac_objext \ 9667 conftest$ac_exeext conftest.$ac_ext 9668fi 9669 9670 9671 CFLAGS="$xorg_testset_save_CFLAGS" 9672 9673 eval supported=\$$cacheid 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9675$as_echo "$supported" >&6; } 9676 if test "$supported" = "yes" ; then 9677 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9678 found="yes" 9679 fi 9680 fi 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696xorg_testset_save_CFLAGS="$CFLAGS" 9697 9698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9703 $as_echo_n "(cached) " >&6 9704else 9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9706/* end confdefs.h. */ 9707int i; 9708_ACEOF 9709if ac_fn_c_try_compile "$LINENO"; then : 9710 xorg_cv_cc_flag_unknown_warning_option=yes 9711else 9712 xorg_cv_cc_flag_unknown_warning_option=no 9713fi 9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9715fi 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9719 CFLAGS="$xorg_testset_save_CFLAGS" 9720fi 9721 9722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9725 fi 9726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9730 $as_echo_n "(cached) " >&6 9731else 9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734int i; 9735_ACEOF 9736if ac_fn_c_try_compile "$LINENO"; then : 9737 xorg_cv_cc_flag_unused_command_line_argument=yes 9738else 9739 xorg_cv_cc_flag_unused_command_line_argument=no 9740fi 9741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9742fi 9743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9746 CFLAGS="$xorg_testset_save_CFLAGS" 9747fi 9748 9749found="no" 9750 9751 if test $found = "no" ; then 9752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9754 fi 9755 9756 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9758 fi 9759 9760 CFLAGS="$CFLAGS -Wwrite-strings" 9761 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 9763$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 9764 cacheid=xorg_cv_cc_flag__Wwrite_strings 9765 if eval \${$cacheid+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769/* end confdefs.h. */ 9770int i; 9771int 9772main () 9773{ 9774 9775 ; 9776 return 0; 9777} 9778_ACEOF 9779if ac_fn_c_try_link "$LINENO"; then : 9780 eval $cacheid=yes 9781else 9782 eval $cacheid=no 9783fi 9784rm -f core conftest.err conftest.$ac_objext \ 9785 conftest$ac_exeext conftest.$ac_ext 9786fi 9787 9788 9789 CFLAGS="$xorg_testset_save_CFLAGS" 9790 9791 eval supported=\$$cacheid 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9793$as_echo "$supported" >&6; } 9794 if test "$supported" = "yes" ; then 9795 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9796 found="yes" 9797 fi 9798 fi 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814xorg_testset_save_CFLAGS="$CFLAGS" 9815 9816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822else 9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9824/* end confdefs.h. */ 9825int i; 9826_ACEOF 9827if ac_fn_c_try_compile "$LINENO"; then : 9828 xorg_cv_cc_flag_unknown_warning_option=yes 9829else 9830 xorg_cv_cc_flag_unknown_warning_option=no 9831fi 9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9833fi 9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9837 CFLAGS="$xorg_testset_save_CFLAGS" 9838fi 9839 9840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9843 fi 9844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852int i; 9853_ACEOF 9854if ac_fn_c_try_compile "$LINENO"; then : 9855 xorg_cv_cc_flag_unused_command_line_argument=yes 9856else 9857 xorg_cv_cc_flag_unused_command_line_argument=no 9858fi 9859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9860fi 9861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9864 CFLAGS="$xorg_testset_save_CFLAGS" 9865fi 9866 9867found="no" 9868 9869 if test $found = "no" ; then 9870 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9872 fi 9873 9874 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9876 fi 9877 9878 CFLAGS="$CFLAGS -Waddress" 9879 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 9881$as_echo_n "checking if $CC supports-Waddress... " >&6; } 9882 cacheid=xorg_cv_cc_flag__Waddress 9883 if eval \${$cacheid+:} false; then : 9884 $as_echo_n "(cached) " >&6 9885else 9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9887/* end confdefs.h. */ 9888int i; 9889int 9890main () 9891{ 9892 9893 ; 9894 return 0; 9895} 9896_ACEOF 9897if ac_fn_c_try_link "$LINENO"; then : 9898 eval $cacheid=yes 9899else 9900 eval $cacheid=no 9901fi 9902rm -f core conftest.err conftest.$ac_objext \ 9903 conftest$ac_exeext conftest.$ac_ext 9904fi 9905 9906 9907 CFLAGS="$xorg_testset_save_CFLAGS" 9908 9909 eval supported=\$$cacheid 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9911$as_echo "$supported" >&6; } 9912 if test "$supported" = "yes" ; then 9913 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9914 found="yes" 9915 fi 9916 fi 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932xorg_testset_save_CFLAGS="$CFLAGS" 9933 9934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9939 $as_echo_n "(cached) " >&6 9940else 9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9942/* end confdefs.h. */ 9943int i; 9944_ACEOF 9945if ac_fn_c_try_compile "$LINENO"; then : 9946 xorg_cv_cc_flag_unknown_warning_option=yes 9947else 9948 xorg_cv_cc_flag_unknown_warning_option=no 9949fi 9950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9951fi 9952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9955 CFLAGS="$xorg_testset_save_CFLAGS" 9956fi 9957 9958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9961 fi 9962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9966 $as_echo_n "(cached) " >&6 9967else 9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9969/* end confdefs.h. */ 9970int i; 9971_ACEOF 9972if ac_fn_c_try_compile "$LINENO"; then : 9973 xorg_cv_cc_flag_unused_command_line_argument=yes 9974else 9975 xorg_cv_cc_flag_unused_command_line_argument=no 9976fi 9977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9978fi 9979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9982 CFLAGS="$xorg_testset_save_CFLAGS" 9983fi 9984 9985found="no" 9986 9987 if test $found = "no" ; then 9988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9990 fi 9991 9992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9994 fi 9995 9996 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9997 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 9999$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 10000 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10001 if eval \${$cacheid+:} false; then : 10002 $as_echo_n "(cached) " >&6 10003else 10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10005/* end confdefs.h. */ 10006int i; 10007int 10008main () 10009{ 10010 10011 ; 10012 return 0; 10013} 10014_ACEOF 10015if ac_fn_c_try_link "$LINENO"; then : 10016 eval $cacheid=yes 10017else 10018 eval $cacheid=no 10019fi 10020rm -f core conftest.err conftest.$ac_objext \ 10021 conftest$ac_exeext conftest.$ac_ext 10022fi 10023 10024 10025 CFLAGS="$xorg_testset_save_CFLAGS" 10026 10027 eval supported=\$$cacheid 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10029$as_echo "$supported" >&6; } 10030 if test "$supported" = "yes" ; then 10031 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10032 found="yes" 10033 fi 10034 fi 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050xorg_testset_save_CFLAGS="$CFLAGS" 10051 10052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10057 $as_echo_n "(cached) " >&6 10058else 10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10060/* end confdefs.h. */ 10061int i; 10062_ACEOF 10063if ac_fn_c_try_compile "$LINENO"; then : 10064 xorg_cv_cc_flag_unknown_warning_option=yes 10065else 10066 xorg_cv_cc_flag_unknown_warning_option=no 10067fi 10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10069fi 10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10073 CFLAGS="$xorg_testset_save_CFLAGS" 10074fi 10075 10076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10079 fi 10080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10084 $as_echo_n "(cached) " >&6 10085else 10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10087/* end confdefs.h. */ 10088int i; 10089_ACEOF 10090if ac_fn_c_try_compile "$LINENO"; then : 10091 xorg_cv_cc_flag_unused_command_line_argument=yes 10092else 10093 xorg_cv_cc_flag_unused_command_line_argument=no 10094fi 10095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10096fi 10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10100 CFLAGS="$xorg_testset_save_CFLAGS" 10101fi 10102 10103found="no" 10104 10105 if test $found = "no" ; then 10106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10108 fi 10109 10110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10112 fi 10113 10114 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10115 10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 10117$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 10118 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10119 if eval \${$cacheid+:} false; then : 10120 $as_echo_n "(cached) " >&6 10121else 10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10123/* end confdefs.h. */ 10124int i; 10125int 10126main () 10127{ 10128 10129 ; 10130 return 0; 10131} 10132_ACEOF 10133if ac_fn_c_try_link "$LINENO"; then : 10134 eval $cacheid=yes 10135else 10136 eval $cacheid=no 10137fi 10138rm -f core conftest.err conftest.$ac_objext \ 10139 conftest$ac_exeext conftest.$ac_ext 10140fi 10141 10142 10143 CFLAGS="$xorg_testset_save_CFLAGS" 10144 10145 eval supported=\$$cacheid 10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10147$as_echo "$supported" >&6; } 10148 if test "$supported" = "yes" ; then 10149 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10150 found="yes" 10151 fi 10152 fi 10153 10154 10155fi 10156 10157 10158 10159 10160 10161 10162 10163 CWARNFLAGS="$BASE_CFLAGS" 10164 if test "x$GCC" = xyes ; then 10165 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10166 fi 10167 10168 10169 10170 10171 10172 10173 10174 10175# Check whether --enable-strict-compilation was given. 10176if test "${enable_strict_compilation+set}" = set; then : 10177 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10178else 10179 STRICT_COMPILE=no 10180fi 10181 10182 10183 10184 10185 10186 10187STRICT_CFLAGS="" 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201xorg_testset_save_CFLAGS="$CFLAGS" 10202 10203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10208 $as_echo_n "(cached) " >&6 10209else 10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10211/* end confdefs.h. */ 10212int i; 10213_ACEOF 10214if ac_fn_c_try_compile "$LINENO"; then : 10215 xorg_cv_cc_flag_unknown_warning_option=yes 10216else 10217 xorg_cv_cc_flag_unknown_warning_option=no 10218fi 10219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10220fi 10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10224 CFLAGS="$xorg_testset_save_CFLAGS" 10225fi 10226 10227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10230 fi 10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238/* end confdefs.h. */ 10239int i; 10240_ACEOF 10241if ac_fn_c_try_compile "$LINENO"; then : 10242 xorg_cv_cc_flag_unused_command_line_argument=yes 10243else 10244 xorg_cv_cc_flag_unused_command_line_argument=no 10245fi 10246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10247fi 10248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10251 CFLAGS="$xorg_testset_save_CFLAGS" 10252fi 10253 10254found="no" 10255 10256 if test $found = "no" ; then 10257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10259 fi 10260 10261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10263 fi 10264 10265 CFLAGS="$CFLAGS -pedantic" 10266 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 10268$as_echo_n "checking if $CC supports-pedantic... " >&6; } 10269 cacheid=xorg_cv_cc_flag__pedantic 10270 if eval \${$cacheid+:} false; then : 10271 $as_echo_n "(cached) " >&6 10272else 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275int i; 10276int 10277main () 10278{ 10279 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284if ac_fn_c_try_link "$LINENO"; then : 10285 eval $cacheid=yes 10286else 10287 eval $cacheid=no 10288fi 10289rm -f core conftest.err conftest.$ac_objext \ 10290 conftest$ac_exeext conftest.$ac_ext 10291fi 10292 10293 10294 CFLAGS="$xorg_testset_save_CFLAGS" 10295 10296 eval supported=\$$cacheid 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10298$as_echo "$supported" >&6; } 10299 if test "$supported" = "yes" ; then 10300 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10301 found="yes" 10302 fi 10303 fi 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319xorg_testset_save_CFLAGS="$CFLAGS" 10320 10321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10326 $as_echo_n "(cached) " >&6 10327else 10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10329/* end confdefs.h. */ 10330int i; 10331_ACEOF 10332if ac_fn_c_try_compile "$LINENO"; then : 10333 xorg_cv_cc_flag_unknown_warning_option=yes 10334else 10335 xorg_cv_cc_flag_unknown_warning_option=no 10336fi 10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10338fi 10339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10342 CFLAGS="$xorg_testset_save_CFLAGS" 10343fi 10344 10345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10348 fi 10349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10353 $as_echo_n "(cached) " >&6 10354else 10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10356/* end confdefs.h. */ 10357int i; 10358_ACEOF 10359if ac_fn_c_try_compile "$LINENO"; then : 10360 xorg_cv_cc_flag_unused_command_line_argument=yes 10361else 10362 xorg_cv_cc_flag_unused_command_line_argument=no 10363fi 10364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10365fi 10366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10369 CFLAGS="$xorg_testset_save_CFLAGS" 10370fi 10371 10372found="no" 10373 10374 if test $found = "no" ; then 10375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10377 fi 10378 10379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10381 fi 10382 10383 CFLAGS="$CFLAGS -Werror" 10384 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 10386$as_echo_n "checking if $CC supports-Werror... " >&6; } 10387 cacheid=xorg_cv_cc_flag__Werror 10388 if eval \${$cacheid+:} false; then : 10389 $as_echo_n "(cached) " >&6 10390else 10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10392/* end confdefs.h. */ 10393int i; 10394int 10395main () 10396{ 10397 10398 ; 10399 return 0; 10400} 10401_ACEOF 10402if ac_fn_c_try_link "$LINENO"; then : 10403 eval $cacheid=yes 10404else 10405 eval $cacheid=no 10406fi 10407rm -f core conftest.err conftest.$ac_objext \ 10408 conftest$ac_exeext conftest.$ac_ext 10409fi 10410 10411 10412 CFLAGS="$xorg_testset_save_CFLAGS" 10413 10414 eval supported=\$$cacheid 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10416$as_echo "$supported" >&6; } 10417 if test "$supported" = "yes" ; then 10418 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10419 found="yes" 10420 fi 10421 fi 10422 10423 if test $found = "no" ; then 10424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10426 fi 10427 10428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10430 fi 10431 10432 CFLAGS="$CFLAGS -errwarn" 10433 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 10435$as_echo_n "checking if $CC supports-errwarn... " >&6; } 10436 cacheid=xorg_cv_cc_flag__errwarn 10437 if eval \${$cacheid+:} false; then : 10438 $as_echo_n "(cached) " >&6 10439else 10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10441/* end confdefs.h. */ 10442int i; 10443int 10444main () 10445{ 10446 10447 ; 10448 return 0; 10449} 10450_ACEOF 10451if ac_fn_c_try_link "$LINENO"; then : 10452 eval $cacheid=yes 10453else 10454 eval $cacheid=no 10455fi 10456rm -f core conftest.err conftest.$ac_objext \ 10457 conftest$ac_exeext conftest.$ac_ext 10458fi 10459 10460 10461 CFLAGS="$xorg_testset_save_CFLAGS" 10462 10463 eval supported=\$$cacheid 10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10465$as_echo "$supported" >&6; } 10466 if test "$supported" = "yes" ; then 10467 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10468 found="yes" 10469 fi 10470 fi 10471 10472 10473 10474# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10475# activate it with -Werror, so we add it here explicitly. 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489xorg_testset_save_CFLAGS="$CFLAGS" 10490 10491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10496 $as_echo_n "(cached) " >&6 10497else 10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499/* end confdefs.h. */ 10500int i; 10501_ACEOF 10502if ac_fn_c_try_compile "$LINENO"; then : 10503 xorg_cv_cc_flag_unknown_warning_option=yes 10504else 10505 xorg_cv_cc_flag_unknown_warning_option=no 10506fi 10507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10508fi 10509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10512 CFLAGS="$xorg_testset_save_CFLAGS" 10513fi 10514 10515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10518 fi 10519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10523 $as_echo_n "(cached) " >&6 10524else 10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10526/* end confdefs.h. */ 10527int i; 10528_ACEOF 10529if ac_fn_c_try_compile "$LINENO"; then : 10530 xorg_cv_cc_flag_unused_command_line_argument=yes 10531else 10532 xorg_cv_cc_flag_unused_command_line_argument=no 10533fi 10534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10535fi 10536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10539 CFLAGS="$xorg_testset_save_CFLAGS" 10540fi 10541 10542found="no" 10543 10544 if test $found = "no" ; then 10545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10547 fi 10548 10549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10551 fi 10552 10553 CFLAGS="$CFLAGS -Werror=attributes" 10554 10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 10556$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 10557 cacheid=xorg_cv_cc_flag__Werror_attributes 10558 if eval \${$cacheid+:} false; then : 10559 $as_echo_n "(cached) " >&6 10560else 10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10562/* end confdefs.h. */ 10563int i; 10564int 10565main () 10566{ 10567 10568 ; 10569 return 0; 10570} 10571_ACEOF 10572if ac_fn_c_try_link "$LINENO"; then : 10573 eval $cacheid=yes 10574else 10575 eval $cacheid=no 10576fi 10577rm -f core conftest.err conftest.$ac_objext \ 10578 conftest$ac_exeext conftest.$ac_ext 10579fi 10580 10581 10582 CFLAGS="$xorg_testset_save_CFLAGS" 10583 10584 eval supported=\$$cacheid 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10586$as_echo "$supported" >&6; } 10587 if test "$supported" = "yes" ; then 10588 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10589 found="yes" 10590 fi 10591 fi 10592 10593 10594 10595if test "x$STRICT_COMPILE" = "xyes"; then 10596 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10597 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10598fi 10599 10600 10601 10602 10603 10604 10605cat >>confdefs.h <<_ACEOF 10606#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10607_ACEOF 10608 10609 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10610 if test "x$PVM" = "x"; then 10611 PVM="0" 10612 fi 10613 10614cat >>confdefs.h <<_ACEOF 10615#define PACKAGE_VERSION_MINOR $PVM 10616_ACEOF 10617 10618 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10619 if test "x$PVP" = "x"; then 10620 PVP="0" 10621 fi 10622 10623cat >>confdefs.h <<_ACEOF 10624#define PACKAGE_VERSION_PATCHLEVEL $PVP 10625_ACEOF 10626 10627 10628 10629CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10630mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10631|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10632echo 'git directory not found: installing possibly empty changelog.' >&2)" 10633 10634 10635 10636 10637macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10638INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10639mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10640|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10641echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10642 10643 10644 10645 10646 10647 10648if test x$APP_MAN_SUFFIX = x ; then 10649 APP_MAN_SUFFIX=1 10650fi 10651if test x$APP_MAN_DIR = x ; then 10652 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10653fi 10654 10655if test x$LIB_MAN_SUFFIX = x ; then 10656 LIB_MAN_SUFFIX=3 10657fi 10658if test x$LIB_MAN_DIR = x ; then 10659 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10660fi 10661 10662if test x$FILE_MAN_SUFFIX = x ; then 10663 case $host_os in 10664 solaris*) FILE_MAN_SUFFIX=4 ;; 10665 *) FILE_MAN_SUFFIX=5 ;; 10666 esac 10667fi 10668if test x$FILE_MAN_DIR = x ; then 10669 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10670fi 10671 10672if test x$MISC_MAN_SUFFIX = x ; then 10673 case $host_os in 10674 solaris*) MISC_MAN_SUFFIX=5 ;; 10675 *) MISC_MAN_SUFFIX=7 ;; 10676 esac 10677fi 10678if test x$MISC_MAN_DIR = x ; then 10679 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10680fi 10681 10682if test x$DRIVER_MAN_SUFFIX = x ; then 10683 case $host_os in 10684 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10685 *) DRIVER_MAN_SUFFIX=4 ;; 10686 esac 10687fi 10688if test x$DRIVER_MAN_DIR = x ; then 10689 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10690fi 10691 10692if test x$ADMIN_MAN_SUFFIX = x ; then 10693 case $host_os in 10694 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10695 *) ADMIN_MAN_SUFFIX=8 ;; 10696 esac 10697fi 10698if test x$ADMIN_MAN_DIR = x ; then 10699 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10700fi 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716XORG_MAN_PAGE="X Version 11" 10717 10718MAN_SUBSTS="\ 10719 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10720 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10721 -e 's|__xservername__|Xorg|g' \ 10722 -e 's|__xconfigfile__|xorg.conf|g' \ 10723 -e 's|__projectroot__|\$(prefix)|g' \ 10724 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10725 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10726 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10727 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10728 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10729 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10730 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10731 10732 10733 10734# Check whether --enable-silent-rules was given. 10735if test "${enable_silent_rules+set}" = set; then : 10736 enableval=$enable_silent_rules; 10737fi 10738 10739case $enable_silent_rules in # ((( 10740 yes) AM_DEFAULT_VERBOSITY=0;; 10741 no) AM_DEFAULT_VERBOSITY=1;; 10742 *) AM_DEFAULT_VERBOSITY=0;; 10743esac 10744am_make=${MAKE-make} 10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10746$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10747if ${am_cv_make_support_nested_variables+:} false; then : 10748 $as_echo_n "(cached) " >&6 10749else 10750 if $as_echo 'TRUE=$(BAR$(V)) 10751BAR0=false 10752BAR1=true 10753V=1 10754am__doit: 10755 @$(TRUE) 10756.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10757 am_cv_make_support_nested_variables=yes 10758else 10759 am_cv_make_support_nested_variables=no 10760fi 10761fi 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10763$as_echo "$am_cv_make_support_nested_variables" >&6; } 10764if test $am_cv_make_support_nested_variables = yes; then 10765 AM_V='$(V)' 10766 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10767else 10768 AM_V=$AM_DEFAULT_VERBOSITY 10769 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10770fi 10771AM_BACKSLASH='\' 10772 10773 10774 10775# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules 10776 10777 10778 10779# Checks for programs. 10780# Check whether --enable-static was given. 10781if test "${enable_static+set}" = set; then : 10782 enableval=$enable_static; p=${PACKAGE-default} 10783 case $enableval in 10784 yes) enable_static=yes ;; 10785 no) enable_static=no ;; 10786 *) 10787 enable_static=no 10788 # Look at the argument we got. We use all the common list separators. 10789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10790 for pkg in $enableval; do 10791 IFS="$lt_save_ifs" 10792 if test "X$pkg" = "X$p"; then 10793 enable_static=yes 10794 fi 10795 done 10796 IFS="$lt_save_ifs" 10797 ;; 10798 esac 10799else 10800 enable_static=no 10801fi 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811case `pwd` in 10812 *\ * | *\ *) 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10814$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10815esac 10816 10817 10818 10819macro_version='2.4.2' 10820macro_revision='1.3337' 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834ltmain="$ac_aux_dir/ltmain.sh" 10835 10836# Backslashify metacharacters that are still active within 10837# double-quoted strings. 10838sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10839 10840# Same as above, but do not quote variable references. 10841double_quote_subst='s/\(["`\\]\)/\\\1/g' 10842 10843# Sed substitution to delay expansion of an escaped shell variable in a 10844# double_quote_subst'ed string. 10845delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10846 10847# Sed substitution to delay expansion of an escaped single quote. 10848delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10849 10850# Sed substitution to avoid accidental globbing in evaled expressions 10851no_glob_subst='s/\*/\\\*/g' 10852 10853ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10854ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10855ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10856 10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10858$as_echo_n "checking how to print strings... " >&6; } 10859# Test print first, because it will be a builtin if present. 10860if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10861 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10862 ECHO='print -r --' 10863elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10864 ECHO='printf %s\n' 10865else 10866 # Use this function as a fallback that always works. 10867 func_fallback_echo () 10868 { 10869 eval 'cat <<_LTECHO_EOF 10870$1 10871_LTECHO_EOF' 10872 } 10873 ECHO='func_fallback_echo' 10874fi 10875 10876# func_echo_all arg... 10877# Invoke $ECHO with all args, space-separated. 10878func_echo_all () 10879{ 10880 $ECHO "" 10881} 10882 10883case "$ECHO" in 10884 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10885$as_echo "printf" >&6; } ;; 10886 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10887$as_echo "print -r" >&6; } ;; 10888 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10889$as_echo "cat" >&6; } ;; 10890esac 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10906$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10907if ${ac_cv_path_SED+:} false; then : 10908 $as_echo_n "(cached) " >&6 10909else 10910 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10911 for ac_i in 1 2 3 4 5 6 7; do 10912 ac_script="$ac_script$as_nl$ac_script" 10913 done 10914 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10915 { ac_script=; unset ac_script;} 10916 if test -z "$SED"; then 10917 ac_path_SED_found=false 10918 # Loop through the user's path and test for each of PROGNAME-LIST 10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10920for as_dir in $PATH 10921do 10922 IFS=$as_save_IFS 10923 test -z "$as_dir" && as_dir=. 10924 for ac_prog in sed gsed; do 10925 for ac_exec_ext in '' $ac_executable_extensions; do 10926 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10927 as_fn_executable_p "$ac_path_SED" || continue 10928# Check for GNU ac_path_SED and select it if it is found. 10929 # Check for GNU $ac_path_SED 10930case `"$ac_path_SED" --version 2>&1` in 10931*GNU*) 10932 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10933*) 10934 ac_count=0 10935 $as_echo_n 0123456789 >"conftest.in" 10936 while : 10937 do 10938 cat "conftest.in" "conftest.in" >"conftest.tmp" 10939 mv "conftest.tmp" "conftest.in" 10940 cp "conftest.in" "conftest.nl" 10941 $as_echo '' >> "conftest.nl" 10942 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10944 as_fn_arith $ac_count + 1 && ac_count=$as_val 10945 if test $ac_count -gt ${ac_path_SED_max-0}; then 10946 # Best one so far, save it but keep looking for a better one 10947 ac_cv_path_SED="$ac_path_SED" 10948 ac_path_SED_max=$ac_count 10949 fi 10950 # 10*(2^10) chars as input seems more than enough 10951 test $ac_count -gt 10 && break 10952 done 10953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10954esac 10955 10956 $ac_path_SED_found && break 3 10957 done 10958 done 10959 done 10960IFS=$as_save_IFS 10961 if test -z "$ac_cv_path_SED"; then 10962 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10963 fi 10964else 10965 ac_cv_path_SED=$SED 10966fi 10967 10968fi 10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10970$as_echo "$ac_cv_path_SED" >&6; } 10971 SED="$ac_cv_path_SED" 10972 rm -f conftest.sed 10973 10974test -z "$SED" && SED=sed 10975Xsed="$SED -e 1s/^X//" 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10988$as_echo_n "checking for fgrep... " >&6; } 10989if ${ac_cv_path_FGREP+:} false; then : 10990 $as_echo_n "(cached) " >&6 10991else 10992 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10993 then ac_cv_path_FGREP="$GREP -F" 10994 else 10995 if test -z "$FGREP"; then 10996 ac_path_FGREP_found=false 10997 # Loop through the user's path and test for each of PROGNAME-LIST 10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11000do 11001 IFS=$as_save_IFS 11002 test -z "$as_dir" && as_dir=. 11003 for ac_prog in fgrep; do 11004 for ac_exec_ext in '' $ac_executable_extensions; do 11005 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11006 as_fn_executable_p "$ac_path_FGREP" || continue 11007# Check for GNU ac_path_FGREP and select it if it is found. 11008 # Check for GNU $ac_path_FGREP 11009case `"$ac_path_FGREP" --version 2>&1` in 11010*GNU*) 11011 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11012*) 11013 ac_count=0 11014 $as_echo_n 0123456789 >"conftest.in" 11015 while : 11016 do 11017 cat "conftest.in" "conftest.in" >"conftest.tmp" 11018 mv "conftest.tmp" "conftest.in" 11019 cp "conftest.in" "conftest.nl" 11020 $as_echo 'FGREP' >> "conftest.nl" 11021 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11023 as_fn_arith $ac_count + 1 && ac_count=$as_val 11024 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11025 # Best one so far, save it but keep looking for a better one 11026 ac_cv_path_FGREP="$ac_path_FGREP" 11027 ac_path_FGREP_max=$ac_count 11028 fi 11029 # 10*(2^10) chars as input seems more than enough 11030 test $ac_count -gt 10 && break 11031 done 11032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11033esac 11034 11035 $ac_path_FGREP_found && break 3 11036 done 11037 done 11038 done 11039IFS=$as_save_IFS 11040 if test -z "$ac_cv_path_FGREP"; then 11041 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11042 fi 11043else 11044 ac_cv_path_FGREP=$FGREP 11045fi 11046 11047 fi 11048fi 11049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11050$as_echo "$ac_cv_path_FGREP" >&6; } 11051 FGREP="$ac_cv_path_FGREP" 11052 11053 11054test -z "$GREP" && GREP=grep 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074# Check whether --with-gnu-ld was given. 11075if test "${with_gnu_ld+set}" = set; then : 11076 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11077else 11078 with_gnu_ld=no 11079fi 11080 11081ac_prog=ld 11082if test "$GCC" = yes; then 11083 # Check if gcc -print-prog-name=ld gives a path. 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11085$as_echo_n "checking for ld used by $CC... " >&6; } 11086 case $host in 11087 *-*-mingw*) 11088 # gcc leaves a trailing carriage return which upsets mingw 11089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11090 *) 11091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11092 esac 11093 case $ac_prog in 11094 # Accept absolute paths. 11095 [\\/]* | ?:[\\/]*) 11096 re_direlt='/[^/][^/]*/\.\./' 11097 # Canonicalize the pathname of ld 11098 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11099 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11100 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11101 done 11102 test -z "$LD" && LD="$ac_prog" 11103 ;; 11104 "") 11105 # If it fails, then pretend we aren't using GCC. 11106 ac_prog=ld 11107 ;; 11108 *) 11109 # If it is relative, then search for the first ld in PATH. 11110 with_gnu_ld=unknown 11111 ;; 11112 esac 11113elif test "$with_gnu_ld" = yes; then 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11115$as_echo_n "checking for GNU ld... " >&6; } 11116else 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11118$as_echo_n "checking for non-GNU ld... " >&6; } 11119fi 11120if ${lt_cv_path_LD+:} false; then : 11121 $as_echo_n "(cached) " >&6 11122else 11123 if test -z "$LD"; then 11124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11125 for ac_dir in $PATH; do 11126 IFS="$lt_save_ifs" 11127 test -z "$ac_dir" && ac_dir=. 11128 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11129 lt_cv_path_LD="$ac_dir/$ac_prog" 11130 # Check to see if the program is GNU ld. I'd rather use --version, 11131 # but apparently some variants of GNU ld only accept -v. 11132 # Break only if it was the GNU/non-GNU ld that we prefer. 11133 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11134 *GNU* | *'with BFD'*) 11135 test "$with_gnu_ld" != no && break 11136 ;; 11137 *) 11138 test "$with_gnu_ld" != yes && break 11139 ;; 11140 esac 11141 fi 11142 done 11143 IFS="$lt_save_ifs" 11144else 11145 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11146fi 11147fi 11148 11149LD="$lt_cv_path_LD" 11150if test -n "$LD"; then 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11152$as_echo "$LD" >&6; } 11153else 11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11155$as_echo "no" >&6; } 11156fi 11157test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11159$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11160if ${lt_cv_prog_gnu_ld+:} false; then : 11161 $as_echo_n "(cached) " >&6 11162else 11163 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11164case `$LD -v 2>&1 </dev/null` in 11165*GNU* | *'with BFD'*) 11166 lt_cv_prog_gnu_ld=yes 11167 ;; 11168*) 11169 lt_cv_prog_gnu_ld=no 11170 ;; 11171esac 11172fi 11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11174$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11175with_gnu_ld=$lt_cv_prog_gnu_ld 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11186$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11187if ${lt_cv_path_NM+:} false; then : 11188 $as_echo_n "(cached) " >&6 11189else 11190 if test -n "$NM"; then 11191 # Let the user override the test. 11192 lt_cv_path_NM="$NM" 11193else 11194 lt_nm_to_check="${ac_tool_prefix}nm" 11195 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11196 lt_nm_to_check="$lt_nm_to_check nm" 11197 fi 11198 for lt_tmp_nm in $lt_nm_to_check; do 11199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11200 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11201 IFS="$lt_save_ifs" 11202 test -z "$ac_dir" && ac_dir=. 11203 tmp_nm="$ac_dir/$lt_tmp_nm" 11204 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11205 # Check to see if the nm accepts a BSD-compat flag. 11206 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11207 # nm: unknown option "B" ignored 11208 # Tru64's nm complains that /dev/null is an invalid object file 11209 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11210 */dev/null* | *'Invalid file or object type'*) 11211 lt_cv_path_NM="$tmp_nm -B" 11212 break 11213 ;; 11214 *) 11215 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11216 */dev/null*) 11217 lt_cv_path_NM="$tmp_nm -p" 11218 break 11219 ;; 11220 *) 11221 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11222 continue # so that we can try to find one that supports BSD flags 11223 ;; 11224 esac 11225 ;; 11226 esac 11227 fi 11228 done 11229 IFS="$lt_save_ifs" 11230 done 11231 : ${lt_cv_path_NM=no} 11232fi 11233fi 11234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11235$as_echo "$lt_cv_path_NM" >&6; } 11236if test "$lt_cv_path_NM" != "no"; then 11237 NM="$lt_cv_path_NM" 11238else 11239 # Didn't find any BSD compatible name lister, look for dumpbin. 11240 if test -n "$DUMPBIN"; then : 11241 # Let the user override the test. 11242 else 11243 if test -n "$ac_tool_prefix"; then 11244 for ac_prog in dumpbin "link -dump" 11245 do 11246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11247set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11249$as_echo_n "checking for $ac_word... " >&6; } 11250if ${ac_cv_prog_DUMPBIN+:} false; then : 11251 $as_echo_n "(cached) " >&6 11252else 11253 if test -n "$DUMPBIN"; then 11254 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11255else 11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11257for as_dir in $PATH 11258do 11259 IFS=$as_save_IFS 11260 test -z "$as_dir" && as_dir=. 11261 for ac_exec_ext in '' $ac_executable_extensions; do 11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11263 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11265 break 2 11266 fi 11267done 11268 done 11269IFS=$as_save_IFS 11270 11271fi 11272fi 11273DUMPBIN=$ac_cv_prog_DUMPBIN 11274if test -n "$DUMPBIN"; then 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11276$as_echo "$DUMPBIN" >&6; } 11277else 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11279$as_echo "no" >&6; } 11280fi 11281 11282 11283 test -n "$DUMPBIN" && break 11284 done 11285fi 11286if test -z "$DUMPBIN"; then 11287 ac_ct_DUMPBIN=$DUMPBIN 11288 for ac_prog in dumpbin "link -dump" 11289do 11290 # Extract the first word of "$ac_prog", so it can be a program name with args. 11291set dummy $ac_prog; ac_word=$2 11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11293$as_echo_n "checking for $ac_word... " >&6; } 11294if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11295 $as_echo_n "(cached) " >&6 11296else 11297 if test -n "$ac_ct_DUMPBIN"; then 11298 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11299else 11300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11301for as_dir in $PATH 11302do 11303 IFS=$as_save_IFS 11304 test -z "$as_dir" && as_dir=. 11305 for ac_exec_ext in '' $ac_executable_extensions; do 11306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11307 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11309 break 2 11310 fi 11311done 11312 done 11313IFS=$as_save_IFS 11314 11315fi 11316fi 11317ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11318if test -n "$ac_ct_DUMPBIN"; then 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11320$as_echo "$ac_ct_DUMPBIN" >&6; } 11321else 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11323$as_echo "no" >&6; } 11324fi 11325 11326 11327 test -n "$ac_ct_DUMPBIN" && break 11328done 11329 11330 if test "x$ac_ct_DUMPBIN" = x; then 11331 DUMPBIN=":" 11332 else 11333 case $cross_compiling:$ac_tool_warned in 11334yes:) 11335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11337ac_tool_warned=yes ;; 11338esac 11339 DUMPBIN=$ac_ct_DUMPBIN 11340 fi 11341fi 11342 11343 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11344 *COFF*) 11345 DUMPBIN="$DUMPBIN -symbols" 11346 ;; 11347 *) 11348 DUMPBIN=: 11349 ;; 11350 esac 11351 fi 11352 11353 if test "$DUMPBIN" != ":"; then 11354 NM="$DUMPBIN" 11355 fi 11356fi 11357test -z "$NM" && NM=nm 11358 11359 11360 11361 11362 11363 11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11365$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11366if ${lt_cv_nm_interface+:} false; then : 11367 $as_echo_n "(cached) " >&6 11368else 11369 lt_cv_nm_interface="BSD nm" 11370 echo "int some_variable = 0;" > conftest.$ac_ext 11371 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11372 (eval "$ac_compile" 2>conftest.err) 11373 cat conftest.err >&5 11374 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11375 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11376 cat conftest.err >&5 11377 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11378 cat conftest.out >&5 11379 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11380 lt_cv_nm_interface="MS dumpbin" 11381 fi 11382 rm -f conftest* 11383fi 11384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11385$as_echo "$lt_cv_nm_interface" >&6; } 11386 11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11388$as_echo_n "checking whether ln -s works... " >&6; } 11389LN_S=$as_ln_s 11390if test "$LN_S" = "ln -s"; then 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11392$as_echo "yes" >&6; } 11393else 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11395$as_echo "no, using $LN_S" >&6; } 11396fi 11397 11398# find the maximum length of command line arguments 11399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11400$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11401if ${lt_cv_sys_max_cmd_len+:} false; then : 11402 $as_echo_n "(cached) " >&6 11403else 11404 i=0 11405 teststring="ABCD" 11406 11407 case $build_os in 11408 msdosdjgpp*) 11409 # On DJGPP, this test can blow up pretty badly due to problems in libc 11410 # (any single argument exceeding 2000 bytes causes a buffer overrun 11411 # during glob expansion). Even if it were fixed, the result of this 11412 # check would be larger than it should be. 11413 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11414 ;; 11415 11416 gnu*) 11417 # Under GNU Hurd, this test is not required because there is 11418 # no limit to the length of command line arguments. 11419 # Libtool will interpret -1 as no limit whatsoever 11420 lt_cv_sys_max_cmd_len=-1; 11421 ;; 11422 11423 cygwin* | mingw* | cegcc*) 11424 # On Win9x/ME, this test blows up -- it succeeds, but takes 11425 # about 5 minutes as the teststring grows exponentially. 11426 # Worse, since 9x/ME are not pre-emptively multitasking, 11427 # you end up with a "frozen" computer, even though with patience 11428 # the test eventually succeeds (with a max line length of 256k). 11429 # Instead, let's just punt: use the minimum linelength reported by 11430 # all of the supported platforms: 8192 (on NT/2K/XP). 11431 lt_cv_sys_max_cmd_len=8192; 11432 ;; 11433 11434 mint*) 11435 # On MiNT this can take a long time and run out of memory. 11436 lt_cv_sys_max_cmd_len=8192; 11437 ;; 11438 11439 amigaos*) 11440 # On AmigaOS with pdksh, this test takes hours, literally. 11441 # So we just punt and use a minimum line length of 8192. 11442 lt_cv_sys_max_cmd_len=8192; 11443 ;; 11444 11445 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11446 # This has been around since 386BSD, at least. Likely further. 11447 if test -x /sbin/sysctl; then 11448 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11449 elif test -x /usr/sbin/sysctl; then 11450 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11451 else 11452 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11453 fi 11454 # And add a safety zone 11455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11457 ;; 11458 11459 interix*) 11460 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11461 lt_cv_sys_max_cmd_len=196608 11462 ;; 11463 11464 os2*) 11465 # The test takes a long time on OS/2. 11466 lt_cv_sys_max_cmd_len=8192 11467 ;; 11468 11469 osf*) 11470 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11471 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11472 # nice to cause kernel panics so lets avoid the loop below. 11473 # First set a reasonable default. 11474 lt_cv_sys_max_cmd_len=16384 11475 # 11476 if test -x /sbin/sysconfig; then 11477 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11478 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11479 esac 11480 fi 11481 ;; 11482 sco3.2v5*) 11483 lt_cv_sys_max_cmd_len=102400 11484 ;; 11485 sysv5* | sco5v6* | sysv4.2uw2*) 11486 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11487 if test -n "$kargmax"; then 11488 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11489 else 11490 lt_cv_sys_max_cmd_len=32768 11491 fi 11492 ;; 11493 *) 11494 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11495 if test -n "$lt_cv_sys_max_cmd_len" && \ 11496 test undefined != "$lt_cv_sys_max_cmd_len"; then 11497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11499 else 11500 # Make teststring a little bigger before we do anything with it. 11501 # a 1K string should be a reasonable start. 11502 for i in 1 2 3 4 5 6 7 8 ; do 11503 teststring=$teststring$teststring 11504 done 11505 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11506 # If test is not a shell built-in, we'll probably end up computing a 11507 # maximum length that is only half of the actual maximum length, but 11508 # we can't tell. 11509 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11510 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11511 test $i != 17 # 1/2 MB should be enough 11512 do 11513 i=`expr $i + 1` 11514 teststring=$teststring$teststring 11515 done 11516 # Only check the string length outside the loop. 11517 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11518 teststring= 11519 # Add a significant safety factor because C++ compilers can tack on 11520 # massive amounts of additional arguments before passing them to the 11521 # linker. It appears as though 1/2 is a usable value. 11522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11523 fi 11524 ;; 11525 esac 11526 11527fi 11528 11529if test -n $lt_cv_sys_max_cmd_len ; then 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11531$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11532else 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11534$as_echo "none" >&6; } 11535fi 11536max_cmd_len=$lt_cv_sys_max_cmd_len 11537 11538 11539 11540 11541 11542 11543: ${CP="cp -f"} 11544: ${MV="mv -f"} 11545: ${RM="rm -f"} 11546 11547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11548$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11549# Try some XSI features 11550xsi_shell=no 11551( _lt_dummy="a/b/c" 11552 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11553 = c,a/b,b/c, \ 11554 && eval 'test $(( 1 + 1 )) -eq 2 \ 11555 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11556 && xsi_shell=yes 11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11558$as_echo "$xsi_shell" >&6; } 11559 11560 11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11562$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11563lt_shell_append=no 11564( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11565 >/dev/null 2>&1 \ 11566 && lt_shell_append=yes 11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11568$as_echo "$lt_shell_append" >&6; } 11569 11570 11571if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11572 lt_unset=unset 11573else 11574 lt_unset=false 11575fi 11576 11577 11578 11579 11580 11581# test EBCDIC or ASCII 11582case `echo X|tr X '\101'` in 11583 A) # ASCII based system 11584 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11585 lt_SP2NL='tr \040 \012' 11586 lt_NL2SP='tr \015\012 \040\040' 11587 ;; 11588 *) # EBCDIC based system 11589 lt_SP2NL='tr \100 \n' 11590 lt_NL2SP='tr \r\n \100\100' 11591 ;; 11592esac 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11603$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11604if ${lt_cv_to_host_file_cmd+:} false; then : 11605 $as_echo_n "(cached) " >&6 11606else 11607 case $host in 11608 *-*-mingw* ) 11609 case $build in 11610 *-*-mingw* ) # actually msys 11611 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11612 ;; 11613 *-*-cygwin* ) 11614 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11615 ;; 11616 * ) # otherwise, assume *nix 11617 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11618 ;; 11619 esac 11620 ;; 11621 *-*-cygwin* ) 11622 case $build in 11623 *-*-mingw* ) # actually msys 11624 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11625 ;; 11626 *-*-cygwin* ) 11627 lt_cv_to_host_file_cmd=func_convert_file_noop 11628 ;; 11629 * ) # otherwise, assume *nix 11630 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11631 ;; 11632 esac 11633 ;; 11634 * ) # unhandled hosts (and "normal" native builds) 11635 lt_cv_to_host_file_cmd=func_convert_file_noop 11636 ;; 11637esac 11638 11639fi 11640 11641to_host_file_cmd=$lt_cv_to_host_file_cmd 11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11643$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11644 11645 11646 11647 11648 11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11650$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11651if ${lt_cv_to_tool_file_cmd+:} false; then : 11652 $as_echo_n "(cached) " >&6 11653else 11654 #assume ordinary cross tools, or native build. 11655lt_cv_to_tool_file_cmd=func_convert_file_noop 11656case $host in 11657 *-*-mingw* ) 11658 case $build in 11659 *-*-mingw* ) # actually msys 11660 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11661 ;; 11662 esac 11663 ;; 11664esac 11665 11666fi 11667 11668to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11670$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11671 11672 11673 11674 11675 11676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11677$as_echo_n "checking for $LD option to reload object files... " >&6; } 11678if ${lt_cv_ld_reload_flag+:} false; then : 11679 $as_echo_n "(cached) " >&6 11680else 11681 lt_cv_ld_reload_flag='-r' 11682fi 11683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11684$as_echo "$lt_cv_ld_reload_flag" >&6; } 11685reload_flag=$lt_cv_ld_reload_flag 11686case $reload_flag in 11687"" | " "*) ;; 11688*) reload_flag=" $reload_flag" ;; 11689esac 11690reload_cmds='$LD$reload_flag -o $output$reload_objs' 11691case $host_os in 11692 cygwin* | mingw* | pw32* | cegcc*) 11693 if test "$GCC" != yes; then 11694 reload_cmds=false 11695 fi 11696 ;; 11697 darwin*) 11698 if test "$GCC" = yes; then 11699 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11700 else 11701 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11702 fi 11703 ;; 11704esac 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714if test -n "$ac_tool_prefix"; then 11715 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11716set dummy ${ac_tool_prefix}objdump; ac_word=$2 11717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11718$as_echo_n "checking for $ac_word... " >&6; } 11719if ${ac_cv_prog_OBJDUMP+:} false; then : 11720 $as_echo_n "(cached) " >&6 11721else 11722 if test -n "$OBJDUMP"; then 11723 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11724else 11725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11726for as_dir in $PATH 11727do 11728 IFS=$as_save_IFS 11729 test -z "$as_dir" && as_dir=. 11730 for ac_exec_ext in '' $ac_executable_extensions; do 11731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11732 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11734 break 2 11735 fi 11736done 11737 done 11738IFS=$as_save_IFS 11739 11740fi 11741fi 11742OBJDUMP=$ac_cv_prog_OBJDUMP 11743if test -n "$OBJDUMP"; then 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11745$as_echo "$OBJDUMP" >&6; } 11746else 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11748$as_echo "no" >&6; } 11749fi 11750 11751 11752fi 11753if test -z "$ac_cv_prog_OBJDUMP"; then 11754 ac_ct_OBJDUMP=$OBJDUMP 11755 # Extract the first word of "objdump", so it can be a program name with args. 11756set dummy objdump; ac_word=$2 11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11758$as_echo_n "checking for $ac_word... " >&6; } 11759if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11760 $as_echo_n "(cached) " >&6 11761else 11762 if test -n "$ac_ct_OBJDUMP"; then 11763 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11764else 11765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11766for as_dir in $PATH 11767do 11768 IFS=$as_save_IFS 11769 test -z "$as_dir" && as_dir=. 11770 for ac_exec_ext in '' $ac_executable_extensions; do 11771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11772 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11774 break 2 11775 fi 11776done 11777 done 11778IFS=$as_save_IFS 11779 11780fi 11781fi 11782ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11783if test -n "$ac_ct_OBJDUMP"; then 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11785$as_echo "$ac_ct_OBJDUMP" >&6; } 11786else 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11788$as_echo "no" >&6; } 11789fi 11790 11791 if test "x$ac_ct_OBJDUMP" = x; then 11792 OBJDUMP="false" 11793 else 11794 case $cross_compiling:$ac_tool_warned in 11795yes:) 11796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11798ac_tool_warned=yes ;; 11799esac 11800 OBJDUMP=$ac_ct_OBJDUMP 11801 fi 11802else 11803 OBJDUMP="$ac_cv_prog_OBJDUMP" 11804fi 11805 11806test -z "$OBJDUMP" && OBJDUMP=objdump 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11817$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11818if ${lt_cv_deplibs_check_method+:} false; then : 11819 $as_echo_n "(cached) " >&6 11820else 11821 lt_cv_file_magic_cmd='$MAGIC_CMD' 11822lt_cv_file_magic_test_file= 11823lt_cv_deplibs_check_method='unknown' 11824# Need to set the preceding variable on all platforms that support 11825# interlibrary dependencies. 11826# 'none' -- dependencies not supported. 11827# `unknown' -- same as none, but documents that we really don't know. 11828# 'pass_all' -- all dependencies passed with no checks. 11829# 'test_compile' -- check by making test program. 11830# 'file_magic [[regex]]' -- check by looking for files in library path 11831# which responds to the $file_magic_cmd with a given extended regex. 11832# If you have `file' or equivalent on your system and you're not sure 11833# whether `pass_all' will *always* work, you probably want this one. 11834 11835case $host_os in 11836aix[4-9]*) 11837 lt_cv_deplibs_check_method=pass_all 11838 ;; 11839 11840beos*) 11841 lt_cv_deplibs_check_method=pass_all 11842 ;; 11843 11844bsdi[45]*) 11845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11846 lt_cv_file_magic_cmd='/usr/bin/file -L' 11847 lt_cv_file_magic_test_file=/shlib/libc.so 11848 ;; 11849 11850cygwin*) 11851 # func_win32_libid is a shell function defined in ltmain.sh 11852 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11853 lt_cv_file_magic_cmd='func_win32_libid' 11854 ;; 11855 11856mingw* | pw32*) 11857 # Base MSYS/MinGW do not provide the 'file' command needed by 11858 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11859 # unless we find 'file', for example because we are cross-compiling. 11860 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11861 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11862 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11863 lt_cv_file_magic_cmd='func_win32_libid' 11864 else 11865 # Keep this pattern in sync with the one in func_win32_libid. 11866 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11867 lt_cv_file_magic_cmd='$OBJDUMP -f' 11868 fi 11869 ;; 11870 11871cegcc*) 11872 # use the weaker test based on 'objdump'. See mingw*. 11873 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11874 lt_cv_file_magic_cmd='$OBJDUMP -f' 11875 ;; 11876 11877darwin* | rhapsody*) 11878 lt_cv_deplibs_check_method=pass_all 11879 ;; 11880 11881freebsd* | dragonfly*) 11882 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11883 case $host_cpu in 11884 i*86 ) 11885 # Not sure whether the presence of OpenBSD here was a mistake. 11886 # Let's accept both of them until this is cleared up. 11887 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11888 lt_cv_file_magic_cmd=/usr/bin/file 11889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11890 ;; 11891 esac 11892 else 11893 lt_cv_deplibs_check_method=pass_all 11894 fi 11895 ;; 11896 11897haiku*) 11898 lt_cv_deplibs_check_method=pass_all 11899 ;; 11900 11901hpux10.20* | hpux11*) 11902 lt_cv_file_magic_cmd=/usr/bin/file 11903 case $host_cpu in 11904 ia64*) 11905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11906 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11907 ;; 11908 hppa*64*) 11909 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]' 11910 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11911 ;; 11912 *) 11913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11914 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11915 ;; 11916 esac 11917 ;; 11918 11919interix[3-9]*) 11920 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11922 ;; 11923 11924irix5* | irix6* | nonstopux*) 11925 case $LD in 11926 *-32|*"-32 ") libmagic=32-bit;; 11927 *-n32|*"-n32 ") libmagic=N32;; 11928 *-64|*"-64 ") libmagic=64-bit;; 11929 *) libmagic=never-match;; 11930 esac 11931 lt_cv_deplibs_check_method=pass_all 11932 ;; 11933 11934# This must be glibc/ELF. 11935linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11936 lt_cv_deplibs_check_method=pass_all 11937 ;; 11938 11939netbsd* | netbsdelf*-gnu) 11940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11942 else 11943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11944 fi 11945 ;; 11946 11947newos6*) 11948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11949 lt_cv_file_magic_cmd=/usr/bin/file 11950 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11951 ;; 11952 11953*nto* | *qnx*) 11954 lt_cv_deplibs_check_method=pass_all 11955 ;; 11956 11957openbsd*) 11958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11960 else 11961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11962 fi 11963 ;; 11964 11965osf3* | osf4* | osf5*) 11966 lt_cv_deplibs_check_method=pass_all 11967 ;; 11968 11969rdos*) 11970 lt_cv_deplibs_check_method=pass_all 11971 ;; 11972 11973solaris*) 11974 lt_cv_deplibs_check_method=pass_all 11975 ;; 11976 11977sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11978 lt_cv_deplibs_check_method=pass_all 11979 ;; 11980 11981sysv4 | sysv4.3*) 11982 case $host_vendor in 11983 motorola) 11984 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]' 11985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11986 ;; 11987 ncr) 11988 lt_cv_deplibs_check_method=pass_all 11989 ;; 11990 sequent) 11991 lt_cv_file_magic_cmd='/bin/file' 11992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11993 ;; 11994 sni) 11995 lt_cv_file_magic_cmd='/bin/file' 11996 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11997 lt_cv_file_magic_test_file=/lib/libc.so 11998 ;; 11999 siemens) 12000 lt_cv_deplibs_check_method=pass_all 12001 ;; 12002 pc) 12003 lt_cv_deplibs_check_method=pass_all 12004 ;; 12005 esac 12006 ;; 12007 12008tpf*) 12009 lt_cv_deplibs_check_method=pass_all 12010 ;; 12011esac 12012 12013fi 12014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12015$as_echo "$lt_cv_deplibs_check_method" >&6; } 12016 12017file_magic_glob= 12018want_nocaseglob=no 12019if test "$build" = "$host"; then 12020 case $host_os in 12021 mingw* | pw32*) 12022 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12023 want_nocaseglob=yes 12024 else 12025 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12026 fi 12027 ;; 12028 esac 12029fi 12030 12031file_magic_cmd=$lt_cv_file_magic_cmd 12032deplibs_check_method=$lt_cv_deplibs_check_method 12033test -z "$deplibs_check_method" && deplibs_check_method=unknown 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056if test -n "$ac_tool_prefix"; then 12057 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12058set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12060$as_echo_n "checking for $ac_word... " >&6; } 12061if ${ac_cv_prog_DLLTOOL+:} false; then : 12062 $as_echo_n "(cached) " >&6 12063else 12064 if test -n "$DLLTOOL"; then 12065 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12066else 12067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12068for as_dir in $PATH 12069do 12070 IFS=$as_save_IFS 12071 test -z "$as_dir" && as_dir=. 12072 for ac_exec_ext in '' $ac_executable_extensions; do 12073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12074 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12076 break 2 12077 fi 12078done 12079 done 12080IFS=$as_save_IFS 12081 12082fi 12083fi 12084DLLTOOL=$ac_cv_prog_DLLTOOL 12085if test -n "$DLLTOOL"; then 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12087$as_echo "$DLLTOOL" >&6; } 12088else 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12090$as_echo "no" >&6; } 12091fi 12092 12093 12094fi 12095if test -z "$ac_cv_prog_DLLTOOL"; then 12096 ac_ct_DLLTOOL=$DLLTOOL 12097 # Extract the first word of "dlltool", so it can be a program name with args. 12098set dummy dlltool; ac_word=$2 12099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12100$as_echo_n "checking for $ac_word... " >&6; } 12101if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12102 $as_echo_n "(cached) " >&6 12103else 12104 if test -n "$ac_ct_DLLTOOL"; then 12105 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12106else 12107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12108for as_dir in $PATH 12109do 12110 IFS=$as_save_IFS 12111 test -z "$as_dir" && as_dir=. 12112 for ac_exec_ext in '' $ac_executable_extensions; do 12113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12114 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12116 break 2 12117 fi 12118done 12119 done 12120IFS=$as_save_IFS 12121 12122fi 12123fi 12124ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12125if test -n "$ac_ct_DLLTOOL"; then 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12127$as_echo "$ac_ct_DLLTOOL" >&6; } 12128else 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12130$as_echo "no" >&6; } 12131fi 12132 12133 if test "x$ac_ct_DLLTOOL" = x; then 12134 DLLTOOL="false" 12135 else 12136 case $cross_compiling:$ac_tool_warned in 12137yes:) 12138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12140ac_tool_warned=yes ;; 12141esac 12142 DLLTOOL=$ac_ct_DLLTOOL 12143 fi 12144else 12145 DLLTOOL="$ac_cv_prog_DLLTOOL" 12146fi 12147 12148test -z "$DLLTOOL" && DLLTOOL=dlltool 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12160$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12161if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12162 $as_echo_n "(cached) " >&6 12163else 12164 lt_cv_sharedlib_from_linklib_cmd='unknown' 12165 12166case $host_os in 12167cygwin* | mingw* | pw32* | cegcc*) 12168 # two different shell functions defined in ltmain.sh 12169 # decide which to use based on capabilities of $DLLTOOL 12170 case `$DLLTOOL --help 2>&1` in 12171 *--identify-strict*) 12172 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12173 ;; 12174 *) 12175 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12176 ;; 12177 esac 12178 ;; 12179*) 12180 # fallback: assume linklib IS sharedlib 12181 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12182 ;; 12183esac 12184 12185fi 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12187$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12188sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12189test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12190 12191 12192 12193 12194 12195 12196 12197if test -n "$ac_tool_prefix"; then 12198 for ac_prog in ar 12199 do 12200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12201set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12203$as_echo_n "checking for $ac_word... " >&6; } 12204if ${ac_cv_prog_AR+:} false; then : 12205 $as_echo_n "(cached) " >&6 12206else 12207 if test -n "$AR"; then 12208 ac_cv_prog_AR="$AR" # Let the user override the test. 12209else 12210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12211for as_dir in $PATH 12212do 12213 IFS=$as_save_IFS 12214 test -z "$as_dir" && as_dir=. 12215 for ac_exec_ext in '' $ac_executable_extensions; do 12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12217 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12219 break 2 12220 fi 12221done 12222 done 12223IFS=$as_save_IFS 12224 12225fi 12226fi 12227AR=$ac_cv_prog_AR 12228if test -n "$AR"; then 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12230$as_echo "$AR" >&6; } 12231else 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12233$as_echo "no" >&6; } 12234fi 12235 12236 12237 test -n "$AR" && break 12238 done 12239fi 12240if test -z "$AR"; then 12241 ac_ct_AR=$AR 12242 for ac_prog in ar 12243do 12244 # Extract the first word of "$ac_prog", so it can be a program name with args. 12245set dummy $ac_prog; ac_word=$2 12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12247$as_echo_n "checking for $ac_word... " >&6; } 12248if ${ac_cv_prog_ac_ct_AR+:} false; then : 12249 $as_echo_n "(cached) " >&6 12250else 12251 if test -n "$ac_ct_AR"; then 12252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12253else 12254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12255for as_dir in $PATH 12256do 12257 IFS=$as_save_IFS 12258 test -z "$as_dir" && as_dir=. 12259 for ac_exec_ext in '' $ac_executable_extensions; do 12260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12261 ac_cv_prog_ac_ct_AR="$ac_prog" 12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12263 break 2 12264 fi 12265done 12266 done 12267IFS=$as_save_IFS 12268 12269fi 12270fi 12271ac_ct_AR=$ac_cv_prog_ac_ct_AR 12272if test -n "$ac_ct_AR"; then 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12274$as_echo "$ac_ct_AR" >&6; } 12275else 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12277$as_echo "no" >&6; } 12278fi 12279 12280 12281 test -n "$ac_ct_AR" && break 12282done 12283 12284 if test "x$ac_ct_AR" = x; then 12285 AR="false" 12286 else 12287 case $cross_compiling:$ac_tool_warned in 12288yes:) 12289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12291ac_tool_warned=yes ;; 12292esac 12293 AR=$ac_ct_AR 12294 fi 12295fi 12296 12297: ${AR=ar} 12298: ${AR_FLAGS=cru} 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12311$as_echo_n "checking for archiver @FILE support... " >&6; } 12312if ${lt_cv_ar_at_file+:} false; then : 12313 $as_echo_n "(cached) " >&6 12314else 12315 lt_cv_ar_at_file=no 12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12317/* end confdefs.h. */ 12318 12319int 12320main () 12321{ 12322 12323 ; 12324 return 0; 12325} 12326_ACEOF 12327if ac_fn_c_try_compile "$LINENO"; then : 12328 echo conftest.$ac_objext > conftest.lst 12329 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12331 (eval $lt_ar_try) 2>&5 12332 ac_status=$? 12333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12334 test $ac_status = 0; } 12335 if test "$ac_status" -eq 0; then 12336 # Ensure the archiver fails upon bogus file names. 12337 rm -f conftest.$ac_objext libconftest.a 12338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12339 (eval $lt_ar_try) 2>&5 12340 ac_status=$? 12341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12342 test $ac_status = 0; } 12343 if test "$ac_status" -ne 0; then 12344 lt_cv_ar_at_file=@ 12345 fi 12346 fi 12347 rm -f conftest.* libconftest.a 12348 12349fi 12350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12351 12352fi 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12354$as_echo "$lt_cv_ar_at_file" >&6; } 12355 12356if test "x$lt_cv_ar_at_file" = xno; then 12357 archiver_list_spec= 12358else 12359 archiver_list_spec=$lt_cv_ar_at_file 12360fi 12361 12362 12363 12364 12365 12366 12367 12368if test -n "$ac_tool_prefix"; then 12369 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12370set dummy ${ac_tool_prefix}strip; ac_word=$2 12371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12372$as_echo_n "checking for $ac_word... " >&6; } 12373if ${ac_cv_prog_STRIP+:} false; then : 12374 $as_echo_n "(cached) " >&6 12375else 12376 if test -n "$STRIP"; then 12377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12378else 12379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12380for as_dir in $PATH 12381do 12382 IFS=$as_save_IFS 12383 test -z "$as_dir" && as_dir=. 12384 for ac_exec_ext in '' $ac_executable_extensions; do 12385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12386 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12388 break 2 12389 fi 12390done 12391 done 12392IFS=$as_save_IFS 12393 12394fi 12395fi 12396STRIP=$ac_cv_prog_STRIP 12397if test -n "$STRIP"; then 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12399$as_echo "$STRIP" >&6; } 12400else 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12402$as_echo "no" >&6; } 12403fi 12404 12405 12406fi 12407if test -z "$ac_cv_prog_STRIP"; then 12408 ac_ct_STRIP=$STRIP 12409 # Extract the first word of "strip", so it can be a program name with args. 12410set dummy strip; ac_word=$2 12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12412$as_echo_n "checking for $ac_word... " >&6; } 12413if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12414 $as_echo_n "(cached) " >&6 12415else 12416 if test -n "$ac_ct_STRIP"; then 12417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12418else 12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12420for as_dir in $PATH 12421do 12422 IFS=$as_save_IFS 12423 test -z "$as_dir" && as_dir=. 12424 for ac_exec_ext in '' $ac_executable_extensions; do 12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12426 ac_cv_prog_ac_ct_STRIP="strip" 12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12428 break 2 12429 fi 12430done 12431 done 12432IFS=$as_save_IFS 12433 12434fi 12435fi 12436ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12437if test -n "$ac_ct_STRIP"; then 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12439$as_echo "$ac_ct_STRIP" >&6; } 12440else 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12442$as_echo "no" >&6; } 12443fi 12444 12445 if test "x$ac_ct_STRIP" = x; then 12446 STRIP=":" 12447 else 12448 case $cross_compiling:$ac_tool_warned in 12449yes:) 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12452ac_tool_warned=yes ;; 12453esac 12454 STRIP=$ac_ct_STRIP 12455 fi 12456else 12457 STRIP="$ac_cv_prog_STRIP" 12458fi 12459 12460test -z "$STRIP" && STRIP=: 12461 12462 12463 12464 12465 12466 12467if test -n "$ac_tool_prefix"; then 12468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12469set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12471$as_echo_n "checking for $ac_word... " >&6; } 12472if ${ac_cv_prog_RANLIB+:} false; then : 12473 $as_echo_n "(cached) " >&6 12474else 12475 if test -n "$RANLIB"; then 12476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12477else 12478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12479for as_dir in $PATH 12480do 12481 IFS=$as_save_IFS 12482 test -z "$as_dir" && as_dir=. 12483 for ac_exec_ext in '' $ac_executable_extensions; do 12484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12487 break 2 12488 fi 12489done 12490 done 12491IFS=$as_save_IFS 12492 12493fi 12494fi 12495RANLIB=$ac_cv_prog_RANLIB 12496if test -n "$RANLIB"; then 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12498$as_echo "$RANLIB" >&6; } 12499else 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12501$as_echo "no" >&6; } 12502fi 12503 12504 12505fi 12506if test -z "$ac_cv_prog_RANLIB"; then 12507 ac_ct_RANLIB=$RANLIB 12508 # Extract the first word of "ranlib", so it can be a program name with args. 12509set dummy ranlib; ac_word=$2 12510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12511$as_echo_n "checking for $ac_word... " >&6; } 12512if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12513 $as_echo_n "(cached) " >&6 12514else 12515 if test -n "$ac_ct_RANLIB"; then 12516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12517else 12518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12519for as_dir in $PATH 12520do 12521 IFS=$as_save_IFS 12522 test -z "$as_dir" && as_dir=. 12523 for ac_exec_ext in '' $ac_executable_extensions; do 12524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12525 ac_cv_prog_ac_ct_RANLIB="ranlib" 12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12527 break 2 12528 fi 12529done 12530 done 12531IFS=$as_save_IFS 12532 12533fi 12534fi 12535ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12536if test -n "$ac_ct_RANLIB"; then 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12538$as_echo "$ac_ct_RANLIB" >&6; } 12539else 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12541$as_echo "no" >&6; } 12542fi 12543 12544 if test "x$ac_ct_RANLIB" = x; then 12545 RANLIB=":" 12546 else 12547 case $cross_compiling:$ac_tool_warned in 12548yes:) 12549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12551ac_tool_warned=yes ;; 12552esac 12553 RANLIB=$ac_ct_RANLIB 12554 fi 12555else 12556 RANLIB="$ac_cv_prog_RANLIB" 12557fi 12558 12559test -z "$RANLIB" && RANLIB=: 12560 12561 12562 12563 12564 12565 12566# Determine commands to create old-style static archives. 12567old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12568old_postinstall_cmds='chmod 644 $oldlib' 12569old_postuninstall_cmds= 12570 12571if test -n "$RANLIB"; then 12572 case $host_os in 12573 openbsd*) 12574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12575 ;; 12576 *) 12577 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12578 ;; 12579 esac 12580 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12581fi 12582 12583case $host_os in 12584 darwin*) 12585 lock_old_archive_extraction=yes ;; 12586 *) 12587 lock_old_archive_extraction=no ;; 12588esac 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628# If no C compiler was specified, use CC. 12629LTCC=${LTCC-"$CC"} 12630 12631# If no C compiler flags were specified, use CFLAGS. 12632LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12633 12634# Allow CC to be a program name with arguments. 12635compiler=$CC 12636 12637 12638# Check for command to grab the raw symbol name followed by C symbol from nm. 12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12640$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12641if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12642 $as_echo_n "(cached) " >&6 12643else 12644 12645# These are sane defaults that work on at least a few old systems. 12646# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12647 12648# Character class describing NM global symbol codes. 12649symcode='[BCDEGRST]' 12650 12651# Regexp to match symbols that can be accessed directly from C. 12652sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12653 12654# Define system-specific variables. 12655case $host_os in 12656aix*) 12657 symcode='[BCDT]' 12658 ;; 12659cygwin* | mingw* | pw32* | cegcc*) 12660 symcode='[ABCDGISTW]' 12661 ;; 12662hpux*) 12663 if test "$host_cpu" = ia64; then 12664 symcode='[ABCDEGRST]' 12665 fi 12666 ;; 12667irix* | nonstopux*) 12668 symcode='[BCDEGRST]' 12669 ;; 12670osf*) 12671 symcode='[BCDEGQRST]' 12672 ;; 12673solaris*) 12674 symcode='[BDRT]' 12675 ;; 12676sco3.2v5*) 12677 symcode='[DT]' 12678 ;; 12679sysv4.2uw2*) 12680 symcode='[DT]' 12681 ;; 12682sysv5* | sco5v6* | unixware* | OpenUNIX*) 12683 symcode='[ABDT]' 12684 ;; 12685sysv4) 12686 symcode='[DFNSTU]' 12687 ;; 12688esac 12689 12690# If we're using GNU nm, then use its standard symbol codes. 12691case `$NM -V 2>&1` in 12692*GNU* | *'with BFD'*) 12693 symcode='[ABCDGIRSTW]' ;; 12694esac 12695 12696# Transform an extracted symbol line into a proper C declaration. 12697# Some systems (esp. on ia64) link data and code symbols differently, 12698# so use this general approach. 12699lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12700 12701# Transform an extracted symbol line into symbol name and symbol address 12702lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12703lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 12704 12705# Handle CRLF in mingw tool chain 12706opt_cr= 12707case $build_os in 12708mingw*) 12709 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12710 ;; 12711esac 12712 12713# Try without a prefix underscore, then with it. 12714for ac_symprfx in "" "_"; do 12715 12716 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12717 symxfrm="\\1 $ac_symprfx\\2 \\2" 12718 12719 # Write the raw and C identifiers. 12720 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12721 # Fake it for dumpbin and say T for any non-static function 12722 # and D for any global variable. 12723 # Also find C++ and __fastcall symbols from MSVC++, 12724 # which start with @ or ?. 12725 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12726" {last_section=section; section=\$ 3};"\ 12727" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12728" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12729" \$ 0!~/External *\|/{next};"\ 12730" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12731" {if(hide[section]) next};"\ 12732" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12733" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12734" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12735" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12736" ' prfx=^$ac_symprfx" 12737 else 12738 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12739 fi 12740 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12741 12742 # Check to see that the pipe works correctly. 12743 pipe_works=no 12744 12745 rm -f conftest* 12746 cat > conftest.$ac_ext <<_LT_EOF 12747#ifdef __cplusplus 12748extern "C" { 12749#endif 12750char nm_test_var; 12751void nm_test_func(void); 12752void nm_test_func(void){} 12753#ifdef __cplusplus 12754} 12755#endif 12756int main(){nm_test_var='a';nm_test_func();return(0);} 12757_LT_EOF 12758 12759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12760 (eval $ac_compile) 2>&5 12761 ac_status=$? 12762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12763 test $ac_status = 0; }; then 12764 # Now try to grab the symbols. 12765 nlist=conftest.nm 12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12767 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12768 ac_status=$? 12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12770 test $ac_status = 0; } && test -s "$nlist"; then 12771 # Try sorting and uniquifying the output. 12772 if sort "$nlist" | uniq > "$nlist"T; then 12773 mv -f "$nlist"T "$nlist" 12774 else 12775 rm -f "$nlist"T 12776 fi 12777 12778 # Make sure that we snagged all the symbols we need. 12779 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12780 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12781 cat <<_LT_EOF > conftest.$ac_ext 12782/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12783#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12784/* DATA imports from DLLs on WIN32 con't be const, because runtime 12785 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12786# define LT_DLSYM_CONST 12787#elif defined(__osf__) 12788/* This system does not cope well with relocations in const data. */ 12789# define LT_DLSYM_CONST 12790#else 12791# define LT_DLSYM_CONST const 12792#endif 12793 12794#ifdef __cplusplus 12795extern "C" { 12796#endif 12797 12798_LT_EOF 12799 # Now generate the symbol file. 12800 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12801 12802 cat <<_LT_EOF >> conftest.$ac_ext 12803 12804/* The mapping between symbol names and symbols. */ 12805LT_DLSYM_CONST struct { 12806 const char *name; 12807 void *address; 12808} 12809lt__PROGRAM__LTX_preloaded_symbols[] = 12810{ 12811 { "@PROGRAM@", (void *) 0 }, 12812_LT_EOF 12813 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12814 cat <<\_LT_EOF >> conftest.$ac_ext 12815 {0, (void *) 0} 12816}; 12817 12818/* This works around a problem in FreeBSD linker */ 12819#ifdef FREEBSD_WORKAROUND 12820static const void *lt_preloaded_setup() { 12821 return lt__PROGRAM__LTX_preloaded_symbols; 12822} 12823#endif 12824 12825#ifdef __cplusplus 12826} 12827#endif 12828_LT_EOF 12829 # Now try linking the two files. 12830 mv conftest.$ac_objext conftstm.$ac_objext 12831 lt_globsym_save_LIBS=$LIBS 12832 lt_globsym_save_CFLAGS=$CFLAGS 12833 LIBS="conftstm.$ac_objext" 12834 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12836 (eval $ac_link) 2>&5 12837 ac_status=$? 12838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12839 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12840 pipe_works=yes 12841 fi 12842 LIBS=$lt_globsym_save_LIBS 12843 CFLAGS=$lt_globsym_save_CFLAGS 12844 else 12845 echo "cannot find nm_test_func in $nlist" >&5 12846 fi 12847 else 12848 echo "cannot find nm_test_var in $nlist" >&5 12849 fi 12850 else 12851 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12852 fi 12853 else 12854 echo "$progname: failed program was:" >&5 12855 cat conftest.$ac_ext >&5 12856 fi 12857 rm -rf conftest* conftst* 12858 12859 # Do not use the global_symbol_pipe unless it works. 12860 if test "$pipe_works" = yes; then 12861 break 12862 else 12863 lt_cv_sys_global_symbol_pipe= 12864 fi 12865done 12866 12867fi 12868 12869if test -z "$lt_cv_sys_global_symbol_pipe"; then 12870 lt_cv_sys_global_symbol_to_cdecl= 12871fi 12872if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12874$as_echo "failed" >&6; } 12875else 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12877$as_echo "ok" >&6; } 12878fi 12879 12880# Response file support. 12881if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12882 nm_file_list_spec='@' 12883elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12884 nm_file_list_spec='@' 12885fi 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12914$as_echo_n "checking for sysroot... " >&6; } 12915 12916# Check whether --with-sysroot was given. 12917if test "${with_sysroot+set}" = set; then : 12918 withval=$with_sysroot; 12919else 12920 with_sysroot=no 12921fi 12922 12923 12924lt_sysroot= 12925case ${with_sysroot} in #( 12926 yes) 12927 if test "$GCC" = yes; then 12928 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12929 fi 12930 ;; #( 12931 /*) 12932 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12933 ;; #( 12934 no|'') 12935 ;; #( 12936 *) 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12938$as_echo "${with_sysroot}" >&6; } 12939 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12940 ;; 12941esac 12942 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12944$as_echo "${lt_sysroot:-no}" >&6; } 12945 12946 12947 12948 12949 12950# Check whether --enable-libtool-lock was given. 12951if test "${enable_libtool_lock+set}" = set; then : 12952 enableval=$enable_libtool_lock; 12953fi 12954 12955test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12956 12957# Some flags need to be propagated to the compiler or linker for good 12958# libtool support. 12959case $host in 12960ia64-*-hpux*) 12961 # Find out which ABI we are using. 12962 echo 'int i;' > conftest.$ac_ext 12963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12964 (eval $ac_compile) 2>&5 12965 ac_status=$? 12966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12967 test $ac_status = 0; }; then 12968 case `/usr/bin/file conftest.$ac_objext` in 12969 *ELF-32*) 12970 HPUX_IA64_MODE="32" 12971 ;; 12972 *ELF-64*) 12973 HPUX_IA64_MODE="64" 12974 ;; 12975 esac 12976 fi 12977 rm -rf conftest* 12978 ;; 12979*-*-irix6*) 12980 # Find out which ABI we are using. 12981 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12983 (eval $ac_compile) 2>&5 12984 ac_status=$? 12985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12986 test $ac_status = 0; }; then 12987 if test "$lt_cv_prog_gnu_ld" = yes; then 12988 case `/usr/bin/file conftest.$ac_objext` in 12989 *32-bit*) 12990 LD="${LD-ld} -melf32bsmip" 12991 ;; 12992 *N32*) 12993 LD="${LD-ld} -melf32bmipn32" 12994 ;; 12995 *64-bit*) 12996 LD="${LD-ld} -melf64bmip" 12997 ;; 12998 esac 12999 else 13000 case `/usr/bin/file conftest.$ac_objext` in 13001 *32-bit*) 13002 LD="${LD-ld} -32" 13003 ;; 13004 *N32*) 13005 LD="${LD-ld} -n32" 13006 ;; 13007 *64-bit*) 13008 LD="${LD-ld} -64" 13009 ;; 13010 esac 13011 fi 13012 fi 13013 rm -rf conftest* 13014 ;; 13015 13016x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13017s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13018 # Find out which ABI we are using. 13019 echo 'int i;' > conftest.$ac_ext 13020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13021 (eval $ac_compile) 2>&5 13022 ac_status=$? 13023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13024 test $ac_status = 0; }; then 13025 case `/usr/bin/file conftest.o` in 13026 *32-bit*) 13027 case $host in 13028 x86_64-*kfreebsd*-gnu) 13029 LD="${LD-ld} -m elf_i386_fbsd" 13030 ;; 13031 x86_64-*linux*) 13032 case `/usr/bin/file conftest.o` in 13033 *x86-64*) 13034 LD="${LD-ld} -m elf32_x86_64" 13035 ;; 13036 *) 13037 LD="${LD-ld} -m elf_i386" 13038 ;; 13039 esac 13040 ;; 13041 powerpc64le-*) 13042 LD="${LD-ld} -m elf32lppclinux" 13043 ;; 13044 powerpc64-*) 13045 LD="${LD-ld} -m elf32ppclinux" 13046 ;; 13047 s390x-*linux*) 13048 LD="${LD-ld} -m elf_s390" 13049 ;; 13050 sparc64-*linux*) 13051 LD="${LD-ld} -m elf32_sparc" 13052 ;; 13053 esac 13054 ;; 13055 *64-bit*) 13056 case $host in 13057 x86_64-*kfreebsd*-gnu) 13058 LD="${LD-ld} -m elf_x86_64_fbsd" 13059 ;; 13060 x86_64-*linux*) 13061 LD="${LD-ld} -m elf_x86_64" 13062 ;; 13063 powerpcle-*) 13064 LD="${LD-ld} -m elf64lppc" 13065 ;; 13066 powerpc-*) 13067 LD="${LD-ld} -m elf64ppc" 13068 ;; 13069 s390*-*linux*|s390*-*tpf*) 13070 LD="${LD-ld} -m elf64_s390" 13071 ;; 13072 sparc*-*linux*) 13073 LD="${LD-ld} -m elf64_sparc" 13074 ;; 13075 esac 13076 ;; 13077 esac 13078 fi 13079 rm -rf conftest* 13080 ;; 13081 13082*-*-sco3.2v5*) 13083 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13084 SAVE_CFLAGS="$CFLAGS" 13085 CFLAGS="$CFLAGS -belf" 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13087$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13088if ${lt_cv_cc_needs_belf+:} false; then : 13089 $as_echo_n "(cached) " >&6 13090else 13091 ac_ext=c 13092ac_cpp='$CPP $CPPFLAGS' 13093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13095ac_compiler_gnu=$ac_cv_c_compiler_gnu 13096 13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13098/* end confdefs.h. */ 13099 13100int 13101main () 13102{ 13103 13104 ; 13105 return 0; 13106} 13107_ACEOF 13108if ac_fn_c_try_link "$LINENO"; then : 13109 lt_cv_cc_needs_belf=yes 13110else 13111 lt_cv_cc_needs_belf=no 13112fi 13113rm -f core conftest.err conftest.$ac_objext \ 13114 conftest$ac_exeext conftest.$ac_ext 13115 ac_ext=c 13116ac_cpp='$CPP $CPPFLAGS' 13117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13119ac_compiler_gnu=$ac_cv_c_compiler_gnu 13120 13121fi 13122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13123$as_echo "$lt_cv_cc_needs_belf" >&6; } 13124 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13126 CFLAGS="$SAVE_CFLAGS" 13127 fi 13128 ;; 13129*-*solaris*) 13130 # Find out which ABI we are using. 13131 echo 'int i;' > conftest.$ac_ext 13132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13133 (eval $ac_compile) 2>&5 13134 ac_status=$? 13135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13136 test $ac_status = 0; }; then 13137 case `/usr/bin/file conftest.o` in 13138 *64-bit*) 13139 case $lt_cv_prog_gnu_ld in 13140 yes*) 13141 case $host in 13142 i?86-*-solaris*) 13143 LD="${LD-ld} -m elf_x86_64" 13144 ;; 13145 sparc*-*-solaris*) 13146 LD="${LD-ld} -m elf64_sparc" 13147 ;; 13148 esac 13149 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13150 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13151 LD="${LD-ld}_sol2" 13152 fi 13153 ;; 13154 *) 13155 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13156 LD="${LD-ld} -64" 13157 fi 13158 ;; 13159 esac 13160 ;; 13161 esac 13162 fi 13163 rm -rf conftest* 13164 ;; 13165esac 13166 13167need_locks="$enable_libtool_lock" 13168 13169if test -n "$ac_tool_prefix"; then 13170 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13171set dummy ${ac_tool_prefix}mt; ac_word=$2 13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13173$as_echo_n "checking for $ac_word... " >&6; } 13174if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13175 $as_echo_n "(cached) " >&6 13176else 13177 if test -n "$MANIFEST_TOOL"; then 13178 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13179else 13180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13181for as_dir in $PATH 13182do 13183 IFS=$as_save_IFS 13184 test -z "$as_dir" && as_dir=. 13185 for ac_exec_ext in '' $ac_executable_extensions; do 13186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13187 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13189 break 2 13190 fi 13191done 13192 done 13193IFS=$as_save_IFS 13194 13195fi 13196fi 13197MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13198if test -n "$MANIFEST_TOOL"; then 13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13200$as_echo "$MANIFEST_TOOL" >&6; } 13201else 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13203$as_echo "no" >&6; } 13204fi 13205 13206 13207fi 13208if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13209 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13210 # Extract the first word of "mt", so it can be a program name with args. 13211set dummy mt; ac_word=$2 13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13213$as_echo_n "checking for $ac_word... " >&6; } 13214if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13215 $as_echo_n "(cached) " >&6 13216else 13217 if test -n "$ac_ct_MANIFEST_TOOL"; then 13218 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13219else 13220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13221for as_dir in $PATH 13222do 13223 IFS=$as_save_IFS 13224 test -z "$as_dir" && as_dir=. 13225 for ac_exec_ext in '' $ac_executable_extensions; do 13226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13227 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13229 break 2 13230 fi 13231done 13232 done 13233IFS=$as_save_IFS 13234 13235fi 13236fi 13237ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13238if test -n "$ac_ct_MANIFEST_TOOL"; then 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13240$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13241else 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13243$as_echo "no" >&6; } 13244fi 13245 13246 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13247 MANIFEST_TOOL=":" 13248 else 13249 case $cross_compiling:$ac_tool_warned in 13250yes:) 13251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13253ac_tool_warned=yes ;; 13254esac 13255 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13256 fi 13257else 13258 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13259fi 13260 13261test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13263$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13264if ${lt_cv_path_mainfest_tool+:} false; then : 13265 $as_echo_n "(cached) " >&6 13266else 13267 lt_cv_path_mainfest_tool=no 13268 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13269 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13270 cat conftest.err >&5 13271 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13272 lt_cv_path_mainfest_tool=yes 13273 fi 13274 rm -f conftest* 13275fi 13276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13277$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13278if test "x$lt_cv_path_mainfest_tool" != xyes; then 13279 MANIFEST_TOOL=: 13280fi 13281 13282 13283 13284 13285 13286 13287 case $host_os in 13288 rhapsody* | darwin*) 13289 if test -n "$ac_tool_prefix"; then 13290 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13291set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13293$as_echo_n "checking for $ac_word... " >&6; } 13294if ${ac_cv_prog_DSYMUTIL+:} false; then : 13295 $as_echo_n "(cached) " >&6 13296else 13297 if test -n "$DSYMUTIL"; then 13298 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13299else 13300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13301for as_dir in $PATH 13302do 13303 IFS=$as_save_IFS 13304 test -z "$as_dir" && as_dir=. 13305 for ac_exec_ext in '' $ac_executable_extensions; do 13306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13307 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13309 break 2 13310 fi 13311done 13312 done 13313IFS=$as_save_IFS 13314 13315fi 13316fi 13317DSYMUTIL=$ac_cv_prog_DSYMUTIL 13318if test -n "$DSYMUTIL"; then 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13320$as_echo "$DSYMUTIL" >&6; } 13321else 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13323$as_echo "no" >&6; } 13324fi 13325 13326 13327fi 13328if test -z "$ac_cv_prog_DSYMUTIL"; then 13329 ac_ct_DSYMUTIL=$DSYMUTIL 13330 # Extract the first word of "dsymutil", so it can be a program name with args. 13331set dummy dsymutil; ac_word=$2 13332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13333$as_echo_n "checking for $ac_word... " >&6; } 13334if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13335 $as_echo_n "(cached) " >&6 13336else 13337 if test -n "$ac_ct_DSYMUTIL"; then 13338 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13339else 13340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13341for as_dir in $PATH 13342do 13343 IFS=$as_save_IFS 13344 test -z "$as_dir" && as_dir=. 13345 for ac_exec_ext in '' $ac_executable_extensions; do 13346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13347 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13349 break 2 13350 fi 13351done 13352 done 13353IFS=$as_save_IFS 13354 13355fi 13356fi 13357ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13358if test -n "$ac_ct_DSYMUTIL"; then 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13360$as_echo "$ac_ct_DSYMUTIL" >&6; } 13361else 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13363$as_echo "no" >&6; } 13364fi 13365 13366 if test "x$ac_ct_DSYMUTIL" = x; then 13367 DSYMUTIL=":" 13368 else 13369 case $cross_compiling:$ac_tool_warned in 13370yes:) 13371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13373ac_tool_warned=yes ;; 13374esac 13375 DSYMUTIL=$ac_ct_DSYMUTIL 13376 fi 13377else 13378 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13379fi 13380 13381 if test -n "$ac_tool_prefix"; then 13382 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13383set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13385$as_echo_n "checking for $ac_word... " >&6; } 13386if ${ac_cv_prog_NMEDIT+:} false; then : 13387 $as_echo_n "(cached) " >&6 13388else 13389 if test -n "$NMEDIT"; then 13390 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13391else 13392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13393for as_dir in $PATH 13394do 13395 IFS=$as_save_IFS 13396 test -z "$as_dir" && as_dir=. 13397 for ac_exec_ext in '' $ac_executable_extensions; do 13398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13399 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13401 break 2 13402 fi 13403done 13404 done 13405IFS=$as_save_IFS 13406 13407fi 13408fi 13409NMEDIT=$ac_cv_prog_NMEDIT 13410if test -n "$NMEDIT"; then 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13412$as_echo "$NMEDIT" >&6; } 13413else 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13415$as_echo "no" >&6; } 13416fi 13417 13418 13419fi 13420if test -z "$ac_cv_prog_NMEDIT"; then 13421 ac_ct_NMEDIT=$NMEDIT 13422 # Extract the first word of "nmedit", so it can be a program name with args. 13423set dummy nmedit; ac_word=$2 13424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13425$as_echo_n "checking for $ac_word... " >&6; } 13426if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13427 $as_echo_n "(cached) " >&6 13428else 13429 if test -n "$ac_ct_NMEDIT"; then 13430 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13431else 13432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13433for as_dir in $PATH 13434do 13435 IFS=$as_save_IFS 13436 test -z "$as_dir" && as_dir=. 13437 for ac_exec_ext in '' $ac_executable_extensions; do 13438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13439 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13441 break 2 13442 fi 13443done 13444 done 13445IFS=$as_save_IFS 13446 13447fi 13448fi 13449ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13450if test -n "$ac_ct_NMEDIT"; then 13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13452$as_echo "$ac_ct_NMEDIT" >&6; } 13453else 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13455$as_echo "no" >&6; } 13456fi 13457 13458 if test "x$ac_ct_NMEDIT" = x; then 13459 NMEDIT=":" 13460 else 13461 case $cross_compiling:$ac_tool_warned in 13462yes:) 13463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13465ac_tool_warned=yes ;; 13466esac 13467 NMEDIT=$ac_ct_NMEDIT 13468 fi 13469else 13470 NMEDIT="$ac_cv_prog_NMEDIT" 13471fi 13472 13473 if test -n "$ac_tool_prefix"; then 13474 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13475set dummy ${ac_tool_prefix}lipo; ac_word=$2 13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13477$as_echo_n "checking for $ac_word... " >&6; } 13478if ${ac_cv_prog_LIPO+:} false; then : 13479 $as_echo_n "(cached) " >&6 13480else 13481 if test -n "$LIPO"; then 13482 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13483else 13484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13485for as_dir in $PATH 13486do 13487 IFS=$as_save_IFS 13488 test -z "$as_dir" && as_dir=. 13489 for ac_exec_ext in '' $ac_executable_extensions; do 13490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13491 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13493 break 2 13494 fi 13495done 13496 done 13497IFS=$as_save_IFS 13498 13499fi 13500fi 13501LIPO=$ac_cv_prog_LIPO 13502if test -n "$LIPO"; then 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13504$as_echo "$LIPO" >&6; } 13505else 13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13507$as_echo "no" >&6; } 13508fi 13509 13510 13511fi 13512if test -z "$ac_cv_prog_LIPO"; then 13513 ac_ct_LIPO=$LIPO 13514 # Extract the first word of "lipo", so it can be a program name with args. 13515set dummy lipo; ac_word=$2 13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13517$as_echo_n "checking for $ac_word... " >&6; } 13518if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13519 $as_echo_n "(cached) " >&6 13520else 13521 if test -n "$ac_ct_LIPO"; then 13522 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13523else 13524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13525for as_dir in $PATH 13526do 13527 IFS=$as_save_IFS 13528 test -z "$as_dir" && as_dir=. 13529 for ac_exec_ext in '' $ac_executable_extensions; do 13530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13531 ac_cv_prog_ac_ct_LIPO="lipo" 13532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13533 break 2 13534 fi 13535done 13536 done 13537IFS=$as_save_IFS 13538 13539fi 13540fi 13541ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13542if test -n "$ac_ct_LIPO"; then 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13544$as_echo "$ac_ct_LIPO" >&6; } 13545else 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13547$as_echo "no" >&6; } 13548fi 13549 13550 if test "x$ac_ct_LIPO" = x; then 13551 LIPO=":" 13552 else 13553 case $cross_compiling:$ac_tool_warned in 13554yes:) 13555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13557ac_tool_warned=yes ;; 13558esac 13559 LIPO=$ac_ct_LIPO 13560 fi 13561else 13562 LIPO="$ac_cv_prog_LIPO" 13563fi 13564 13565 if test -n "$ac_tool_prefix"; then 13566 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13567set dummy ${ac_tool_prefix}otool; ac_word=$2 13568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13569$as_echo_n "checking for $ac_word... " >&6; } 13570if ${ac_cv_prog_OTOOL+:} false; then : 13571 $as_echo_n "(cached) " >&6 13572else 13573 if test -n "$OTOOL"; then 13574 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13575else 13576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13577for as_dir in $PATH 13578do 13579 IFS=$as_save_IFS 13580 test -z "$as_dir" && as_dir=. 13581 for ac_exec_ext in '' $ac_executable_extensions; do 13582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13583 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13585 break 2 13586 fi 13587done 13588 done 13589IFS=$as_save_IFS 13590 13591fi 13592fi 13593OTOOL=$ac_cv_prog_OTOOL 13594if test -n "$OTOOL"; then 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13596$as_echo "$OTOOL" >&6; } 13597else 13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13599$as_echo "no" >&6; } 13600fi 13601 13602 13603fi 13604if test -z "$ac_cv_prog_OTOOL"; then 13605 ac_ct_OTOOL=$OTOOL 13606 # Extract the first word of "otool", so it can be a program name with args. 13607set dummy otool; ac_word=$2 13608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13609$as_echo_n "checking for $ac_word... " >&6; } 13610if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13611 $as_echo_n "(cached) " >&6 13612else 13613 if test -n "$ac_ct_OTOOL"; then 13614 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13615else 13616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13617for as_dir in $PATH 13618do 13619 IFS=$as_save_IFS 13620 test -z "$as_dir" && as_dir=. 13621 for ac_exec_ext in '' $ac_executable_extensions; do 13622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13623 ac_cv_prog_ac_ct_OTOOL="otool" 13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13625 break 2 13626 fi 13627done 13628 done 13629IFS=$as_save_IFS 13630 13631fi 13632fi 13633ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13634if test -n "$ac_ct_OTOOL"; then 13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13636$as_echo "$ac_ct_OTOOL" >&6; } 13637else 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13639$as_echo "no" >&6; } 13640fi 13641 13642 if test "x$ac_ct_OTOOL" = x; then 13643 OTOOL=":" 13644 else 13645 case $cross_compiling:$ac_tool_warned in 13646yes:) 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13649ac_tool_warned=yes ;; 13650esac 13651 OTOOL=$ac_ct_OTOOL 13652 fi 13653else 13654 OTOOL="$ac_cv_prog_OTOOL" 13655fi 13656 13657 if test -n "$ac_tool_prefix"; then 13658 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13659set dummy ${ac_tool_prefix}otool64; ac_word=$2 13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13661$as_echo_n "checking for $ac_word... " >&6; } 13662if ${ac_cv_prog_OTOOL64+:} false; then : 13663 $as_echo_n "(cached) " >&6 13664else 13665 if test -n "$OTOOL64"; then 13666 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13667else 13668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13669for as_dir in $PATH 13670do 13671 IFS=$as_save_IFS 13672 test -z "$as_dir" && as_dir=. 13673 for ac_exec_ext in '' $ac_executable_extensions; do 13674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13675 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13677 break 2 13678 fi 13679done 13680 done 13681IFS=$as_save_IFS 13682 13683fi 13684fi 13685OTOOL64=$ac_cv_prog_OTOOL64 13686if test -n "$OTOOL64"; then 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13688$as_echo "$OTOOL64" >&6; } 13689else 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13691$as_echo "no" >&6; } 13692fi 13693 13694 13695fi 13696if test -z "$ac_cv_prog_OTOOL64"; then 13697 ac_ct_OTOOL64=$OTOOL64 13698 # Extract the first word of "otool64", so it can be a program name with args. 13699set dummy otool64; ac_word=$2 13700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13701$as_echo_n "checking for $ac_word... " >&6; } 13702if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13703 $as_echo_n "(cached) " >&6 13704else 13705 if test -n "$ac_ct_OTOOL64"; then 13706 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13707else 13708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13709for as_dir in $PATH 13710do 13711 IFS=$as_save_IFS 13712 test -z "$as_dir" && as_dir=. 13713 for ac_exec_ext in '' $ac_executable_extensions; do 13714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13715 ac_cv_prog_ac_ct_OTOOL64="otool64" 13716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13717 break 2 13718 fi 13719done 13720 done 13721IFS=$as_save_IFS 13722 13723fi 13724fi 13725ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13726if test -n "$ac_ct_OTOOL64"; then 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13728$as_echo "$ac_ct_OTOOL64" >&6; } 13729else 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13731$as_echo "no" >&6; } 13732fi 13733 13734 if test "x$ac_ct_OTOOL64" = x; then 13735 OTOOL64=":" 13736 else 13737 case $cross_compiling:$ac_tool_warned in 13738yes:) 13739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13741ac_tool_warned=yes ;; 13742esac 13743 OTOOL64=$ac_ct_OTOOL64 13744 fi 13745else 13746 OTOOL64="$ac_cv_prog_OTOOL64" 13747fi 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13776$as_echo_n "checking for -single_module linker flag... " >&6; } 13777if ${lt_cv_apple_cc_single_mod+:} false; then : 13778 $as_echo_n "(cached) " >&6 13779else 13780 lt_cv_apple_cc_single_mod=no 13781 if test -z "${LT_MULTI_MODULE}"; then 13782 # By default we will add the -single_module flag. You can override 13783 # by either setting the environment variable LT_MULTI_MODULE 13784 # non-empty at configure time, or by adding -multi_module to the 13785 # link flags. 13786 rm -rf libconftest.dylib* 13787 echo "int foo(void){return 1;}" > conftest.c 13788 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13789-dynamiclib -Wl,-single_module conftest.c" >&5 13790 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13791 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13792 _lt_result=$? 13793 # If there is a non-empty error log, and "single_module" 13794 # appears in it, assume the flag caused a linker warning 13795 if test -s conftest.err && $GREP single_module conftest.err; then 13796 cat conftest.err >&5 13797 # Otherwise, if the output was created with a 0 exit code from 13798 # the compiler, it worked. 13799 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13800 lt_cv_apple_cc_single_mod=yes 13801 else 13802 cat conftest.err >&5 13803 fi 13804 rm -rf libconftest.dylib* 13805 rm -f conftest.* 13806 fi 13807fi 13808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13809$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13810 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13812$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13813if ${lt_cv_ld_exported_symbols_list+:} false; then : 13814 $as_echo_n "(cached) " >&6 13815else 13816 lt_cv_ld_exported_symbols_list=no 13817 save_LDFLAGS=$LDFLAGS 13818 echo "_main" > conftest.sym 13819 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13821/* end confdefs.h. */ 13822 13823int 13824main () 13825{ 13826 13827 ; 13828 return 0; 13829} 13830_ACEOF 13831if ac_fn_c_try_link "$LINENO"; then : 13832 lt_cv_ld_exported_symbols_list=yes 13833else 13834 lt_cv_ld_exported_symbols_list=no 13835fi 13836rm -f core conftest.err conftest.$ac_objext \ 13837 conftest$ac_exeext conftest.$ac_ext 13838 LDFLAGS="$save_LDFLAGS" 13839 13840fi 13841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13842$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13843 13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13845$as_echo_n "checking for -force_load linker flag... " >&6; } 13846if ${lt_cv_ld_force_load+:} false; then : 13847 $as_echo_n "(cached) " >&6 13848else 13849 lt_cv_ld_force_load=no 13850 cat > conftest.c << _LT_EOF 13851int forced_loaded() { return 2;} 13852_LT_EOF 13853 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13854 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13855 echo "$AR cru libconftest.a conftest.o" >&5 13856 $AR cru libconftest.a conftest.o 2>&5 13857 echo "$RANLIB libconftest.a" >&5 13858 $RANLIB libconftest.a 2>&5 13859 cat > conftest.c << _LT_EOF 13860int main() { return 0;} 13861_LT_EOF 13862 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13863 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13864 _lt_result=$? 13865 if test -s conftest.err && $GREP force_load conftest.err; then 13866 cat conftest.err >&5 13867 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13868 lt_cv_ld_force_load=yes 13869 else 13870 cat conftest.err >&5 13871 fi 13872 rm -f conftest.err libconftest.a conftest conftest.c 13873 rm -rf conftest.dSYM 13874 13875fi 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13877$as_echo "$lt_cv_ld_force_load" >&6; } 13878 case $host_os in 13879 rhapsody* | darwin1.[012]) 13880 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13881 darwin1.*) 13882 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13883 darwin*) # darwin 5.x on 13884 # if running on 10.5 or later, the deployment target defaults 13885 # to the OS version, if on x86, and 10.4, the deployment 13886 # target defaults to 10.4. Don't you love it? 13887 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13888 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13889 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13890 10.[012]*) 13891 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13892 10.*) 13893 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13894 esac 13895 ;; 13896 esac 13897 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13898 _lt_dar_single_mod='$single_module' 13899 fi 13900 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13901 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13902 else 13903 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13904 fi 13905 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13906 _lt_dsymutil='~$DSYMUTIL $lib || :' 13907 else 13908 _lt_dsymutil= 13909 fi 13910 ;; 13911 esac 13912 13913for ac_header in dlfcn.h 13914do : 13915 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13916" 13917if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13918 cat >>confdefs.h <<_ACEOF 13919#define HAVE_DLFCN_H 1 13920_ACEOF 13921 13922fi 13923 13924done 13925 13926 13927 13928 13929 13930# Set options 13931 13932 13933 13934 enable_dlopen=no 13935 13936 13937 enable_win32_dll=no 13938 13939 13940 # Check whether --enable-shared was given. 13941if test "${enable_shared+set}" = set; then : 13942 enableval=$enable_shared; p=${PACKAGE-default} 13943 case $enableval in 13944 yes) enable_shared=yes ;; 13945 no) enable_shared=no ;; 13946 *) 13947 enable_shared=no 13948 # Look at the argument we got. We use all the common list separators. 13949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13950 for pkg in $enableval; do 13951 IFS="$lt_save_ifs" 13952 if test "X$pkg" = "X$p"; then 13953 enable_shared=yes 13954 fi 13955 done 13956 IFS="$lt_save_ifs" 13957 ;; 13958 esac 13959else 13960 enable_shared=yes 13961fi 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973# Check whether --with-pic was given. 13974if test "${with_pic+set}" = set; then : 13975 withval=$with_pic; lt_p=${PACKAGE-default} 13976 case $withval in 13977 yes|no) pic_mode=$withval ;; 13978 *) 13979 pic_mode=default 13980 # Look at the argument we got. We use all the common list separators. 13981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13982 for lt_pkg in $withval; do 13983 IFS="$lt_save_ifs" 13984 if test "X$lt_pkg" = "X$lt_p"; then 13985 pic_mode=yes 13986 fi 13987 done 13988 IFS="$lt_save_ifs" 13989 ;; 13990 esac 13991else 13992 pic_mode=default 13993fi 13994 13995 13996test -z "$pic_mode" && pic_mode=default 13997 13998 13999 14000 14001 14002 14003 14004 # Check whether --enable-fast-install was given. 14005if test "${enable_fast_install+set}" = set; then : 14006 enableval=$enable_fast_install; p=${PACKAGE-default} 14007 case $enableval in 14008 yes) enable_fast_install=yes ;; 14009 no) enable_fast_install=no ;; 14010 *) 14011 enable_fast_install=no 14012 # Look at the argument we got. We use all the common list separators. 14013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14014 for pkg in $enableval; do 14015 IFS="$lt_save_ifs" 14016 if test "X$pkg" = "X$p"; then 14017 enable_fast_install=yes 14018 fi 14019 done 14020 IFS="$lt_save_ifs" 14021 ;; 14022 esac 14023else 14024 enable_fast_install=yes 14025fi 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037# This can be used to rebuild libtool when needed 14038LIBTOOL_DEPS="$ltmain" 14039 14040# Always use our own libtool. 14041LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072test -z "$LN_S" && LN_S="ln -s" 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087if test -n "${ZSH_VERSION+set}" ; then 14088 setopt NO_GLOB_SUBST 14089fi 14090 14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14092$as_echo_n "checking for objdir... " >&6; } 14093if ${lt_cv_objdir+:} false; then : 14094 $as_echo_n "(cached) " >&6 14095else 14096 rm -f .libs 2>/dev/null 14097mkdir .libs 2>/dev/null 14098if test -d .libs; then 14099 lt_cv_objdir=.libs 14100else 14101 # MS-DOS does not allow filenames that begin with a dot. 14102 lt_cv_objdir=_libs 14103fi 14104rmdir .libs 2>/dev/null 14105fi 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14107$as_echo "$lt_cv_objdir" >&6; } 14108objdir=$lt_cv_objdir 14109 14110 14111 14112 14113 14114cat >>confdefs.h <<_ACEOF 14115#define LT_OBJDIR "$lt_cv_objdir/" 14116_ACEOF 14117 14118 14119 14120 14121case $host_os in 14122aix3*) 14123 # AIX sometimes has problems with the GCC collect2 program. For some 14124 # reason, if we set the COLLECT_NAMES environment variable, the problems 14125 # vanish in a puff of smoke. 14126 if test "X${COLLECT_NAMES+set}" != Xset; then 14127 COLLECT_NAMES= 14128 export COLLECT_NAMES 14129 fi 14130 ;; 14131esac 14132 14133# Global variables: 14134ofile=libtool 14135can_build_shared=yes 14136 14137# All known linkers require a `.a' archive for static linking (except MSVC, 14138# which needs '.lib'). 14139libext=a 14140 14141with_gnu_ld="$lt_cv_prog_gnu_ld" 14142 14143old_CC="$CC" 14144old_CFLAGS="$CFLAGS" 14145 14146# Set sane defaults for various variables 14147test -z "$CC" && CC=cc 14148test -z "$LTCC" && LTCC=$CC 14149test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14150test -z "$LD" && LD=ld 14151test -z "$ac_objext" && ac_objext=o 14152 14153for cc_temp in $compiler""; do 14154 case $cc_temp in 14155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14157 \-*) ;; 14158 *) break;; 14159 esac 14160done 14161cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14162 14163 14164# Only perform the check for file, if the check method requires it 14165test -z "$MAGIC_CMD" && MAGIC_CMD=file 14166case $deplibs_check_method in 14167file_magic*) 14168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14170$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14171if ${lt_cv_path_MAGIC_CMD+:} false; then : 14172 $as_echo_n "(cached) " >&6 14173else 14174 case $MAGIC_CMD in 14175[\\/*] | ?:[\\/]*) 14176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14177 ;; 14178*) 14179 lt_save_MAGIC_CMD="$MAGIC_CMD" 14180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14182 for ac_dir in $ac_dummy; do 14183 IFS="$lt_save_ifs" 14184 test -z "$ac_dir" && ac_dir=. 14185 if test -f $ac_dir/${ac_tool_prefix}file; then 14186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14187 if test -n "$file_magic_test_file"; then 14188 case $deplibs_check_method in 14189 "file_magic "*) 14190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14193 $EGREP "$file_magic_regex" > /dev/null; then 14194 : 14195 else 14196 cat <<_LT_EOF 1>&2 14197 14198*** Warning: the command libtool uses to detect shared libraries, 14199*** $file_magic_cmd, produces output that libtool cannot recognize. 14200*** The result is that libtool may fail to recognize shared libraries 14201*** as such. This will affect the creation of libtool libraries that 14202*** depend on shared libraries, but programs linked with such libtool 14203*** libraries will work regardless of this problem. Nevertheless, you 14204*** may want to report the problem to your system manager and/or to 14205*** bug-libtool@gnu.org 14206 14207_LT_EOF 14208 fi ;; 14209 esac 14210 fi 14211 break 14212 fi 14213 done 14214 IFS="$lt_save_ifs" 14215 MAGIC_CMD="$lt_save_MAGIC_CMD" 14216 ;; 14217esac 14218fi 14219 14220MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14221if test -n "$MAGIC_CMD"; then 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14223$as_echo "$MAGIC_CMD" >&6; } 14224else 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14226$as_echo "no" >&6; } 14227fi 14228 14229 14230 14231 14232 14233if test -z "$lt_cv_path_MAGIC_CMD"; then 14234 if test -n "$ac_tool_prefix"; then 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14236$as_echo_n "checking for file... " >&6; } 14237if ${lt_cv_path_MAGIC_CMD+:} false; then : 14238 $as_echo_n "(cached) " >&6 14239else 14240 case $MAGIC_CMD in 14241[\\/*] | ?:[\\/]*) 14242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14243 ;; 14244*) 14245 lt_save_MAGIC_CMD="$MAGIC_CMD" 14246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14248 for ac_dir in $ac_dummy; do 14249 IFS="$lt_save_ifs" 14250 test -z "$ac_dir" && ac_dir=. 14251 if test -f $ac_dir/file; then 14252 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14253 if test -n "$file_magic_test_file"; then 14254 case $deplibs_check_method in 14255 "file_magic "*) 14256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14259 $EGREP "$file_magic_regex" > /dev/null; then 14260 : 14261 else 14262 cat <<_LT_EOF 1>&2 14263 14264*** Warning: the command libtool uses to detect shared libraries, 14265*** $file_magic_cmd, produces output that libtool cannot recognize. 14266*** The result is that libtool may fail to recognize shared libraries 14267*** as such. This will affect the creation of libtool libraries that 14268*** depend on shared libraries, but programs linked with such libtool 14269*** libraries will work regardless of this problem. Nevertheless, you 14270*** may want to report the problem to your system manager and/or to 14271*** bug-libtool@gnu.org 14272 14273_LT_EOF 14274 fi ;; 14275 esac 14276 fi 14277 break 14278 fi 14279 done 14280 IFS="$lt_save_ifs" 14281 MAGIC_CMD="$lt_save_MAGIC_CMD" 14282 ;; 14283esac 14284fi 14285 14286MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14287if test -n "$MAGIC_CMD"; then 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14289$as_echo "$MAGIC_CMD" >&6; } 14290else 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14292$as_echo "no" >&6; } 14293fi 14294 14295 14296 else 14297 MAGIC_CMD=: 14298 fi 14299fi 14300 14301 fi 14302 ;; 14303esac 14304 14305# Use C for the default configuration in the libtool script 14306 14307lt_save_CC="$CC" 14308ac_ext=c 14309ac_cpp='$CPP $CPPFLAGS' 14310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14312ac_compiler_gnu=$ac_cv_c_compiler_gnu 14313 14314 14315# Source file extension for C test sources. 14316ac_ext=c 14317 14318# Object file extension for compiled C test sources. 14319objext=o 14320objext=$objext 14321 14322# Code to be used in simple compile tests 14323lt_simple_compile_test_code="int some_variable = 0;" 14324 14325# Code to be used in simple link tests 14326lt_simple_link_test_code='int main(){return(0);}' 14327 14328 14329 14330 14331 14332 14333 14334# If no C compiler was specified, use CC. 14335LTCC=${LTCC-"$CC"} 14336 14337# If no C compiler flags were specified, use CFLAGS. 14338LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14339 14340# Allow CC to be a program name with arguments. 14341compiler=$CC 14342 14343# Save the default compiler, since it gets overwritten when the other 14344# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14345compiler_DEFAULT=$CC 14346 14347# save warnings/boilerplate of simple test code 14348ac_outfile=conftest.$ac_objext 14349echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14350eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14351_lt_compiler_boilerplate=`cat conftest.err` 14352$RM conftest* 14353 14354ac_outfile=conftest.$ac_objext 14355echo "$lt_simple_link_test_code" >conftest.$ac_ext 14356eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14357_lt_linker_boilerplate=`cat conftest.err` 14358$RM -r conftest* 14359 14360 14361if test -n "$compiler"; then 14362 14363lt_prog_compiler_no_builtin_flag= 14364 14365if test "$GCC" = yes; then 14366 case $cc_basename in 14367 nvcc*) 14368 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14369 *) 14370 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14371 esac 14372 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14374$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14375if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14376 $as_echo_n "(cached) " >&6 14377else 14378 lt_cv_prog_compiler_rtti_exceptions=no 14379 ac_outfile=conftest.$ac_objext 14380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14381 lt_compiler_flag="-fno-rtti -fno-exceptions" 14382 # Insert the option either (1) after the last *FLAGS variable, or 14383 # (2) before a word containing "conftest.", or (3) at the end. 14384 # Note that $ac_compile itself does not contain backslashes and begins 14385 # with a dollar sign (not a hyphen), so the echo should work correctly. 14386 # The option is referenced via a variable to avoid confusing sed. 14387 lt_compile=`echo "$ac_compile" | $SED \ 14388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14390 -e 's:$: $lt_compiler_flag:'` 14391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14392 (eval "$lt_compile" 2>conftest.err) 14393 ac_status=$? 14394 cat conftest.err >&5 14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14396 if (exit $ac_status) && test -s "$ac_outfile"; then 14397 # The compiler can only warn and ignore the option if not recognized 14398 # So say no if there are warnings other than the usual output. 14399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14402 lt_cv_prog_compiler_rtti_exceptions=yes 14403 fi 14404 fi 14405 $RM conftest* 14406 14407fi 14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14409$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14410 14411if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14412 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14413else 14414 : 14415fi 14416 14417fi 14418 14419 14420 14421 14422 14423 14424 lt_prog_compiler_wl= 14425lt_prog_compiler_pic= 14426lt_prog_compiler_static= 14427 14428 14429 if test "$GCC" = yes; then 14430 lt_prog_compiler_wl='-Wl,' 14431 lt_prog_compiler_static='-static' 14432 14433 case $host_os in 14434 aix*) 14435 # All AIX code is PIC. 14436 if test "$host_cpu" = ia64; then 14437 # AIX 5 now supports IA64 processor 14438 lt_prog_compiler_static='-Bstatic' 14439 fi 14440 ;; 14441 14442 amigaos*) 14443 case $host_cpu in 14444 powerpc) 14445 # see comment about AmigaOS4 .so support 14446 lt_prog_compiler_pic='-fPIC' 14447 ;; 14448 m68k) 14449 # FIXME: we need at least 68020 code to build shared libraries, but 14450 # adding the `-m68020' flag to GCC prevents building anything better, 14451 # like `-m68040'. 14452 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14453 ;; 14454 esac 14455 ;; 14456 14457 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14458 # PIC is the default for these OSes. 14459 ;; 14460 14461 mingw* | cygwin* | pw32* | os2* | cegcc*) 14462 # This hack is so that the source file can tell whether it is being 14463 # built for inclusion in a dll (and should export symbols for example). 14464 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14465 # (--disable-auto-import) libraries 14466 lt_prog_compiler_pic='-DDLL_EXPORT' 14467 ;; 14468 14469 darwin* | rhapsody*) 14470 # PIC is the default on this platform 14471 # Common symbols not allowed in MH_DYLIB files 14472 lt_prog_compiler_pic='-fno-common' 14473 ;; 14474 14475 haiku*) 14476 # PIC is the default for Haiku. 14477 # The "-static" flag exists, but is broken. 14478 lt_prog_compiler_static= 14479 ;; 14480 14481 hpux*) 14482 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14483 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14484 # sets the default TLS model and affects inlining. 14485 case $host_cpu in 14486 hppa*64*) 14487 # +Z the default 14488 ;; 14489 *) 14490 lt_prog_compiler_pic='-fPIC' 14491 ;; 14492 esac 14493 ;; 14494 14495 interix[3-9]*) 14496 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14497 # Instead, we relocate shared libraries at runtime. 14498 ;; 14499 14500 msdosdjgpp*) 14501 # Just because we use GCC doesn't mean we suddenly get shared libraries 14502 # on systems that don't support them. 14503 lt_prog_compiler_can_build_shared=no 14504 enable_shared=no 14505 ;; 14506 14507 *nto* | *qnx*) 14508 # QNX uses GNU C++, but need to define -shared option too, otherwise 14509 # it will coredump. 14510 lt_prog_compiler_pic='-fPIC -shared' 14511 ;; 14512 14513 sysv4*MP*) 14514 if test -d /usr/nec; then 14515 lt_prog_compiler_pic=-Kconform_pic 14516 fi 14517 ;; 14518 14519 *) 14520 lt_prog_compiler_pic='-fPIC' 14521 ;; 14522 esac 14523 14524 case $cc_basename in 14525 nvcc*) # Cuda Compiler Driver 2.2 14526 lt_prog_compiler_wl='-Xlinker ' 14527 if test -n "$lt_prog_compiler_pic"; then 14528 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14529 fi 14530 ;; 14531 esac 14532 else 14533 # PORTME Check for flag to pass linker flags through the system compiler. 14534 case $host_os in 14535 aix*) 14536 lt_prog_compiler_wl='-Wl,' 14537 if test "$host_cpu" = ia64; then 14538 # AIX 5 now supports IA64 processor 14539 lt_prog_compiler_static='-Bstatic' 14540 else 14541 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14542 fi 14543 ;; 14544 14545 mingw* | cygwin* | pw32* | os2* | cegcc*) 14546 # This hack is so that the source file can tell whether it is being 14547 # built for inclusion in a dll (and should export symbols for example). 14548 lt_prog_compiler_pic='-DDLL_EXPORT' 14549 ;; 14550 14551 hpux9* | hpux10* | hpux11*) 14552 lt_prog_compiler_wl='-Wl,' 14553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14554 # not for PA HP-UX. 14555 case $host_cpu in 14556 hppa*64*|ia64*) 14557 # +Z the default 14558 ;; 14559 *) 14560 lt_prog_compiler_pic='+Z' 14561 ;; 14562 esac 14563 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14564 lt_prog_compiler_static='${wl}-a ${wl}archive' 14565 ;; 14566 14567 irix5* | irix6* | nonstopux*) 14568 lt_prog_compiler_wl='-Wl,' 14569 # PIC (with -KPIC) is the default. 14570 lt_prog_compiler_static='-non_shared' 14571 ;; 14572 14573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14574 case $cc_basename in 14575 # old Intel for x86_64 which still supported -KPIC. 14576 ecc*) 14577 lt_prog_compiler_wl='-Wl,' 14578 lt_prog_compiler_pic='-KPIC' 14579 lt_prog_compiler_static='-static' 14580 ;; 14581 # icc used to be incompatible with GCC. 14582 # ICC 10 doesn't accept -KPIC any more. 14583 icc* | ifort*) 14584 lt_prog_compiler_wl='-Wl,' 14585 lt_prog_compiler_pic='-fPIC' 14586 lt_prog_compiler_static='-static' 14587 ;; 14588 # Lahey Fortran 8.1. 14589 lf95*) 14590 lt_prog_compiler_wl='-Wl,' 14591 lt_prog_compiler_pic='--shared' 14592 lt_prog_compiler_static='--static' 14593 ;; 14594 nagfor*) 14595 # NAG Fortran compiler 14596 lt_prog_compiler_wl='-Wl,-Wl,,' 14597 lt_prog_compiler_pic='-PIC' 14598 lt_prog_compiler_static='-Bstatic' 14599 ;; 14600 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14601 # Portland Group compilers (*not* the Pentium gcc compiler, 14602 # which looks to be a dead project) 14603 lt_prog_compiler_wl='-Wl,' 14604 lt_prog_compiler_pic='-fpic' 14605 lt_prog_compiler_static='-Bstatic' 14606 ;; 14607 ccc*) 14608 lt_prog_compiler_wl='-Wl,' 14609 # All Alpha code is PIC. 14610 lt_prog_compiler_static='-non_shared' 14611 ;; 14612 xl* | bgxl* | bgf* | mpixl*) 14613 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14614 lt_prog_compiler_wl='-Wl,' 14615 lt_prog_compiler_pic='-qpic' 14616 lt_prog_compiler_static='-qstaticlink' 14617 ;; 14618 *) 14619 case `$CC -V 2>&1 | sed 5q` in 14620 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14621 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14622 lt_prog_compiler_pic='-KPIC' 14623 lt_prog_compiler_static='-Bstatic' 14624 lt_prog_compiler_wl='' 14625 ;; 14626 *Sun\ F* | *Sun*Fortran*) 14627 lt_prog_compiler_pic='-KPIC' 14628 lt_prog_compiler_static='-Bstatic' 14629 lt_prog_compiler_wl='-Qoption ld ' 14630 ;; 14631 *Sun\ C*) 14632 # Sun C 5.9 14633 lt_prog_compiler_pic='-KPIC' 14634 lt_prog_compiler_static='-Bstatic' 14635 lt_prog_compiler_wl='-Wl,' 14636 ;; 14637 *Intel*\ [CF]*Compiler*) 14638 lt_prog_compiler_wl='-Wl,' 14639 lt_prog_compiler_pic='-fPIC' 14640 lt_prog_compiler_static='-static' 14641 ;; 14642 *Portland\ Group*) 14643 lt_prog_compiler_wl='-Wl,' 14644 lt_prog_compiler_pic='-fpic' 14645 lt_prog_compiler_static='-Bstatic' 14646 ;; 14647 esac 14648 ;; 14649 esac 14650 ;; 14651 14652 newsos6) 14653 lt_prog_compiler_pic='-KPIC' 14654 lt_prog_compiler_static='-Bstatic' 14655 ;; 14656 14657 *nto* | *qnx*) 14658 # QNX uses GNU C++, but need to define -shared option too, otherwise 14659 # it will coredump. 14660 lt_prog_compiler_pic='-fPIC -shared' 14661 ;; 14662 14663 osf3* | osf4* | osf5*) 14664 lt_prog_compiler_wl='-Wl,' 14665 # All OSF/1 code is PIC. 14666 lt_prog_compiler_static='-non_shared' 14667 ;; 14668 14669 rdos*) 14670 lt_prog_compiler_static='-non_shared' 14671 ;; 14672 14673 solaris*) 14674 lt_prog_compiler_pic='-KPIC' 14675 lt_prog_compiler_static='-Bstatic' 14676 case $cc_basename in 14677 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14678 lt_prog_compiler_wl='-Qoption ld ';; 14679 *) 14680 lt_prog_compiler_wl='-Wl,';; 14681 esac 14682 ;; 14683 14684 sunos4*) 14685 lt_prog_compiler_wl='-Qoption ld ' 14686 lt_prog_compiler_pic='-PIC' 14687 lt_prog_compiler_static='-Bstatic' 14688 ;; 14689 14690 sysv4 | sysv4.2uw2* | sysv4.3*) 14691 lt_prog_compiler_wl='-Wl,' 14692 lt_prog_compiler_pic='-KPIC' 14693 lt_prog_compiler_static='-Bstatic' 14694 ;; 14695 14696 sysv4*MP*) 14697 if test -d /usr/nec ;then 14698 lt_prog_compiler_pic='-Kconform_pic' 14699 lt_prog_compiler_static='-Bstatic' 14700 fi 14701 ;; 14702 14703 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14704 lt_prog_compiler_wl='-Wl,' 14705 lt_prog_compiler_pic='-KPIC' 14706 lt_prog_compiler_static='-Bstatic' 14707 ;; 14708 14709 unicos*) 14710 lt_prog_compiler_wl='-Wl,' 14711 lt_prog_compiler_can_build_shared=no 14712 ;; 14713 14714 uts4*) 14715 lt_prog_compiler_pic='-pic' 14716 lt_prog_compiler_static='-Bstatic' 14717 ;; 14718 14719 *) 14720 lt_prog_compiler_can_build_shared=no 14721 ;; 14722 esac 14723 fi 14724 14725case $host_os in 14726 # For platforms which do not support PIC, -DPIC is meaningless: 14727 *djgpp*) 14728 lt_prog_compiler_pic= 14729 ;; 14730 *) 14731 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14732 ;; 14733esac 14734 14735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14736$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14737if ${lt_cv_prog_compiler_pic+:} false; then : 14738 $as_echo_n "(cached) " >&6 14739else 14740 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14741fi 14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14743$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14744lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14745 14746# 14747# Check to make sure the PIC flag actually works. 14748# 14749if test -n "$lt_prog_compiler_pic"; then 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14751$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14752if ${lt_cv_prog_compiler_pic_works+:} false; then : 14753 $as_echo_n "(cached) " >&6 14754else 14755 lt_cv_prog_compiler_pic_works=no 14756 ac_outfile=conftest.$ac_objext 14757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14758 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14759 # Insert the option either (1) after the last *FLAGS variable, or 14760 # (2) before a word containing "conftest.", or (3) at the end. 14761 # Note that $ac_compile itself does not contain backslashes and begins 14762 # with a dollar sign (not a hyphen), so the echo should work correctly. 14763 # The option is referenced via a variable to avoid confusing sed. 14764 lt_compile=`echo "$ac_compile" | $SED \ 14765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14767 -e 's:$: $lt_compiler_flag:'` 14768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14769 (eval "$lt_compile" 2>conftest.err) 14770 ac_status=$? 14771 cat conftest.err >&5 14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14773 if (exit $ac_status) && test -s "$ac_outfile"; then 14774 # The compiler can only warn and ignore the option if not recognized 14775 # So say no if there are warnings other than the usual output. 14776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14779 lt_cv_prog_compiler_pic_works=yes 14780 fi 14781 fi 14782 $RM conftest* 14783 14784fi 14785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14786$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14787 14788if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14789 case $lt_prog_compiler_pic in 14790 "" | " "*) ;; 14791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14792 esac 14793else 14794 lt_prog_compiler_pic= 14795 lt_prog_compiler_can_build_shared=no 14796fi 14797 14798fi 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810# 14811# Check to make sure the static flag actually works. 14812# 14813wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14815$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14816if ${lt_cv_prog_compiler_static_works+:} false; then : 14817 $as_echo_n "(cached) " >&6 14818else 14819 lt_cv_prog_compiler_static_works=no 14820 save_LDFLAGS="$LDFLAGS" 14821 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14822 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14824 # The linker can only warn and ignore the option if not recognized 14825 # So say no if there are warnings 14826 if test -s conftest.err; then 14827 # Append any errors to the config.log. 14828 cat conftest.err 1>&5 14829 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14831 if diff conftest.exp conftest.er2 >/dev/null; then 14832 lt_cv_prog_compiler_static_works=yes 14833 fi 14834 else 14835 lt_cv_prog_compiler_static_works=yes 14836 fi 14837 fi 14838 $RM -r conftest* 14839 LDFLAGS="$save_LDFLAGS" 14840 14841fi 14842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14843$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14844 14845if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14846 : 14847else 14848 lt_prog_compiler_static= 14849fi 14850 14851 14852 14853 14854 14855 14856 14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14858$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14859if ${lt_cv_prog_compiler_c_o+:} false; then : 14860 $as_echo_n "(cached) " >&6 14861else 14862 lt_cv_prog_compiler_c_o=no 14863 $RM -r conftest 2>/dev/null 14864 mkdir conftest 14865 cd conftest 14866 mkdir out 14867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14868 14869 lt_compiler_flag="-o out/conftest2.$ac_objext" 14870 # Insert the option either (1) after the last *FLAGS variable, or 14871 # (2) before a word containing "conftest.", or (3) at the end. 14872 # Note that $ac_compile itself does not contain backslashes and begins 14873 # with a dollar sign (not a hyphen), so the echo should work correctly. 14874 lt_compile=`echo "$ac_compile" | $SED \ 14875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14877 -e 's:$: $lt_compiler_flag:'` 14878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14879 (eval "$lt_compile" 2>out/conftest.err) 14880 ac_status=$? 14881 cat out/conftest.err >&5 14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14883 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14884 then 14885 # The compiler can only warn and ignore the option if not recognized 14886 # So say no if there are warnings 14887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14890 lt_cv_prog_compiler_c_o=yes 14891 fi 14892 fi 14893 chmod u+w . 2>&5 14894 $RM conftest* 14895 # SGI C++ compiler will create directory out/ii_files/ for 14896 # template instantiation 14897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14898 $RM out/* && rmdir out 14899 cd .. 14900 $RM -r conftest 14901 $RM conftest* 14902 14903fi 14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14905$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14906 14907 14908 14909 14910 14911 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14913$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14914if ${lt_cv_prog_compiler_c_o+:} false; then : 14915 $as_echo_n "(cached) " >&6 14916else 14917 lt_cv_prog_compiler_c_o=no 14918 $RM -r conftest 2>/dev/null 14919 mkdir conftest 14920 cd conftest 14921 mkdir out 14922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14923 14924 lt_compiler_flag="-o out/conftest2.$ac_objext" 14925 # Insert the option either (1) after the last *FLAGS variable, or 14926 # (2) before a word containing "conftest.", or (3) at the end. 14927 # Note that $ac_compile itself does not contain backslashes and begins 14928 # with a dollar sign (not a hyphen), so the echo should work correctly. 14929 lt_compile=`echo "$ac_compile" | $SED \ 14930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14932 -e 's:$: $lt_compiler_flag:'` 14933 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14934 (eval "$lt_compile" 2>out/conftest.err) 14935 ac_status=$? 14936 cat out/conftest.err >&5 14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14938 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14939 then 14940 # The compiler can only warn and ignore the option if not recognized 14941 # So say no if there are warnings 14942 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14943 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14944 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14945 lt_cv_prog_compiler_c_o=yes 14946 fi 14947 fi 14948 chmod u+w . 2>&5 14949 $RM conftest* 14950 # SGI C++ compiler will create directory out/ii_files/ for 14951 # template instantiation 14952 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14953 $RM out/* && rmdir out 14954 cd .. 14955 $RM -r conftest 14956 $RM conftest* 14957 14958fi 14959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14960$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14961 14962 14963 14964 14965hard_links="nottested" 14966if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14967 # do not overwrite the value of need_locks provided by the user 14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14969$as_echo_n "checking if we can lock with hard links... " >&6; } 14970 hard_links=yes 14971 $RM conftest* 14972 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14973 touch conftest.a 14974 ln conftest.a conftest.b 2>&5 || hard_links=no 14975 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14977$as_echo "$hard_links" >&6; } 14978 if test "$hard_links" = no; then 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14980$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14981 need_locks=warn 14982 fi 14983else 14984 need_locks=no 14985fi 14986 14987 14988 14989 14990 14991 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14993$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14994 14995 runpath_var= 14996 allow_undefined_flag= 14997 always_export_symbols=no 14998 archive_cmds= 14999 archive_expsym_cmds= 15000 compiler_needs_object=no 15001 enable_shared_with_static_runtimes=no 15002 export_dynamic_flag_spec= 15003 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15004 hardcode_automatic=no 15005 hardcode_direct=no 15006 hardcode_direct_absolute=no 15007 hardcode_libdir_flag_spec= 15008 hardcode_libdir_separator= 15009 hardcode_minus_L=no 15010 hardcode_shlibpath_var=unsupported 15011 inherit_rpath=no 15012 link_all_deplibs=unknown 15013 module_cmds= 15014 module_expsym_cmds= 15015 old_archive_from_new_cmds= 15016 old_archive_from_expsyms_cmds= 15017 thread_safe_flag_spec= 15018 whole_archive_flag_spec= 15019 # include_expsyms should be a list of space-separated symbols to be *always* 15020 # included in the symbol list 15021 include_expsyms= 15022 # exclude_expsyms can be an extended regexp of symbols to exclude 15023 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15024 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15025 # as well as any symbol that contains `d'. 15026 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15027 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15028 # platforms (ab)use it in PIC code, but their linkers get confused if 15029 # the symbol is explicitly referenced. Since portable code cannot 15030 # rely on this symbol name, it's probably fine to never include it in 15031 # preloaded symbol tables. 15032 # Exclude shared library initialization/finalization symbols. 15033 extract_expsyms_cmds= 15034 15035 case $host_os in 15036 cygwin* | mingw* | pw32* | cegcc*) 15037 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15038 # When not using gcc, we currently assume that we are using 15039 # Microsoft Visual C++. 15040 if test "$GCC" != yes; then 15041 with_gnu_ld=no 15042 fi 15043 ;; 15044 interix*) 15045 # we just hope/assume this is gcc and not c89 (= MSVC++) 15046 with_gnu_ld=yes 15047 ;; 15048 openbsd*) 15049 with_gnu_ld=no 15050 ;; 15051 linux* | k*bsd*-gnu | gnu*) 15052 link_all_deplibs=no 15053 ;; 15054 esac 15055 15056 ld_shlibs=yes 15057 15058 # On some targets, GNU ld is compatible enough with the native linker 15059 # that we're better off using the native interface for both. 15060 lt_use_gnu_ld_interface=no 15061 if test "$with_gnu_ld" = yes; then 15062 case $host_os in 15063 aix*) 15064 # The AIX port of GNU ld has always aspired to compatibility 15065 # with the native linker. However, as the warning in the GNU ld 15066 # block says, versions before 2.19.5* couldn't really create working 15067 # shared libraries, regardless of the interface used. 15068 case `$LD -v 2>&1` in 15069 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15070 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15071 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15072 *) 15073 lt_use_gnu_ld_interface=yes 15074 ;; 15075 esac 15076 ;; 15077 *) 15078 lt_use_gnu_ld_interface=yes 15079 ;; 15080 esac 15081 fi 15082 15083 if test "$lt_use_gnu_ld_interface" = yes; then 15084 # If archive_cmds runs LD, not CC, wlarc should be empty 15085 wlarc='${wl}' 15086 15087 # Set some defaults for GNU ld with shared library support. These 15088 # are reset later if shared libraries are not supported. Putting them 15089 # here allows them to be overridden if necessary. 15090 runpath_var=LD_RUN_PATH 15091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15092 export_dynamic_flag_spec='${wl}--export-dynamic' 15093 # ancient GNU ld didn't support --whole-archive et. al. 15094 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15095 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15096 else 15097 whole_archive_flag_spec= 15098 fi 15099 supports_anon_versioning=no 15100 case `$LD -v 2>&1` in 15101 *GNU\ gold*) supports_anon_versioning=yes ;; 15102 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15103 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15104 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15105 *\ 2.11.*) ;; # other 2.11 versions 15106 *) supports_anon_versioning=yes ;; 15107 esac 15108 15109 # See if GNU ld supports shared libraries. 15110 case $host_os in 15111 aix[3-9]*) 15112 # On AIX/PPC, the GNU linker is very broken 15113 if test "$host_cpu" != ia64; then 15114 ld_shlibs=no 15115 cat <<_LT_EOF 1>&2 15116 15117*** Warning: the GNU linker, at least up to release 2.19, is reported 15118*** to be unable to reliably create shared libraries on AIX. 15119*** Therefore, libtool is disabling shared libraries support. If you 15120*** really care for shared libraries, you may want to install binutils 15121*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15122*** You will then need to restart the configuration process. 15123 15124_LT_EOF 15125 fi 15126 ;; 15127 15128 amigaos*) 15129 case $host_cpu in 15130 powerpc) 15131 # see comment about AmigaOS4 .so support 15132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15133 archive_expsym_cmds='' 15134 ;; 15135 m68k) 15136 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)' 15137 hardcode_libdir_flag_spec='-L$libdir' 15138 hardcode_minus_L=yes 15139 ;; 15140 esac 15141 ;; 15142 15143 beos*) 15144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15145 allow_undefined_flag=unsupported 15146 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15147 # support --undefined. This deserves some investigation. FIXME 15148 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15149 else 15150 ld_shlibs=no 15151 fi 15152 ;; 15153 15154 cygwin* | mingw* | pw32* | cegcc*) 15155 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15156 # as there is no search path for DLLs. 15157 hardcode_libdir_flag_spec='-L$libdir' 15158 export_dynamic_flag_spec='${wl}--export-all-symbols' 15159 allow_undefined_flag=unsupported 15160 always_export_symbols=no 15161 enable_shared_with_static_runtimes=yes 15162 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' 15163 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15164 15165 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15167 # If the export-symbols file already is a .def file (1st line 15168 # is EXPORTS), use it as is; otherwise, prepend... 15169 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15170 cp $export_symbols $output_objdir/$soname.def; 15171 else 15172 echo EXPORTS > $output_objdir/$soname.def; 15173 cat $export_symbols >> $output_objdir/$soname.def; 15174 fi~ 15175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15176 else 15177 ld_shlibs=no 15178 fi 15179 ;; 15180 15181 haiku*) 15182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15183 link_all_deplibs=yes 15184 ;; 15185 15186 interix[3-9]*) 15187 hardcode_direct=no 15188 hardcode_shlibpath_var=no 15189 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15190 export_dynamic_flag_spec='${wl}-E' 15191 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15192 # Instead, shared libraries are loaded at an image base (0x10000000 by 15193 # default) and relocated if they conflict, which is a slow very memory 15194 # consuming and fragmenting process. To avoid this, we pick a random, 15195 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15196 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15198 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' 15199 ;; 15200 15201 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15202 tmp_diet=no 15203 if test "$host_os" = linux-dietlibc; then 15204 case $cc_basename in 15205 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15206 esac 15207 fi 15208 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15209 && test "$tmp_diet" = no 15210 then 15211 tmp_addflag=' $pic_flag' 15212 tmp_sharedflag='-shared' 15213 case $cc_basename,$host_cpu in 15214 pgcc*) # Portland Group C compiler 15215 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' 15216 tmp_addflag=' $pic_flag' 15217 ;; 15218 pgf77* | pgf90* | pgf95* | pgfortran*) 15219 # Portland Group f77 and f90 compilers 15220 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' 15221 tmp_addflag=' $pic_flag -Mnomain' ;; 15222 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15223 tmp_addflag=' -i_dynamic' ;; 15224 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15225 tmp_addflag=' -i_dynamic -nofor_main' ;; 15226 ifc* | ifort*) # Intel Fortran compiler 15227 tmp_addflag=' -nofor_main' ;; 15228 lf95*) # Lahey Fortran 8.1 15229 whole_archive_flag_spec= 15230 tmp_sharedflag='--shared' ;; 15231 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15232 tmp_sharedflag='-qmkshrobj' 15233 tmp_addflag= ;; 15234 nvcc*) # Cuda Compiler Driver 2.2 15235 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' 15236 compiler_needs_object=yes 15237 ;; 15238 esac 15239 case `$CC -V 2>&1 | sed 5q` in 15240 *Sun\ C*) # Sun C 5.9 15241 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' 15242 compiler_needs_object=yes 15243 tmp_sharedflag='-G' ;; 15244 *Sun\ F*) # Sun Fortran 8.3 15245 tmp_sharedflag='-G' ;; 15246 esac 15247 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15248 15249 if test "x$supports_anon_versioning" = xyes; then 15250 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15252 echo "local: *; };" >> $output_objdir/$libname.ver~ 15253 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15254 fi 15255 15256 case $cc_basename in 15257 xlf* | bgf* | bgxlf* | mpixlf*) 15258 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15259 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15261 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15262 if test "x$supports_anon_versioning" = xyes; then 15263 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15265 echo "local: *; };" >> $output_objdir/$libname.ver~ 15266 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15267 fi 15268 ;; 15269 esac 15270 else 15271 ld_shlibs=no 15272 fi 15273 ;; 15274 15275 netbsd* | netbsdelf*-gnu) 15276 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15277 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15278 wlarc= 15279 else 15280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15281 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15282 fi 15283 ;; 15284 15285 solaris*) 15286 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15287 ld_shlibs=no 15288 cat <<_LT_EOF 1>&2 15289 15290*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15291*** create shared libraries on Solaris systems. Therefore, libtool 15292*** is disabling shared libraries support. We urge you to upgrade GNU 15293*** binutils to release 2.9.1 or newer. Another option is to modify 15294*** your PATH or compiler configuration so that the native linker is 15295*** used, and then restart. 15296 15297_LT_EOF 15298 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15300 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15301 else 15302 ld_shlibs=no 15303 fi 15304 ;; 15305 15306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15307 case `$LD -v 2>&1` in 15308 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15309 ld_shlibs=no 15310 cat <<_LT_EOF 1>&2 15311 15312*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15313*** reliably create shared libraries on SCO systems. Therefore, libtool 15314*** is disabling shared libraries support. We urge you to upgrade GNU 15315*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15316*** your PATH or compiler configuration so that the native linker is 15317*** used, and then restart. 15318 15319_LT_EOF 15320 ;; 15321 *) 15322 # For security reasons, it is highly recommended that you always 15323 # use absolute paths for naming shared libraries, and exclude the 15324 # DT_RUNPATH tag from executables and libraries. But doing so 15325 # requires that you compile everything twice, which is a pain. 15326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15330 else 15331 ld_shlibs=no 15332 fi 15333 ;; 15334 esac 15335 ;; 15336 15337 sunos4*) 15338 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15339 wlarc= 15340 hardcode_direct=yes 15341 hardcode_shlibpath_var=no 15342 ;; 15343 15344 *) 15345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15346 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15347 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15348 else 15349 ld_shlibs=no 15350 fi 15351 ;; 15352 esac 15353 15354 if test "$ld_shlibs" = no; then 15355 runpath_var= 15356 hardcode_libdir_flag_spec= 15357 export_dynamic_flag_spec= 15358 whole_archive_flag_spec= 15359 fi 15360 else 15361 # PORTME fill in a description of your system's linker (not GNU ld) 15362 case $host_os in 15363 aix3*) 15364 allow_undefined_flag=unsupported 15365 always_export_symbols=yes 15366 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' 15367 # Note: this linker hardcodes the directories in LIBPATH if there 15368 # are no directories specified by -L. 15369 hardcode_minus_L=yes 15370 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15371 # Neither direct hardcoding nor static linking is supported with a 15372 # broken collect2. 15373 hardcode_direct=unsupported 15374 fi 15375 ;; 15376 15377 aix[4-9]*) 15378 if test "$host_cpu" = ia64; then 15379 # On IA64, the linker does run time linking by default, so we don't 15380 # have to do anything special. 15381 aix_use_runtimelinking=no 15382 exp_sym_flag='-Bexport' 15383 no_entry_flag="" 15384 else 15385 # If we're using GNU nm, then we don't want the "-C" option. 15386 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15387 # Also, AIX nm treats weak defined symbols like other global 15388 # defined symbols, whereas GNU nm marks them as "W". 15389 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15390 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15391 else 15392 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15393 fi 15394 aix_use_runtimelinking=no 15395 15396 # Test if we are trying to use run time linking or normal 15397 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15398 # need to do runtime linking. 15399 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15400 for ld_flag in $LDFLAGS; do 15401 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15402 aix_use_runtimelinking=yes 15403 break 15404 fi 15405 done 15406 ;; 15407 esac 15408 15409 exp_sym_flag='-bexport' 15410 no_entry_flag='-bnoentry' 15411 fi 15412 15413 # When large executables or shared objects are built, AIX ld can 15414 # have problems creating the table of contents. If linking a library 15415 # or program results in "error TOC overflow" add -mminimal-toc to 15416 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15417 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15418 15419 archive_cmds='' 15420 hardcode_direct=yes 15421 hardcode_direct_absolute=yes 15422 hardcode_libdir_separator=':' 15423 link_all_deplibs=yes 15424 file_list_spec='${wl}-f,' 15425 15426 if test "$GCC" = yes; then 15427 case $host_os in aix4.[012]|aix4.[012].*) 15428 # We only want to do this on AIX 4.2 and lower, the check 15429 # below for broken collect2 doesn't work under 4.3+ 15430 collect2name=`${CC} -print-prog-name=collect2` 15431 if test -f "$collect2name" && 15432 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15433 then 15434 # We have reworked collect2 15435 : 15436 else 15437 # We have old collect2 15438 hardcode_direct=unsupported 15439 # It fails to find uninstalled libraries when the uninstalled 15440 # path is not listed in the libpath. Setting hardcode_minus_L 15441 # to unsupported forces relinking 15442 hardcode_minus_L=yes 15443 hardcode_libdir_flag_spec='-L$libdir' 15444 hardcode_libdir_separator= 15445 fi 15446 ;; 15447 esac 15448 shared_flag='-shared' 15449 if test "$aix_use_runtimelinking" = yes; then 15450 shared_flag="$shared_flag "'${wl}-G' 15451 fi 15452 link_all_deplibs=no 15453 else 15454 # not using gcc 15455 if test "$host_cpu" = ia64; then 15456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15457 # chokes on -Wl,-G. The following line is correct: 15458 shared_flag='-G' 15459 else 15460 if test "$aix_use_runtimelinking" = yes; then 15461 shared_flag='${wl}-G' 15462 else 15463 shared_flag='${wl}-bM:SRE' 15464 fi 15465 fi 15466 fi 15467 15468 export_dynamic_flag_spec='${wl}-bexpall' 15469 # It seems that -bexpall does not export symbols beginning with 15470 # underscore (_), so it is better to generate a list of symbols to export. 15471 always_export_symbols=yes 15472 if test "$aix_use_runtimelinking" = yes; then 15473 # Warning - without using the other runtime loading flags (-brtl), 15474 # -berok will link without error, but may produce a broken library. 15475 allow_undefined_flag='-berok' 15476 # Determine the default libpath from the value encoded in an 15477 # empty executable. 15478 if test "${lt_cv_aix_libpath+set}" = set; then 15479 aix_libpath=$lt_cv_aix_libpath 15480else 15481 if ${lt_cv_aix_libpath_+:} false; then : 15482 $as_echo_n "(cached) " >&6 15483else 15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15485/* end confdefs.h. */ 15486 15487int 15488main () 15489{ 15490 15491 ; 15492 return 0; 15493} 15494_ACEOF 15495if ac_fn_c_try_link "$LINENO"; then : 15496 15497 lt_aix_libpath_sed=' 15498 /Import File Strings/,/^$/ { 15499 /^0/ { 15500 s/^0 *\([^ ]*\) *$/\1/ 15501 p 15502 } 15503 }' 15504 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15505 # Check for a 64-bit object if we didn't find anything. 15506 if test -z "$lt_cv_aix_libpath_"; then 15507 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15508 fi 15509fi 15510rm -f core conftest.err conftest.$ac_objext \ 15511 conftest$ac_exeext conftest.$ac_ext 15512 if test -z "$lt_cv_aix_libpath_"; then 15513 lt_cv_aix_libpath_="/usr/lib:/lib" 15514 fi 15515 15516fi 15517 15518 aix_libpath=$lt_cv_aix_libpath_ 15519fi 15520 15521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15522 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15523 else 15524 if test "$host_cpu" = ia64; then 15525 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15526 allow_undefined_flag="-z nodefs" 15527 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" 15528 else 15529 # Determine the default libpath from the value encoded in an 15530 # empty executable. 15531 if test "${lt_cv_aix_libpath+set}" = set; then 15532 aix_libpath=$lt_cv_aix_libpath 15533else 15534 if ${lt_cv_aix_libpath_+:} false; then : 15535 $as_echo_n "(cached) " >&6 15536else 15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15538/* end confdefs.h. */ 15539 15540int 15541main () 15542{ 15543 15544 ; 15545 return 0; 15546} 15547_ACEOF 15548if ac_fn_c_try_link "$LINENO"; then : 15549 15550 lt_aix_libpath_sed=' 15551 /Import File Strings/,/^$/ { 15552 /^0/ { 15553 s/^0 *\([^ ]*\) *$/\1/ 15554 p 15555 } 15556 }' 15557 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15558 # Check for a 64-bit object if we didn't find anything. 15559 if test -z "$lt_cv_aix_libpath_"; then 15560 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15561 fi 15562fi 15563rm -f core conftest.err conftest.$ac_objext \ 15564 conftest$ac_exeext conftest.$ac_ext 15565 if test -z "$lt_cv_aix_libpath_"; then 15566 lt_cv_aix_libpath_="/usr/lib:/lib" 15567 fi 15568 15569fi 15570 15571 aix_libpath=$lt_cv_aix_libpath_ 15572fi 15573 15574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15575 # Warning - without using the other run time loading flags, 15576 # -berok will link without error, but may produce a broken library. 15577 no_undefined_flag=' ${wl}-bernotok' 15578 allow_undefined_flag=' ${wl}-berok' 15579 if test "$with_gnu_ld" = yes; then 15580 # We only use this code for GNU lds that support --whole-archive. 15581 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15582 else 15583 # Exported symbols can be pulled into shared objects from archives 15584 whole_archive_flag_spec='$convenience' 15585 fi 15586 archive_cmds_need_lc=yes 15587 # This is similar to how AIX traditionally builds its shared libraries. 15588 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15589 fi 15590 fi 15591 ;; 15592 15593 amigaos*) 15594 case $host_cpu in 15595 powerpc) 15596 # see comment about AmigaOS4 .so support 15597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15598 archive_expsym_cmds='' 15599 ;; 15600 m68k) 15601 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)' 15602 hardcode_libdir_flag_spec='-L$libdir' 15603 hardcode_minus_L=yes 15604 ;; 15605 esac 15606 ;; 15607 15608 bsdi[45]*) 15609 export_dynamic_flag_spec=-rdynamic 15610 ;; 15611 15612 cygwin* | mingw* | pw32* | cegcc*) 15613 # When not using gcc, we currently assume that we are using 15614 # Microsoft Visual C++. 15615 # hardcode_libdir_flag_spec is actually meaningless, as there is 15616 # no search path for DLLs. 15617 case $cc_basename in 15618 cl*) 15619 # Native MSVC 15620 hardcode_libdir_flag_spec=' ' 15621 allow_undefined_flag=unsupported 15622 always_export_symbols=yes 15623 file_list_spec='@' 15624 # Tell ltmain to make .lib files, not .a files. 15625 libext=lib 15626 # Tell ltmain to make .dll files, not .so files. 15627 shrext_cmds=".dll" 15628 # FIXME: Setting linknames here is a bad hack. 15629 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15630 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15631 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15632 else 15633 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15634 fi~ 15635 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15636 linknames=' 15637 # The linker will not automatically build a static lib if we build a DLL. 15638 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15639 enable_shared_with_static_runtimes=yes 15640 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15641 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15642 # Don't use ranlib 15643 old_postinstall_cmds='chmod 644 $oldlib' 15644 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15645 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15646 case $lt_outputfile in 15647 *.exe|*.EXE) ;; 15648 *) 15649 lt_outputfile="$lt_outputfile.exe" 15650 lt_tool_outputfile="$lt_tool_outputfile.exe" 15651 ;; 15652 esac~ 15653 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15654 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15655 $RM "$lt_outputfile.manifest"; 15656 fi' 15657 ;; 15658 *) 15659 # Assume MSVC wrapper 15660 hardcode_libdir_flag_spec=' ' 15661 allow_undefined_flag=unsupported 15662 # Tell ltmain to make .lib files, not .a files. 15663 libext=lib 15664 # Tell ltmain to make .dll files, not .so files. 15665 shrext_cmds=".dll" 15666 # FIXME: Setting linknames here is a bad hack. 15667 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15668 # The linker will automatically build a .lib file if we build a DLL. 15669 old_archive_from_new_cmds='true' 15670 # FIXME: Should let the user specify the lib program. 15671 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15672 enable_shared_with_static_runtimes=yes 15673 ;; 15674 esac 15675 ;; 15676 15677 darwin* | rhapsody*) 15678 15679 15680 archive_cmds_need_lc=no 15681 hardcode_direct=no 15682 hardcode_automatic=yes 15683 hardcode_shlibpath_var=unsupported 15684 if test "$lt_cv_ld_force_load" = "yes"; then 15685 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\"`' 15686 15687 else 15688 whole_archive_flag_spec='' 15689 fi 15690 link_all_deplibs=yes 15691 allow_undefined_flag="$_lt_dar_allow_undefined" 15692 case $cc_basename in 15693 ifort*) _lt_dar_can_shared=yes ;; 15694 *) _lt_dar_can_shared=$GCC ;; 15695 esac 15696 if test "$_lt_dar_can_shared" = "yes"; then 15697 output_verbose_link_cmd=func_echo_all 15698 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15699 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15700 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}" 15701 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}" 15702 15703 else 15704 ld_shlibs=no 15705 fi 15706 15707 ;; 15708 15709 dgux*) 15710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15711 hardcode_libdir_flag_spec='-L$libdir' 15712 hardcode_shlibpath_var=no 15713 ;; 15714 15715 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15716 # support. Future versions do this automatically, but an explicit c++rt0.o 15717 # does not break anything, and helps significantly (at the cost of a little 15718 # extra space). 15719 freebsd2.2*) 15720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15721 hardcode_libdir_flag_spec='-R$libdir' 15722 hardcode_direct=yes 15723 hardcode_shlibpath_var=no 15724 ;; 15725 15726 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15727 freebsd2.*) 15728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15729 hardcode_direct=yes 15730 hardcode_minus_L=yes 15731 hardcode_shlibpath_var=no 15732 ;; 15733 15734 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15735 freebsd* | dragonfly*) 15736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15737 hardcode_libdir_flag_spec='-R$libdir' 15738 hardcode_direct=yes 15739 hardcode_shlibpath_var=no 15740 ;; 15741 15742 hpux9*) 15743 if test "$GCC" = yes; then 15744 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15745 else 15746 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15747 fi 15748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15749 hardcode_libdir_separator=: 15750 hardcode_direct=yes 15751 15752 # hardcode_minus_L: Not really in the search PATH, 15753 # but as the default location of the library. 15754 hardcode_minus_L=yes 15755 export_dynamic_flag_spec='${wl}-E' 15756 ;; 15757 15758 hpux10*) 15759 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15760 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15761 else 15762 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15763 fi 15764 if test "$with_gnu_ld" = no; then 15765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15766 hardcode_libdir_separator=: 15767 hardcode_direct=yes 15768 hardcode_direct_absolute=yes 15769 export_dynamic_flag_spec='${wl}-E' 15770 # hardcode_minus_L: Not really in the search PATH, 15771 # but as the default location of the library. 15772 hardcode_minus_L=yes 15773 fi 15774 ;; 15775 15776 hpux11*) 15777 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15778 case $host_cpu in 15779 hppa*64*) 15780 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15781 ;; 15782 ia64*) 15783 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15784 ;; 15785 *) 15786 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15787 ;; 15788 esac 15789 else 15790 case $host_cpu in 15791 hppa*64*) 15792 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15793 ;; 15794 ia64*) 15795 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15796 ;; 15797 *) 15798 15799 # Older versions of the 11.00 compiler do not understand -b yet 15800 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15802$as_echo_n "checking if $CC understands -b... " >&6; } 15803if ${lt_cv_prog_compiler__b+:} false; then : 15804 $as_echo_n "(cached) " >&6 15805else 15806 lt_cv_prog_compiler__b=no 15807 save_LDFLAGS="$LDFLAGS" 15808 LDFLAGS="$LDFLAGS -b" 15809 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15811 # The linker can only warn and ignore the option if not recognized 15812 # So say no if there are warnings 15813 if test -s conftest.err; then 15814 # Append any errors to the config.log. 15815 cat conftest.err 1>&5 15816 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15818 if diff conftest.exp conftest.er2 >/dev/null; then 15819 lt_cv_prog_compiler__b=yes 15820 fi 15821 else 15822 lt_cv_prog_compiler__b=yes 15823 fi 15824 fi 15825 $RM -r conftest* 15826 LDFLAGS="$save_LDFLAGS" 15827 15828fi 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15830$as_echo "$lt_cv_prog_compiler__b" >&6; } 15831 15832if test x"$lt_cv_prog_compiler__b" = xyes; then 15833 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15834else 15835 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15836fi 15837 15838 ;; 15839 esac 15840 fi 15841 if test "$with_gnu_ld" = no; then 15842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15843 hardcode_libdir_separator=: 15844 15845 case $host_cpu in 15846 hppa*64*|ia64*) 15847 hardcode_direct=no 15848 hardcode_shlibpath_var=no 15849 ;; 15850 *) 15851 hardcode_direct=yes 15852 hardcode_direct_absolute=yes 15853 export_dynamic_flag_spec='${wl}-E' 15854 15855 # hardcode_minus_L: Not really in the search PATH, 15856 # but as the default location of the library. 15857 hardcode_minus_L=yes 15858 ;; 15859 esac 15860 fi 15861 ;; 15862 15863 irix5* | irix6* | nonstopux*) 15864 if test "$GCC" = yes; then 15865 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' 15866 # Try to use the -exported_symbol ld option, if it does not 15867 # work, assume that -exports_file does not work either and 15868 # implicitly export all symbols. 15869 # This should be the same for all languages, so no per-tag cache variable. 15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15871$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15872if ${lt_cv_irix_exported_symbol+:} false; then : 15873 $as_echo_n "(cached) " >&6 15874else 15875 save_LDFLAGS="$LDFLAGS" 15876 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15878/* end confdefs.h. */ 15879int foo (void) { return 0; } 15880_ACEOF 15881if ac_fn_c_try_link "$LINENO"; then : 15882 lt_cv_irix_exported_symbol=yes 15883else 15884 lt_cv_irix_exported_symbol=no 15885fi 15886rm -f core conftest.err conftest.$ac_objext \ 15887 conftest$ac_exeext conftest.$ac_ext 15888 LDFLAGS="$save_LDFLAGS" 15889fi 15890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15891$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15892 if test "$lt_cv_irix_exported_symbol" = yes; then 15893 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' 15894 fi 15895 else 15896 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' 15897 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' 15898 fi 15899 archive_cmds_need_lc='no' 15900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15901 hardcode_libdir_separator=: 15902 inherit_rpath=yes 15903 link_all_deplibs=yes 15904 ;; 15905 15906 netbsd* | netbsdelf*-gnu) 15907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15909 else 15910 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15911 fi 15912 hardcode_libdir_flag_spec='-R$libdir' 15913 hardcode_direct=yes 15914 hardcode_shlibpath_var=no 15915 ;; 15916 15917 newsos6) 15918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15919 hardcode_direct=yes 15920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15921 hardcode_libdir_separator=: 15922 hardcode_shlibpath_var=no 15923 ;; 15924 15925 *nto* | *qnx*) 15926 ;; 15927 15928 openbsd*) 15929 if test -f /usr/libexec/ld.so; then 15930 hardcode_direct=yes 15931 hardcode_shlibpath_var=no 15932 hardcode_direct_absolute=yes 15933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15935 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15937 export_dynamic_flag_spec='${wl}-E' 15938 else 15939 case $host_os in 15940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15942 hardcode_libdir_flag_spec='-R$libdir' 15943 ;; 15944 *) 15945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15947 ;; 15948 esac 15949 fi 15950 else 15951 ld_shlibs=no 15952 fi 15953 ;; 15954 15955 os2*) 15956 hardcode_libdir_flag_spec='-L$libdir' 15957 hardcode_minus_L=yes 15958 allow_undefined_flag=unsupported 15959 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15960 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15961 ;; 15962 15963 osf3*) 15964 if test "$GCC" = yes; then 15965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15966 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' 15967 else 15968 allow_undefined_flag=' -expect_unresolved \*' 15969 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' 15970 fi 15971 archive_cmds_need_lc='no' 15972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15973 hardcode_libdir_separator=: 15974 ;; 15975 15976 osf4* | osf5*) # as osf3* with the addition of -msym flag 15977 if test "$GCC" = yes; then 15978 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15979 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' 15980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15981 else 15982 allow_undefined_flag=' -expect_unresolved \*' 15983 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' 15984 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~ 15985 $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' 15986 15987 # Both c and cxx compiler support -rpath directly 15988 hardcode_libdir_flag_spec='-rpath $libdir' 15989 fi 15990 archive_cmds_need_lc='no' 15991 hardcode_libdir_separator=: 15992 ;; 15993 15994 solaris*) 15995 no_undefined_flag=' -z defs' 15996 if test "$GCC" = yes; then 15997 wlarc='${wl}' 15998 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16000 $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' 16001 else 16002 case `$CC -V 2>&1` in 16003 *"Compilers 5.0"*) 16004 wlarc='' 16005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16008 ;; 16009 *) 16010 wlarc='${wl}' 16011 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16013 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16014 ;; 16015 esac 16016 fi 16017 hardcode_libdir_flag_spec='-R$libdir' 16018 hardcode_shlibpath_var=no 16019 case $host_os in 16020 solaris2.[0-5] | solaris2.[0-5].*) ;; 16021 *) 16022 # The compiler driver will combine and reorder linker options, 16023 # but understands `-z linker_flag'. GCC discards it without `$wl', 16024 # but is careful enough not to reorder. 16025 # Supported since Solaris 2.6 (maybe 2.5.1?) 16026 if test "$GCC" = yes; then 16027 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16028 else 16029 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16030 fi 16031 ;; 16032 esac 16033 link_all_deplibs=yes 16034 ;; 16035 16036 sunos4*) 16037 if test "x$host_vendor" = xsequent; then 16038 # Use $CC to link under sequent, because it throws in some extra .o 16039 # files that make .init and .fini sections work. 16040 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16041 else 16042 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16043 fi 16044 hardcode_libdir_flag_spec='-L$libdir' 16045 hardcode_direct=yes 16046 hardcode_minus_L=yes 16047 hardcode_shlibpath_var=no 16048 ;; 16049 16050 sysv4) 16051 case $host_vendor in 16052 sni) 16053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16054 hardcode_direct=yes # is this really true??? 16055 ;; 16056 siemens) 16057 ## LD is ld it makes a PLAMLIB 16058 ## CC just makes a GrossModule. 16059 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16060 reload_cmds='$CC -r -o $output$reload_objs' 16061 hardcode_direct=no 16062 ;; 16063 motorola) 16064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16065 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16066 ;; 16067 esac 16068 runpath_var='LD_RUN_PATH' 16069 hardcode_shlibpath_var=no 16070 ;; 16071 16072 sysv4.3*) 16073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16074 hardcode_shlibpath_var=no 16075 export_dynamic_flag_spec='-Bexport' 16076 ;; 16077 16078 sysv4*MP*) 16079 if test -d /usr/nec; then 16080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16081 hardcode_shlibpath_var=no 16082 runpath_var=LD_RUN_PATH 16083 hardcode_runpath_var=yes 16084 ld_shlibs=yes 16085 fi 16086 ;; 16087 16088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16089 no_undefined_flag='${wl}-z,text' 16090 archive_cmds_need_lc=no 16091 hardcode_shlibpath_var=no 16092 runpath_var='LD_RUN_PATH' 16093 16094 if test "$GCC" = yes; then 16095 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16096 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16097 else 16098 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16099 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16100 fi 16101 ;; 16102 16103 sysv5* | sco3.2v5* | sco5v6*) 16104 # Note: We can NOT use -z defs as we might desire, because we do not 16105 # link with -lc, and that would cause any symbols used from libc to 16106 # always be unresolved, which means just about no library would 16107 # ever link correctly. If we're not using GNU ld we use -z text 16108 # though, which does catch some bad symbols but isn't as heavy-handed 16109 # as -z defs. 16110 no_undefined_flag='${wl}-z,text' 16111 allow_undefined_flag='${wl}-z,nodefs' 16112 archive_cmds_need_lc=no 16113 hardcode_shlibpath_var=no 16114 hardcode_libdir_flag_spec='${wl}-R,$libdir' 16115 hardcode_libdir_separator=':' 16116 link_all_deplibs=yes 16117 export_dynamic_flag_spec='${wl}-Bexport' 16118 runpath_var='LD_RUN_PATH' 16119 16120 if test "$GCC" = yes; then 16121 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16122 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16123 else 16124 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16125 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16126 fi 16127 ;; 16128 16129 uts4*) 16130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16131 hardcode_libdir_flag_spec='-L$libdir' 16132 hardcode_shlibpath_var=no 16133 ;; 16134 16135 *) 16136 ld_shlibs=no 16137 ;; 16138 esac 16139 16140 if test x$host_vendor = xsni; then 16141 case $host in 16142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16143 export_dynamic_flag_spec='${wl}-Blargedynsym' 16144 ;; 16145 esac 16146 fi 16147 fi 16148 16149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16150$as_echo "$ld_shlibs" >&6; } 16151test "$ld_shlibs" = no && can_build_shared=no 16152 16153with_gnu_ld=$with_gnu_ld 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169# 16170# Do we need to explicitly link libc? 16171# 16172case "x$archive_cmds_need_lc" in 16173x|xyes) 16174 # Assume -lc should be added 16175 archive_cmds_need_lc=yes 16176 16177 if test "$enable_shared" = yes && test "$GCC" = yes; then 16178 case $archive_cmds in 16179 *'~'*) 16180 # FIXME: we may have to deal with multi-command sequences. 16181 ;; 16182 '$CC '*) 16183 # Test whether the compiler implicitly links with -lc since on some 16184 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16185 # to ld, don't add -lc before -lgcc. 16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16187$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16188if ${lt_cv_archive_cmds_need_lc+:} false; then : 16189 $as_echo_n "(cached) " >&6 16190else 16191 $RM conftest* 16192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16193 16194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16195 (eval $ac_compile) 2>&5 16196 ac_status=$? 16197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16198 test $ac_status = 0; } 2>conftest.err; then 16199 soname=conftest 16200 lib=conftest 16201 libobjs=conftest.$ac_objext 16202 deplibs= 16203 wl=$lt_prog_compiler_wl 16204 pic_flag=$lt_prog_compiler_pic 16205 compiler_flags=-v 16206 linker_flags=-v 16207 verstring= 16208 output_objdir=. 16209 libname=conftest 16210 lt_save_allow_undefined_flag=$allow_undefined_flag 16211 allow_undefined_flag= 16212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16213 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16214 ac_status=$? 16215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16216 test $ac_status = 0; } 16217 then 16218 lt_cv_archive_cmds_need_lc=no 16219 else 16220 lt_cv_archive_cmds_need_lc=yes 16221 fi 16222 allow_undefined_flag=$lt_save_allow_undefined_flag 16223 else 16224 cat conftest.err 1>&5 16225 fi 16226 $RM conftest* 16227 16228fi 16229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16230$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16231 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16232 ;; 16233 esac 16234 fi 16235 ;; 16236esac 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16390$as_echo_n "checking dynamic linker characteristics... " >&6; } 16391 16392if test "$GCC" = yes; then 16393 case $host_os in 16394 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16395 *) lt_awk_arg="/^libraries:/" ;; 16396 esac 16397 case $host_os in 16398 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16399 *) lt_sed_strip_eq="s,=/,/,g" ;; 16400 esac 16401 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16402 case $lt_search_path_spec in 16403 *\;*) 16404 # if the path contains ";" then we assume it to be the separator 16405 # otherwise default to the standard path separator (i.e. ":") - it is 16406 # assumed that no part of a normal pathname contains ";" but that should 16407 # okay in the real world where ";" in dirpaths is itself problematic. 16408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16409 ;; 16410 *) 16411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16412 ;; 16413 esac 16414 # Ok, now we have the path, separated by spaces, we can step through it 16415 # and add multilib dir if necessary. 16416 lt_tmp_lt_search_path_spec= 16417 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16418 for lt_sys_path in $lt_search_path_spec; do 16419 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16421 else 16422 test -d "$lt_sys_path" && \ 16423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16424 fi 16425 done 16426 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16427BEGIN {RS=" "; FS="/|\n";} { 16428 lt_foo=""; 16429 lt_count=0; 16430 for (lt_i = NF; lt_i > 0; lt_i--) { 16431 if ($lt_i != "" && $lt_i != ".") { 16432 if ($lt_i == "..") { 16433 lt_count++; 16434 } else { 16435 if (lt_count == 0) { 16436 lt_foo="/" $lt_i lt_foo; 16437 } else { 16438 lt_count--; 16439 } 16440 } 16441 } 16442 } 16443 if (lt_foo != "") { lt_freq[lt_foo]++; } 16444 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16445}'` 16446 # AWK program above erroneously prepends '/' to C:/dos/paths 16447 # for these hosts. 16448 case $host_os in 16449 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16450 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16451 esac 16452 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16453else 16454 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16455fi 16456library_names_spec= 16457libname_spec='lib$name' 16458soname_spec= 16459shrext_cmds=".so" 16460postinstall_cmds= 16461postuninstall_cmds= 16462finish_cmds= 16463finish_eval= 16464shlibpath_var= 16465shlibpath_overrides_runpath=unknown 16466version_type=none 16467dynamic_linker="$host_os ld.so" 16468sys_lib_dlsearch_path_spec="/lib /usr/lib" 16469need_lib_prefix=unknown 16470hardcode_into_libs=no 16471 16472# when you set need_version to no, make sure it does not cause -set_version 16473# flags to be left without arguments 16474need_version=unknown 16475 16476case $host_os in 16477aix3*) 16478 version_type=linux # correct to gnu/linux during the next big refactor 16479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16480 shlibpath_var=LIBPATH 16481 16482 # AIX 3 has no versioning support, so we append a major version to the name. 16483 soname_spec='${libname}${release}${shared_ext}$major' 16484 ;; 16485 16486aix[4-9]*) 16487 version_type=linux # correct to gnu/linux during the next big refactor 16488 need_lib_prefix=no 16489 need_version=no 16490 hardcode_into_libs=yes 16491 if test "$host_cpu" = ia64; then 16492 # AIX 5 supports IA64 16493 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16494 shlibpath_var=LD_LIBRARY_PATH 16495 else 16496 # With GCC up to 2.95.x, collect2 would create an import file 16497 # for dependence libraries. The import file would start with 16498 # the line `#! .'. This would cause the generated library to 16499 # depend on `.', always an invalid library. This was fixed in 16500 # development snapshots of GCC prior to 3.0. 16501 case $host_os in 16502 aix4 | aix4.[01] | aix4.[01].*) 16503 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16504 echo ' yes ' 16505 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16506 : 16507 else 16508 can_build_shared=no 16509 fi 16510 ;; 16511 esac 16512 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16513 # soname into executable. Probably we can add versioning support to 16514 # collect2, so additional links can be useful in future. 16515 if test "$aix_use_runtimelinking" = yes; then 16516 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16517 # instead of lib<name>.a to let people know that these are not 16518 # typical AIX shared libraries. 16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16520 else 16521 # We preserve .a as extension for shared libraries through AIX4.2 16522 # and later when we are not doing run time linking. 16523 library_names_spec='${libname}${release}.a $libname.a' 16524 soname_spec='${libname}${release}${shared_ext}$major' 16525 fi 16526 shlibpath_var=LIBPATH 16527 fi 16528 ;; 16529 16530amigaos*) 16531 case $host_cpu in 16532 powerpc) 16533 # Since July 2007 AmigaOS4 officially supports .so libraries. 16534 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16536 ;; 16537 m68k) 16538 library_names_spec='$libname.ixlibrary $libname.a' 16539 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16540 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16541 ;; 16542 esac 16543 ;; 16544 16545beos*) 16546 library_names_spec='${libname}${shared_ext}' 16547 dynamic_linker="$host_os ld.so" 16548 shlibpath_var=LIBRARY_PATH 16549 ;; 16550 16551bsdi[45]*) 16552 version_type=linux # correct to gnu/linux during the next big refactor 16553 need_version=no 16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16555 soname_spec='${libname}${release}${shared_ext}$major' 16556 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16557 shlibpath_var=LD_LIBRARY_PATH 16558 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16559 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16560 # the default ld.so.conf also contains /usr/contrib/lib and 16561 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16562 # libtool to hard-code these into programs 16563 ;; 16564 16565cygwin* | mingw* | pw32* | cegcc*) 16566 version_type=windows 16567 shrext_cmds=".dll" 16568 need_version=no 16569 need_lib_prefix=no 16570 16571 case $GCC,$cc_basename in 16572 yes,*) 16573 # gcc 16574 library_names_spec='$libname.dll.a' 16575 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16576 postinstall_cmds='base_file=`basename \${file}`~ 16577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16578 dldir=$destdir/`dirname \$dlpath`~ 16579 test -d \$dldir || mkdir -p \$dldir~ 16580 $install_prog $dir/$dlname \$dldir/$dlname~ 16581 chmod a+x \$dldir/$dlname~ 16582 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16583 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16584 fi' 16585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16586 dlpath=$dir/\$dldll~ 16587 $RM \$dlpath' 16588 shlibpath_overrides_runpath=yes 16589 16590 case $host_os in 16591 cygwin*) 16592 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16593 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16594 16595 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16596 ;; 16597 mingw* | cegcc*) 16598 # MinGW DLLs use traditional 'lib' prefix 16599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16600 ;; 16601 pw32*) 16602 # pw32 DLLs use 'pw' prefix rather than 'lib' 16603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16604 ;; 16605 esac 16606 dynamic_linker='Win32 ld.exe' 16607 ;; 16608 16609 *,cl*) 16610 # Native MSVC 16611 libname_spec='$name' 16612 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16613 library_names_spec='${libname}.dll.lib' 16614 16615 case $build_os in 16616 mingw*) 16617 sys_lib_search_path_spec= 16618 lt_save_ifs=$IFS 16619 IFS=';' 16620 for lt_path in $LIB 16621 do 16622 IFS=$lt_save_ifs 16623 # Let DOS variable expansion print the short 8.3 style file name. 16624 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16625 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16626 done 16627 IFS=$lt_save_ifs 16628 # Convert to MSYS style. 16629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16630 ;; 16631 cygwin*) 16632 # Convert to unix form, then to dos form, then back to unix form 16633 # but this time dos style (no spaces!) so that the unix form looks 16634 # like /cygdrive/c/PROGRA~1:/cygdr... 16635 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16636 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16637 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16638 ;; 16639 *) 16640 sys_lib_search_path_spec="$LIB" 16641 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16642 # It is most probably a Windows format PATH. 16643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16644 else 16645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16646 fi 16647 # FIXME: find the short name or the path components, as spaces are 16648 # common. (e.g. "Program Files" -> "PROGRA~1") 16649 ;; 16650 esac 16651 16652 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16653 postinstall_cmds='base_file=`basename \${file}`~ 16654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16655 dldir=$destdir/`dirname \$dlpath`~ 16656 test -d \$dldir || mkdir -p \$dldir~ 16657 $install_prog $dir/$dlname \$dldir/$dlname' 16658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16659 dlpath=$dir/\$dldll~ 16660 $RM \$dlpath' 16661 shlibpath_overrides_runpath=yes 16662 dynamic_linker='Win32 link.exe' 16663 ;; 16664 16665 *) 16666 # Assume MSVC wrapper 16667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16668 dynamic_linker='Win32 ld.exe' 16669 ;; 16670 esac 16671 # FIXME: first we should search . and the directory the executable is in 16672 shlibpath_var=PATH 16673 ;; 16674 16675darwin* | rhapsody*) 16676 dynamic_linker="$host_os dyld" 16677 version_type=darwin 16678 need_lib_prefix=no 16679 need_version=no 16680 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16681 soname_spec='${libname}${release}${major}$shared_ext' 16682 shlibpath_overrides_runpath=yes 16683 shlibpath_var=DYLD_LIBRARY_PATH 16684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16685 16686 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16688 ;; 16689 16690dgux*) 16691 version_type=linux # correct to gnu/linux during the next big refactor 16692 need_lib_prefix=no 16693 need_version=no 16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16695 soname_spec='${libname}${release}${shared_ext}$major' 16696 shlibpath_var=LD_LIBRARY_PATH 16697 ;; 16698 16699freebsd* | dragonfly*) 16700 # DragonFly does not have aout. When/if they implement a new 16701 # versioning mechanism, adjust this. 16702 if test -x /usr/bin/objformat; then 16703 objformat=`/usr/bin/objformat` 16704 else 16705 case $host_os in 16706 freebsd[23].*) objformat=aout ;; 16707 *) objformat=elf ;; 16708 esac 16709 fi 16710 version_type=freebsd-$objformat 16711 case $version_type in 16712 freebsd-elf*) 16713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16714 need_version=no 16715 need_lib_prefix=no 16716 ;; 16717 freebsd-*) 16718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16719 need_version=yes 16720 ;; 16721 esac 16722 shlibpath_var=LD_LIBRARY_PATH 16723 case $host_os in 16724 freebsd2.*) 16725 shlibpath_overrides_runpath=yes 16726 ;; 16727 freebsd3.[01]* | freebsdelf3.[01]*) 16728 shlibpath_overrides_runpath=yes 16729 hardcode_into_libs=yes 16730 ;; 16731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16733 shlibpath_overrides_runpath=no 16734 hardcode_into_libs=yes 16735 ;; 16736 *) # from 4.6 on, and DragonFly 16737 shlibpath_overrides_runpath=yes 16738 hardcode_into_libs=yes 16739 ;; 16740 esac 16741 ;; 16742 16743haiku*) 16744 version_type=linux # correct to gnu/linux during the next big refactor 16745 need_lib_prefix=no 16746 need_version=no 16747 dynamic_linker="$host_os runtime_loader" 16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16749 soname_spec='${libname}${release}${shared_ext}$major' 16750 shlibpath_var=LIBRARY_PATH 16751 shlibpath_overrides_runpath=yes 16752 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16753 hardcode_into_libs=yes 16754 ;; 16755 16756hpux9* | hpux10* | hpux11*) 16757 # Give a soname corresponding to the major version so that dld.sl refuses to 16758 # link against other versions. 16759 version_type=sunos 16760 need_lib_prefix=no 16761 need_version=no 16762 case $host_cpu in 16763 ia64*) 16764 shrext_cmds='.so' 16765 hardcode_into_libs=yes 16766 dynamic_linker="$host_os dld.so" 16767 shlibpath_var=LD_LIBRARY_PATH 16768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16770 soname_spec='${libname}${release}${shared_ext}$major' 16771 if test "X$HPUX_IA64_MODE" = X32; then 16772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16773 else 16774 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16775 fi 16776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16777 ;; 16778 hppa*64*) 16779 shrext_cmds='.sl' 16780 hardcode_into_libs=yes 16781 dynamic_linker="$host_os dld.sl" 16782 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16785 soname_spec='${libname}${release}${shared_ext}$major' 16786 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16788 ;; 16789 *) 16790 shrext_cmds='.sl' 16791 dynamic_linker="$host_os dld.sl" 16792 shlibpath_var=SHLIB_PATH 16793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16795 soname_spec='${libname}${release}${shared_ext}$major' 16796 ;; 16797 esac 16798 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16799 postinstall_cmds='chmod 555 $lib' 16800 # or fails outright, so override atomically: 16801 install_override_mode=555 16802 ;; 16803 16804interix[3-9]*) 16805 version_type=linux # correct to gnu/linux during the next big refactor 16806 need_lib_prefix=no 16807 need_version=no 16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16809 soname_spec='${libname}${release}${shared_ext}$major' 16810 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16811 shlibpath_var=LD_LIBRARY_PATH 16812 shlibpath_overrides_runpath=no 16813 hardcode_into_libs=yes 16814 ;; 16815 16816irix5* | irix6* | nonstopux*) 16817 case $host_os in 16818 nonstopux*) version_type=nonstopux ;; 16819 *) 16820 if test "$lt_cv_prog_gnu_ld" = yes; then 16821 version_type=linux # correct to gnu/linux during the next big refactor 16822 else 16823 version_type=irix 16824 fi ;; 16825 esac 16826 need_lib_prefix=no 16827 need_version=no 16828 soname_spec='${libname}${release}${shared_ext}$major' 16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16830 case $host_os in 16831 irix5* | nonstopux*) 16832 libsuff= shlibsuff= 16833 ;; 16834 *) 16835 case $LD in # libtool.m4 will add one of these switches to LD 16836 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16837 libsuff= shlibsuff= libmagic=32-bit;; 16838 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16839 libsuff=32 shlibsuff=N32 libmagic=N32;; 16840 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16841 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16842 *) libsuff= shlibsuff= libmagic=never-match;; 16843 esac 16844 ;; 16845 esac 16846 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16847 shlibpath_overrides_runpath=no 16848 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16849 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16850 hardcode_into_libs=yes 16851 ;; 16852 16853# No shared lib support for Linux oldld, aout, or coff. 16854linux*oldld* | linux*aout* | linux*coff*) 16855 dynamic_linker=no 16856 ;; 16857 16858# This must be glibc/ELF. 16859linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16860 version_type=linux # correct to gnu/linux during the next big refactor 16861 need_lib_prefix=no 16862 need_version=no 16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16864 soname_spec='${libname}${release}${shared_ext}$major' 16865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16866 shlibpath_var=LD_LIBRARY_PATH 16867 shlibpath_overrides_runpath=no 16868 16869 # Some binutils ld are patched to set DT_RUNPATH 16870 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16871 $as_echo_n "(cached) " >&6 16872else 16873 lt_cv_shlibpath_overrides_runpath=no 16874 save_LDFLAGS=$LDFLAGS 16875 save_libdir=$libdir 16876 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16877 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16879/* end confdefs.h. */ 16880 16881int 16882main () 16883{ 16884 16885 ; 16886 return 0; 16887} 16888_ACEOF 16889if ac_fn_c_try_link "$LINENO"; then : 16890 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16891 lt_cv_shlibpath_overrides_runpath=yes 16892fi 16893fi 16894rm -f core conftest.err conftest.$ac_objext \ 16895 conftest$ac_exeext conftest.$ac_ext 16896 LDFLAGS=$save_LDFLAGS 16897 libdir=$save_libdir 16898 16899fi 16900 16901 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16902 16903 # This implies no fast_install, which is unacceptable. 16904 # Some rework will be needed to allow for fast_install 16905 # before this can be enabled. 16906 hardcode_into_libs=yes 16907 16908 # Append ld.so.conf contents to the search path 16909 if test -f /etc/ld.so.conf; then 16910 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' ' '` 16911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16912 fi 16913 16914 # We used to test for /lib/ld.so.1 and disable shared libraries on 16915 # powerpc, because MkLinux only supported shared libraries with the 16916 # GNU dynamic linker. Since this was broken with cross compilers, 16917 # most powerpc-linux boxes support dynamic linking these days and 16918 # people can always --disable-shared, the test was removed, and we 16919 # assume the GNU/Linux dynamic linker is in use. 16920 dynamic_linker='GNU/Linux ld.so' 16921 ;; 16922 16923netbsdelf*-gnu) 16924 version_type=linux 16925 need_lib_prefix=no 16926 need_version=no 16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16928 soname_spec='${libname}${release}${shared_ext}$major' 16929 shlibpath_var=LD_LIBRARY_PATH 16930 shlibpath_overrides_runpath=no 16931 hardcode_into_libs=yes 16932 dynamic_linker='NetBSD ld.elf_so' 16933 ;; 16934 16935netbsd*) 16936 version_type=sunos 16937 need_lib_prefix=no 16938 need_version=no 16939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16942 dynamic_linker='NetBSD (a.out) ld.so' 16943 else 16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16945 soname_spec='${libname}${release}${shared_ext}$major' 16946 dynamic_linker='NetBSD ld.elf_so' 16947 fi 16948 shlibpath_var=LD_LIBRARY_PATH 16949 shlibpath_overrides_runpath=yes 16950 hardcode_into_libs=yes 16951 ;; 16952 16953newsos6) 16954 version_type=linux # correct to gnu/linux during the next big refactor 16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16956 shlibpath_var=LD_LIBRARY_PATH 16957 shlibpath_overrides_runpath=yes 16958 ;; 16959 16960*nto* | *qnx*) 16961 version_type=qnx 16962 need_lib_prefix=no 16963 need_version=no 16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16965 soname_spec='${libname}${release}${shared_ext}$major' 16966 shlibpath_var=LD_LIBRARY_PATH 16967 shlibpath_overrides_runpath=no 16968 hardcode_into_libs=yes 16969 dynamic_linker='ldqnx.so' 16970 ;; 16971 16972openbsd*) 16973 version_type=sunos 16974 sys_lib_dlsearch_path_spec="/usr/lib" 16975 need_lib_prefix=no 16976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16977 case $host_os in 16978 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16979 *) need_version=no ;; 16980 esac 16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16983 shlibpath_var=LD_LIBRARY_PATH 16984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16985 case $host_os in 16986 openbsd2.[89] | openbsd2.[89].*) 16987 shlibpath_overrides_runpath=no 16988 ;; 16989 *) 16990 shlibpath_overrides_runpath=yes 16991 ;; 16992 esac 16993 else 16994 shlibpath_overrides_runpath=yes 16995 fi 16996 ;; 16997 16998os2*) 16999 libname_spec='$name' 17000 shrext_cmds=".dll" 17001 need_lib_prefix=no 17002 library_names_spec='$libname${shared_ext} $libname.a' 17003 dynamic_linker='OS/2 ld.exe' 17004 shlibpath_var=LIBPATH 17005 ;; 17006 17007osf3* | osf4* | osf5*) 17008 version_type=osf 17009 need_lib_prefix=no 17010 need_version=no 17011 soname_spec='${libname}${release}${shared_ext}$major' 17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17013 shlibpath_var=LD_LIBRARY_PATH 17014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17016 ;; 17017 17018rdos*) 17019 dynamic_linker=no 17020 ;; 17021 17022solaris*) 17023 version_type=linux # correct to gnu/linux during the next big refactor 17024 need_lib_prefix=no 17025 need_version=no 17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17027 soname_spec='${libname}${release}${shared_ext}$major' 17028 shlibpath_var=LD_LIBRARY_PATH 17029 shlibpath_overrides_runpath=yes 17030 hardcode_into_libs=yes 17031 # ldd complains unless libraries are executable 17032 postinstall_cmds='chmod +x $lib' 17033 ;; 17034 17035sunos4*) 17036 version_type=sunos 17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17039 shlibpath_var=LD_LIBRARY_PATH 17040 shlibpath_overrides_runpath=yes 17041 if test "$with_gnu_ld" = yes; then 17042 need_lib_prefix=no 17043 fi 17044 need_version=yes 17045 ;; 17046 17047sysv4 | sysv4.3*) 17048 version_type=linux # correct to gnu/linux during the next big refactor 17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17050 soname_spec='${libname}${release}${shared_ext}$major' 17051 shlibpath_var=LD_LIBRARY_PATH 17052 case $host_vendor in 17053 sni) 17054 shlibpath_overrides_runpath=no 17055 need_lib_prefix=no 17056 runpath_var=LD_RUN_PATH 17057 ;; 17058 siemens) 17059 need_lib_prefix=no 17060 ;; 17061 motorola) 17062 need_lib_prefix=no 17063 need_version=no 17064 shlibpath_overrides_runpath=no 17065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17066 ;; 17067 esac 17068 ;; 17069 17070sysv4*MP*) 17071 if test -d /usr/nec ;then 17072 version_type=linux # correct to gnu/linux during the next big refactor 17073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17074 soname_spec='$libname${shared_ext}.$major' 17075 shlibpath_var=LD_LIBRARY_PATH 17076 fi 17077 ;; 17078 17079sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17080 version_type=freebsd-elf 17081 need_lib_prefix=no 17082 need_version=no 17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17084 soname_spec='${libname}${release}${shared_ext}$major' 17085 shlibpath_var=LD_LIBRARY_PATH 17086 shlibpath_overrides_runpath=yes 17087 hardcode_into_libs=yes 17088 if test "$with_gnu_ld" = yes; then 17089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17090 else 17091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17092 case $host_os in 17093 sco3.2v5*) 17094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17095 ;; 17096 esac 17097 fi 17098 sys_lib_dlsearch_path_spec='/usr/lib' 17099 ;; 17100 17101tpf*) 17102 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17103 version_type=linux # correct to gnu/linux during the next big refactor 17104 need_lib_prefix=no 17105 need_version=no 17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17107 shlibpath_var=LD_LIBRARY_PATH 17108 shlibpath_overrides_runpath=no 17109 hardcode_into_libs=yes 17110 ;; 17111 17112uts4*) 17113 version_type=linux # correct to gnu/linux during the next big refactor 17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17115 soname_spec='${libname}${release}${shared_ext}$major' 17116 shlibpath_var=LD_LIBRARY_PATH 17117 ;; 17118 17119*) 17120 dynamic_linker=no 17121 ;; 17122esac 17123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17124$as_echo "$dynamic_linker" >&6; } 17125test "$dynamic_linker" = no && can_build_shared=no 17126 17127variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17128if test "$GCC" = yes; then 17129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17130fi 17131 17132if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17133 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17134fi 17135if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17136 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17137fi 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17231$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17232hardcode_action= 17233if test -n "$hardcode_libdir_flag_spec" || 17234 test -n "$runpath_var" || 17235 test "X$hardcode_automatic" = "Xyes" ; then 17236 17237 # We can hardcode non-existent directories. 17238 if test "$hardcode_direct" != no && 17239 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17240 # have to relink, otherwise we might link with an installed library 17241 # when we should be linking with a yet-to-be-installed one 17242 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17243 test "$hardcode_minus_L" != no; then 17244 # Linking always hardcodes the temporary library directory. 17245 hardcode_action=relink 17246 else 17247 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17248 hardcode_action=immediate 17249 fi 17250else 17251 # We cannot hardcode anything, or else we can only hardcode existing 17252 # directories. 17253 hardcode_action=unsupported 17254fi 17255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17256$as_echo "$hardcode_action" >&6; } 17257 17258if test "$hardcode_action" = relink || 17259 test "$inherit_rpath" = yes; then 17260 # Fast installation is not supported 17261 enable_fast_install=no 17262elif test "$shlibpath_overrides_runpath" = yes || 17263 test "$enable_shared" = no; then 17264 # Fast installation is not necessary 17265 enable_fast_install=needless 17266fi 17267 17268 17269 17270 17271 17272 17273 if test "x$enable_dlopen" != xyes; then 17274 enable_dlopen=unknown 17275 enable_dlopen_self=unknown 17276 enable_dlopen_self_static=unknown 17277else 17278 lt_cv_dlopen=no 17279 lt_cv_dlopen_libs= 17280 17281 case $host_os in 17282 beos*) 17283 lt_cv_dlopen="load_add_on" 17284 lt_cv_dlopen_libs= 17285 lt_cv_dlopen_self=yes 17286 ;; 17287 17288 mingw* | pw32* | cegcc*) 17289 lt_cv_dlopen="LoadLibrary" 17290 lt_cv_dlopen_libs= 17291 ;; 17292 17293 cygwin*) 17294 lt_cv_dlopen="dlopen" 17295 lt_cv_dlopen_libs= 17296 ;; 17297 17298 darwin*) 17299 # if libdl is installed we need to link against it 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17301$as_echo_n "checking for dlopen in -ldl... " >&6; } 17302if ${ac_cv_lib_dl_dlopen+:} false; then : 17303 $as_echo_n "(cached) " >&6 17304else 17305 ac_check_lib_save_LIBS=$LIBS 17306LIBS="-ldl $LIBS" 17307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17308/* end confdefs.h. */ 17309 17310/* Override any GCC internal prototype to avoid an error. 17311 Use char because int might match the return type of a GCC 17312 builtin and then its argument prototype would still apply. */ 17313#ifdef __cplusplus 17314extern "C" 17315#endif 17316char dlopen (); 17317int 17318main () 17319{ 17320return dlopen (); 17321 ; 17322 return 0; 17323} 17324_ACEOF 17325if ac_fn_c_try_link "$LINENO"; then : 17326 ac_cv_lib_dl_dlopen=yes 17327else 17328 ac_cv_lib_dl_dlopen=no 17329fi 17330rm -f core conftest.err conftest.$ac_objext \ 17331 conftest$ac_exeext conftest.$ac_ext 17332LIBS=$ac_check_lib_save_LIBS 17333fi 17334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17335$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17336if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17338else 17339 17340 lt_cv_dlopen="dyld" 17341 lt_cv_dlopen_libs= 17342 lt_cv_dlopen_self=yes 17343 17344fi 17345 17346 ;; 17347 17348 *) 17349 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17350if test "x$ac_cv_func_shl_load" = xyes; then : 17351 lt_cv_dlopen="shl_load" 17352else 17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17354$as_echo_n "checking for shl_load in -ldld... " >&6; } 17355if ${ac_cv_lib_dld_shl_load+:} false; then : 17356 $as_echo_n "(cached) " >&6 17357else 17358 ac_check_lib_save_LIBS=$LIBS 17359LIBS="-ldld $LIBS" 17360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17361/* end confdefs.h. */ 17362 17363/* Override any GCC internal prototype to avoid an error. 17364 Use char because int might match the return type of a GCC 17365 builtin and then its argument prototype would still apply. */ 17366#ifdef __cplusplus 17367extern "C" 17368#endif 17369char shl_load (); 17370int 17371main () 17372{ 17373return shl_load (); 17374 ; 17375 return 0; 17376} 17377_ACEOF 17378if ac_fn_c_try_link "$LINENO"; then : 17379 ac_cv_lib_dld_shl_load=yes 17380else 17381 ac_cv_lib_dld_shl_load=no 17382fi 17383rm -f core conftest.err conftest.$ac_objext \ 17384 conftest$ac_exeext conftest.$ac_ext 17385LIBS=$ac_check_lib_save_LIBS 17386fi 17387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17388$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17389if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17390 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17391else 17392 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17393if test "x$ac_cv_func_dlopen" = xyes; then : 17394 lt_cv_dlopen="dlopen" 17395else 17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17397$as_echo_n "checking for dlopen in -ldl... " >&6; } 17398if ${ac_cv_lib_dl_dlopen+:} false; then : 17399 $as_echo_n "(cached) " >&6 17400else 17401 ac_check_lib_save_LIBS=$LIBS 17402LIBS="-ldl $LIBS" 17403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17404/* end confdefs.h. */ 17405 17406/* Override any GCC internal prototype to avoid an error. 17407 Use char because int might match the return type of a GCC 17408 builtin and then its argument prototype would still apply. */ 17409#ifdef __cplusplus 17410extern "C" 17411#endif 17412char dlopen (); 17413int 17414main () 17415{ 17416return dlopen (); 17417 ; 17418 return 0; 17419} 17420_ACEOF 17421if ac_fn_c_try_link "$LINENO"; then : 17422 ac_cv_lib_dl_dlopen=yes 17423else 17424 ac_cv_lib_dl_dlopen=no 17425fi 17426rm -f core conftest.err conftest.$ac_objext \ 17427 conftest$ac_exeext conftest.$ac_ext 17428LIBS=$ac_check_lib_save_LIBS 17429fi 17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17431$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17432if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17434else 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17436$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17437if ${ac_cv_lib_svld_dlopen+:} false; then : 17438 $as_echo_n "(cached) " >&6 17439else 17440 ac_check_lib_save_LIBS=$LIBS 17441LIBS="-lsvld $LIBS" 17442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17443/* end confdefs.h. */ 17444 17445/* Override any GCC internal prototype to avoid an error. 17446 Use char because int might match the return type of a GCC 17447 builtin and then its argument prototype would still apply. */ 17448#ifdef __cplusplus 17449extern "C" 17450#endif 17451char dlopen (); 17452int 17453main () 17454{ 17455return dlopen (); 17456 ; 17457 return 0; 17458} 17459_ACEOF 17460if ac_fn_c_try_link "$LINENO"; then : 17461 ac_cv_lib_svld_dlopen=yes 17462else 17463 ac_cv_lib_svld_dlopen=no 17464fi 17465rm -f core conftest.err conftest.$ac_objext \ 17466 conftest$ac_exeext conftest.$ac_ext 17467LIBS=$ac_check_lib_save_LIBS 17468fi 17469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17470$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17471if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17473else 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17475$as_echo_n "checking for dld_link in -ldld... " >&6; } 17476if ${ac_cv_lib_dld_dld_link+:} false; then : 17477 $as_echo_n "(cached) " >&6 17478else 17479 ac_check_lib_save_LIBS=$LIBS 17480LIBS="-ldld $LIBS" 17481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17482/* end confdefs.h. */ 17483 17484/* Override any GCC internal prototype to avoid an error. 17485 Use char because int might match the return type of a GCC 17486 builtin and then its argument prototype would still apply. */ 17487#ifdef __cplusplus 17488extern "C" 17489#endif 17490char dld_link (); 17491int 17492main () 17493{ 17494return dld_link (); 17495 ; 17496 return 0; 17497} 17498_ACEOF 17499if ac_fn_c_try_link "$LINENO"; then : 17500 ac_cv_lib_dld_dld_link=yes 17501else 17502 ac_cv_lib_dld_dld_link=no 17503fi 17504rm -f core conftest.err conftest.$ac_objext \ 17505 conftest$ac_exeext conftest.$ac_ext 17506LIBS=$ac_check_lib_save_LIBS 17507fi 17508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17509$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17510if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17512fi 17513 17514 17515fi 17516 17517 17518fi 17519 17520 17521fi 17522 17523 17524fi 17525 17526 17527fi 17528 17529 ;; 17530 esac 17531 17532 if test "x$lt_cv_dlopen" != xno; then 17533 enable_dlopen=yes 17534 else 17535 enable_dlopen=no 17536 fi 17537 17538 case $lt_cv_dlopen in 17539 dlopen) 17540 save_CPPFLAGS="$CPPFLAGS" 17541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17542 17543 save_LDFLAGS="$LDFLAGS" 17544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17545 17546 save_LIBS="$LIBS" 17547 LIBS="$lt_cv_dlopen_libs $LIBS" 17548 17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17550$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17551if ${lt_cv_dlopen_self+:} false; then : 17552 $as_echo_n "(cached) " >&6 17553else 17554 if test "$cross_compiling" = yes; then : 17555 lt_cv_dlopen_self=cross 17556else 17557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17558 lt_status=$lt_dlunknown 17559 cat > conftest.$ac_ext <<_LT_EOF 17560#line $LINENO "configure" 17561#include "confdefs.h" 17562 17563#if HAVE_DLFCN_H 17564#include <dlfcn.h> 17565#endif 17566 17567#include <stdio.h> 17568 17569#ifdef RTLD_GLOBAL 17570# define LT_DLGLOBAL RTLD_GLOBAL 17571#else 17572# ifdef DL_GLOBAL 17573# define LT_DLGLOBAL DL_GLOBAL 17574# else 17575# define LT_DLGLOBAL 0 17576# endif 17577#endif 17578 17579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17580 find out it does not work in some platform. */ 17581#ifndef LT_DLLAZY_OR_NOW 17582# ifdef RTLD_LAZY 17583# define LT_DLLAZY_OR_NOW RTLD_LAZY 17584# else 17585# ifdef DL_LAZY 17586# define LT_DLLAZY_OR_NOW DL_LAZY 17587# else 17588# ifdef RTLD_NOW 17589# define LT_DLLAZY_OR_NOW RTLD_NOW 17590# else 17591# ifdef DL_NOW 17592# define LT_DLLAZY_OR_NOW DL_NOW 17593# else 17594# define LT_DLLAZY_OR_NOW 0 17595# endif 17596# endif 17597# endif 17598# endif 17599#endif 17600 17601/* When -fvisbility=hidden is used, assume the code has been annotated 17602 correspondingly for the symbols needed. */ 17603#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17604int fnord () __attribute__((visibility("default"))); 17605#endif 17606 17607int fnord () { return 42; } 17608int main () 17609{ 17610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17611 int status = $lt_dlunknown; 17612 17613 if (self) 17614 { 17615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17616 else 17617 { 17618 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17619 else puts (dlerror ()); 17620 } 17621 /* dlclose (self); */ 17622 } 17623 else 17624 puts (dlerror ()); 17625 17626 return status; 17627} 17628_LT_EOF 17629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17630 (eval $ac_link) 2>&5 17631 ac_status=$? 17632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17633 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17634 (./conftest; exit; ) >&5 2>/dev/null 17635 lt_status=$? 17636 case x$lt_status in 17637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17639 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17640 esac 17641 else : 17642 # compilation failed 17643 lt_cv_dlopen_self=no 17644 fi 17645fi 17646rm -fr conftest* 17647 17648 17649fi 17650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17651$as_echo "$lt_cv_dlopen_self" >&6; } 17652 17653 if test "x$lt_cv_dlopen_self" = xyes; then 17654 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17656$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17657if ${lt_cv_dlopen_self_static+:} false; then : 17658 $as_echo_n "(cached) " >&6 17659else 17660 if test "$cross_compiling" = yes; then : 17661 lt_cv_dlopen_self_static=cross 17662else 17663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17664 lt_status=$lt_dlunknown 17665 cat > conftest.$ac_ext <<_LT_EOF 17666#line $LINENO "configure" 17667#include "confdefs.h" 17668 17669#if HAVE_DLFCN_H 17670#include <dlfcn.h> 17671#endif 17672 17673#include <stdio.h> 17674 17675#ifdef RTLD_GLOBAL 17676# define LT_DLGLOBAL RTLD_GLOBAL 17677#else 17678# ifdef DL_GLOBAL 17679# define LT_DLGLOBAL DL_GLOBAL 17680# else 17681# define LT_DLGLOBAL 0 17682# endif 17683#endif 17684 17685/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17686 find out it does not work in some platform. */ 17687#ifndef LT_DLLAZY_OR_NOW 17688# ifdef RTLD_LAZY 17689# define LT_DLLAZY_OR_NOW RTLD_LAZY 17690# else 17691# ifdef DL_LAZY 17692# define LT_DLLAZY_OR_NOW DL_LAZY 17693# else 17694# ifdef RTLD_NOW 17695# define LT_DLLAZY_OR_NOW RTLD_NOW 17696# else 17697# ifdef DL_NOW 17698# define LT_DLLAZY_OR_NOW DL_NOW 17699# else 17700# define LT_DLLAZY_OR_NOW 0 17701# endif 17702# endif 17703# endif 17704# endif 17705#endif 17706 17707/* When -fvisbility=hidden is used, assume the code has been annotated 17708 correspondingly for the symbols needed. */ 17709#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17710int fnord () __attribute__((visibility("default"))); 17711#endif 17712 17713int fnord () { return 42; } 17714int main () 17715{ 17716 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17717 int status = $lt_dlunknown; 17718 17719 if (self) 17720 { 17721 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17722 else 17723 { 17724 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17725 else puts (dlerror ()); 17726 } 17727 /* dlclose (self); */ 17728 } 17729 else 17730 puts (dlerror ()); 17731 17732 return status; 17733} 17734_LT_EOF 17735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17736 (eval $ac_link) 2>&5 17737 ac_status=$? 17738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17739 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17740 (./conftest; exit; ) >&5 2>/dev/null 17741 lt_status=$? 17742 case x$lt_status in 17743 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17744 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17745 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17746 esac 17747 else : 17748 # compilation failed 17749 lt_cv_dlopen_self_static=no 17750 fi 17751fi 17752rm -fr conftest* 17753 17754 17755fi 17756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17757$as_echo "$lt_cv_dlopen_self_static" >&6; } 17758 fi 17759 17760 CPPFLAGS="$save_CPPFLAGS" 17761 LDFLAGS="$save_LDFLAGS" 17762 LIBS="$save_LIBS" 17763 ;; 17764 esac 17765 17766 case $lt_cv_dlopen_self in 17767 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17768 *) enable_dlopen_self=unknown ;; 17769 esac 17770 17771 case $lt_cv_dlopen_self_static in 17772 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17773 *) enable_dlopen_self_static=unknown ;; 17774 esac 17775fi 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793striplib= 17794old_striplib= 17795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17796$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17797if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17798 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17799 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17801$as_echo "yes" >&6; } 17802else 17803# FIXME - insert some real tests, host_os isn't really good enough 17804 case $host_os in 17805 darwin*) 17806 if test -n "$STRIP" ; then 17807 striplib="$STRIP -x" 17808 old_striplib="$STRIP -S" 17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17810$as_echo "yes" >&6; } 17811 else 17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17813$as_echo "no" >&6; } 17814 fi 17815 ;; 17816 *) 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17818$as_echo "no" >&6; } 17819 ;; 17820 esac 17821fi 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 # Report which library types will actually be built 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17836$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17838$as_echo "$can_build_shared" >&6; } 17839 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17841$as_echo_n "checking whether to build shared libraries... " >&6; } 17842 test "$can_build_shared" = "no" && enable_shared=no 17843 17844 # On AIX, shared libraries and static libraries use the same namespace, and 17845 # are all built from PIC. 17846 case $host_os in 17847 aix3*) 17848 test "$enable_shared" = yes && enable_static=no 17849 if test -n "$RANLIB"; then 17850 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17851 postinstall_cmds='$RANLIB $lib' 17852 fi 17853 ;; 17854 17855 aix[4-9]*) 17856 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17857 test "$enable_shared" = yes && enable_static=no 17858 fi 17859 ;; 17860 esac 17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17862$as_echo "$enable_shared" >&6; } 17863 17864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17865$as_echo_n "checking whether to build static libraries... " >&6; } 17866 # Make sure either enable_shared or enable_static is yes. 17867 test "$enable_shared" = yes || enable_static=yes 17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17869$as_echo "$enable_static" >&6; } 17870 17871 17872 17873 17874fi 17875ac_ext=c 17876ac_cpp='$CPP $CPPFLAGS' 17877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17879ac_compiler_gnu=$ac_cv_c_compiler_gnu 17880 17881CC="$lt_save_CC" 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 ac_config_commands="$ac_config_commands libtool" 17898 17899 17900 17901 17902# Only expand once: 17903 17904 17905ac_ext=c 17906ac_cpp='$CPP $CPPFLAGS' 17907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17909ac_compiler_gnu=$ac_cv_c_compiler_gnu 17910if test -n "$ac_tool_prefix"; then 17911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 17912set dummy ${ac_tool_prefix}gcc; ac_word=$2 17913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17914$as_echo_n "checking for $ac_word... " >&6; } 17915if ${ac_cv_prog_CC+:} false; then : 17916 $as_echo_n "(cached) " >&6 17917else 17918 if test -n "$CC"; then 17919 ac_cv_prog_CC="$CC" # Let the user override the test. 17920else 17921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17922for as_dir in $PATH 17923do 17924 IFS=$as_save_IFS 17925 test -z "$as_dir" && as_dir=. 17926 for ac_exec_ext in '' $ac_executable_extensions; do 17927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17928 ac_cv_prog_CC="${ac_tool_prefix}gcc" 17929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17930 break 2 17931 fi 17932done 17933 done 17934IFS=$as_save_IFS 17935 17936fi 17937fi 17938CC=$ac_cv_prog_CC 17939if test -n "$CC"; then 17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 17941$as_echo "$CC" >&6; } 17942else 17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17944$as_echo "no" >&6; } 17945fi 17946 17947 17948fi 17949if test -z "$ac_cv_prog_CC"; then 17950 ac_ct_CC=$CC 17951 # Extract the first word of "gcc", so it can be a program name with args. 17952set dummy gcc; ac_word=$2 17953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17954$as_echo_n "checking for $ac_word... " >&6; } 17955if ${ac_cv_prog_ac_ct_CC+:} false; then : 17956 $as_echo_n "(cached) " >&6 17957else 17958 if test -n "$ac_ct_CC"; then 17959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 17960else 17961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17962for as_dir in $PATH 17963do 17964 IFS=$as_save_IFS 17965 test -z "$as_dir" && as_dir=. 17966 for ac_exec_ext in '' $ac_executable_extensions; do 17967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17968 ac_cv_prog_ac_ct_CC="gcc" 17969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17970 break 2 17971 fi 17972done 17973 done 17974IFS=$as_save_IFS 17975 17976fi 17977fi 17978ac_ct_CC=$ac_cv_prog_ac_ct_CC 17979if test -n "$ac_ct_CC"; then 17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 17981$as_echo "$ac_ct_CC" >&6; } 17982else 17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17984$as_echo "no" >&6; } 17985fi 17986 17987 if test "x$ac_ct_CC" = x; then 17988 CC="" 17989 else 17990 case $cross_compiling:$ac_tool_warned in 17991yes:) 17992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17994ac_tool_warned=yes ;; 17995esac 17996 CC=$ac_ct_CC 17997 fi 17998else 17999 CC="$ac_cv_prog_CC" 18000fi 18001 18002if test -z "$CC"; then 18003 if test -n "$ac_tool_prefix"; then 18004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18005set dummy ${ac_tool_prefix}cc; ac_word=$2 18006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18007$as_echo_n "checking for $ac_word... " >&6; } 18008if ${ac_cv_prog_CC+:} false; then : 18009 $as_echo_n "(cached) " >&6 18010else 18011 if test -n "$CC"; then 18012 ac_cv_prog_CC="$CC" # Let the user override the test. 18013else 18014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18015for as_dir in $PATH 18016do 18017 IFS=$as_save_IFS 18018 test -z "$as_dir" && as_dir=. 18019 for ac_exec_ext in '' $ac_executable_extensions; do 18020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18021 ac_cv_prog_CC="${ac_tool_prefix}cc" 18022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18023 break 2 18024 fi 18025done 18026 done 18027IFS=$as_save_IFS 18028 18029fi 18030fi 18031CC=$ac_cv_prog_CC 18032if test -n "$CC"; then 18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18034$as_echo "$CC" >&6; } 18035else 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18037$as_echo "no" >&6; } 18038fi 18039 18040 18041 fi 18042fi 18043if test -z "$CC"; then 18044 # Extract the first word of "cc", so it can be a program name with args. 18045set dummy cc; ac_word=$2 18046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18047$as_echo_n "checking for $ac_word... " >&6; } 18048if ${ac_cv_prog_CC+:} false; then : 18049 $as_echo_n "(cached) " >&6 18050else 18051 if test -n "$CC"; then 18052 ac_cv_prog_CC="$CC" # Let the user override the test. 18053else 18054 ac_prog_rejected=no 18055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18056for as_dir in $PATH 18057do 18058 IFS=$as_save_IFS 18059 test -z "$as_dir" && as_dir=. 18060 for ac_exec_ext in '' $ac_executable_extensions; do 18061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18063 ac_prog_rejected=yes 18064 continue 18065 fi 18066 ac_cv_prog_CC="cc" 18067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18068 break 2 18069 fi 18070done 18071 done 18072IFS=$as_save_IFS 18073 18074if test $ac_prog_rejected = yes; then 18075 # We found a bogon in the path, so make sure we never use it. 18076 set dummy $ac_cv_prog_CC 18077 shift 18078 if test $# != 0; then 18079 # We chose a different compiler from the bogus one. 18080 # However, it has the same basename, so the bogon will be chosen 18081 # first if we set CC to just the basename; use the full file name. 18082 shift 18083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 18084 fi 18085fi 18086fi 18087fi 18088CC=$ac_cv_prog_CC 18089if test -n "$CC"; then 18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18091$as_echo "$CC" >&6; } 18092else 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18094$as_echo "no" >&6; } 18095fi 18096 18097 18098fi 18099if test -z "$CC"; then 18100 if test -n "$ac_tool_prefix"; then 18101 for ac_prog in cl.exe 18102 do 18103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18104set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18106$as_echo_n "checking for $ac_word... " >&6; } 18107if ${ac_cv_prog_CC+:} false; then : 18108 $as_echo_n "(cached) " >&6 18109else 18110 if test -n "$CC"; then 18111 ac_cv_prog_CC="$CC" # Let the user override the test. 18112else 18113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18114for as_dir in $PATH 18115do 18116 IFS=$as_save_IFS 18117 test -z "$as_dir" && as_dir=. 18118 for ac_exec_ext in '' $ac_executable_extensions; do 18119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18122 break 2 18123 fi 18124done 18125 done 18126IFS=$as_save_IFS 18127 18128fi 18129fi 18130CC=$ac_cv_prog_CC 18131if test -n "$CC"; then 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18133$as_echo "$CC" >&6; } 18134else 18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18136$as_echo "no" >&6; } 18137fi 18138 18139 18140 test -n "$CC" && break 18141 done 18142fi 18143if test -z "$CC"; then 18144 ac_ct_CC=$CC 18145 for ac_prog in cl.exe 18146do 18147 # Extract the first word of "$ac_prog", so it can be a program name with args. 18148set dummy $ac_prog; ac_word=$2 18149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18150$as_echo_n "checking for $ac_word... " >&6; } 18151if ${ac_cv_prog_ac_ct_CC+:} false; then : 18152 $as_echo_n "(cached) " >&6 18153else 18154 if test -n "$ac_ct_CC"; then 18155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18156else 18157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18158for as_dir in $PATH 18159do 18160 IFS=$as_save_IFS 18161 test -z "$as_dir" && as_dir=. 18162 for ac_exec_ext in '' $ac_executable_extensions; do 18163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18164 ac_cv_prog_ac_ct_CC="$ac_prog" 18165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18166 break 2 18167 fi 18168done 18169 done 18170IFS=$as_save_IFS 18171 18172fi 18173fi 18174ac_ct_CC=$ac_cv_prog_ac_ct_CC 18175if test -n "$ac_ct_CC"; then 18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 18177$as_echo "$ac_ct_CC" >&6; } 18178else 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18180$as_echo "no" >&6; } 18181fi 18182 18183 18184 test -n "$ac_ct_CC" && break 18185done 18186 18187 if test "x$ac_ct_CC" = x; then 18188 CC="" 18189 else 18190 case $cross_compiling:$ac_tool_warned in 18191yes:) 18192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18194ac_tool_warned=yes ;; 18195esac 18196 CC=$ac_ct_CC 18197 fi 18198fi 18199 18200fi 18201 18202 18203test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18205as_fn_error $? "no acceptable C compiler found in \$PATH 18206See \`config.log' for more details" "$LINENO" 5; } 18207 18208# Provide some information about the compiler. 18209$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 18210set X $ac_compile 18211ac_compiler=$2 18212for ac_option in --version -v -V -qversion; do 18213 { { ac_try="$ac_compiler $ac_option >&5" 18214case "(($ac_try" in 18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18216 *) ac_try_echo=$ac_try;; 18217esac 18218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18219$as_echo "$ac_try_echo"; } >&5 18220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 18221 ac_status=$? 18222 if test -s conftest.err; then 18223 sed '10a\ 18224... rest of stderr output deleted ... 18225 10q' conftest.err >conftest.er1 18226 cat conftest.er1 >&5 18227 fi 18228 rm -f conftest.er1 conftest.err 18229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18230 test $ac_status = 0; } 18231done 18232 18233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 18234$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 18235if ${ac_cv_c_compiler_gnu+:} false; then : 18236 $as_echo_n "(cached) " >&6 18237else 18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18239/* end confdefs.h. */ 18240 18241int 18242main () 18243{ 18244#ifndef __GNUC__ 18245 choke me 18246#endif 18247 18248 ; 18249 return 0; 18250} 18251_ACEOF 18252if ac_fn_c_try_compile "$LINENO"; then : 18253 ac_compiler_gnu=yes 18254else 18255 ac_compiler_gnu=no 18256fi 18257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18258ac_cv_c_compiler_gnu=$ac_compiler_gnu 18259 18260fi 18261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 18262$as_echo "$ac_cv_c_compiler_gnu" >&6; } 18263if test $ac_compiler_gnu = yes; then 18264 GCC=yes 18265else 18266 GCC= 18267fi 18268ac_test_CFLAGS=${CFLAGS+set} 18269ac_save_CFLAGS=$CFLAGS 18270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 18271$as_echo_n "checking whether $CC accepts -g... " >&6; } 18272if ${ac_cv_prog_cc_g+:} false; then : 18273 $as_echo_n "(cached) " >&6 18274else 18275 ac_save_c_werror_flag=$ac_c_werror_flag 18276 ac_c_werror_flag=yes 18277 ac_cv_prog_cc_g=no 18278 CFLAGS="-g" 18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18280/* end confdefs.h. */ 18281 18282int 18283main () 18284{ 18285 18286 ; 18287 return 0; 18288} 18289_ACEOF 18290if ac_fn_c_try_compile "$LINENO"; then : 18291 ac_cv_prog_cc_g=yes 18292else 18293 CFLAGS="" 18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18295/* end confdefs.h. */ 18296 18297int 18298main () 18299{ 18300 18301 ; 18302 return 0; 18303} 18304_ACEOF 18305if ac_fn_c_try_compile "$LINENO"; then : 18306 18307else 18308 ac_c_werror_flag=$ac_save_c_werror_flag 18309 CFLAGS="-g" 18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18311/* end confdefs.h. */ 18312 18313int 18314main () 18315{ 18316 18317 ; 18318 return 0; 18319} 18320_ACEOF 18321if ac_fn_c_try_compile "$LINENO"; then : 18322 ac_cv_prog_cc_g=yes 18323fi 18324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18325fi 18326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18327fi 18328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18329 ac_c_werror_flag=$ac_save_c_werror_flag 18330fi 18331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 18332$as_echo "$ac_cv_prog_cc_g" >&6; } 18333if test "$ac_test_CFLAGS" = set; then 18334 CFLAGS=$ac_save_CFLAGS 18335elif test $ac_cv_prog_cc_g = yes; then 18336 if test "$GCC" = yes; then 18337 CFLAGS="-g -O2" 18338 else 18339 CFLAGS="-g" 18340 fi 18341else 18342 if test "$GCC" = yes; then 18343 CFLAGS="-O2" 18344 else 18345 CFLAGS= 18346 fi 18347fi 18348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 18349$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 18350if ${ac_cv_prog_cc_c89+:} false; then : 18351 $as_echo_n "(cached) " >&6 18352else 18353 ac_cv_prog_cc_c89=no 18354ac_save_CC=$CC 18355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18356/* end confdefs.h. */ 18357#include <stdarg.h> 18358#include <stdio.h> 18359struct stat; 18360/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 18361struct buf { int x; }; 18362FILE * (*rcsopen) (struct buf *, struct stat *, int); 18363static char *e (p, i) 18364 char **p; 18365 int i; 18366{ 18367 return p[i]; 18368} 18369static char *f (char * (*g) (char **, int), char **p, ...) 18370{ 18371 char *s; 18372 va_list v; 18373 va_start (v,p); 18374 s = g (p, va_arg (v,int)); 18375 va_end (v); 18376 return s; 18377} 18378 18379/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 18380 function prototypes and stuff, but not '\xHH' hex character constants. 18381 These don't provoke an error unfortunately, instead are silently treated 18382 as 'x'. The following induces an error, until -std is added to get 18383 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 18384 array size at least. It's necessary to write '\x00'==0 to get something 18385 that's true only with -std. */ 18386int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 18387 18388/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 18389 inside strings and character constants. */ 18390#define FOO(x) 'x' 18391int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 18392 18393int test (int i, double x); 18394struct s1 {int (*f) (int a);}; 18395struct s2 {int (*f) (double a);}; 18396int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 18397int argc; 18398char **argv; 18399int 18400main () 18401{ 18402return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 18403 ; 18404 return 0; 18405} 18406_ACEOF 18407for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 18408 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 18409do 18410 CC="$ac_save_CC $ac_arg" 18411 if ac_fn_c_try_compile "$LINENO"; then : 18412 ac_cv_prog_cc_c89=$ac_arg 18413fi 18414rm -f core conftest.err conftest.$ac_objext 18415 test "x$ac_cv_prog_cc_c89" != "xno" && break 18416done 18417rm -f conftest.$ac_ext 18418CC=$ac_save_CC 18419 18420fi 18421# AC_CACHE_VAL 18422case "x$ac_cv_prog_cc_c89" in 18423 x) 18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 18425$as_echo "none needed" >&6; } ;; 18426 xno) 18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 18428$as_echo "unsupported" >&6; } ;; 18429 *) 18430 CC="$CC $ac_cv_prog_cc_c89" 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 18432$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 18433esac 18434if test "x$ac_cv_prog_cc_c89" != xno; then : 18435 18436fi 18437 18438ac_ext=c 18439ac_cpp='$CPP $CPPFLAGS' 18440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18442ac_compiler_gnu=$ac_cv_c_compiler_gnu 18443 18444ac_ext=c 18445ac_cpp='$CPP $CPPFLAGS' 18446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18448ac_compiler_gnu=$ac_cv_c_compiler_gnu 18449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 18450$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 18451if ${am_cv_prog_cc_c_o+:} false; then : 18452 $as_echo_n "(cached) " >&6 18453else 18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18455/* end confdefs.h. */ 18456 18457int 18458main () 18459{ 18460 18461 ; 18462 return 0; 18463} 18464_ACEOF 18465 # Make sure it works both with $CC and with simple cc. 18466 # Following AC_PROG_CC_C_O, we do the test twice because some 18467 # compilers refuse to overwrite an existing .o file with -o, 18468 # though they will create one. 18469 am_cv_prog_cc_c_o=yes 18470 for am_i in 1 2; do 18471 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 18472 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 18473 ac_status=$? 18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18475 (exit $ac_status); } \ 18476 && test -f conftest2.$ac_objext; then 18477 : OK 18478 else 18479 am_cv_prog_cc_c_o=no 18480 break 18481 fi 18482 done 18483 rm -f core conftest* 18484 unset am_i 18485fi 18486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 18487$as_echo "$am_cv_prog_cc_c_o" >&6; } 18488if test "$am_cv_prog_cc_c_o" != yes; then 18489 # Losing compiler, so override with the script. 18490 # FIXME: It is wrong to rewrite CC. 18491 # But if we don't then we get into trouble of one sort or another. 18492 # A longer-term fix would be to have automake use am__CC in this case, 18493 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 18494 CC="$am_aux_dir/compile $CC" 18495fi 18496ac_ext=c 18497ac_cpp='$CPP $CPPFLAGS' 18498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18500ac_compiler_gnu=$ac_cv_c_compiler_gnu 18501 18502 18503depcc="$CC" am_compiler_list= 18504 18505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 18506$as_echo_n "checking dependency style of $depcc... " >&6; } 18507if ${am_cv_CC_dependencies_compiler_type+:} false; then : 18508 $as_echo_n "(cached) " >&6 18509else 18510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 18511 # We make a subdir and do the tests there. Otherwise we can end up 18512 # making bogus files that we don't know about and never remove. For 18513 # instance it was reported that on HP-UX the gcc test will end up 18514 # making a dummy file named 'D' -- because '-MD' means "put the output 18515 # in D". 18516 rm -rf conftest.dir 18517 mkdir conftest.dir 18518 # Copy depcomp to subdir because otherwise we won't find it if we're 18519 # using a relative directory. 18520 cp "$am_depcomp" conftest.dir 18521 cd conftest.dir 18522 # We will build objects and dependencies in a subdirectory because 18523 # it helps to detect inapplicable dependency modes. For instance 18524 # both Tru64's cc and ICC support -MD to output dependencies as a 18525 # side effect of compilation, but ICC will put the dependencies in 18526 # the current directory while Tru64 will put them in the object 18527 # directory. 18528 mkdir sub 18529 18530 am_cv_CC_dependencies_compiler_type=none 18531 if test "$am_compiler_list" = ""; then 18532 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 18533 fi 18534 am__universal=false 18535 case " $depcc " in #( 18536 *\ -arch\ *\ -arch\ *) am__universal=true ;; 18537 esac 18538 18539 for depmode in $am_compiler_list; do 18540 # Setup a source with many dependencies, because some compilers 18541 # like to wrap large dependency lists on column 80 (with \), and 18542 # we should not choose a depcomp mode which is confused by this. 18543 # 18544 # We need to recreate these files for each test, as the compiler may 18545 # overwrite some of them when testing with obscure command lines. 18546 # This happens at least with the AIX C compiler. 18547 : > sub/conftest.c 18548 for i in 1 2 3 4 5 6; do 18549 echo '#include "conftst'$i'.h"' >> sub/conftest.c 18550 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 18551 # Solaris 10 /bin/sh. 18552 echo '/* dummy */' > sub/conftst$i.h 18553 done 18554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 18555 18556 # We check with '-c' and '-o' for the sake of the "dashmstdout" 18557 # mode. It turns out that the SunPro C++ compiler does not properly 18558 # handle '-M -o', and we need to detect this. Also, some Intel 18559 # versions had trouble with output in subdirs. 18560 am__obj=sub/conftest.${OBJEXT-o} 18561 am__minus_obj="-o $am__obj" 18562 case $depmode in 18563 gcc) 18564 # This depmode causes a compiler race in universal mode. 18565 test "$am__universal" = false || continue 18566 ;; 18567 nosideeffect) 18568 # After this tag, mechanisms are not by side-effect, so they'll 18569 # only be used when explicitly requested. 18570 if test "x$enable_dependency_tracking" = xyes; then 18571 continue 18572 else 18573 break 18574 fi 18575 ;; 18576 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 18577 # This compiler won't grok '-c -o', but also, the minuso test has 18578 # not run yet. These depmodes are late enough in the game, and 18579 # so weak that their functioning should not be impacted. 18580 am__obj=conftest.${OBJEXT-o} 18581 am__minus_obj= 18582 ;; 18583 none) break ;; 18584 esac 18585 if depmode=$depmode \ 18586 source=sub/conftest.c object=$am__obj \ 18587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 18588 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 18589 >/dev/null 2>conftest.err && 18590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 18591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 18592 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 18593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 18594 # icc doesn't choke on unknown options, it will just issue warnings 18595 # or remarks (even with -Werror). So we grep stderr for any message 18596 # that says an option was ignored or not supported. 18597 # When given -MP, icc 7.0 and 7.1 complain thusly: 18598 # icc: Command line warning: ignoring option '-M'; no argument required 18599 # The diagnosis changed in icc 8.0: 18600 # icc: Command line remark: option '-MP' not supported 18601 if (grep 'ignoring option' conftest.err || 18602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 18603 am_cv_CC_dependencies_compiler_type=$depmode 18604 break 18605 fi 18606 fi 18607 done 18608 18609 cd .. 18610 rm -rf conftest.dir 18611else 18612 am_cv_CC_dependencies_compiler_type=none 18613fi 18614 18615fi 18616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 18617$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 18618CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 18619 18620 if 18621 test "x$enable_dependency_tracking" != xno \ 18622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 18623 am__fastdepCC_TRUE= 18624 am__fastdepCC_FALSE='#' 18625else 18626 am__fastdepCC_TRUE='#' 18627 am__fastdepCC_FALSE= 18628fi 18629 18630 18631 18632 18633 18634 18635# Check whether --with-xorg-module-dir was given. 18636if test "${with_xorg_module_dir+set}" = set; then : 18637 withval=$with_xorg_module_dir; moduledir="$withval" 18638else 18639 moduledir="$libdir/xorg/modules" 18640fi 18641 18642 18643# Checks for extensions 18644 18645 18646 SAVE_CFLAGS="$CFLAGS" 18647 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18649/* end confdefs.h. */ 18650 18651#include "xorg-server.h" 18652#if !defined RANDR 18653#error RANDR not defined 18654#endif 18655 18656int 18657main () 18658{ 18659 18660 ; 18661 return 0; 18662} 18663_ACEOF 18664if ac_fn_c_try_compile "$LINENO"; then : 18665 _EXT_CHECK=yes 18666else 18667 _EXT_CHECK=no 18668fi 18669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18670 CFLAGS="$SAVE_CFLAGS" 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18672$as_echo_n "checking if RANDR is defined... " >&6; } 18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18674$as_echo "$_EXT_CHECK" >&6; } 18675 if test "$_EXT_CHECK" != no; then 18676 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18677 fi 18678 18679 18680 18681 SAVE_CFLAGS="$CFLAGS" 18682 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18684/* end confdefs.h. */ 18685 18686#include "xorg-server.h" 18687#if !defined RENDER 18688#error RENDER not defined 18689#endif 18690 18691int 18692main () 18693{ 18694 18695 ; 18696 return 0; 18697} 18698_ACEOF 18699if ac_fn_c_try_compile "$LINENO"; then : 18700 _EXT_CHECK=yes 18701else 18702 _EXT_CHECK=no 18703fi 18704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18705 CFLAGS="$SAVE_CFLAGS" 18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18707$as_echo_n "checking if RENDER is defined... " >&6; } 18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18709$as_echo "$_EXT_CHECK" >&6; } 18710 if test "$_EXT_CHECK" != no; then 18711 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18712 fi 18713 18714 18715 18716 SAVE_CFLAGS="$CFLAGS" 18717 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719/* end confdefs.h. */ 18720 18721#include "xorg-server.h" 18722#if !defined XV 18723#error XV not defined 18724#endif 18725 18726int 18727main () 18728{ 18729 18730 ; 18731 return 0; 18732} 18733_ACEOF 18734if ac_fn_c_try_compile "$LINENO"; then : 18735 _EXT_CHECK=yes 18736else 18737 _EXT_CHECK=no 18738fi 18739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18740 CFLAGS="$SAVE_CFLAGS" 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18742$as_echo_n "checking if XV is defined... " >&6; } 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18744$as_echo "$_EXT_CHECK" >&6; } 18745 if test "$_EXT_CHECK" != no; then 18746 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18747 fi 18748 18749 18750 18751 SAVE_CFLAGS="$CFLAGS" 18752 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18754/* end confdefs.h. */ 18755 18756#include "xorg-server.h" 18757#if !defined DPMSExtension 18758#error DPMSExtension not defined 18759#endif 18760 18761int 18762main () 18763{ 18764 18765 ; 18766 return 0; 18767} 18768_ACEOF 18769if ac_fn_c_try_compile "$LINENO"; then : 18770 _EXT_CHECK=yes 18771else 18772 _EXT_CHECK=no 18773fi 18774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18775 CFLAGS="$SAVE_CFLAGS" 18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18777$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18779$as_echo "$_EXT_CHECK" >&6; } 18780 if test "$_EXT_CHECK" != no; then 18781 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18782 fi 18783 18784 18785 18786 SAVE_CFLAGS="$CFLAGS" 18787 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18789/* end confdefs.h. */ 18790 18791#include "xorg-server.h" 18792#if !defined DRI2 18793#error DRI2 not defined 18794#endif 18795 18796int 18797main () 18798{ 18799 18800 ; 18801 return 0; 18802} 18803_ACEOF 18804if ac_fn_c_try_compile "$LINENO"; then : 18805 _EXT_CHECK=yes 18806else 18807 _EXT_CHECK=no 18808fi 18809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18810 CFLAGS="$SAVE_CFLAGS" 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI2 is defined" >&5 18812$as_echo_n "checking if DRI2 is defined... " >&6; } 18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18814$as_echo "$_EXT_CHECK" >&6; } 18815 if test "$_EXT_CHECK" != no; then 18816 REQUIRED_MODULES="$REQUIRED_MODULES dri2proto >= 2.6" 18817 fi 18818 18819 18820# Checks for pkg-config packages 18821 18822pkg_failed=no 18823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 18824$as_echo_n "checking for LIBDRM... " >&6; } 18825 18826if test -n "$LIBDRM_CFLAGS"; then 18827 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 18828 elif test -n "$PKG_CONFIG"; then 18829 if test -n "$PKG_CONFIG" && \ 18830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.17\""; } >&5 18831 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.17") 2>&5 18832 ac_status=$? 18833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18834 test $ac_status = 0; }; then 18835 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.17" 2>/dev/null` 18836 test "x$?" != "x0" && pkg_failed=yes 18837else 18838 pkg_failed=yes 18839fi 18840 else 18841 pkg_failed=untried 18842fi 18843if test -n "$LIBDRM_LIBS"; then 18844 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 18845 elif test -n "$PKG_CONFIG"; then 18846 if test -n "$PKG_CONFIG" && \ 18847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.17\""; } >&5 18848 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.17") 2>&5 18849 ac_status=$? 18850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18851 test $ac_status = 0; }; then 18852 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.17" 2>/dev/null` 18853 test "x$?" != "x0" && pkg_failed=yes 18854else 18855 pkg_failed=yes 18856fi 18857 else 18858 pkg_failed=untried 18859fi 18860 18861 18862 18863if test $pkg_failed = yes; then 18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18865$as_echo "no" >&6; } 18866 18867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18868 _pkg_short_errors_supported=yes 18869else 18870 _pkg_short_errors_supported=no 18871fi 18872 if test $_pkg_short_errors_supported = yes; then 18873 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.17" 2>&1` 18874 else 18875 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.17" 2>&1` 18876 fi 18877 # Put the nasty error message in config.log where it belongs 18878 echo "$LIBDRM_PKG_ERRORS" >&5 18879 18880 as_fn_error $? "Package requirements (libdrm >= 2.4.17) were not met: 18881 18882$LIBDRM_PKG_ERRORS 18883 18884Consider adjusting the PKG_CONFIG_PATH environment variable if you 18885installed software in a non-standard prefix. 18886 18887Alternatively, you may set the environment variables LIBDRM_CFLAGS 18888and LIBDRM_LIBS to avoid the need to call pkg-config. 18889See the pkg-config man page for more details." "$LINENO" 5 18890elif test $pkg_failed = untried; then 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18892$as_echo "no" >&6; } 18893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18895as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18896is in your PATH or set the PKG_CONFIG environment variable to the full 18897path to pkg-config. 18898 18899Alternatively, you may set the environment variables LIBDRM_CFLAGS 18900and LIBDRM_LIBS to avoid the need to call pkg-config. 18901See the pkg-config man page for more details. 18902 18903To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18904See \`config.log' for more details" "$LINENO" 5; } 18905else 18906 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 18907 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18909$as_echo "yes" >&6; } 18910 18911fi 18912 18913pkg_failed=no 18914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_NOUVEAU" >&5 18915$as_echo_n "checking for LIBDRM_NOUVEAU... " >&6; } 18916 18917if test -n "$LIBDRM_NOUVEAU_CFLAGS"; then 18918 pkg_cv_LIBDRM_NOUVEAU_CFLAGS="$LIBDRM_NOUVEAU_CFLAGS" 18919 elif test -n "$PKG_CONFIG"; then 18920 if test -n "$PKG_CONFIG" && \ 18921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5 18922 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5 18923 ac_status=$? 18924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18925 test $ac_status = 0; }; then 18926 pkg_cv_LIBDRM_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= 2.4.25" 2>/dev/null` 18927 test "x$?" != "x0" && pkg_failed=yes 18928else 18929 pkg_failed=yes 18930fi 18931 else 18932 pkg_failed=untried 18933fi 18934if test -n "$LIBDRM_NOUVEAU_LIBS"; then 18935 pkg_cv_LIBDRM_NOUVEAU_LIBS="$LIBDRM_NOUVEAU_LIBS" 18936 elif test -n "$PKG_CONFIG"; then 18937 if test -n "$PKG_CONFIG" && \ 18938 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5 18939 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5 18940 ac_status=$? 18941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18942 test $ac_status = 0; }; then 18943 pkg_cv_LIBDRM_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= 2.4.25" 2>/dev/null` 18944 test "x$?" != "x0" && pkg_failed=yes 18945else 18946 pkg_failed=yes 18947fi 18948 else 18949 pkg_failed=untried 18950fi 18951 18952 18953 18954if test $pkg_failed = yes; then 18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18956$as_echo "no" >&6; } 18957 18958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18959 _pkg_short_errors_supported=yes 18960else 18961 _pkg_short_errors_supported=no 18962fi 18963 if test $_pkg_short_errors_supported = yes; then 18964 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1` 18965 else 18966 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1` 18967 fi 18968 # Put the nasty error message in config.log where it belongs 18969 echo "$LIBDRM_NOUVEAU_PKG_ERRORS" >&5 18970 18971 as_fn_error $? "Package requirements (libdrm_nouveau >= 2.4.25) were not met: 18972 18973$LIBDRM_NOUVEAU_PKG_ERRORS 18974 18975Consider adjusting the PKG_CONFIG_PATH environment variable if you 18976installed software in a non-standard prefix. 18977 18978Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS 18979and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config. 18980See the pkg-config man page for more details." "$LINENO" 5 18981elif test $pkg_failed = untried; then 18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18983$as_echo "no" >&6; } 18984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18986as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18987is in your PATH or set the PKG_CONFIG environment variable to the full 18988path to pkg-config. 18989 18990Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS 18991and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config. 18992See the pkg-config man page for more details. 18993 18994To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18995See \`config.log' for more details" "$LINENO" 5; } 18996else 18997 LIBDRM_NOUVEAU_CFLAGS=$pkg_cv_LIBDRM_NOUVEAU_CFLAGS 18998 LIBDRM_NOUVEAU_LIBS=$pkg_cv_LIBDRM_NOUVEAU_LIBS 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19000$as_echo "yes" >&6; } 19001 19002fi 19003 19004 19005 19006 19007pkg_failed=no 19008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19009$as_echo_n "checking for XORG... " >&6; } 19010 19011if test -n "$XORG_CFLAGS"; then 19012 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19013 elif test -n "$PKG_CONFIG"; then 19014 if test -n "$PKG_CONFIG" && \ 19015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5 19016 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5 19017 ac_status=$? 19018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19019 test $ac_status = 0; }; then 19020 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null` 19021 test "x$?" != "x0" && pkg_failed=yes 19022else 19023 pkg_failed=yes 19024fi 19025 else 19026 pkg_failed=untried 19027fi 19028if test -n "$XORG_LIBS"; then 19029 pkg_cv_XORG_LIBS="$XORG_LIBS" 19030 elif test -n "$PKG_CONFIG"; then 19031 if test -n "$PKG_CONFIG" && \ 19032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5 19033 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5 19034 ac_status=$? 19035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19036 test $ac_status = 0; }; then 19037 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null` 19038 test "x$?" != "x0" && pkg_failed=yes 19039else 19040 pkg_failed=yes 19041fi 19042 else 19043 pkg_failed=untried 19044fi 19045 19046 19047 19048if test $pkg_failed = yes; then 19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19050$as_echo "no" >&6; } 19051 19052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19053 _pkg_short_errors_supported=yes 19054else 19055 _pkg_short_errors_supported=no 19056fi 19057 if test $_pkg_short_errors_supported = yes; then 19058 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1` 19059 else 19060 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1` 19061 fi 19062 # Put the nasty error message in config.log where it belongs 19063 echo "$XORG_PKG_ERRORS" >&5 19064 19065 as_fn_error $? "Package requirements (xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES) were not met: 19066 19067$XORG_PKG_ERRORS 19068 19069Consider adjusting the PKG_CONFIG_PATH environment variable if you 19070installed software in a non-standard prefix. 19071 19072Alternatively, you may set the environment variables XORG_CFLAGS 19073and XORG_LIBS to avoid the need to call pkg-config. 19074See the pkg-config man page for more details." "$LINENO" 5 19075elif test $pkg_failed = untried; then 19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19077$as_echo "no" >&6; } 19078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19080as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19081is in your PATH or set the PKG_CONFIG environment variable to the full 19082path to pkg-config. 19083 19084Alternatively, you may set the environment variables XORG_CFLAGS 19085and XORG_LIBS to avoid the need to call pkg-config. 19086See the pkg-config man page for more details. 19087 19088To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19089See \`config.log' for more details" "$LINENO" 5; } 19090else 19091 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19092 XORG_LIBS=$pkg_cv_XORG_LIBS 19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19094$as_echo "yes" >&6; } 19095 19096fi 19097 19098pkg_failed=no 19099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19100$as_echo_n "checking for XEXT... " >&6; } 19101 19102if test -n "$XEXT_CFLAGS"; then 19103 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19104 elif test -n "$PKG_CONFIG"; then 19105 if test -n "$PKG_CONFIG" && \ 19106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19107 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19108 ac_status=$? 19109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19110 test $ac_status = 0; }; then 19111 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19112 test "x$?" != "x0" && pkg_failed=yes 19113else 19114 pkg_failed=yes 19115fi 19116 else 19117 pkg_failed=untried 19118fi 19119if test -n "$XEXT_LIBS"; then 19120 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19121 elif test -n "$PKG_CONFIG"; then 19122 if test -n "$PKG_CONFIG" && \ 19123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19124 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19125 ac_status=$? 19126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19127 test $ac_status = 0; }; then 19128 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19129 test "x$?" != "x0" && pkg_failed=yes 19130else 19131 pkg_failed=yes 19132fi 19133 else 19134 pkg_failed=untried 19135fi 19136 19137 19138 19139if test $pkg_failed = yes; then 19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19141$as_echo "no" >&6; } 19142 19143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19144 _pkg_short_errors_supported=yes 19145else 19146 _pkg_short_errors_supported=no 19147fi 19148 if test $_pkg_short_errors_supported = yes; then 19149 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19150 else 19151 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19152 fi 19153 # Put the nasty error message in config.log where it belongs 19154 echo "$XEXT_PKG_ERRORS" >&5 19155 19156 HAVE_XEXTPROTO_71="no" 19157elif test $pkg_failed = untried; then 19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19159$as_echo "no" >&6; } 19160 HAVE_XEXTPROTO_71="no" 19161else 19162 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19163 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19165$as_echo "yes" >&6; } 19166 HAVE_XEXTPROTO_71="yes"; 19167$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19168 19169fi 19170 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19171 HAVE_XEXTPROTO_71_TRUE= 19172 HAVE_XEXTPROTO_71_FALSE='#' 19173else 19174 HAVE_XEXTPROTO_71_TRUE='#' 19175 HAVE_XEXTPROTO_71_FALSE= 19176fi 19177 19178sdkdir=$(pkg-config --variable=sdkdir xorg-server) 19179 19180# Checks for libraries. 19181 19182pkg_failed=no 19183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19184$as_echo_n "checking for PCIACCESS... " >&6; } 19185 19186if test -n "$PCIACCESS_CFLAGS"; then 19187 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19188 elif test -n "$PKG_CONFIG"; then 19189 if test -n "$PKG_CONFIG" && \ 19190 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 19191 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 19192 ac_status=$? 19193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19194 test $ac_status = 0; }; then 19195 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 19196 test "x$?" != "x0" && pkg_failed=yes 19197else 19198 pkg_failed=yes 19199fi 19200 else 19201 pkg_failed=untried 19202fi 19203if test -n "$PCIACCESS_LIBS"; then 19204 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19205 elif test -n "$PKG_CONFIG"; then 19206 if test -n "$PKG_CONFIG" && \ 19207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 19208 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 19209 ac_status=$? 19210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19211 test $ac_status = 0; }; then 19212 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 19213 test "x$?" != "x0" && pkg_failed=yes 19214else 19215 pkg_failed=yes 19216fi 19217 else 19218 pkg_failed=untried 19219fi 19220 19221 19222 19223if test $pkg_failed = yes; then 19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19225$as_echo "no" >&6; } 19226 19227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19228 _pkg_short_errors_supported=yes 19229else 19230 _pkg_short_errors_supported=no 19231fi 19232 if test $_pkg_short_errors_supported = yes; then 19233 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 19234 else 19235 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 19236 fi 19237 # Put the nasty error message in config.log where it belongs 19238 echo "$PCIACCESS_PKG_ERRORS" >&5 19239 19240 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met: 19241 19242$PCIACCESS_PKG_ERRORS 19243 19244Consider adjusting the PKG_CONFIG_PATH environment variable if you 19245installed software in a non-standard prefix. 19246 19247Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19248and PCIACCESS_LIBS to avoid the need to call pkg-config. 19249See the pkg-config man page for more details." "$LINENO" 5 19250elif test $pkg_failed = untried; then 19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19252$as_echo "no" >&6; } 19253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19255as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19256is in your PATH or set the PKG_CONFIG environment variable to the full 19257path to pkg-config. 19258 19259Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19260and PCIACCESS_LIBS to avoid the need to call pkg-config. 19261See the pkg-config man page for more details. 19262 19263To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19264See \`config.log' for more details" "$LINENO" 5; } 19265else 19266 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19267 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19269$as_echo "yes" >&6; } 19270 19271fi 19272 19273 19274pkg_failed=no 19275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 19276$as_echo_n "checking for LIBUDEV... " >&6; } 19277 19278if test -n "$LIBUDEV_CFLAGS"; then 19279 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 19280 elif test -n "$PKG_CONFIG"; then 19281 if test -n "$PKG_CONFIG" && \ 19282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19283 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19284 ac_status=$? 19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19286 test $ac_status = 0; }; then 19287 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 19288 test "x$?" != "x0" && pkg_failed=yes 19289else 19290 pkg_failed=yes 19291fi 19292 else 19293 pkg_failed=untried 19294fi 19295if test -n "$LIBUDEV_LIBS"; then 19296 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 19297 elif test -n "$PKG_CONFIG"; then 19298 if test -n "$PKG_CONFIG" && \ 19299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19300 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19301 ac_status=$? 19302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19303 test $ac_status = 0; }; then 19304 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 19305 test "x$?" != "x0" && pkg_failed=yes 19306else 19307 pkg_failed=yes 19308fi 19309 else 19310 pkg_failed=untried 19311fi 19312 19313 19314 19315if test $pkg_failed = yes; then 19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19317$as_echo "no" >&6; } 19318 19319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19320 _pkg_short_errors_supported=yes 19321else 19322 _pkg_short_errors_supported=no 19323fi 19324 if test $_pkg_short_errors_supported = yes; then 19325 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 19326 else 19327 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 19328 fi 19329 # Put the nasty error message in config.log where it belongs 19330 echo "$LIBUDEV_PKG_ERRORS" >&5 19331 19332 LIBUDEV=no 19333elif test $pkg_failed = untried; then 19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19335$as_echo "no" >&6; } 19336 LIBUDEV=no 19337else 19338 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 19339 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19341$as_echo "yes" >&6; } 19342 LIBUDEV=yes 19343fi 19344if test "x$LIBUDEV" = xyes; then 19345 19346$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 19347 19348fi 19349 if test "x$LIBUDEV" = "xyes" ; then 19350 LIBUDEV_TRUE= 19351 LIBUDEV_FALSE='#' 19352else 19353 LIBUDEV_TRUE='#' 19354 LIBUDEV_FALSE= 19355fi 19356 19357 19358 19359 19360# Checks for header files. 19361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19362$as_echo_n "checking for ANSI C header files... " >&6; } 19363if ${ac_cv_header_stdc+:} false; then : 19364 $as_echo_n "(cached) " >&6 19365else 19366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19367/* end confdefs.h. */ 19368#include <stdlib.h> 19369#include <stdarg.h> 19370#include <string.h> 19371#include <float.h> 19372 19373int 19374main () 19375{ 19376 19377 ; 19378 return 0; 19379} 19380_ACEOF 19381if ac_fn_c_try_compile "$LINENO"; then : 19382 ac_cv_header_stdc=yes 19383else 19384 ac_cv_header_stdc=no 19385fi 19386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19387 19388if test $ac_cv_header_stdc = yes; then 19389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19391/* end confdefs.h. */ 19392#include <string.h> 19393 19394_ACEOF 19395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19396 $EGREP "memchr" >/dev/null 2>&1; then : 19397 19398else 19399 ac_cv_header_stdc=no 19400fi 19401rm -f conftest* 19402 19403fi 19404 19405if test $ac_cv_header_stdc = yes; then 19406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19408/* end confdefs.h. */ 19409#include <stdlib.h> 19410 19411_ACEOF 19412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19413 $EGREP "free" >/dev/null 2>&1; then : 19414 19415else 19416 ac_cv_header_stdc=no 19417fi 19418rm -f conftest* 19419 19420fi 19421 19422if test $ac_cv_header_stdc = yes; then 19423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19424 if test "$cross_compiling" = yes; then : 19425 : 19426else 19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19428/* end confdefs.h. */ 19429#include <ctype.h> 19430#include <stdlib.h> 19431#if ((' ' & 0x0FF) == 0x020) 19432# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19433# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19434#else 19435# define ISLOWER(c) \ 19436 (('a' <= (c) && (c) <= 'i') \ 19437 || ('j' <= (c) && (c) <= 'r') \ 19438 || ('s' <= (c) && (c) <= 'z')) 19439# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19440#endif 19441 19442#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19443int 19444main () 19445{ 19446 int i; 19447 for (i = 0; i < 256; i++) 19448 if (XOR (islower (i), ISLOWER (i)) 19449 || toupper (i) != TOUPPER (i)) 19450 return 2; 19451 return 0; 19452} 19453_ACEOF 19454if ac_fn_c_try_run "$LINENO"; then : 19455 19456else 19457 ac_cv_header_stdc=no 19458fi 19459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19460 conftest.$ac_objext conftest.beam conftest.$ac_ext 19461fi 19462 19463fi 19464fi 19465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19466$as_echo "$ac_cv_header_stdc" >&6; } 19467if test $ac_cv_header_stdc = yes; then 19468 19469$as_echo "#define STDC_HEADERS 1" >>confdefs.h 19470 19471fi 19472 19473 19474# Use -Wall all the time 19475CFLAGS="$CFLAGS -Wall" 19476 19477# Check for -minline-all-stringops availabtility 19478OLD_CFLAGS="$CFLAGS" 19479CFLAGS="$CFLAGS -minline-all-stringops" 19480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19481/* end confdefs.h. */ 19482 #include <stdio.h> 19483int 19484main () 19485{ 19486 19487 ; 19488 return 0; 19489} 19490_ACEOF 19491if ac_fn_c_try_compile "$LINENO"; then : 19492 CFLAGS="$OLD_CFLAGS -minline-all-stringops" 19493else 19494 CFLAGS="$OLD_CFLAGS" 19495fi 19496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19497 19498# needed for the next test 19499CFLAGS="$CFLAGS $XORG_CFLAGS" 19500 19501 19502 19503 19504DRIVER_NAME=nouveau 19505 19506 19507 19508 19509 19510 19511if test x$APP_MAN_SUFFIX = x ; then 19512 APP_MAN_SUFFIX=1 19513fi 19514if test x$APP_MAN_DIR = x ; then 19515 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19516fi 19517 19518if test x$LIB_MAN_SUFFIX = x ; then 19519 LIB_MAN_SUFFIX=3 19520fi 19521if test x$LIB_MAN_DIR = x ; then 19522 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19523fi 19524 19525if test x$FILE_MAN_SUFFIX = x ; then 19526 case $host_os in 19527 solaris*) FILE_MAN_SUFFIX=4 ;; 19528 *) FILE_MAN_SUFFIX=5 ;; 19529 esac 19530fi 19531if test x$FILE_MAN_DIR = x ; then 19532 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19533fi 19534 19535if test x$MISC_MAN_SUFFIX = x ; then 19536 case $host_os in 19537 solaris*) MISC_MAN_SUFFIX=5 ;; 19538 *) MISC_MAN_SUFFIX=7 ;; 19539 esac 19540fi 19541if test x$MISC_MAN_DIR = x ; then 19542 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19543fi 19544 19545if test x$DRIVER_MAN_SUFFIX = x ; then 19546 case $host_os in 19547 solaris*) DRIVER_MAN_SUFFIX=7 ;; 19548 *) DRIVER_MAN_SUFFIX=4 ;; 19549 esac 19550fi 19551if test x$DRIVER_MAN_DIR = x ; then 19552 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19553fi 19554 19555if test x$ADMIN_MAN_SUFFIX = x ; then 19556 case $host_os in 19557 solaris*) ADMIN_MAN_SUFFIX=1m ;; 19558 *) ADMIN_MAN_SUFFIX=8 ;; 19559 esac 19560fi 19561if test x$ADMIN_MAN_DIR = x ; then 19562 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19563fi 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579XORG_MAN_PAGE="X Version 11" 19580 19581MAN_SUBSTS="\ 19582 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19583 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19584 -e 's|__xservername__|Xorg|g' \ 19585 -e 's|__xconfigfile__|xorg.conf|g' \ 19586 -e 's|__projectroot__|\$(prefix)|g' \ 19587 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19588 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19589 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19590 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19591 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19592 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19593 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19594 19595 19596 19597 19598 19599cat >>confdefs.h <<_ACEOF 19600#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19601_ACEOF 19602 19603 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19604 if test "x$PVM" = "x"; then 19605 PVM="0" 19606 fi 19607 19608cat >>confdefs.h <<_ACEOF 19609#define PACKAGE_VERSION_MINOR $PVM 19610_ACEOF 19611 19612 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19613 if test "x$PVP" = "x"; then 19614 PVP="0" 19615 fi 19616 19617cat >>confdefs.h <<_ACEOF 19618#define PACKAGE_VERSION_PATCHLEVEL $PVP 19619_ACEOF 19620 19621 19622 19623for ac_header in list.h 19624do : 19625 ac_fn_c_check_header_compile "$LINENO" "list.h" "ac_cv_header_list_h" "#include <X11/Xdefs.h> 19626 #include \"xorg-server.h\" 19627" 19628if test "x$ac_cv_header_list_h" = xyes; then : 19629 cat >>confdefs.h <<_ACEOF 19630#define HAVE_LIST_H 1 19631_ACEOF 19632 have_list_h="yes" 19633else 19634 have_list_h="no" 19635fi 19636 19637done 19638 19639 19640if test "x$have_list_h" = xyes; then 19641 ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h> 19642 #include \"xorg-server.h\" 19643 #include \"list.h\" 19644" 19645if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then : 19646 19647$as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h 19648 19649fi 19650 19651fi 19652 19653for ac_header in glamor.h 19654do : 19655 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\" 19656" 19657if test "x$ac_cv_header_glamor_h" = xyes; then : 19658 cat >>confdefs.h <<_ACEOF 19659#define HAVE_GLAMOR_H 1 19660_ACEOF 19661 found_glamor_header=yes 19662else 19663 found_glamor_header=no 19664fi 19665 19666done 19667 19668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5 19669$as_echo_n "checking whether to include GLAMOR support... " >&6; } 19670if test "x$found_glamor_header" = xyes && pkg-config --exists "xorg-server >= 1.15.99.901" 19671then 19672 19673$as_echo "#define HAVE_GLAMOR 1" >>confdefs.h 19674 19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19676$as_echo "yes" >&6; } 19677else 19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19679$as_echo "no" >&6; } 19680fi 19681 19682ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19683 19684cat >confcache <<\_ACEOF 19685# This file is a shell script that caches the results of configure 19686# tests run on this system so they can be shared between configure 19687# scripts and configure runs, see configure's option --config-cache. 19688# It is not useful on other systems. If it contains results you don't 19689# want to keep, you may remove or edit it. 19690# 19691# config.status only pays attention to the cache file if you give it 19692# the --recheck option to rerun configure. 19693# 19694# `ac_cv_env_foo' variables (set or unset) will be overridden when 19695# loading this file, other *unset* `ac_cv_foo' will be assigned the 19696# following values. 19697 19698_ACEOF 19699 19700# The following way of writing the cache mishandles newlines in values, 19701# but we know of no workaround that is simple, portable, and efficient. 19702# So, we kill variables containing newlines. 19703# Ultrix sh set writes to stderr and can't be redirected directly, 19704# and sets the high bit in the cache file unless we assign to the vars. 19705( 19706 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19707 eval ac_val=\$$ac_var 19708 case $ac_val in #( 19709 *${as_nl}*) 19710 case $ac_var in #( 19711 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19712$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19713 esac 19714 case $ac_var in #( 19715 _ | IFS | as_nl) ;; #( 19716 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19717 *) { eval $ac_var=; unset $ac_var;} ;; 19718 esac ;; 19719 esac 19720 done 19721 19722 (set) 2>&1 | 19723 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19724 *${as_nl}ac_space=\ *) 19725 # `set' does not quote correctly, so add quotes: double-quote 19726 # substitution turns \\\\ into \\, and sed turns \\ into \. 19727 sed -n \ 19728 "s/'/'\\\\''/g; 19729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19730 ;; #( 19731 *) 19732 # `set' quotes correctly as required by POSIX, so do not add quotes. 19733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19734 ;; 19735 esac | 19736 sort 19737) | 19738 sed ' 19739 /^ac_cv_env_/b end 19740 t clear 19741 :clear 19742 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19743 t end 19744 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19745 :end' >>confcache 19746if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19747 if test -w "$cache_file"; then 19748 if test "x$cache_file" != "x/dev/null"; then 19749 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19750$as_echo "$as_me: updating cache $cache_file" >&6;} 19751 if test ! -f "$cache_file" || test -h "$cache_file"; then 19752 cat confcache >"$cache_file" 19753 else 19754 case $cache_file in #( 19755 */* | ?:*) 19756 mv -f confcache "$cache_file"$$ && 19757 mv -f "$cache_file"$$ "$cache_file" ;; #( 19758 *) 19759 mv -f confcache "$cache_file" ;; 19760 esac 19761 fi 19762 fi 19763 else 19764 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19765$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19766 fi 19767fi 19768rm -f confcache 19769 19770test "x$prefix" = xNONE && prefix=$ac_default_prefix 19771# Let make expand exec_prefix. 19772test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19773 19774DEFS=-DHAVE_CONFIG_H 19775 19776ac_libobjs= 19777ac_ltlibobjs= 19778U= 19779for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19780 # 1. Remove the extension, and $U if already installed. 19781 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19782 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19783 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19784 # will be set to the directory where LIBOBJS objects are built. 19785 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19786 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19787done 19788LIBOBJS=$ac_libobjs 19789 19790LTLIBOBJS=$ac_ltlibobjs 19791 19792 19793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19794$as_echo_n "checking that generated files are newer than configure... " >&6; } 19795 if test -n "$am_sleep_pid"; then 19796 # Hide warnings about reused PIDs. 19797 wait $am_sleep_pid 2>/dev/null 19798 fi 19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19800$as_echo "done" >&6; } 19801 if test -n "$EXEEXT"; then 19802 am__EXEEXT_TRUE= 19803 am__EXEEXT_FALSE='#' 19804else 19805 am__EXEEXT_TRUE='#' 19806 am__EXEEXT_FALSE= 19807fi 19808 19809if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19810 as_fn_error $? "conditional \"AMDEP\" was never defined. 19811Usually this means the macro was only invoked conditionally." "$LINENO" 5 19812fi 19813if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19814 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19815Usually this means the macro was only invoked conditionally." "$LINENO" 5 19816fi 19817if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19818 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19819Usually this means the macro was only invoked conditionally." "$LINENO" 5 19820fi 19821if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19822 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19823Usually this means the macro was only invoked conditionally." "$LINENO" 5 19824fi 19825if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 19826 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 19827Usually this means the macro was only invoked conditionally." "$LINENO" 5 19828fi 19829 19830: "${CONFIG_STATUS=./config.status}" 19831ac_write_fail=0 19832ac_clean_files_save=$ac_clean_files 19833ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19834{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19835$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19836as_write_fail=0 19837cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19838#! $SHELL 19839# Generated by $as_me. 19840# Run this file to recreate the current configuration. 19841# Compiler output produced by configure, useful for debugging 19842# configure, is in config.log if it exists. 19843 19844debug=false 19845ac_cs_recheck=false 19846ac_cs_silent=false 19847 19848SHELL=\${CONFIG_SHELL-$SHELL} 19849export SHELL 19850_ASEOF 19851cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19852## -------------------- ## 19853## M4sh Initialization. ## 19854## -------------------- ## 19855 19856# Be more Bourne compatible 19857DUALCASE=1; export DUALCASE # for MKS sh 19858if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19859 emulate sh 19860 NULLCMD=: 19861 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19862 # is contrary to our usage. Disable this feature. 19863 alias -g '${1+"$@"}'='"$@"' 19864 setopt NO_GLOB_SUBST 19865else 19866 case `(set -o) 2>/dev/null` in #( 19867 *posix*) : 19868 set -o posix ;; #( 19869 *) : 19870 ;; 19871esac 19872fi 19873 19874 19875as_nl=' 19876' 19877export as_nl 19878# Printing a long string crashes Solaris 7 /usr/bin/printf. 19879as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19880as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19881as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19882# Prefer a ksh shell builtin over an external printf program on Solaris, 19883# but without wasting forks for bash or zsh. 19884if test -z "$BASH_VERSION$ZSH_VERSION" \ 19885 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19886 as_echo='print -r --' 19887 as_echo_n='print -rn --' 19888elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19889 as_echo='printf %s\n' 19890 as_echo_n='printf %s' 19891else 19892 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19893 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19894 as_echo_n='/usr/ucb/echo -n' 19895 else 19896 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19897 as_echo_n_body='eval 19898 arg=$1; 19899 case $arg in #( 19900 *"$as_nl"*) 19901 expr "X$arg" : "X\\(.*\\)$as_nl"; 19902 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19903 esac; 19904 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19905 ' 19906 export as_echo_n_body 19907 as_echo_n='sh -c $as_echo_n_body as_echo' 19908 fi 19909 export as_echo_body 19910 as_echo='sh -c $as_echo_body as_echo' 19911fi 19912 19913# The user is always right. 19914if test "${PATH_SEPARATOR+set}" != set; then 19915 PATH_SEPARATOR=: 19916 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19917 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19918 PATH_SEPARATOR=';' 19919 } 19920fi 19921 19922 19923# IFS 19924# We need space, tab and new line, in precisely that order. Quoting is 19925# there to prevent editors from complaining about space-tab. 19926# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19927# splitting by setting IFS to empty value.) 19928IFS=" "" $as_nl" 19929 19930# Find who we are. Look in the path if we contain no directory separator. 19931as_myself= 19932case $0 in #(( 19933 *[\\/]* ) as_myself=$0 ;; 19934 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19935for as_dir in $PATH 19936do 19937 IFS=$as_save_IFS 19938 test -z "$as_dir" && as_dir=. 19939 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19940 done 19941IFS=$as_save_IFS 19942 19943 ;; 19944esac 19945# We did not find ourselves, most probably we were run as `sh COMMAND' 19946# in which case we are not to be found in the path. 19947if test "x$as_myself" = x; then 19948 as_myself=$0 19949fi 19950if test ! -f "$as_myself"; then 19951 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19952 exit 1 19953fi 19954 19955# Unset variables that we do not need and which cause bugs (e.g. in 19956# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19957# suppresses any "Segmentation fault" message there. '((' could 19958# trigger a bug in pdksh 5.2.14. 19959for as_var in BASH_ENV ENV MAIL MAILPATH 19960do eval test x\${$as_var+set} = xset \ 19961 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19962done 19963PS1='$ ' 19964PS2='> ' 19965PS4='+ ' 19966 19967# NLS nuisances. 19968LC_ALL=C 19969export LC_ALL 19970LANGUAGE=C 19971export LANGUAGE 19972 19973# CDPATH. 19974(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19975 19976 19977# as_fn_error STATUS ERROR [LINENO LOG_FD] 19978# ---------------------------------------- 19979# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19980# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19981# script with STATUS, using 1 if that was 0. 19982as_fn_error () 19983{ 19984 as_status=$1; test $as_status -eq 0 && as_status=1 19985 if test "$4"; then 19986 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19987 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19988 fi 19989 $as_echo "$as_me: error: $2" >&2 19990 as_fn_exit $as_status 19991} # as_fn_error 19992 19993 19994# as_fn_set_status STATUS 19995# ----------------------- 19996# Set $? to STATUS, without forking. 19997as_fn_set_status () 19998{ 19999 return $1 20000} # as_fn_set_status 20001 20002# as_fn_exit STATUS 20003# ----------------- 20004# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20005as_fn_exit () 20006{ 20007 set +e 20008 as_fn_set_status $1 20009 exit $1 20010} # as_fn_exit 20011 20012# as_fn_unset VAR 20013# --------------- 20014# Portably unset VAR. 20015as_fn_unset () 20016{ 20017 { eval $1=; unset $1;} 20018} 20019as_unset=as_fn_unset 20020# as_fn_append VAR VALUE 20021# ---------------------- 20022# Append the text in VALUE to the end of the definition contained in VAR. Take 20023# advantage of any shell optimizations that allow amortized linear growth over 20024# repeated appends, instead of the typical quadratic growth present in naive 20025# implementations. 20026if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20027 eval 'as_fn_append () 20028 { 20029 eval $1+=\$2 20030 }' 20031else 20032 as_fn_append () 20033 { 20034 eval $1=\$$1\$2 20035 } 20036fi # as_fn_append 20037 20038# as_fn_arith ARG... 20039# ------------------ 20040# Perform arithmetic evaluation on the ARGs, and store the result in the 20041# global $as_val. Take advantage of shells that can avoid forks. The arguments 20042# must be portable across $(()) and expr. 20043if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20044 eval 'as_fn_arith () 20045 { 20046 as_val=$(( $* )) 20047 }' 20048else 20049 as_fn_arith () 20050 { 20051 as_val=`expr "$@" || test $? -eq 1` 20052 } 20053fi # as_fn_arith 20054 20055 20056if expr a : '\(a\)' >/dev/null 2>&1 && 20057 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20058 as_expr=expr 20059else 20060 as_expr=false 20061fi 20062 20063if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20064 as_basename=basename 20065else 20066 as_basename=false 20067fi 20068 20069if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20070 as_dirname=dirname 20071else 20072 as_dirname=false 20073fi 20074 20075as_me=`$as_basename -- "$0" || 20076$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20077 X"$0" : 'X\(//\)$' \| \ 20078 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20079$as_echo X/"$0" | 20080 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20081 s//\1/ 20082 q 20083 } 20084 /^X\/\(\/\/\)$/{ 20085 s//\1/ 20086 q 20087 } 20088 /^X\/\(\/\).*/{ 20089 s//\1/ 20090 q 20091 } 20092 s/.*/./; q'` 20093 20094# Avoid depending upon Character Ranges. 20095as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20096as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20097as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20098as_cr_digits='0123456789' 20099as_cr_alnum=$as_cr_Letters$as_cr_digits 20100 20101ECHO_C= ECHO_N= ECHO_T= 20102case `echo -n x` in #((((( 20103-n*) 20104 case `echo 'xy\c'` in 20105 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20106 xy) ECHO_C='\c';; 20107 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20108 ECHO_T=' ';; 20109 esac;; 20110*) 20111 ECHO_N='-n';; 20112esac 20113 20114rm -f conf$$ conf$$.exe conf$$.file 20115if test -d conf$$.dir; then 20116 rm -f conf$$.dir/conf$$.file 20117else 20118 rm -f conf$$.dir 20119 mkdir conf$$.dir 2>/dev/null 20120fi 20121if (echo >conf$$.file) 2>/dev/null; then 20122 if ln -s conf$$.file conf$$ 2>/dev/null; then 20123 as_ln_s='ln -s' 20124 # ... but there are two gotchas: 20125 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20126 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20127 # In both cases, we have to default to `cp -pR'. 20128 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20129 as_ln_s='cp -pR' 20130 elif ln conf$$.file conf$$ 2>/dev/null; then 20131 as_ln_s=ln 20132 else 20133 as_ln_s='cp -pR' 20134 fi 20135else 20136 as_ln_s='cp -pR' 20137fi 20138rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20139rmdir conf$$.dir 2>/dev/null 20140 20141 20142# as_fn_mkdir_p 20143# ------------- 20144# Create "$as_dir" as a directory, including parents if necessary. 20145as_fn_mkdir_p () 20146{ 20147 20148 case $as_dir in #( 20149 -*) as_dir=./$as_dir;; 20150 esac 20151 test -d "$as_dir" || eval $as_mkdir_p || { 20152 as_dirs= 20153 while :; do 20154 case $as_dir in #( 20155 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20156 *) as_qdir=$as_dir;; 20157 esac 20158 as_dirs="'$as_qdir' $as_dirs" 20159 as_dir=`$as_dirname -- "$as_dir" || 20160$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20161 X"$as_dir" : 'X\(//\)[^/]' \| \ 20162 X"$as_dir" : 'X\(//\)$' \| \ 20163 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20164$as_echo X"$as_dir" | 20165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20166 s//\1/ 20167 q 20168 } 20169 /^X\(\/\/\)[^/].*/{ 20170 s//\1/ 20171 q 20172 } 20173 /^X\(\/\/\)$/{ 20174 s//\1/ 20175 q 20176 } 20177 /^X\(\/\).*/{ 20178 s//\1/ 20179 q 20180 } 20181 s/.*/./; q'` 20182 test -d "$as_dir" && break 20183 done 20184 test -z "$as_dirs" || eval "mkdir $as_dirs" 20185 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20186 20187 20188} # as_fn_mkdir_p 20189if mkdir -p . 2>/dev/null; then 20190 as_mkdir_p='mkdir -p "$as_dir"' 20191else 20192 test -d ./-p && rmdir ./-p 20193 as_mkdir_p=false 20194fi 20195 20196 20197# as_fn_executable_p FILE 20198# ----------------------- 20199# Test if FILE is an executable regular file. 20200as_fn_executable_p () 20201{ 20202 test -f "$1" && test -x "$1" 20203} # as_fn_executable_p 20204as_test_x='test -x' 20205as_executable_p=as_fn_executable_p 20206 20207# Sed expression to map a string onto a valid CPP name. 20208as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20209 20210# Sed expression to map a string onto a valid variable name. 20211as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20212 20213 20214exec 6>&1 20215## ----------------------------------- ## 20216## Main body of $CONFIG_STATUS script. ## 20217## ----------------------------------- ## 20218_ASEOF 20219test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20220 20221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20222# Save the log message, to keep $0 and so on meaningful, and to 20223# report actual input values of CONFIG_FILES etc. instead of their 20224# values after options handling. 20225ac_log=" 20226This file was extended by xf86-video-nouveau $as_me 1.0.11, which was 20227generated by GNU Autoconf 2.69. Invocation command line was 20228 20229 CONFIG_FILES = $CONFIG_FILES 20230 CONFIG_HEADERS = $CONFIG_HEADERS 20231 CONFIG_LINKS = $CONFIG_LINKS 20232 CONFIG_COMMANDS = $CONFIG_COMMANDS 20233 $ $0 $@ 20234 20235on `(hostname || uname -n) 2>/dev/null | sed 1q` 20236" 20237 20238_ACEOF 20239 20240case $ac_config_files in *" 20241"*) set x $ac_config_files; shift; ac_config_files=$*;; 20242esac 20243 20244case $ac_config_headers in *" 20245"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20246esac 20247 20248 20249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20250# Files that config.status was made for. 20251config_files="$ac_config_files" 20252config_headers="$ac_config_headers" 20253config_commands="$ac_config_commands" 20254 20255_ACEOF 20256 20257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20258ac_cs_usage="\ 20259\`$as_me' instantiates files and other configuration actions 20260from templates according to the current configuration. Unless the files 20261and actions are specified as TAGs, all are instantiated by default. 20262 20263Usage: $0 [OPTION]... [TAG]... 20264 20265 -h, --help print this help, then exit 20266 -V, --version print version number and configuration settings, then exit 20267 --config print configuration, then exit 20268 -q, --quiet, --silent 20269 do not print progress messages 20270 -d, --debug don't remove temporary files 20271 --recheck update $as_me by reconfiguring in the same conditions 20272 --file=FILE[:TEMPLATE] 20273 instantiate the configuration file FILE 20274 --header=FILE[:TEMPLATE] 20275 instantiate the configuration header FILE 20276 20277Configuration files: 20278$config_files 20279 20280Configuration headers: 20281$config_headers 20282 20283Configuration commands: 20284$config_commands 20285 20286Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 20287 20288_ACEOF 20289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20290ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20291ac_cs_version="\\ 20292xf86-video-nouveau config.status 1.0.11 20293configured by $0, generated by GNU Autoconf 2.69, 20294 with options \\"\$ac_cs_config\\" 20295 20296Copyright (C) 2012 Free Software Foundation, Inc. 20297This config.status script is free software; the Free Software Foundation 20298gives unlimited permission to copy, distribute and modify it." 20299 20300ac_pwd='$ac_pwd' 20301srcdir='$srcdir' 20302INSTALL='$INSTALL' 20303MKDIR_P='$MKDIR_P' 20304AWK='$AWK' 20305test -n "\$AWK" || AWK=awk 20306_ACEOF 20307 20308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20309# The default lists apply if the user does not specify any file. 20310ac_need_defaults=: 20311while test $# != 0 20312do 20313 case $1 in 20314 --*=?*) 20315 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20317 ac_shift=: 20318 ;; 20319 --*=) 20320 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20321 ac_optarg= 20322 ac_shift=: 20323 ;; 20324 *) 20325 ac_option=$1 20326 ac_optarg=$2 20327 ac_shift=shift 20328 ;; 20329 esac 20330 20331 case $ac_option in 20332 # Handling of the options. 20333 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20334 ac_cs_recheck=: ;; 20335 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20336 $as_echo "$ac_cs_version"; exit ;; 20337 --config | --confi | --conf | --con | --co | --c ) 20338 $as_echo "$ac_cs_config"; exit ;; 20339 --debug | --debu | --deb | --de | --d | -d ) 20340 debug=: ;; 20341 --file | --fil | --fi | --f ) 20342 $ac_shift 20343 case $ac_optarg in 20344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20345 '') as_fn_error $? "missing file argument" ;; 20346 esac 20347 as_fn_append CONFIG_FILES " '$ac_optarg'" 20348 ac_need_defaults=false;; 20349 --header | --heade | --head | --hea ) 20350 $ac_shift 20351 case $ac_optarg in 20352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20353 esac 20354 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20355 ac_need_defaults=false;; 20356 --he | --h) 20357 # Conflict between --help and --header 20358 as_fn_error $? "ambiguous option: \`$1' 20359Try \`$0 --help' for more information.";; 20360 --help | --hel | -h ) 20361 $as_echo "$ac_cs_usage"; exit ;; 20362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20363 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20364 ac_cs_silent=: ;; 20365 20366 # This is an error. 20367 -*) as_fn_error $? "unrecognized option: \`$1' 20368Try \`$0 --help' for more information." ;; 20369 20370 *) as_fn_append ac_config_targets " $1" 20371 ac_need_defaults=false ;; 20372 20373 esac 20374 shift 20375done 20376 20377ac_configure_extra_args= 20378 20379if $ac_cs_silent; then 20380 exec 6>/dev/null 20381 ac_configure_extra_args="$ac_configure_extra_args --silent" 20382fi 20383 20384_ACEOF 20385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20386if \$ac_cs_recheck; then 20387 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20388 shift 20389 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20390 CONFIG_SHELL='$SHELL' 20391 export CONFIG_SHELL 20392 exec "\$@" 20393fi 20394 20395_ACEOF 20396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20397exec 5>>config.log 20398{ 20399 echo 20400 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20401## Running $as_me. ## 20402_ASBOX 20403 $as_echo "$ac_log" 20404} >&5 20405 20406_ACEOF 20407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20408# 20409# INIT-COMMANDS 20410# 20411AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20412 20413 20414# The HP-UX ksh and POSIX shell print the target directory to stdout 20415# if CDPATH is set. 20416(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20417 20418sed_quote_subst='$sed_quote_subst' 20419double_quote_subst='$double_quote_subst' 20420delay_variable_subst='$delay_variable_subst' 20421enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20422macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20423macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20424enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20425pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20426enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20427SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20428ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20429PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20430host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20431host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20432host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20433build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20434build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20435build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20436SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20437Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20438GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20439EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20440FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20441LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20442NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20443LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20444max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20445ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20446exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20447lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20448lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20449lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20450lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20451lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20452reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20453reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20454OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20455deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20456file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20457file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20458want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20459DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20460sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20461AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20462AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20463archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20464STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20465RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20466old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20467old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20468old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20469lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20470CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20471CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20472compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20473GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20474lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20475lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20476lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20477lt_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"`' 20478nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20479lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20480objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20481MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20482lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20483lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20484lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20485lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20486lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20487need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20488MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20489DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20490NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20491LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20492OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20493OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20494libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20495shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20496extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20497archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20498enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20499export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20500whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20501compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20502old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20503old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20504archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20505archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20506module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20507module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20508with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20509allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20510no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20511hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20512hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20513hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20514hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20515hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20516hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20517hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20518inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20519link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20520always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20521export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20522exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20523include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20524prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20525postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20526file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20527variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20528need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20529need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20530version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20531runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20532shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20533shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20534libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20535library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20536soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20537install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20538postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20539postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20540finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20541finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20542hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20543sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20544sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20545hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20546enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20547enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20548enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20549old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20550striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20551 20552LTCC='$LTCC' 20553LTCFLAGS='$LTCFLAGS' 20554compiler='$compiler_DEFAULT' 20555 20556# A function that is used when there is no print builtin or printf. 20557func_fallback_echo () 20558{ 20559 eval 'cat <<_LTECHO_EOF 20560\$1 20561_LTECHO_EOF' 20562} 20563 20564# Quote evaled strings. 20565for var in SHELL \ 20566ECHO \ 20567PATH_SEPARATOR \ 20568SED \ 20569GREP \ 20570EGREP \ 20571FGREP \ 20572LD \ 20573NM \ 20574LN_S \ 20575lt_SP2NL \ 20576lt_NL2SP \ 20577reload_flag \ 20578OBJDUMP \ 20579deplibs_check_method \ 20580file_magic_cmd \ 20581file_magic_glob \ 20582want_nocaseglob \ 20583DLLTOOL \ 20584sharedlib_from_linklib_cmd \ 20585AR \ 20586AR_FLAGS \ 20587archiver_list_spec \ 20588STRIP \ 20589RANLIB \ 20590CC \ 20591CFLAGS \ 20592compiler \ 20593lt_cv_sys_global_symbol_pipe \ 20594lt_cv_sys_global_symbol_to_cdecl \ 20595lt_cv_sys_global_symbol_to_c_name_address \ 20596lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20597nm_file_list_spec \ 20598lt_prog_compiler_no_builtin_flag \ 20599lt_prog_compiler_pic \ 20600lt_prog_compiler_wl \ 20601lt_prog_compiler_static \ 20602lt_cv_prog_compiler_c_o \ 20603need_locks \ 20604MANIFEST_TOOL \ 20605DSYMUTIL \ 20606NMEDIT \ 20607LIPO \ 20608OTOOL \ 20609OTOOL64 \ 20610shrext_cmds \ 20611export_dynamic_flag_spec \ 20612whole_archive_flag_spec \ 20613compiler_needs_object \ 20614with_gnu_ld \ 20615allow_undefined_flag \ 20616no_undefined_flag \ 20617hardcode_libdir_flag_spec \ 20618hardcode_libdir_separator \ 20619exclude_expsyms \ 20620include_expsyms \ 20621file_list_spec \ 20622variables_saved_for_relink \ 20623libname_spec \ 20624library_names_spec \ 20625soname_spec \ 20626install_override_mode \ 20627finish_eval \ 20628old_striplib \ 20629striplib; do 20630 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20631 *[\\\\\\\`\\"\\\$]*) 20632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20633 ;; 20634 *) 20635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20636 ;; 20637 esac 20638done 20639 20640# Double-quote double-evaled strings. 20641for var in reload_cmds \ 20642old_postinstall_cmds \ 20643old_postuninstall_cmds \ 20644old_archive_cmds \ 20645extract_expsyms_cmds \ 20646old_archive_from_new_cmds \ 20647old_archive_from_expsyms_cmds \ 20648archive_cmds \ 20649archive_expsym_cmds \ 20650module_cmds \ 20651module_expsym_cmds \ 20652export_symbols_cmds \ 20653prelink_cmds \ 20654postlink_cmds \ 20655postinstall_cmds \ 20656postuninstall_cmds \ 20657finish_cmds \ 20658sys_lib_search_path_spec \ 20659sys_lib_dlsearch_path_spec; do 20660 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20661 *[\\\\\\\`\\"\\\$]*) 20662 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20663 ;; 20664 *) 20665 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20666 ;; 20667 esac 20668done 20669 20670ac_aux_dir='$ac_aux_dir' 20671xsi_shell='$xsi_shell' 20672lt_shell_append='$lt_shell_append' 20673 20674# See if we are running on zsh, and set the options which allow our 20675# commands through without removal of \ escapes INIT. 20676if test -n "\${ZSH_VERSION+set}" ; then 20677 setopt NO_GLOB_SUBST 20678fi 20679 20680 20681 PACKAGE='$PACKAGE' 20682 VERSION='$VERSION' 20683 TIMESTAMP='$TIMESTAMP' 20684 RM='$RM' 20685 ofile='$ofile' 20686 20687 20688 20689 20690_ACEOF 20691 20692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20693 20694# Handling of arguments. 20695for ac_config_target in $ac_config_targets 20696do 20697 case $ac_config_target in 20698 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20699 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20700 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20701 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20702 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20703 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20704 20705 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20706 esac 20707done 20708 20709 20710# If the user did not use the arguments to specify the items to instantiate, 20711# then the envvar interface is used. Set only those that are not. 20712# We use the long form for the default assignment because of an extremely 20713# bizarre bug on SunOS 4.1.3. 20714if $ac_need_defaults; then 20715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20717 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20718fi 20719 20720# Have a temporary directory for convenience. Make it in the build tree 20721# simply because there is no reason against having it here, and in addition, 20722# creating and moving files from /tmp can sometimes cause problems. 20723# Hook for its removal unless debugging. 20724# Note that there is a small window in which the directory will not be cleaned: 20725# after its creation but before its name has been assigned to `$tmp'. 20726$debug || 20727{ 20728 tmp= ac_tmp= 20729 trap 'exit_status=$? 20730 : "${ac_tmp:=$tmp}" 20731 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20732' 0 20733 trap 'as_fn_exit 1' 1 2 13 15 20734} 20735# Create a (secure) tmp directory for tmp files. 20736 20737{ 20738 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20739 test -d "$tmp" 20740} || 20741{ 20742 tmp=./conf$$-$RANDOM 20743 (umask 077 && mkdir "$tmp") 20744} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20745ac_tmp=$tmp 20746 20747# Set up the scripts for CONFIG_FILES section. 20748# No need to generate them if there are no CONFIG_FILES. 20749# This happens for instance with `./config.status config.h'. 20750if test -n "$CONFIG_FILES"; then 20751 20752 20753ac_cr=`echo X | tr X '\015'` 20754# On cygwin, bash can eat \r inside `` if the user requested igncr. 20755# But we know of no other shell where ac_cr would be empty at this 20756# point, so we can use a bashism as a fallback. 20757if test "x$ac_cr" = x; then 20758 eval ac_cr=\$\'\\r\' 20759fi 20760ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20761if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20762 ac_cs_awk_cr='\\r' 20763else 20764 ac_cs_awk_cr=$ac_cr 20765fi 20766 20767echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20768_ACEOF 20769 20770 20771{ 20772 echo "cat >conf$$subs.awk <<_ACEOF" && 20773 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20774 echo "_ACEOF" 20775} >conf$$subs.sh || 20776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20777ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20778ac_delim='%!_!# ' 20779for ac_last_try in false false false false false :; do 20780 . ./conf$$subs.sh || 20781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20782 20783 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20784 if test $ac_delim_n = $ac_delim_num; then 20785 break 20786 elif $ac_last_try; then 20787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20788 else 20789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20790 fi 20791done 20792rm -f conf$$subs.sh 20793 20794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20795cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20796_ACEOF 20797sed -n ' 20798h 20799s/^/S["/; s/!.*/"]=/ 20800p 20801g 20802s/^[^!]*!// 20803:repl 20804t repl 20805s/'"$ac_delim"'$// 20806t delim 20807:nl 20808h 20809s/\(.\{148\}\)..*/\1/ 20810t more1 20811s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20812p 20813n 20814b repl 20815:more1 20816s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20817p 20818g 20819s/.\{148\}// 20820t nl 20821:delim 20822h 20823s/\(.\{148\}\)..*/\1/ 20824t more2 20825s/["\\]/\\&/g; s/^/"/; s/$/"/ 20826p 20827b 20828:more2 20829s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20830p 20831g 20832s/.\{148\}// 20833t delim 20834' <conf$$subs.awk | sed ' 20835/^[^""]/{ 20836 N 20837 s/\n// 20838} 20839' >>$CONFIG_STATUS || ac_write_fail=1 20840rm -f conf$$subs.awk 20841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20842_ACAWK 20843cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20844 for (key in S) S_is_set[key] = 1 20845 FS = "" 20846 20847} 20848{ 20849 line = $ 0 20850 nfields = split(line, field, "@") 20851 substed = 0 20852 len = length(field[1]) 20853 for (i = 2; i < nfields; i++) { 20854 key = field[i] 20855 keylen = length(key) 20856 if (S_is_set[key]) { 20857 value = S[key] 20858 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20859 len += length(value) + length(field[++i]) 20860 substed = 1 20861 } else 20862 len += 1 + keylen 20863 } 20864 20865 print line 20866} 20867 20868_ACAWK 20869_ACEOF 20870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20871if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20872 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20873else 20874 cat 20875fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20876 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20877_ACEOF 20878 20879# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20880# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20881# trailing colons and then remove the whole line if VPATH becomes empty 20882# (actually we leave an empty line to preserve line numbers). 20883if test "x$srcdir" = x.; then 20884 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20885h 20886s/// 20887s/^/:/ 20888s/[ ]*$/:/ 20889s/:\$(srcdir):/:/g 20890s/:\${srcdir}:/:/g 20891s/:@srcdir@:/:/g 20892s/^:*// 20893s/:*$// 20894x 20895s/\(=[ ]*\).*/\1/ 20896G 20897s/\n// 20898s/^[^=]*=[ ]*$// 20899}' 20900fi 20901 20902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20903fi # test -n "$CONFIG_FILES" 20904 20905# Set up the scripts for CONFIG_HEADERS section. 20906# No need to generate them if there are no CONFIG_HEADERS. 20907# This happens for instance with `./config.status Makefile'. 20908if test -n "$CONFIG_HEADERS"; then 20909cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20910BEGIN { 20911_ACEOF 20912 20913# Transform confdefs.h into an awk script `defines.awk', embedded as 20914# here-document in config.status, that substitutes the proper values into 20915# config.h.in to produce config.h. 20916 20917# Create a delimiter string that does not exist in confdefs.h, to ease 20918# handling of long lines. 20919ac_delim='%!_!# ' 20920for ac_last_try in false false :; do 20921 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20922 if test -z "$ac_tt"; then 20923 break 20924 elif $ac_last_try; then 20925 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20926 else 20927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20928 fi 20929done 20930 20931# For the awk script, D is an array of macro values keyed by name, 20932# likewise P contains macro parameters if any. Preserve backslash 20933# newline sequences. 20934 20935ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20936sed -n ' 20937s/.\{148\}/&'"$ac_delim"'/g 20938t rset 20939:rset 20940s/^[ ]*#[ ]*define[ ][ ]*/ / 20941t def 20942d 20943:def 20944s/\\$// 20945t bsnl 20946s/["\\]/\\&/g 20947s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20948D["\1"]=" \3"/p 20949s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20950d 20951:bsnl 20952s/["\\]/\\&/g 20953s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20954D["\1"]=" \3\\\\\\n"\\/p 20955t cont 20956s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20957t cont 20958d 20959:cont 20960n 20961s/.\{148\}/&'"$ac_delim"'/g 20962t clear 20963:clear 20964s/\\$// 20965t bsnlc 20966s/["\\]/\\&/g; s/^/"/; s/$/"/p 20967d 20968:bsnlc 20969s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20970b cont 20971' <confdefs.h | sed ' 20972s/'"$ac_delim"'/"\\\ 20973"/g' >>$CONFIG_STATUS || ac_write_fail=1 20974 20975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20976 for (key in D) D_is_set[key] = 1 20977 FS = "" 20978} 20979/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20980 line = \$ 0 20981 split(line, arg, " ") 20982 if (arg[1] == "#") { 20983 defundef = arg[2] 20984 mac1 = arg[3] 20985 } else { 20986 defundef = substr(arg[1], 2) 20987 mac1 = arg[2] 20988 } 20989 split(mac1, mac2, "(") #) 20990 macro = mac2[1] 20991 prefix = substr(line, 1, index(line, defundef) - 1) 20992 if (D_is_set[macro]) { 20993 # Preserve the white space surrounding the "#". 20994 print prefix "define", macro P[macro] D[macro] 20995 next 20996 } else { 20997 # Replace #undef with comments. This is necessary, for example, 20998 # in the case of _POSIX_SOURCE, which is predefined and required 20999 # on some systems where configure will not decide to define it. 21000 if (defundef == "undef") { 21001 print "/*", prefix defundef, macro, "*/" 21002 next 21003 } 21004 } 21005} 21006{ print } 21007_ACAWK 21008_ACEOF 21009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21010 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21011fi # test -n "$CONFIG_HEADERS" 21012 21013 21014eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21015shift 21016for ac_tag 21017do 21018 case $ac_tag in 21019 :[FHLC]) ac_mode=$ac_tag; continue;; 21020 esac 21021 case $ac_mode$ac_tag in 21022 :[FHL]*:*);; 21023 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21024 :[FH]-) ac_tag=-:-;; 21025 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21026 esac 21027 ac_save_IFS=$IFS 21028 IFS=: 21029 set x $ac_tag 21030 IFS=$ac_save_IFS 21031 shift 21032 ac_file=$1 21033 shift 21034 21035 case $ac_mode in 21036 :L) ac_source=$1;; 21037 :[FH]) 21038 ac_file_inputs= 21039 for ac_f 21040 do 21041 case $ac_f in 21042 -) ac_f="$ac_tmp/stdin";; 21043 *) # Look for the file first in the build tree, then in the source tree 21044 # (if the path is not absolute). The absolute path cannot be DOS-style, 21045 # because $ac_f cannot contain `:'. 21046 test -f "$ac_f" || 21047 case $ac_f in 21048 [\\/$]*) false;; 21049 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21050 esac || 21051 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21052 esac 21053 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21054 as_fn_append ac_file_inputs " '$ac_f'" 21055 done 21056 21057 # Let's still pretend it is `configure' which instantiates (i.e., don't 21058 # use $as_me), people would be surprised to read: 21059 # /* config.h. Generated by config.status. */ 21060 configure_input='Generated from '` 21061 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21062 `' by configure.' 21063 if test x"$ac_file" != x-; then 21064 configure_input="$ac_file. $configure_input" 21065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21066$as_echo "$as_me: creating $ac_file" >&6;} 21067 fi 21068 # Neutralize special characters interpreted by sed in replacement strings. 21069 case $configure_input in #( 21070 *\&* | *\|* | *\\* ) 21071 ac_sed_conf_input=`$as_echo "$configure_input" | 21072 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21073 *) ac_sed_conf_input=$configure_input;; 21074 esac 21075 21076 case $ac_tag in 21077 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21079 esac 21080 ;; 21081 esac 21082 21083 ac_dir=`$as_dirname -- "$ac_file" || 21084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21085 X"$ac_file" : 'X\(//\)[^/]' \| \ 21086 X"$ac_file" : 'X\(//\)$' \| \ 21087 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21088$as_echo X"$ac_file" | 21089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21090 s//\1/ 21091 q 21092 } 21093 /^X\(\/\/\)[^/].*/{ 21094 s//\1/ 21095 q 21096 } 21097 /^X\(\/\/\)$/{ 21098 s//\1/ 21099 q 21100 } 21101 /^X\(\/\).*/{ 21102 s//\1/ 21103 q 21104 } 21105 s/.*/./; q'` 21106 as_dir="$ac_dir"; as_fn_mkdir_p 21107 ac_builddir=. 21108 21109case "$ac_dir" in 21110.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21111*) 21112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21113 # A ".." for each directory in $ac_dir_suffix. 21114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21115 case $ac_top_builddir_sub in 21116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21118 esac ;; 21119esac 21120ac_abs_top_builddir=$ac_pwd 21121ac_abs_builddir=$ac_pwd$ac_dir_suffix 21122# for backward compatibility: 21123ac_top_builddir=$ac_top_build_prefix 21124 21125case $srcdir in 21126 .) # We are building in place. 21127 ac_srcdir=. 21128 ac_top_srcdir=$ac_top_builddir_sub 21129 ac_abs_top_srcdir=$ac_pwd ;; 21130 [\\/]* | ?:[\\/]* ) # Absolute name. 21131 ac_srcdir=$srcdir$ac_dir_suffix; 21132 ac_top_srcdir=$srcdir 21133 ac_abs_top_srcdir=$srcdir ;; 21134 *) # Relative name. 21135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21136 ac_top_srcdir=$ac_top_build_prefix$srcdir 21137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21138esac 21139ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21140 21141 21142 case $ac_mode in 21143 :F) 21144 # 21145 # CONFIG_FILE 21146 # 21147 21148 case $INSTALL in 21149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21150 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21151 esac 21152 ac_MKDIR_P=$MKDIR_P 21153 case $MKDIR_P in 21154 [\\/$]* | ?:[\\/]* ) ;; 21155 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21156 esac 21157_ACEOF 21158 21159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21160# If the template does not know about datarootdir, expand it. 21161# FIXME: This hack should be removed a few years after 2.60. 21162ac_datarootdir_hack=; ac_datarootdir_seen= 21163ac_sed_dataroot=' 21164/datarootdir/ { 21165 p 21166 q 21167} 21168/@datadir@/p 21169/@docdir@/p 21170/@infodir@/p 21171/@localedir@/p 21172/@mandir@/p' 21173case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21174*datarootdir*) ac_datarootdir_seen=yes;; 21175*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21177$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21178_ACEOF 21179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21180 ac_datarootdir_hack=' 21181 s&@datadir@&$datadir&g 21182 s&@docdir@&$docdir&g 21183 s&@infodir@&$infodir&g 21184 s&@localedir@&$localedir&g 21185 s&@mandir@&$mandir&g 21186 s&\\\${datarootdir}&$datarootdir&g' ;; 21187esac 21188_ACEOF 21189 21190# Neutralize VPATH when `$srcdir' = `.'. 21191# Shell code in configure.ac might set extrasub. 21192# FIXME: do we really want to maintain this feature? 21193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21194ac_sed_extra="$ac_vpsub 21195$extrasub 21196_ACEOF 21197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21198:t 21199/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21200s|@configure_input@|$ac_sed_conf_input|;t t 21201s&@top_builddir@&$ac_top_builddir_sub&;t t 21202s&@top_build_prefix@&$ac_top_build_prefix&;t t 21203s&@srcdir@&$ac_srcdir&;t t 21204s&@abs_srcdir@&$ac_abs_srcdir&;t t 21205s&@top_srcdir@&$ac_top_srcdir&;t t 21206s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21207s&@builddir@&$ac_builddir&;t t 21208s&@abs_builddir@&$ac_abs_builddir&;t t 21209s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21210s&@INSTALL@&$ac_INSTALL&;t t 21211s&@MKDIR_P@&$ac_MKDIR_P&;t t 21212$ac_datarootdir_hack 21213" 21214eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21215 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21216 21217test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21218 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21219 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21220 "$ac_tmp/out"`; test -z "$ac_out"; } && 21221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21222which seems to be undefined. Please make sure it is defined" >&5 21223$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21224which seems to be undefined. Please make sure it is defined" >&2;} 21225 21226 rm -f "$ac_tmp/stdin" 21227 case $ac_file in 21228 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21229 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21230 esac \ 21231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21232 ;; 21233 :H) 21234 # 21235 # CONFIG_HEADER 21236 # 21237 if test x"$ac_file" != x-; then 21238 { 21239 $as_echo "/* $configure_input */" \ 21240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21241 } >"$ac_tmp/config.h" \ 21242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21243 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21245$as_echo "$as_me: $ac_file is unchanged" >&6;} 21246 else 21247 rm -f "$ac_file" 21248 mv "$ac_tmp/config.h" "$ac_file" \ 21249 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21250 fi 21251 else 21252 $as_echo "/* $configure_input */" \ 21253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21254 || as_fn_error $? "could not create -" "$LINENO" 5 21255 fi 21256# Compute "$ac_file"'s index in $config_headers. 21257_am_arg="$ac_file" 21258_am_stamp_count=1 21259for _am_header in $config_headers :; do 21260 case $_am_header in 21261 $_am_arg | $_am_arg:* ) 21262 break ;; 21263 * ) 21264 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21265 esac 21266done 21267echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21268$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21269 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21270 X"$_am_arg" : 'X\(//\)$' \| \ 21271 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21272$as_echo X"$_am_arg" | 21273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21274 s//\1/ 21275 q 21276 } 21277 /^X\(\/\/\)[^/].*/{ 21278 s//\1/ 21279 q 21280 } 21281 /^X\(\/\/\)$/{ 21282 s//\1/ 21283 q 21284 } 21285 /^X\(\/\).*/{ 21286 s//\1/ 21287 q 21288 } 21289 s/.*/./; q'`/stamp-h$_am_stamp_count 21290 ;; 21291 21292 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21293$as_echo "$as_me: executing $ac_file commands" >&6;} 21294 ;; 21295 esac 21296 21297 21298 case $ac_file$ac_mode in 21299 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21300 # Older Autoconf quotes --file arguments for eval, but not when files 21301 # are listed without --file. Let's play safe and only enable the eval 21302 # if we detect the quoting. 21303 case $CONFIG_FILES in 21304 *\'*) eval set x "$CONFIG_FILES" ;; 21305 *) set x $CONFIG_FILES ;; 21306 esac 21307 shift 21308 for mf 21309 do 21310 # Strip MF so we end up with the name of the file. 21311 mf=`echo "$mf" | sed -e 's/:.*$//'` 21312 # Check whether this is an Automake generated Makefile or not. 21313 # We used to match only the files named 'Makefile.in', but 21314 # some people rename them; so instead we look at the file content. 21315 # Grep'ing the first line is not enough: some people post-process 21316 # each Makefile.in and add a new line on top of each file to say so. 21317 # Grep'ing the whole file is not good either: AIX grep has a line 21318 # limit of 2048, but all sed's we know have understand at least 4000. 21319 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21320 dirpart=`$as_dirname -- "$mf" || 21321$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21322 X"$mf" : 'X\(//\)[^/]' \| \ 21323 X"$mf" : 'X\(//\)$' \| \ 21324 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21325$as_echo X"$mf" | 21326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21327 s//\1/ 21328 q 21329 } 21330 /^X\(\/\/\)[^/].*/{ 21331 s//\1/ 21332 q 21333 } 21334 /^X\(\/\/\)$/{ 21335 s//\1/ 21336 q 21337 } 21338 /^X\(\/\).*/{ 21339 s//\1/ 21340 q 21341 } 21342 s/.*/./; q'` 21343 else 21344 continue 21345 fi 21346 # Extract the definition of DEPDIR, am__include, and am__quote 21347 # from the Makefile without running 'make'. 21348 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21349 test -z "$DEPDIR" && continue 21350 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21351 test -z "$am__include" && continue 21352 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21353 # Find all dependency output files, they are included files with 21354 # $(DEPDIR) in their names. We invoke sed twice because it is the 21355 # simplest approach to changing $(DEPDIR) to its actual value in the 21356 # expansion. 21357 for file in `sed -n " 21358 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21359 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21360 # Make sure the directory exists. 21361 test -f "$dirpart/$file" && continue 21362 fdir=`$as_dirname -- "$file" || 21363$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21364 X"$file" : 'X\(//\)[^/]' \| \ 21365 X"$file" : 'X\(//\)$' \| \ 21366 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21367$as_echo X"$file" | 21368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21369 s//\1/ 21370 q 21371 } 21372 /^X\(\/\/\)[^/].*/{ 21373 s//\1/ 21374 q 21375 } 21376 /^X\(\/\/\)$/{ 21377 s//\1/ 21378 q 21379 } 21380 /^X\(\/\).*/{ 21381 s//\1/ 21382 q 21383 } 21384 s/.*/./; q'` 21385 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21386 # echo "creating $dirpart/$file" 21387 echo '# dummy' > "$dirpart/$file" 21388 done 21389 done 21390} 21391 ;; 21392 "libtool":C) 21393 21394 # See if we are running on zsh, and set the options which allow our 21395 # commands through without removal of \ escapes. 21396 if test -n "${ZSH_VERSION+set}" ; then 21397 setopt NO_GLOB_SUBST 21398 fi 21399 21400 cfgfile="${ofile}T" 21401 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21402 $RM "$cfgfile" 21403 21404 cat <<_LT_EOF >> "$cfgfile" 21405#! $SHELL 21406 21407# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21408# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21410# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21411# 21412# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21413# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21414# Foundation, Inc. 21415# Written by Gordon Matzigkeit, 1996 21416# 21417# This file is part of GNU Libtool. 21418# 21419# GNU Libtool is free software; you can redistribute it and/or 21420# modify it under the terms of the GNU General Public License as 21421# published by the Free Software Foundation; either version 2 of 21422# the License, or (at your option) any later version. 21423# 21424# As a special exception to the GNU General Public License, 21425# if you distribute this file as part of a program or library that 21426# is built using GNU Libtool, you may include this file under the 21427# same distribution terms that you use for the rest of that program. 21428# 21429# GNU Libtool is distributed in the hope that it will be useful, 21430# but WITHOUT ANY WARRANTY; without even the implied warranty of 21431# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21432# GNU General Public License for more details. 21433# 21434# You should have received a copy of the GNU General Public License 21435# along with GNU Libtool; see the file COPYING. If not, a copy 21436# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21437# obtained by writing to the Free Software Foundation, Inc., 21438# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21439 21440 21441# The names of the tagged configurations supported by this script. 21442available_tags="" 21443 21444# ### BEGIN LIBTOOL CONFIG 21445 21446# Whether or not to build static libraries. 21447build_old_libs=$enable_static 21448 21449# Which release of libtool.m4 was used? 21450macro_version=$macro_version 21451macro_revision=$macro_revision 21452 21453# Whether or not to build shared libraries. 21454build_libtool_libs=$enable_shared 21455 21456# What type of objects to build. 21457pic_mode=$pic_mode 21458 21459# Whether or not to optimize for fast installation. 21460fast_install=$enable_fast_install 21461 21462# Shell to use when invoking shell scripts. 21463SHELL=$lt_SHELL 21464 21465# An echo program that protects backslashes. 21466ECHO=$lt_ECHO 21467 21468# The PATH separator for the build system. 21469PATH_SEPARATOR=$lt_PATH_SEPARATOR 21470 21471# The host system. 21472host_alias=$host_alias 21473host=$host 21474host_os=$host_os 21475 21476# The build system. 21477build_alias=$build_alias 21478build=$build 21479build_os=$build_os 21480 21481# A sed program that does not truncate output. 21482SED=$lt_SED 21483 21484# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21485Xsed="\$SED -e 1s/^X//" 21486 21487# A grep program that handles long lines. 21488GREP=$lt_GREP 21489 21490# An ERE matcher. 21491EGREP=$lt_EGREP 21492 21493# A literal string matcher. 21494FGREP=$lt_FGREP 21495 21496# A BSD- or MS-compatible name lister. 21497NM=$lt_NM 21498 21499# Whether we need soft or hard links. 21500LN_S=$lt_LN_S 21501 21502# What is the maximum length of a command? 21503max_cmd_len=$max_cmd_len 21504 21505# Object file suffix (normally "o"). 21506objext=$ac_objext 21507 21508# Executable file suffix (normally ""). 21509exeext=$exeext 21510 21511# whether the shell understands "unset". 21512lt_unset=$lt_unset 21513 21514# turn spaces into newlines. 21515SP2NL=$lt_lt_SP2NL 21516 21517# turn newlines into spaces. 21518NL2SP=$lt_lt_NL2SP 21519 21520# convert \$build file names to \$host format. 21521to_host_file_cmd=$lt_cv_to_host_file_cmd 21522 21523# convert \$build files to toolchain format. 21524to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21525 21526# An object symbol dumper. 21527OBJDUMP=$lt_OBJDUMP 21528 21529# Method to check whether dependent libraries are shared objects. 21530deplibs_check_method=$lt_deplibs_check_method 21531 21532# Command to use when deplibs_check_method = "file_magic". 21533file_magic_cmd=$lt_file_magic_cmd 21534 21535# How to find potential files when deplibs_check_method = "file_magic". 21536file_magic_glob=$lt_file_magic_glob 21537 21538# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21539want_nocaseglob=$lt_want_nocaseglob 21540 21541# DLL creation program. 21542DLLTOOL=$lt_DLLTOOL 21543 21544# Command to associate shared and link libraries. 21545sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21546 21547# The archiver. 21548AR=$lt_AR 21549 21550# Flags to create an archive. 21551AR_FLAGS=$lt_AR_FLAGS 21552 21553# How to feed a file listing to the archiver. 21554archiver_list_spec=$lt_archiver_list_spec 21555 21556# A symbol stripping program. 21557STRIP=$lt_STRIP 21558 21559# Commands used to install an old-style archive. 21560RANLIB=$lt_RANLIB 21561old_postinstall_cmds=$lt_old_postinstall_cmds 21562old_postuninstall_cmds=$lt_old_postuninstall_cmds 21563 21564# Whether to use a lock for old archive extraction. 21565lock_old_archive_extraction=$lock_old_archive_extraction 21566 21567# A C compiler. 21568LTCC=$lt_CC 21569 21570# LTCC compiler flags. 21571LTCFLAGS=$lt_CFLAGS 21572 21573# Take the output of nm and produce a listing of raw symbols and C names. 21574global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21575 21576# Transform the output of nm in a proper C declaration. 21577global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21578 21579# Transform the output of nm in a C name address pair. 21580global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21581 21582# Transform the output of nm in a C name address pair when lib prefix is needed. 21583global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21584 21585# Specify filename containing input files for \$NM. 21586nm_file_list_spec=$lt_nm_file_list_spec 21587 21588# The root where to search for dependent libraries,and in which our libraries should be installed. 21589lt_sysroot=$lt_sysroot 21590 21591# The name of the directory that contains temporary libtool files. 21592objdir=$objdir 21593 21594# Used to examine libraries when file_magic_cmd begins with "file". 21595MAGIC_CMD=$MAGIC_CMD 21596 21597# Must we lock files when doing compilation? 21598need_locks=$lt_need_locks 21599 21600# Manifest tool. 21601MANIFEST_TOOL=$lt_MANIFEST_TOOL 21602 21603# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21604DSYMUTIL=$lt_DSYMUTIL 21605 21606# Tool to change global to local symbols on Mac OS X. 21607NMEDIT=$lt_NMEDIT 21608 21609# Tool to manipulate fat objects and archives on Mac OS X. 21610LIPO=$lt_LIPO 21611 21612# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21613OTOOL=$lt_OTOOL 21614 21615# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21616OTOOL64=$lt_OTOOL64 21617 21618# Old archive suffix (normally "a"). 21619libext=$libext 21620 21621# Shared library suffix (normally ".so"). 21622shrext_cmds=$lt_shrext_cmds 21623 21624# The commands to extract the exported symbol list from a shared archive. 21625extract_expsyms_cmds=$lt_extract_expsyms_cmds 21626 21627# Variables whose values should be saved in libtool wrapper scripts and 21628# restored at link time. 21629variables_saved_for_relink=$lt_variables_saved_for_relink 21630 21631# Do we need the "lib" prefix for modules? 21632need_lib_prefix=$need_lib_prefix 21633 21634# Do we need a version for libraries? 21635need_version=$need_version 21636 21637# Library versioning type. 21638version_type=$version_type 21639 21640# Shared library runtime path variable. 21641runpath_var=$runpath_var 21642 21643# Shared library path variable. 21644shlibpath_var=$shlibpath_var 21645 21646# Is shlibpath searched before the hard-coded library search path? 21647shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21648 21649# Format of library name prefix. 21650libname_spec=$lt_libname_spec 21651 21652# List of archive names. First name is the real one, the rest are links. 21653# The last name is the one that the linker finds with -lNAME 21654library_names_spec=$lt_library_names_spec 21655 21656# The coded name of the library, if different from the real name. 21657soname_spec=$lt_soname_spec 21658 21659# Permission mode override for installation of shared libraries. 21660install_override_mode=$lt_install_override_mode 21661 21662# Command to use after installation of a shared archive. 21663postinstall_cmds=$lt_postinstall_cmds 21664 21665# Command to use after uninstallation of a shared archive. 21666postuninstall_cmds=$lt_postuninstall_cmds 21667 21668# Commands used to finish a libtool library installation in a directory. 21669finish_cmds=$lt_finish_cmds 21670 21671# As "finish_cmds", except a single script fragment to be evaled but 21672# not shown. 21673finish_eval=$lt_finish_eval 21674 21675# Whether we should hardcode library paths into libraries. 21676hardcode_into_libs=$hardcode_into_libs 21677 21678# Compile-time system search path for libraries. 21679sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21680 21681# Run-time system search path for libraries. 21682sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21683 21684# Whether dlopen is supported. 21685dlopen_support=$enable_dlopen 21686 21687# Whether dlopen of programs is supported. 21688dlopen_self=$enable_dlopen_self 21689 21690# Whether dlopen of statically linked programs is supported. 21691dlopen_self_static=$enable_dlopen_self_static 21692 21693# Commands to strip libraries. 21694old_striplib=$lt_old_striplib 21695striplib=$lt_striplib 21696 21697 21698# The linker used to build libraries. 21699LD=$lt_LD 21700 21701# How to create reloadable object files. 21702reload_flag=$lt_reload_flag 21703reload_cmds=$lt_reload_cmds 21704 21705# Commands used to build an old-style archive. 21706old_archive_cmds=$lt_old_archive_cmds 21707 21708# A language specific compiler. 21709CC=$lt_compiler 21710 21711# Is the compiler the GNU compiler? 21712with_gcc=$GCC 21713 21714# Compiler flag to turn off builtin functions. 21715no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21716 21717# Additional compiler flags for building library objects. 21718pic_flag=$lt_lt_prog_compiler_pic 21719 21720# How to pass a linker flag through the compiler. 21721wl=$lt_lt_prog_compiler_wl 21722 21723# Compiler flag to prevent dynamic linking. 21724link_static_flag=$lt_lt_prog_compiler_static 21725 21726# Does compiler simultaneously support -c and -o options? 21727compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21728 21729# Whether or not to add -lc for building shared libraries. 21730build_libtool_need_lc=$archive_cmds_need_lc 21731 21732# Whether or not to disallow shared libs when runtime libs are static. 21733allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21734 21735# Compiler flag to allow reflexive dlopens. 21736export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21737 21738# Compiler flag to generate shared objects directly from archives. 21739whole_archive_flag_spec=$lt_whole_archive_flag_spec 21740 21741# Whether the compiler copes with passing no objects directly. 21742compiler_needs_object=$lt_compiler_needs_object 21743 21744# Create an old-style archive from a shared archive. 21745old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21746 21747# Create a temporary old-style archive to link instead of a shared archive. 21748old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21749 21750# Commands used to build a shared archive. 21751archive_cmds=$lt_archive_cmds 21752archive_expsym_cmds=$lt_archive_expsym_cmds 21753 21754# Commands used to build a loadable module if different from building 21755# a shared archive. 21756module_cmds=$lt_module_cmds 21757module_expsym_cmds=$lt_module_expsym_cmds 21758 21759# Whether we are building with GNU ld or not. 21760with_gnu_ld=$lt_with_gnu_ld 21761 21762# Flag that allows shared libraries with undefined symbols to be built. 21763allow_undefined_flag=$lt_allow_undefined_flag 21764 21765# Flag that enforces no undefined symbols. 21766no_undefined_flag=$lt_no_undefined_flag 21767 21768# Flag to hardcode \$libdir into a binary during linking. 21769# This must work even if \$libdir does not exist 21770hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21771 21772# Whether we need a single "-rpath" flag with a separated argument. 21773hardcode_libdir_separator=$lt_hardcode_libdir_separator 21774 21775# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21776# DIR into the resulting binary. 21777hardcode_direct=$hardcode_direct 21778 21779# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21780# DIR into the resulting binary and the resulting library dependency is 21781# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21782# library is relocated. 21783hardcode_direct_absolute=$hardcode_direct_absolute 21784 21785# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21786# into the resulting binary. 21787hardcode_minus_L=$hardcode_minus_L 21788 21789# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21790# into the resulting binary. 21791hardcode_shlibpath_var=$hardcode_shlibpath_var 21792 21793# Set to "yes" if building a shared library automatically hardcodes DIR 21794# into the library and all subsequent libraries and executables linked 21795# against it. 21796hardcode_automatic=$hardcode_automatic 21797 21798# Set to yes if linker adds runtime paths of dependent libraries 21799# to runtime path list. 21800inherit_rpath=$inherit_rpath 21801 21802# Whether libtool must link a program against all its dependency libraries. 21803link_all_deplibs=$link_all_deplibs 21804 21805# Set to "yes" if exported symbols are required. 21806always_export_symbols=$always_export_symbols 21807 21808# The commands to list exported symbols. 21809export_symbols_cmds=$lt_export_symbols_cmds 21810 21811# Symbols that should not be listed in the preloaded symbols. 21812exclude_expsyms=$lt_exclude_expsyms 21813 21814# Symbols that must always be exported. 21815include_expsyms=$lt_include_expsyms 21816 21817# Commands necessary for linking programs (against libraries) with templates. 21818prelink_cmds=$lt_prelink_cmds 21819 21820# Commands necessary for finishing linking programs. 21821postlink_cmds=$lt_postlink_cmds 21822 21823# Specify filename containing input files. 21824file_list_spec=$lt_file_list_spec 21825 21826# How to hardcode a shared library path into an executable. 21827hardcode_action=$hardcode_action 21828 21829# ### END LIBTOOL CONFIG 21830 21831_LT_EOF 21832 21833 case $host_os in 21834 aix3*) 21835 cat <<\_LT_EOF >> "$cfgfile" 21836# AIX sometimes has problems with the GCC collect2 program. For some 21837# reason, if we set the COLLECT_NAMES environment variable, the problems 21838# vanish in a puff of smoke. 21839if test "X${COLLECT_NAMES+set}" != Xset; then 21840 COLLECT_NAMES= 21841 export COLLECT_NAMES 21842fi 21843_LT_EOF 21844 ;; 21845 esac 21846 21847 21848ltmain="$ac_aux_dir/ltmain.sh" 21849 21850 21851 # We use sed instead of cat because bash on DJGPP gets confused if 21852 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21853 # text mode, it properly converts lines to CR/LF. This bash problem 21854 # is reportedly fixed, but why not run on old versions too? 21855 sed '$q' "$ltmain" >> "$cfgfile" \ 21856 || (rm -f "$cfgfile"; exit 1) 21857 21858 if test x"$xsi_shell" = xyes; then 21859 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21860func_dirname ()\ 21861{\ 21862\ case ${1} in\ 21863\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21864\ * ) func_dirname_result="${3}" ;;\ 21865\ esac\ 21866} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21867 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21869test 0 -eq $? || _lt_function_replace_fail=: 21870 21871 21872 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21873func_basename ()\ 21874{\ 21875\ func_basename_result="${1##*/}"\ 21876} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21877 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21879test 0 -eq $? || _lt_function_replace_fail=: 21880 21881 21882 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21883func_dirname_and_basename ()\ 21884{\ 21885\ case ${1} in\ 21886\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21887\ * ) func_dirname_result="${3}" ;;\ 21888\ esac\ 21889\ func_basename_result="${1##*/}"\ 21890} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21891 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21893test 0 -eq $? || _lt_function_replace_fail=: 21894 21895 21896 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21897func_stripname ()\ 21898{\ 21899\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21900\ # positional parameters, so assign one to ordinary parameter first.\ 21901\ func_stripname_result=${3}\ 21902\ func_stripname_result=${func_stripname_result#"${1}"}\ 21903\ func_stripname_result=${func_stripname_result%"${2}"}\ 21904} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21905 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21907test 0 -eq $? || _lt_function_replace_fail=: 21908 21909 21910 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21911func_split_long_opt ()\ 21912{\ 21913\ func_split_long_opt_name=${1%%=*}\ 21914\ func_split_long_opt_arg=${1#*=}\ 21915} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21916 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21918test 0 -eq $? || _lt_function_replace_fail=: 21919 21920 21921 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21922func_split_short_opt ()\ 21923{\ 21924\ func_split_short_opt_arg=${1#??}\ 21925\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21926} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21927 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21929test 0 -eq $? || _lt_function_replace_fail=: 21930 21931 21932 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21933func_lo2o ()\ 21934{\ 21935\ case ${1} in\ 21936\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21937\ *) func_lo2o_result=${1} ;;\ 21938\ esac\ 21939} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21940 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21942test 0 -eq $? || _lt_function_replace_fail=: 21943 21944 21945 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21946func_xform ()\ 21947{\ 21948 func_xform_result=${1%.*}.lo\ 21949} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21950 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21952test 0 -eq $? || _lt_function_replace_fail=: 21953 21954 21955 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21956func_arith ()\ 21957{\ 21958 func_arith_result=$(( $* ))\ 21959} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21960 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21962test 0 -eq $? || _lt_function_replace_fail=: 21963 21964 21965 sed -e '/^func_len ()$/,/^} # func_len /c\ 21966func_len ()\ 21967{\ 21968 func_len_result=${#1}\ 21969} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21970 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21972test 0 -eq $? || _lt_function_replace_fail=: 21973 21974fi 21975 21976if test x"$lt_shell_append" = xyes; then 21977 sed -e '/^func_append ()$/,/^} # func_append /c\ 21978func_append ()\ 21979{\ 21980 eval "${1}+=\\${2}"\ 21981} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21982 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21984test 0 -eq $? || _lt_function_replace_fail=: 21985 21986 21987 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21988func_append_quoted ()\ 21989{\ 21990\ func_quote_for_eval "${2}"\ 21991\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21992} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21993 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21995test 0 -eq $? || _lt_function_replace_fail=: 21996 21997 21998 # Save a `func_append' function call where possible by direct use of '+=' 21999 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22000 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22001 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22002 test 0 -eq $? || _lt_function_replace_fail=: 22003else 22004 # Save a `func_append' function call even when '+=' is not available 22005 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22006 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22008 test 0 -eq $? || _lt_function_replace_fail=: 22009fi 22010 22011if test x"$_lt_function_replace_fail" = x":"; then 22012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22013$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22014fi 22015 22016 22017 mv -f "$cfgfile" "$ofile" || 22018 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22019 chmod +x "$ofile" 22020 22021 ;; 22022 22023 esac 22024done # for ac_tag 22025 22026 22027as_fn_exit 0 22028_ACEOF 22029ac_clean_files=$ac_clean_files_save 22030 22031test $ac_write_fail = 0 || 22032 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22033 22034 22035# configure is writing to config.log, and then calls config.status. 22036# config.status does its own redirection, appending to config.log. 22037# Unfortunately, on DOS this fails, as config.log is still kept open 22038# by configure, so config.status won't be able to write to it; its 22039# output is simply discarded. So we exec the FD to /dev/null, 22040# effectively closing config.log, so it can be properly (re)opened and 22041# appended to by config.status. When coming back to configure, we 22042# need to make the FD available again. 22043if test "$no_create" != yes; then 22044 ac_cs_success=: 22045 ac_config_status_args= 22046 test "$silent" = yes && 22047 ac_config_status_args="$ac_config_status_args --quiet" 22048 exec 5>/dev/null 22049 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22050 exec 5>>config.log 22051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22052 # would make configure fail if this is the last instruction. 22053 $ac_cs_success || as_fn_exit 1 22054fi 22055if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22057$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22058fi 22059 22060 22061echo "" 22062echo " prefix: $prefix" 22063echo " exec_prefix: $exec_prefix" 22064echo " libdir: $libdir" 22065echo " includedir: $includedir" 22066 22067echo "" 22068echo " CFLAGS: $CFLAGS" 22069echo " CXXFLAGS: $CXXFLAGS" 22070echo " Macros: $DEFINES" 22071 22072echo "" 22073echo " Run '${MAKE-make}' to build xf86-video-nouveau" 22074echo "" 22075