configure revision 1e449e82
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-savage 2.3.8. 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-savage' 593PACKAGE_TARNAME='xf86-video-savage' 594PACKAGE_VERSION='2.3.8' 595PACKAGE_STRING='xf86-video-savage 2.3.8' 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 642XSERVER_LIBPCIACCESS_FALSE 643XSERVER_LIBPCIACCESS_TRUE 644PCIACCESS_LIBS 645PCIACCESS_CFLAGS 646XAA_FALSE 647XAA_TRUE 648DRI_LIBS 649DRI_CFLAGS 650DRI_FALSE 651DRI_TRUE 652HAVE_XEXTPROTO_71_FALSE 653HAVE_XEXTPROTO_71_TRUE 654XEXT_LIBS 655XEXT_CFLAGS 656XORG_LIBS 657XORG_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 727MAINT 728MAINTAINER_MODE_FALSE 729MAINTAINER_MODE_TRUE 730AM_BACKSLASH 731AM_DEFAULT_VERBOSITY 732AM_DEFAULT_V 733AM_V 734am__untar 735am__tar 736AMTAR 737am__leading_dot 738SET_MAKE 739AWK 740mkdir_p 741MKDIR_P 742INSTALL_STRIP_PROGRAM 743STRIP 744install_sh 745MAKEINFO 746AUTOHEADER 747AUTOMAKE 748AUTOCONF 749ACLOCAL 750VERSION 751PACKAGE 752CYGPATH_W 753am__isrc 754INSTALL_DATA 755INSTALL_SCRIPT 756INSTALL_PROGRAM 757target_alias 758host_alias 759build_alias 760LIBS 761ECHO_T 762ECHO_N 763ECHO_C 764DEFS 765mandir 766localedir 767libdir 768psdir 769pdfdir 770dvidir 771htmldir 772infodir 773docdir 774oldincludedir 775includedir 776localstatedir 777sharedstatedir 778sysconfdir 779datadir 780datarootdir 781libexecdir 782sbindir 783bindir 784program_transform_name 785prefix 786exec_prefix 787PACKAGE_URL 788PACKAGE_BUGREPORT 789PACKAGE_STRING 790PACKAGE_VERSION 791PACKAGE_TARNAME 792PACKAGE_NAME 793PATH_SEPARATOR 794SHELL' 795ac_subst_files='' 796ac_user_opts=' 797enable_option_checking 798enable_silent_rules 799enable_maintainer_mode 800enable_dependency_tracking 801enable_selective_werror 802enable_strict_compilation 803enable_static 804enable_shared 805with_pic 806enable_fast_install 807with_gnu_ld 808with_sysroot 809enable_libtool_lock 810with_xorg_module_dir 811enable_dri 812enable_xaa 813' 814 ac_precious_vars='build_alias 815host_alias 816target_alias 817CC 818CFLAGS 819LDFLAGS 820LIBS 821CPPFLAGS 822CPP 823PKG_CONFIG 824PKG_CONFIG_PATH 825PKG_CONFIG_LIBDIR 826XORG_CFLAGS 827XORG_LIBS 828XEXT_CFLAGS 829XEXT_LIBS 830DRI_CFLAGS 831DRI_LIBS 832PCIACCESS_CFLAGS 833PCIACCESS_LIBS' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242done 1243 1244if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247fi 1248 1249if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255fi 1256 1257# Check all directory arguments for consistency. 1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276done 1277 1278# There might be people who depend on the old broken behavior: `$host' 1279# used to hold the argument of --host etc. 1280# FIXME: To remove some day. 1281build=$build_alias 1282host=$host_alias 1283target=$target_alias 1284 1285# FIXME: To remove some day. 1286if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 elif test "x$build_alias" != "x$host_alias"; then 1290 cross_compiling=yes 1291 fi 1292fi 1293 1294ac_tool_prefix= 1295test -n "$host_alias" && ac_tool_prefix=$host_alias- 1296 1297test "$silent" = yes && exec 6>/dev/null 1298 1299 1300ac_pwd=`pwd` && test -n "$ac_pwd" && 1301ac_ls_di=`ls -di .` && 1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1303 as_fn_error $? "working directory cannot be determined" 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1305 as_fn_error $? "pwd does not report name of working directory" 1306 1307 1308# Find the source files, if location was not specified. 1309if test -z "$srcdir"; then 1310 ac_srcdir_defaulted=yes 1311 # Try the directory containing this script, then the parent directory. 1312 ac_confdir=`$as_dirname -- "$as_myself" || 1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1314 X"$as_myself" : 'X\(//\)[^/]' \| \ 1315 X"$as_myself" : 'X\(//\)$' \| \ 1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1317$as_echo X"$as_myself" | 1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)[^/].*/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\).*/{ 1331 s//\1/ 1332 q 1333 } 1334 s/.*/./; q'` 1335 srcdir=$ac_confdir 1336 if test ! -r "$srcdir/$ac_unique_file"; then 1337 srcdir=.. 1338 fi 1339else 1340 ac_srcdir_defaulted=no 1341fi 1342if test ! -r "$srcdir/$ac_unique_file"; then 1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1345fi 1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1347ac_abs_confdir=`( 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1349 pwd)` 1350# When building in place, set srcdir=. 1351if test "$ac_abs_confdir" = "$ac_pwd"; then 1352 srcdir=. 1353fi 1354# Remove unnecessary trailing slashes from srcdir. 1355# Double slashes in file names in object file debugging info 1356# mess up M-x gdb in Emacs. 1357case $srcdir in 1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1359esac 1360for ac_var in $ac_precious_vars; do 1361 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_env_${ac_var}_value=\$${ac_var} 1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1365done 1366 1367# 1368# Report the --help message. 1369# 1370if test "$ac_init_help" = "long"; then 1371 # Omit some internal or obsolete options to make the list less imposing. 1372 # This message is too long to be a string in the A/UX 3.1 sh. 1373 cat <<_ACEOF 1374\`configure' configures xf86-video-savage 2.3.8 to adapt to many kinds of systems. 1375 1376Usage: $0 [OPTION]... [VAR=VALUE]... 1377 1378To assign environment variables (e.g., CC, CFLAGS...), specify them as 1379VAR=VALUE. See below for descriptions of some of the useful variables. 1380 1381Defaults for the options are specified in brackets. 1382 1383Configuration: 1384 -h, --help display this help and exit 1385 --help=short display options specific to this package 1386 --help=recursive display the short help of all the included packages 1387 -V, --version display version information and exit 1388 -q, --quiet, --silent do not print \`checking ...' messages 1389 --cache-file=FILE cache test results in FILE [disabled] 1390 -C, --config-cache alias for \`--cache-file=config.cache' 1391 -n, --no-create do not create output files 1392 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1393 1394Installation directories: 1395 --prefix=PREFIX install architecture-independent files in PREFIX 1396 [$ac_default_prefix] 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1398 [PREFIX] 1399 1400By default, \`make install' will install all the files in 1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1402an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1403for instance \`--prefix=\$HOME'. 1404 1405For better control, use the options below. 1406 1407Fine tuning of the installation directories: 1408 --bindir=DIR user executables [EPREFIX/bin] 1409 --sbindir=DIR system admin executables [EPREFIX/sbin] 1410 --libexecdir=DIR program executables [EPREFIX/libexec] 1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root 1423 [DATAROOTDIR/doc/xf86-video-savage] 1424 --htmldir=DIR html documentation [DOCDIR] 1425 --dvidir=DIR dvi documentation [DOCDIR] 1426 --pdfdir=DIR pdf documentation [DOCDIR] 1427 --psdir=DIR ps documentation [DOCDIR] 1428_ACEOF 1429 1430 cat <<\_ACEOF 1431 1432Program names: 1433 --program-prefix=PREFIX prepend PREFIX to installed program names 1434 --program-suffix=SUFFIX append SUFFIX to installed program names 1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1436 1437System types: 1438 --build=BUILD configure for building on BUILD [guessed] 1439 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1440_ACEOF 1441fi 1442 1443if test -n "$ac_init_help"; then 1444 case $ac_init_help in 1445 short | recursive ) echo "Configuration of xf86-video-savage 2.3.8:";; 1446 esac 1447 cat <<\_ACEOF 1448 1449Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-silent-rules less verbose build output (undo: "make V=1") 1454 --disable-silent-rules verbose build output (undo: "make V=0") 1455 --enable-maintainer-mode 1456 enable make rules and dependencies not useful (and 1457 sometimes confusing) to the casual installer 1458 --enable-dependency-tracking 1459 do not reject slow dependency extractors 1460 --disable-dependency-tracking 1461 speeds up one-time build 1462 --disable-selective-werror 1463 Turn off selective compiler errors. (default: 1464 enabled) 1465 --enable-strict-compilation 1466 Enable all warnings from compiler and make them 1467 errors (default: disabled) 1468 --enable-static[=PKGS] build static libraries [default=no] 1469 --enable-shared[=PKGS] build shared libraries [default=yes] 1470 --enable-fast-install[=PKGS] 1471 optimize for fast installation [default=yes] 1472 --disable-libtool-lock avoid locking (might break parallel builds) 1473 --disable-dri Disable DRI support [[default=auto]] 1474 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1475 [default=auto] 1476 1477Optional Packages: 1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1480 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1481 both] 1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1483 --with-sysroot=DIR Search for dependent libraries within DIR 1484 (or the compiler's sysroot if not specified). 1485 --with-xorg-module-dir=DIR 1486 Default xorg module directory 1487 [[default=$libdir/xorg/modules]] 1488 1489Some influential environment variables: 1490 CC C compiler command 1491 CFLAGS C compiler flags 1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1493 nonstandard directory <lib dir> 1494 LIBS libraries to pass to the linker, e.g. -l<library> 1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1496 you have headers in a nonstandard directory <include dir> 1497 CPP C preprocessor 1498 PKG_CONFIG path to pkg-config utility 1499 PKG_CONFIG_PATH 1500 directories to add to pkg-config's search path 1501 PKG_CONFIG_LIBDIR 1502 path overriding pkg-config's built-in search path 1503 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1504 XORG_LIBS linker flags for XORG, overriding pkg-config 1505 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1506 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1507 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1508 DRI_LIBS linker flags for DRI, overriding pkg-config 1509 PCIACCESS_CFLAGS 1510 C compiler flags for PCIACCESS, overriding pkg-config 1511 PCIACCESS_LIBS 1512 linker flags for PCIACCESS, overriding pkg-config 1513 1514Use these variables to override the choices made by `configure' or to help 1515it to find libraries and programs with nonstandard names/locations. 1516 1517Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1518_ACEOF 1519ac_status=$? 1520fi 1521 1522if test "$ac_init_help" = "recursive"; then 1523 # If there are subdirs, report their specific --help. 1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1525 test -d "$ac_dir" || 1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1527 continue 1528 ac_builddir=. 1529 1530case "$ac_dir" in 1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532*) 1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1534 # A ".." for each directory in $ac_dir_suffix. 1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1536 case $ac_top_builddir_sub in 1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1539 esac ;; 1540esac 1541ac_abs_top_builddir=$ac_pwd 1542ac_abs_builddir=$ac_pwd$ac_dir_suffix 1543# for backward compatibility: 1544ac_top_builddir=$ac_top_build_prefix 1545 1546case $srcdir in 1547 .) # We are building in place. 1548 ac_srcdir=. 1549 ac_top_srcdir=$ac_top_builddir_sub 1550 ac_abs_top_srcdir=$ac_pwd ;; 1551 [\\/]* | ?:[\\/]* ) # Absolute name. 1552 ac_srcdir=$srcdir$ac_dir_suffix; 1553 ac_top_srcdir=$srcdir 1554 ac_abs_top_srcdir=$srcdir ;; 1555 *) # Relative name. 1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1557 ac_top_srcdir=$ac_top_build_prefix$srcdir 1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1559esac 1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1561 1562 cd "$ac_dir" || { ac_status=$?; continue; } 1563 # Check for guested configure. 1564 if test -f "$ac_srcdir/configure.gnu"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1567 elif test -f "$ac_srcdir/configure"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure" --help=recursive 1570 else 1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1572 fi || ac_status=$? 1573 cd "$ac_pwd" || { ac_status=$?; break; } 1574 done 1575fi 1576 1577test -n "$ac_init_help" && exit $ac_status 1578if $ac_init_version; then 1579 cat <<\_ACEOF 1580xf86-video-savage configure 2.3.8 1581generated by GNU Autoconf 2.69 1582 1583Copyright (C) 2012 Free Software Foundation, Inc. 1584This configure script is free software; the Free Software Foundation 1585gives unlimited permission to copy, distribute and modify it. 1586_ACEOF 1587 exit 1588fi 1589 1590## ------------------------ ## 1591## Autoconf initialization. ## 1592## ------------------------ ## 1593 1594# ac_fn_c_try_compile LINENO 1595# -------------------------- 1596# Try to compile conftest.$ac_ext, and return whether this succeeded. 1597ac_fn_c_try_compile () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 rm -f conftest.$ac_objext 1601 if { { ac_try="$ac_compile" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_compile") 2>conftest.err 1609 ac_status=$? 1610 if test -s conftest.err; then 1611 grep -v '^ *+' conftest.err >conftest.er1 1612 cat conftest.er1 >&5 1613 mv -f conftest.er1 conftest.err 1614 fi 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; } && { 1617 test -z "$ac_c_werror_flag" || 1618 test ! -s conftest.err 1619 } && test -s conftest.$ac_objext; then : 1620 ac_retval=0 1621else 1622 $as_echo "$as_me: failed program was:" >&5 1623sed 's/^/| /' conftest.$ac_ext >&5 1624 1625 ac_retval=1 1626fi 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 as_fn_set_status $ac_retval 1629 1630} # ac_fn_c_try_compile 1631 1632# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1633# --------------------------------------------- 1634# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1635# accordingly. 1636ac_fn_c_check_decl () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 as_decl_name=`echo $2|sed 's/ *(.*//'` 1640 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1642$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1643if eval \${$3+:} false; then : 1644 $as_echo_n "(cached) " >&6 1645else 1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1647/* end confdefs.h. */ 1648$4 1649int 1650main () 1651{ 1652#ifndef $as_decl_name 1653#ifdef __cplusplus 1654 (void) $as_decl_use; 1655#else 1656 (void) $as_decl_name; 1657#endif 1658#endif 1659 1660 ; 1661 return 0; 1662} 1663_ACEOF 1664if ac_fn_c_try_compile "$LINENO"; then : 1665 eval "$3=yes" 1666else 1667 eval "$3=no" 1668fi 1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1670fi 1671eval ac_res=\$$3 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1673$as_echo "$ac_res" >&6; } 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 1676} # ac_fn_c_check_decl 1677 1678# ac_fn_c_try_cpp LINENO 1679# ---------------------- 1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_cpp () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_cpp conftest.$ac_ext" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } > conftest.i && { 1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_cpp 1714 1715# ac_fn_c_try_run LINENO 1716# ---------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1718# that executables *can* be run. 1719ac_fn_c_try_run () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>&5 1730 ac_status=$? 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1733 { { case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_try") 2>&5 1740 ac_status=$? 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; }; }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: program exited with status $ac_status" >&5 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=$ac_status 1750fi 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_run 1756 1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1758# ------------------------------------------------------- 1759# Tests whether HEADER exists and can be compiled using the include files in 1760# INCLUDES, setting the cache variable VAR accordingly. 1761ac_fn_c_check_header_compile () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765$as_echo_n "checking for $2... " >&6; } 1766if eval \${$3+:} false; then : 1767 $as_echo_n "(cached) " >&6 1768else 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772#include <$2> 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 1786} # ac_fn_c_check_header_compile 1787 1788# ac_fn_c_try_link LINENO 1789# ----------------------- 1790# Try to link conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_link () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 rm -f conftest.$ac_objext conftest$ac_exeext 1795 if { { ac_try="$ac_link" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_link") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { 1811 test -z "$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 } && test -s conftest$ac_exeext && { 1814 test "$cross_compiling" = yes || 1815 test -x conftest$ac_exeext 1816 }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=1 1823fi 1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1826 # interfere with the next link command; also delete a directory that is 1827 # left behind by Apple's compiler. We do this before executing the actions. 1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1830 as_fn_set_status $ac_retval 1831 1832} # ac_fn_c_try_link 1833 1834# ac_fn_c_check_func LINENO FUNC VAR 1835# ---------------------------------- 1836# Tests whether FUNC exists, setting the cache variable VAR accordingly 1837ac_fn_c_check_func () 1838{ 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1841$as_echo_n "checking for $2... " >&6; } 1842if eval \${$3+:} false; then : 1843 $as_echo_n "(cached) " >&6 1844else 1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1846/* end confdefs.h. */ 1847/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1849#define $2 innocuous_$2 1850 1851/* System header to define __stub macros and hopefully few prototypes, 1852 which can conflict with char $2 (); below. 1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1854 <limits.h> exists even on freestanding compilers. */ 1855 1856#ifdef __STDC__ 1857# include <limits.h> 1858#else 1859# include <assert.h> 1860#endif 1861 1862#undef $2 1863 1864/* Override any GCC internal prototype to avoid an error. 1865 Use char because int might match the return type of a GCC 1866 builtin and then its argument prototype would still apply. */ 1867#ifdef __cplusplus 1868extern "C" 1869#endif 1870char $2 (); 1871/* The GNU C library defines this for functions which it implements 1872 to always fail with ENOSYS. Some functions are actually named 1873 something starting with __ and the normal name is an alias. */ 1874#if defined __stub_$2 || defined __stub___$2 1875choke me 1876#endif 1877 1878int 1879main () 1880{ 1881return $2 (); 1882 ; 1883 return 0; 1884} 1885_ACEOF 1886if ac_fn_c_try_link "$LINENO"; then : 1887 eval "$3=yes" 1888else 1889 eval "$3=no" 1890fi 1891rm -f core conftest.err conftest.$ac_objext \ 1892 conftest$ac_exeext conftest.$ac_ext 1893fi 1894eval ac_res=\$$3 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1896$as_echo "$ac_res" >&6; } 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 1899} # ac_fn_c_check_func 1900 1901# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1902# ------------------------------------------------------- 1903# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1904# the include files in INCLUDES and setting the cache variable VAR 1905# accordingly. 1906ac_fn_c_check_header_mongrel () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 if eval \${$3+:} false; then : 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1911$as_echo_n "checking for $2... " >&6; } 1912if eval \${$3+:} false; then : 1913 $as_echo_n "(cached) " >&6 1914fi 1915eval ac_res=\$$3 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917$as_echo "$ac_res" >&6; } 1918else 1919 # Is the header compilable? 1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1921$as_echo_n "checking $2 usability... " >&6; } 1922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924$4 1925#include <$2> 1926_ACEOF 1927if ac_fn_c_try_compile "$LINENO"; then : 1928 ac_header_compiler=yes 1929else 1930 ac_header_compiler=no 1931fi 1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1934$as_echo "$ac_header_compiler" >&6; } 1935 1936# Is the header present? 1937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1938$as_echo_n "checking $2 presence... " >&6; } 1939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941#include <$2> 1942_ACEOF 1943if ac_fn_c_try_cpp "$LINENO"; then : 1944 ac_header_preproc=yes 1945else 1946 ac_header_preproc=no 1947fi 1948rm -f conftest.err conftest.i conftest.$ac_ext 1949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1950$as_echo "$ac_header_preproc" >&6; } 1951 1952# So? What about this header? 1953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1954 yes:no: ) 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1956$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1958$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1959 ;; 1960 no:yes:* ) 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1962$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1964$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1966$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1968$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1971( $as_echo "## ---------------------------------------------------------------------- ## 1972## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1973## ---------------------------------------------------------------------- ##" 1974 ) | sed "s/^/$as_me: WARNING: /" >&2 1975 ;; 1976esac 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1978$as_echo_n "checking for $2... " >&6; } 1979if eval \${$3+:} false; then : 1980 $as_echo_n "(cached) " >&6 1981else 1982 eval "$3=\$ac_header_compiler" 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987fi 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 1990} # ac_fn_c_check_header_mongrel 1991cat >config.log <<_ACEOF 1992This file contains any messages produced by compilers while 1993running configure, to aid debugging if configure makes a mistake. 1994 1995It was created by xf86-video-savage $as_me 2.3.8, which was 1996generated by GNU Autoconf 2.69. Invocation command line was 1997 1998 $ $0 $@ 1999 2000_ACEOF 2001exec 5>>config.log 2002{ 2003cat <<_ASUNAME 2004## --------- ## 2005## Platform. ## 2006## --------- ## 2007 2008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2009uname -m = `(uname -m) 2>/dev/null || echo unknown` 2010uname -r = `(uname -r) 2>/dev/null || echo unknown` 2011uname -s = `(uname -s) 2>/dev/null || echo unknown` 2012uname -v = `(uname -v) 2>/dev/null || echo unknown` 2013 2014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2016 2017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2020/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2024 2025_ASUNAME 2026 2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2028for as_dir in $PATH 2029do 2030 IFS=$as_save_IFS 2031 test -z "$as_dir" && as_dir=. 2032 $as_echo "PATH: $as_dir" 2033 done 2034IFS=$as_save_IFS 2035 2036} >&5 2037 2038cat >&5 <<_ACEOF 2039 2040 2041## ----------- ## 2042## Core tests. ## 2043## ----------- ## 2044 2045_ACEOF 2046 2047 2048# Keep a trace of the command line. 2049# Strip out --no-create and --no-recursion so they do not pile up. 2050# Strip out --silent because we don't want to record it for future runs. 2051# Also quote any args containing shell meta-characters. 2052# Make two passes to allow for proper duplicate-argument suppression. 2053ac_configure_args= 2054ac_configure_args0= 2055ac_configure_args1= 2056ac_must_keep_next=false 2057for ac_pass in 1 2 2058do 2059 for ac_arg 2060 do 2061 case $ac_arg in 2062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2064 | -silent | --silent | --silen | --sile | --sil) 2065 continue ;; 2066 *\'*) 2067 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2068 esac 2069 case $ac_pass in 2070 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2071 2) 2072 as_fn_append ac_configure_args1 " '$ac_arg'" 2073 if test $ac_must_keep_next = true; then 2074 ac_must_keep_next=false # Got value, back to normal. 2075 else 2076 case $ac_arg in 2077 *=* | --config-cache | -C | -disable-* | --disable-* \ 2078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2080 | -with-* | --with-* | -without-* | --without-* | --x) 2081 case "$ac_configure_args0 " in 2082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2083 esac 2084 ;; 2085 -* ) ac_must_keep_next=true ;; 2086 esac 2087 fi 2088 as_fn_append ac_configure_args " '$ac_arg'" 2089 ;; 2090 esac 2091 done 2092done 2093{ ac_configure_args0=; unset ac_configure_args0;} 2094{ ac_configure_args1=; unset ac_configure_args1;} 2095 2096# When interrupted or exit'd, cleanup temporary files, and complete 2097# config.log. We remove comments because anyway the quotes in there 2098# would cause problems or look ugly. 2099# WARNING: Use '\'' to represent an apostrophe within the trap. 2100# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2101trap 'exit_status=$? 2102 # Save into config.log some information that might help in debugging. 2103 { 2104 echo 2105 2106 $as_echo "## ---------------- ## 2107## Cache variables. ## 2108## ---------------- ##" 2109 echo 2110 # The following way of writing the cache mishandles newlines in values, 2111( 2112 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2113 eval ac_val=\$$ac_var 2114 case $ac_val in #( 2115 *${as_nl}*) 2116 case $ac_var in #( 2117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2118$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2119 esac 2120 case $ac_var in #( 2121 _ | IFS | as_nl) ;; #( 2122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2123 *) { eval $ac_var=; unset $ac_var;} ;; 2124 esac ;; 2125 esac 2126 done 2127 (set) 2>&1 | 2128 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2129 *${as_nl}ac_space=\ *) 2130 sed -n \ 2131 "s/'\''/'\''\\\\'\'''\''/g; 2132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2133 ;; #( 2134 *) 2135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2136 ;; 2137 esac | 2138 sort 2139) 2140 echo 2141 2142 $as_echo "## ----------------- ## 2143## Output variables. ## 2144## ----------------- ##" 2145 echo 2146 for ac_var in $ac_subst_vars 2147 do 2148 eval ac_val=\$$ac_var 2149 case $ac_val in 2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2151 esac 2152 $as_echo "$ac_var='\''$ac_val'\''" 2153 done | sort 2154 echo 2155 2156 if test -n "$ac_subst_files"; then 2157 $as_echo "## ------------------- ## 2158## File substitutions. ## 2159## ------------------- ##" 2160 echo 2161 for ac_var in $ac_subst_files 2162 do 2163 eval ac_val=\$$ac_var 2164 case $ac_val in 2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2166 esac 2167 $as_echo "$ac_var='\''$ac_val'\''" 2168 done | sort 2169 echo 2170 fi 2171 2172 if test -s confdefs.h; then 2173 $as_echo "## ----------- ## 2174## confdefs.h. ## 2175## ----------- ##" 2176 echo 2177 cat confdefs.h 2178 echo 2179 fi 2180 test "$ac_signal" != 0 && 2181 $as_echo "$as_me: caught signal $ac_signal" 2182 $as_echo "$as_me: exit $exit_status" 2183 } >&5 2184 rm -f core *.core core.conftest.* && 2185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2186 exit $exit_status 2187' 0 2188for ac_signal in 1 2 13 15; do 2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2190done 2191ac_signal=0 2192 2193# confdefs.h avoids OS command line length limits that DEFS can exceed. 2194rm -f -r conftest* confdefs.h 2195 2196$as_echo "/* confdefs.h */" > confdefs.h 2197 2198# Predefined preprocessor variables. 2199 2200cat >>confdefs.h <<_ACEOF 2201#define PACKAGE_NAME "$PACKAGE_NAME" 2202_ACEOF 2203 2204cat >>confdefs.h <<_ACEOF 2205#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2206_ACEOF 2207 2208cat >>confdefs.h <<_ACEOF 2209#define PACKAGE_VERSION "$PACKAGE_VERSION" 2210_ACEOF 2211 2212cat >>confdefs.h <<_ACEOF 2213#define PACKAGE_STRING "$PACKAGE_STRING" 2214_ACEOF 2215 2216cat >>confdefs.h <<_ACEOF 2217#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2218_ACEOF 2219 2220cat >>confdefs.h <<_ACEOF 2221#define PACKAGE_URL "$PACKAGE_URL" 2222_ACEOF 2223 2224 2225# Let the site file select an alternate cache file if it wants to. 2226# Prefer an explicitly selected file to automatically selected ones. 2227ac_site_file1=NONE 2228ac_site_file2=NONE 2229if test -n "$CONFIG_SITE"; then 2230 # We do not want a PATH search for config.site. 2231 case $CONFIG_SITE in #(( 2232 -*) ac_site_file1=./$CONFIG_SITE;; 2233 */*) ac_site_file1=$CONFIG_SITE;; 2234 *) ac_site_file1=./$CONFIG_SITE;; 2235 esac 2236elif test "x$prefix" != xNONE; then 2237 ac_site_file1=$prefix/share/config.site 2238 ac_site_file2=$prefix/etc/config.site 2239else 2240 ac_site_file1=$ac_default_prefix/share/config.site 2241 ac_site_file2=$ac_default_prefix/etc/config.site 2242fi 2243for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2244do 2245 test "x$ac_site_file" = xNONE && continue 2246 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2248$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2249 sed 's/^/| /' "$ac_site_file" >&5 2250 . "$ac_site_file" \ 2251 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2253as_fn_error $? "failed to load site script $ac_site_file 2254See \`config.log' for more details" "$LINENO" 5; } 2255 fi 2256done 2257 2258if test -r "$cache_file"; then 2259 # Some versions of bash will fail to source /dev/null (special files 2260 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2261 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2263$as_echo "$as_me: loading cache $cache_file" >&6;} 2264 case $cache_file in 2265 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2266 *) . "./$cache_file";; 2267 esac 2268 fi 2269else 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2271$as_echo "$as_me: creating cache $cache_file" >&6;} 2272 >$cache_file 2273fi 2274 2275# Check that the precious variables saved in the cache have kept the same 2276# value. 2277ac_cache_corrupted=false 2278for ac_var in $ac_precious_vars; do 2279 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2280 eval ac_new_set=\$ac_env_${ac_var}_set 2281 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2282 eval ac_new_val=\$ac_env_${ac_var}_value 2283 case $ac_old_set,$ac_new_set in 2284 set,) 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2286$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2287 ac_cache_corrupted=: ;; 2288 ,set) 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2290$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2291 ac_cache_corrupted=: ;; 2292 ,);; 2293 *) 2294 if test "x$ac_old_val" != "x$ac_new_val"; then 2295 # differences in whitespace do not lead to failure. 2296 ac_old_val_w=`echo x $ac_old_val` 2297 ac_new_val_w=`echo x $ac_new_val` 2298 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2300$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2301 ac_cache_corrupted=: 2302 else 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2304$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2305 eval $ac_var=\$ac_old_val 2306 fi 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2308$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2310$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2311 fi;; 2312 esac 2313 # Pass precious variables to config.status. 2314 if test "$ac_new_set" = set; then 2315 case $ac_new_val in 2316 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2317 *) ac_arg=$ac_var=$ac_new_val ;; 2318 esac 2319 case " $ac_configure_args " in 2320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2321 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2322 esac 2323 fi 2324done 2325if $ac_cache_corrupted; then 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2329$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2330 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2331fi 2332## -------------------- ## 2333## Main body of script. ## 2334## -------------------- ## 2335 2336ac_ext=c 2337ac_cpp='$CPP $CPPFLAGS' 2338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2340ac_compiler_gnu=$ac_cv_c_compiler_gnu 2341 2342 2343 2344ac_config_headers="$ac_config_headers config.h" 2345 2346ac_aux_dir= 2347for ac_dir in . "$srcdir"/.; do 2348 if test -f "$ac_dir/install-sh"; then 2349 ac_aux_dir=$ac_dir 2350 ac_install_sh="$ac_aux_dir/install-sh -c" 2351 break 2352 elif test -f "$ac_dir/install.sh"; then 2353 ac_aux_dir=$ac_dir 2354 ac_install_sh="$ac_aux_dir/install.sh -c" 2355 break 2356 elif test -f "$ac_dir/shtool"; then 2357 ac_aux_dir=$ac_dir 2358 ac_install_sh="$ac_aux_dir/shtool install -c" 2359 break 2360 fi 2361done 2362if test -z "$ac_aux_dir"; then 2363 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2364fi 2365 2366# These three variables are undocumented and unsupported, 2367# and are intended to be withdrawn in a future Autoconf release. 2368# They can cause serious problems if a builder's source tree is in a directory 2369# whose full name contains unusual characters. 2370ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2371ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2372ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2373 2374 2375 2376# Initialize Automake 2377am__api_version='1.14' 2378 2379# Find a good install program. We prefer a C program (faster), 2380# so one script is as good as another. But avoid the broken or 2381# incompatible versions: 2382# SysV /etc/install, /usr/sbin/install 2383# SunOS /usr/etc/install 2384# IRIX /sbin/install 2385# AIX /bin/install 2386# AmigaOS /C/install, which installs bootblocks on floppy discs 2387# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2388# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2389# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2390# OS/2's system install, which has a completely different semantic 2391# ./install, which can be erroneously created by make from ./install.sh. 2392# Reject install programs that cannot install multiple files. 2393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2394$as_echo_n "checking for a BSD-compatible install... " >&6; } 2395if test -z "$INSTALL"; then 2396if ${ac_cv_path_install+:} false; then : 2397 $as_echo_n "(cached) " >&6 2398else 2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400for as_dir in $PATH 2401do 2402 IFS=$as_save_IFS 2403 test -z "$as_dir" && as_dir=. 2404 # Account for people who put trailing slashes in PATH elements. 2405case $as_dir/ in #(( 2406 ./ | .// | /[cC]/* | \ 2407 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2408 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2409 /usr/ucb/* ) ;; 2410 *) 2411 # OSF1 and SCO ODT 3.0 have their own names for install. 2412 # Don't use installbsd from OSF since it installs stuff as root 2413 # by default. 2414 for ac_prog in ginstall scoinst install; do 2415 for ac_exec_ext in '' $ac_executable_extensions; do 2416 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2417 if test $ac_prog = install && 2418 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2419 # AIX install. It has an incompatible calling convention. 2420 : 2421 elif test $ac_prog = install && 2422 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2423 # program-specific install script used by HP pwplus--don't use. 2424 : 2425 else 2426 rm -rf conftest.one conftest.two conftest.dir 2427 echo one > conftest.one 2428 echo two > conftest.two 2429 mkdir conftest.dir 2430 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2431 test -s conftest.one && test -s conftest.two && 2432 test -s conftest.dir/conftest.one && 2433 test -s conftest.dir/conftest.two 2434 then 2435 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2436 break 3 2437 fi 2438 fi 2439 fi 2440 done 2441 done 2442 ;; 2443esac 2444 2445 done 2446IFS=$as_save_IFS 2447 2448rm -rf conftest.one conftest.two conftest.dir 2449 2450fi 2451 if test "${ac_cv_path_install+set}" = set; then 2452 INSTALL=$ac_cv_path_install 2453 else 2454 # As a last resort, use the slow shell script. Don't cache a 2455 # value for INSTALL within a source directory, because that will 2456 # break other packages using the cache if that directory is 2457 # removed, or if the value is a relative name. 2458 INSTALL=$ac_install_sh 2459 fi 2460fi 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2462$as_echo "$INSTALL" >&6; } 2463 2464# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2465# It thinks the first close brace ends the variable substitution. 2466test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2467 2468test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2469 2470test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2471 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2473$as_echo_n "checking whether build environment is sane... " >&6; } 2474# Reject unsafe characters in $srcdir or the absolute working directory 2475# name. Accept space and tab only in the latter. 2476am_lf=' 2477' 2478case `pwd` in 2479 *[\\\"\#\$\&\'\`$am_lf]*) 2480 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2481esac 2482case $srcdir in 2483 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2484 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2485esac 2486 2487# Do 'set' in a subshell so we don't clobber the current shell's 2488# arguments. Must try -L first in case configure is actually a 2489# symlink; some systems play weird games with the mod time of symlinks 2490# (eg FreeBSD returns the mod time of the symlink's containing 2491# directory). 2492if ( 2493 am_has_slept=no 2494 for am_try in 1 2; do 2495 echo "timestamp, slept: $am_has_slept" > conftest.file 2496 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2497 if test "$*" = "X"; then 2498 # -L didn't work. 2499 set X `ls -t "$srcdir/configure" conftest.file` 2500 fi 2501 if test "$*" != "X $srcdir/configure conftest.file" \ 2502 && test "$*" != "X conftest.file $srcdir/configure"; then 2503 2504 # If neither matched, then we have a broken ls. This can happen 2505 # if, for instance, CONFIG_SHELL is bash and it inherits a 2506 # broken ls alias from the environment. This has actually 2507 # happened. Such a system could not be considered "sane". 2508 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2509 alias in your environment" "$LINENO" 5 2510 fi 2511 if test "$2" = conftest.file || test $am_try -eq 2; then 2512 break 2513 fi 2514 # Just in case. 2515 sleep 1 2516 am_has_slept=yes 2517 done 2518 test "$2" = conftest.file 2519 ) 2520then 2521 # Ok. 2522 : 2523else 2524 as_fn_error $? "newly created file is older than distributed files! 2525Check your system clock" "$LINENO" 5 2526fi 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2528$as_echo "yes" >&6; } 2529# If we didn't sleep, we still need to ensure time stamps of config.status and 2530# generated files are strictly newer. 2531am_sleep_pid= 2532if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2533 ( sleep 1 ) & 2534 am_sleep_pid=$! 2535fi 2536 2537rm -f conftest.file 2538 2539test "$program_prefix" != NONE && 2540 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2541# Use a double $ so make ignores it. 2542test "$program_suffix" != NONE && 2543 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2544# Double any \ or $. 2545# By default was `s,x,x', remove it if useless. 2546ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2547program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2548 2549# Expand $ac_aux_dir to an absolute path. 2550am_aux_dir=`cd "$ac_aux_dir" && pwd` 2551 2552if test x"${MISSING+set}" != xset; then 2553 case $am_aux_dir in 2554 *\ * | *\ *) 2555 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2556 *) 2557 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2558 esac 2559fi 2560# Use eval to expand $SHELL 2561if eval "$MISSING --is-lightweight"; then 2562 am_missing_run="$MISSING " 2563else 2564 am_missing_run= 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2566$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2567fi 2568 2569if test x"${install_sh}" != xset; then 2570 case $am_aux_dir in 2571 *\ * | *\ *) 2572 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2573 *) 2574 install_sh="\${SHELL} $am_aux_dir/install-sh" 2575 esac 2576fi 2577 2578# Installed binaries are usually stripped using 'strip' when the user 2579# run "make install-strip". However 'strip' might not be the right 2580# tool to use in cross-compilation environments, therefore Automake 2581# will honor the 'STRIP' environment variable to overrule this program. 2582if test "$cross_compiling" != no; then 2583 if test -n "$ac_tool_prefix"; then 2584 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2585set dummy ${ac_tool_prefix}strip; ac_word=$2 2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2587$as_echo_n "checking for $ac_word... " >&6; } 2588if ${ac_cv_prog_STRIP+:} false; then : 2589 $as_echo_n "(cached) " >&6 2590else 2591 if test -n "$STRIP"; then 2592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2593else 2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2595for as_dir in $PATH 2596do 2597 IFS=$as_save_IFS 2598 test -z "$as_dir" && as_dir=. 2599 for ac_exec_ext in '' $ac_executable_extensions; do 2600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2601 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2603 break 2 2604 fi 2605done 2606 done 2607IFS=$as_save_IFS 2608 2609fi 2610fi 2611STRIP=$ac_cv_prog_STRIP 2612if test -n "$STRIP"; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2614$as_echo "$STRIP" >&6; } 2615else 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2617$as_echo "no" >&6; } 2618fi 2619 2620 2621fi 2622if test -z "$ac_cv_prog_STRIP"; then 2623 ac_ct_STRIP=$STRIP 2624 # Extract the first word of "strip", so it can be a program name with args. 2625set dummy strip; ac_word=$2 2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2627$as_echo_n "checking for $ac_word... " >&6; } 2628if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2629 $as_echo_n "(cached) " >&6 2630else 2631 if test -n "$ac_ct_STRIP"; then 2632 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2633else 2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2635for as_dir in $PATH 2636do 2637 IFS=$as_save_IFS 2638 test -z "$as_dir" && as_dir=. 2639 for ac_exec_ext in '' $ac_executable_extensions; do 2640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2641 ac_cv_prog_ac_ct_STRIP="strip" 2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2643 break 2 2644 fi 2645done 2646 done 2647IFS=$as_save_IFS 2648 2649fi 2650fi 2651ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2652if test -n "$ac_ct_STRIP"; then 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2654$as_echo "$ac_ct_STRIP" >&6; } 2655else 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2657$as_echo "no" >&6; } 2658fi 2659 2660 if test "x$ac_ct_STRIP" = x; then 2661 STRIP=":" 2662 else 2663 case $cross_compiling:$ac_tool_warned in 2664yes:) 2665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2667ac_tool_warned=yes ;; 2668esac 2669 STRIP=$ac_ct_STRIP 2670 fi 2671else 2672 STRIP="$ac_cv_prog_STRIP" 2673fi 2674 2675fi 2676INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2677 2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2679$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2680if test -z "$MKDIR_P"; then 2681 if ${ac_cv_path_mkdir+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683else 2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_prog in mkdir gmkdir; do 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2692 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2693 'mkdir (GNU coreutils) '* | \ 2694 'mkdir (coreutils) '* | \ 2695 'mkdir (fileutils) '4.1*) 2696 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2697 break 3;; 2698 esac 2699 done 2700 done 2701 done 2702IFS=$as_save_IFS 2703 2704fi 2705 2706 test -d ./--version && rmdir ./--version 2707 if test "${ac_cv_path_mkdir+set}" = set; then 2708 MKDIR_P="$ac_cv_path_mkdir -p" 2709 else 2710 # As a last resort, use the slow shell script. Don't cache a 2711 # value for MKDIR_P within a source directory, because that will 2712 # break other packages using the cache if that directory is 2713 # removed, or if the value is a relative name. 2714 MKDIR_P="$ac_install_sh -d" 2715 fi 2716fi 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2718$as_echo "$MKDIR_P" >&6; } 2719 2720for ac_prog in gawk mawk nawk awk 2721do 2722 # Extract the first word of "$ac_prog", so it can be a program name with args. 2723set dummy $ac_prog; ac_word=$2 2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2725$as_echo_n "checking for $ac_word... " >&6; } 2726if ${ac_cv_prog_AWK+:} false; then : 2727 $as_echo_n "(cached) " >&6 2728else 2729 if test -n "$AWK"; then 2730 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2731else 2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733for as_dir in $PATH 2734do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2739 ac_cv_prog_AWK="$ac_prog" 2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2741 break 2 2742 fi 2743done 2744 done 2745IFS=$as_save_IFS 2746 2747fi 2748fi 2749AWK=$ac_cv_prog_AWK 2750if test -n "$AWK"; then 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2752$as_echo "$AWK" >&6; } 2753else 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2755$as_echo "no" >&6; } 2756fi 2757 2758 2759 test -n "$AWK" && break 2760done 2761 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2763$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2764set x ${MAKE-make} 2765ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2766if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2767 $as_echo_n "(cached) " >&6 2768else 2769 cat >conftest.make <<\_ACEOF 2770SHELL = /bin/sh 2771all: 2772 @echo '@@@%%%=$(MAKE)=@@@%%%' 2773_ACEOF 2774# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2775case `${MAKE-make} -f conftest.make 2>/dev/null` in 2776 *@@@%%%=?*=@@@%%%*) 2777 eval ac_cv_prog_make_${ac_make}_set=yes;; 2778 *) 2779 eval ac_cv_prog_make_${ac_make}_set=no;; 2780esac 2781rm -f conftest.make 2782fi 2783if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2785$as_echo "yes" >&6; } 2786 SET_MAKE= 2787else 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2789$as_echo "no" >&6; } 2790 SET_MAKE="MAKE=${MAKE-make}" 2791fi 2792 2793rm -rf .tst 2>/dev/null 2794mkdir .tst 2>/dev/null 2795if test -d .tst; then 2796 am__leading_dot=. 2797else 2798 am__leading_dot=_ 2799fi 2800rmdir .tst 2>/dev/null 2801 2802# Check whether --enable-silent-rules was given. 2803if test "${enable_silent_rules+set}" = set; then : 2804 enableval=$enable_silent_rules; 2805fi 2806 2807case $enable_silent_rules in # ((( 2808 yes) AM_DEFAULT_VERBOSITY=0;; 2809 no) AM_DEFAULT_VERBOSITY=1;; 2810 *) AM_DEFAULT_VERBOSITY=1;; 2811esac 2812am_make=${MAKE-make} 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2814$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2815if ${am_cv_make_support_nested_variables+:} false; then : 2816 $as_echo_n "(cached) " >&6 2817else 2818 if $as_echo 'TRUE=$(BAR$(V)) 2819BAR0=false 2820BAR1=true 2821V=1 2822am__doit: 2823 @$(TRUE) 2824.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2825 am_cv_make_support_nested_variables=yes 2826else 2827 am_cv_make_support_nested_variables=no 2828fi 2829fi 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2831$as_echo "$am_cv_make_support_nested_variables" >&6; } 2832if test $am_cv_make_support_nested_variables = yes; then 2833 AM_V='$(V)' 2834 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2835else 2836 AM_V=$AM_DEFAULT_VERBOSITY 2837 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2838fi 2839AM_BACKSLASH='\' 2840 2841if test "`cd $srcdir && pwd`" != "`pwd`"; then 2842 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2843 # is not polluted with repeated "-I." 2844 am__isrc=' -I$(srcdir)' 2845 # test to see if srcdir already configured 2846 if test -f $srcdir/config.status; then 2847 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2848 fi 2849fi 2850 2851# test whether we have cygpath 2852if test -z "$CYGPATH_W"; then 2853 if (cygpath --version) >/dev/null 2>/dev/null; then 2854 CYGPATH_W='cygpath -w' 2855 else 2856 CYGPATH_W=echo 2857 fi 2858fi 2859 2860 2861# Define the identity of the package. 2862 PACKAGE='xf86-video-savage' 2863 VERSION='2.3.8' 2864 2865 2866cat >>confdefs.h <<_ACEOF 2867#define PACKAGE "$PACKAGE" 2868_ACEOF 2869 2870 2871cat >>confdefs.h <<_ACEOF 2872#define VERSION "$VERSION" 2873_ACEOF 2874 2875# Some tools Automake needs. 2876 2877ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2878 2879 2880AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2881 2882 2883AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2884 2885 2886AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2887 2888 2889MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2890 2891# For better backward compatibility. To be removed once Automake 1.9.x 2892# dies out for good. For more background, see: 2893# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2894# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2895mkdir_p='$(MKDIR_P)' 2896 2897# We need awk for the "check" target. The system "awk" is bad on 2898# some platforms. 2899# Always define AMTAR for backward compatibility. Yes, it's still used 2900# in the wild :-( We should find a proper way to deprecate it ... 2901AMTAR='$${TAR-tar}' 2902 2903 2904# We'll loop over all known methods to create a tar archive until one works. 2905_am_tools='gnutar pax cpio none' 2906 2907am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2908 2909 2910 2911 2912 2913 2914# POSIX will say in a future version that running "rm -f" with no argument 2915# is OK; and we want to be able to make that assumption in our Makefile 2916# recipes. So use an aggressive probe to check that the usage we want is 2917# actually supported "in the wild" to an acceptable degree. 2918# See automake bug#10828. 2919# To make any issue more visible, cause the running configure to be aborted 2920# by default if the 'rm' program in use doesn't match our expectations; the 2921# user can still override this though. 2922if rm -f && rm -fr && rm -rf; then : OK; else 2923 cat >&2 <<'END' 2924Oops! 2925 2926Your 'rm' program seems unable to run without file operands specified 2927on the command line, even when the '-f' option is present. This is contrary 2928to the behaviour of most rm programs out there, and not conforming with 2929the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2930 2931Please tell bug-automake@gnu.org about your system, including the value 2932of your $PATH and any error possibly output before this message. This 2933can help us improve future automake versions. 2934 2935END 2936 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2937 echo 'Configuration will proceed anyway, since you have set the' >&2 2938 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2939 echo >&2 2940 else 2941 cat >&2 <<'END' 2942Aborting the configuration process, to ensure you take notice of the issue. 2943 2944You can download and install GNU coreutils to get an 'rm' implementation 2945that behaves properly: <http://www.gnu.org/software/coreutils/>. 2946 2947If you want to complete the configuration process using your problematic 2948'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2949to "yes", and re-run configure. 2950 2951END 2952 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2953 fi 2954fi 2955 2956 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2958$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2959 # Check whether --enable-maintainer-mode was given. 2960if test "${enable_maintainer_mode+set}" = set; then : 2961 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2962else 2963 USE_MAINTAINER_MODE=no 2964fi 2965 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2967$as_echo "$USE_MAINTAINER_MODE" >&6; } 2968 if test $USE_MAINTAINER_MODE = yes; then 2969 MAINTAINER_MODE_TRUE= 2970 MAINTAINER_MODE_FALSE='#' 2971else 2972 MAINTAINER_MODE_TRUE='#' 2973 MAINTAINER_MODE_FALSE= 2974fi 2975 2976 MAINT=$MAINTAINER_MODE_TRUE 2977 2978 2979 2980# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992DEPDIR="${am__leading_dot}deps" 2993 2994ac_config_commands="$ac_config_commands depfiles" 2995 2996 2997am_make=${MAKE-make} 2998cat > confinc << 'END' 2999am__doit: 3000 @echo this is the am__doit target 3001.PHONY: am__doit 3002END 3003# If we don't find an include directive, just comment out the code. 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3005$as_echo_n "checking for style of include used by $am_make... " >&6; } 3006am__include="#" 3007am__quote= 3008_am_result=none 3009# First try GNU make style include. 3010echo "include confinc" > confmf 3011# Ignore all kinds of additional output from 'make'. 3012case `$am_make -s -f confmf 2> /dev/null` in #( 3013*the\ am__doit\ target*) 3014 am__include=include 3015 am__quote= 3016 _am_result=GNU 3017 ;; 3018esac 3019# Now try BSD make style include. 3020if test "$am__include" = "#"; then 3021 echo '.include "confinc"' > confmf 3022 case `$am_make -s -f confmf 2> /dev/null` in #( 3023 *the\ am__doit\ target*) 3024 am__include=.include 3025 am__quote="\"" 3026 _am_result=BSD 3027 ;; 3028 esac 3029fi 3030 3031 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3033$as_echo "$_am_result" >&6; } 3034rm -f confinc confmf 3035 3036# Check whether --enable-dependency-tracking was given. 3037if test "${enable_dependency_tracking+set}" = set; then : 3038 enableval=$enable_dependency_tracking; 3039fi 3040 3041if test "x$enable_dependency_tracking" != xno; then 3042 am_depcomp="$ac_aux_dir/depcomp" 3043 AMDEPBACKSLASH='\' 3044 am__nodep='_no' 3045fi 3046 if test "x$enable_dependency_tracking" != xno; then 3047 AMDEP_TRUE= 3048 AMDEP_FALSE='#' 3049else 3050 AMDEP_TRUE='#' 3051 AMDEP_FALSE= 3052fi 3053 3054 3055ac_ext=c 3056ac_cpp='$CPP $CPPFLAGS' 3057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3059ac_compiler_gnu=$ac_cv_c_compiler_gnu 3060if test -n "$ac_tool_prefix"; then 3061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3062set dummy ${ac_tool_prefix}gcc; ac_word=$2 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064$as_echo_n "checking for $ac_word... " >&6; } 3065if ${ac_cv_prog_CC+:} false; then : 3066 $as_echo_n "(cached) " >&6 3067else 3068 if test -n "$CC"; then 3069 ac_cv_prog_CC="$CC" # Let the user override the test. 3070else 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080 break 2 3081 fi 3082done 3083 done 3084IFS=$as_save_IFS 3085 3086fi 3087fi 3088CC=$ac_cv_prog_CC 3089if test -n "$CC"; then 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3091$as_echo "$CC" >&6; } 3092else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094$as_echo "no" >&6; } 3095fi 3096 3097 3098fi 3099if test -z "$ac_cv_prog_CC"; then 3100 ac_ct_CC=$CC 3101 # Extract the first word of "gcc", so it can be a program name with args. 3102set dummy gcc; ac_word=$2 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3104$as_echo_n "checking for $ac_word... " >&6; } 3105if ${ac_cv_prog_ac_ct_CC+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 if test -n "$ac_ct_CC"; then 3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3110else 3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3112for as_dir in $PATH 3113do 3114 IFS=$as_save_IFS 3115 test -z "$as_dir" && as_dir=. 3116 for ac_exec_ext in '' $ac_executable_extensions; do 3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3118 ac_cv_prog_ac_ct_CC="gcc" 3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3120 break 2 3121 fi 3122done 3123 done 3124IFS=$as_save_IFS 3125 3126fi 3127fi 3128ac_ct_CC=$ac_cv_prog_ac_ct_CC 3129if test -n "$ac_ct_CC"; then 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3131$as_echo "$ac_ct_CC" >&6; } 3132else 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134$as_echo "no" >&6; } 3135fi 3136 3137 if test "x$ac_ct_CC" = x; then 3138 CC="" 3139 else 3140 case $cross_compiling:$ac_tool_warned in 3141yes:) 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3144ac_tool_warned=yes ;; 3145esac 3146 CC=$ac_ct_CC 3147 fi 3148else 3149 CC="$ac_cv_prog_CC" 3150fi 3151 3152if test -z "$CC"; then 3153 if test -n "$ac_tool_prefix"; then 3154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3155set dummy ${ac_tool_prefix}cc; ac_word=$2 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3157$as_echo_n "checking for $ac_word... " >&6; } 3158if ${ac_cv_prog_CC+:} false; then : 3159 $as_echo_n "(cached) " >&6 3160else 3161 if test -n "$CC"; then 3162 ac_cv_prog_CC="$CC" # Let the user override the test. 3163else 3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3165for as_dir in $PATH 3166do 3167 IFS=$as_save_IFS 3168 test -z "$as_dir" && as_dir=. 3169 for ac_exec_ext in '' $ac_executable_extensions; do 3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3171 ac_cv_prog_CC="${ac_tool_prefix}cc" 3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3173 break 2 3174 fi 3175done 3176 done 3177IFS=$as_save_IFS 3178 3179fi 3180fi 3181CC=$ac_cv_prog_CC 3182if test -n "$CC"; then 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3184$as_echo "$CC" >&6; } 3185else 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187$as_echo "no" >&6; } 3188fi 3189 3190 3191 fi 3192fi 3193if test -z "$CC"; then 3194 # Extract the first word of "cc", so it can be a program name with args. 3195set dummy cc; ac_word=$2 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197$as_echo_n "checking for $ac_word... " >&6; } 3198if ${ac_cv_prog_CC+:} false; then : 3199 $as_echo_n "(cached) " >&6 3200else 3201 if test -n "$CC"; then 3202 ac_cv_prog_CC="$CC" # Let the user override the test. 3203else 3204 ac_prog_rejected=no 3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH 3207do 3208 IFS=$as_save_IFS 3209 test -z "$as_dir" && as_dir=. 3210 for ac_exec_ext in '' $ac_executable_extensions; do 3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3213 ac_prog_rejected=yes 3214 continue 3215 fi 3216 ac_cv_prog_CC="cc" 3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224if test $ac_prog_rejected = yes; then 3225 # We found a bogon in the path, so make sure we never use it. 3226 set dummy $ac_cv_prog_CC 3227 shift 3228 if test $# != 0; then 3229 # We chose a different compiler from the bogus one. 3230 # However, it has the same basename, so the bogon will be chosen 3231 # first if we set CC to just the basename; use the full file name. 3232 shift 3233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3234 fi 3235fi 3236fi 3237fi 3238CC=$ac_cv_prog_CC 3239if test -n "$CC"; then 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3241$as_echo "$CC" >&6; } 3242else 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244$as_echo "no" >&6; } 3245fi 3246 3247 3248fi 3249if test -z "$CC"; then 3250 if test -n "$ac_tool_prefix"; then 3251 for ac_prog in cl.exe 3252 do 3253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3254set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3256$as_echo_n "checking for $ac_word... " >&6; } 3257if ${ac_cv_prog_CC+:} false; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 if test -n "$CC"; then 3261 ac_cv_prog_CC="$CC" # Let the user override the test. 3262else 3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3264for as_dir in $PATH 3265do 3266 IFS=$as_save_IFS 3267 test -z "$as_dir" && as_dir=. 3268 for ac_exec_ext in '' $ac_executable_extensions; do 3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3272 break 2 3273 fi 3274done 3275 done 3276IFS=$as_save_IFS 3277 3278fi 3279fi 3280CC=$ac_cv_prog_CC 3281if test -n "$CC"; then 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3283$as_echo "$CC" >&6; } 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286$as_echo "no" >&6; } 3287fi 3288 3289 3290 test -n "$CC" && break 3291 done 3292fi 3293if test -z "$CC"; then 3294 ac_ct_CC=$CC 3295 for ac_prog in cl.exe 3296do 3297 # Extract the first word of "$ac_prog", so it can be a program name with args. 3298set dummy $ac_prog; ac_word=$2 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3300$as_echo_n "checking for $ac_word... " >&6; } 3301if ${ac_cv_prog_ac_ct_CC+:} false; then : 3302 $as_echo_n "(cached) " >&6 3303else 3304 if test -n "$ac_ct_CC"; then 3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3306else 3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3308for as_dir in $PATH 3309do 3310 IFS=$as_save_IFS 3311 test -z "$as_dir" && as_dir=. 3312 for ac_exec_ext in '' $ac_executable_extensions; do 3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3314 ac_cv_prog_ac_ct_CC="$ac_prog" 3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3316 break 2 3317 fi 3318done 3319 done 3320IFS=$as_save_IFS 3321 3322fi 3323fi 3324ac_ct_CC=$ac_cv_prog_ac_ct_CC 3325if test -n "$ac_ct_CC"; then 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3327$as_echo "$ac_ct_CC" >&6; } 3328else 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331fi 3332 3333 3334 test -n "$ac_ct_CC" && break 3335done 3336 3337 if test "x$ac_ct_CC" = x; then 3338 CC="" 3339 else 3340 case $cross_compiling:$ac_tool_warned in 3341yes:) 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3344ac_tool_warned=yes ;; 3345esac 3346 CC=$ac_ct_CC 3347 fi 3348fi 3349 3350fi 3351 3352 3353test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3355as_fn_error $? "no acceptable C compiler found in \$PATH 3356See \`config.log' for more details" "$LINENO" 5; } 3357 3358# Provide some information about the compiler. 3359$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3360set X $ac_compile 3361ac_compiler=$2 3362for ac_option in --version -v -V -qversion; do 3363 { { ac_try="$ac_compiler $ac_option >&5" 3364case "(($ac_try" in 3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3366 *) ac_try_echo=$ac_try;; 3367esac 3368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3369$as_echo "$ac_try_echo"; } >&5 3370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3371 ac_status=$? 3372 if test -s conftest.err; then 3373 sed '10a\ 3374... rest of stderr output deleted ... 3375 10q' conftest.err >conftest.er1 3376 cat conftest.er1 >&5 3377 fi 3378 rm -f conftest.er1 conftest.err 3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3380 test $ac_status = 0; } 3381done 3382 3383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384/* end confdefs.h. */ 3385 3386int 3387main () 3388{ 3389 3390 ; 3391 return 0; 3392} 3393_ACEOF 3394ac_clean_files_save=$ac_clean_files 3395ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3396# Try to create an executable without -o first, disregard a.out. 3397# It will help us diagnose broken compilers, and finding out an intuition 3398# of exeext. 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3400$as_echo_n "checking whether the C compiler works... " >&6; } 3401ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3402 3403# The possible output files: 3404ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3405 3406ac_rmfiles= 3407for ac_file in $ac_files 3408do 3409 case $ac_file in 3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3411 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3412 esac 3413done 3414rm -f $ac_rmfiles 3415 3416if { { ac_try="$ac_link_default" 3417case "(($ac_try" in 3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3419 *) ac_try_echo=$ac_try;; 3420esac 3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3422$as_echo "$ac_try_echo"; } >&5 3423 (eval "$ac_link_default") 2>&5 3424 ac_status=$? 3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3426 test $ac_status = 0; }; then : 3427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3428# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3429# in a Makefile. We should not override ac_cv_exeext if it was cached, 3430# so that the user can short-circuit this test for compilers unknown to 3431# Autoconf. 3432for ac_file in $ac_files '' 3433do 3434 test -f "$ac_file" || continue 3435 case $ac_file in 3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3437 ;; 3438 [ab].out ) 3439 # We found the default executable, but exeext='' is most 3440 # certainly right. 3441 break;; 3442 *.* ) 3443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3444 then :; else 3445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3446 fi 3447 # We set ac_cv_exeext here because the later test for it is not 3448 # safe: cross compilers may not add the suffix if given an `-o' 3449 # argument, so we may need to know it at that point already. 3450 # Even if this section looks crufty: it has the advantage of 3451 # actually working. 3452 break;; 3453 * ) 3454 break;; 3455 esac 3456done 3457test "$ac_cv_exeext" = no && ac_cv_exeext= 3458 3459else 3460 ac_file='' 3461fi 3462if test -z "$ac_file"; then : 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464$as_echo "no" >&6; } 3465$as_echo "$as_me: failed program was:" >&5 3466sed 's/^/| /' conftest.$ac_ext >&5 3467 3468{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3470as_fn_error 77 "C compiler cannot create executables 3471See \`config.log' for more details" "$LINENO" 5; } 3472else 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3474$as_echo "yes" >&6; } 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3477$as_echo_n "checking for C compiler default output file name... " >&6; } 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3479$as_echo "$ac_file" >&6; } 3480ac_exeext=$ac_cv_exeext 3481 3482rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3483ac_clean_files=$ac_clean_files_save 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3485$as_echo_n "checking for suffix of executables... " >&6; } 3486if { { ac_try="$ac_link" 3487case "(($ac_try" in 3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3489 *) ac_try_echo=$ac_try;; 3490esac 3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3492$as_echo "$ac_try_echo"; } >&5 3493 (eval "$ac_link") 2>&5 3494 ac_status=$? 3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3496 test $ac_status = 0; }; then : 3497 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3498# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3499# work properly (i.e., refer to `conftest.exe'), while it won't with 3500# `rm'. 3501for ac_file in conftest.exe conftest conftest.*; do 3502 test -f "$ac_file" || continue 3503 case $ac_file in 3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3506 break;; 3507 * ) break;; 3508 esac 3509done 3510else 3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3513as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3514See \`config.log' for more details" "$LINENO" 5; } 3515fi 3516rm -f conftest conftest$ac_cv_exeext 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3518$as_echo "$ac_cv_exeext" >&6; } 3519 3520rm -f conftest.$ac_ext 3521EXEEXT=$ac_cv_exeext 3522ac_exeext=$EXEEXT 3523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3524/* end confdefs.h. */ 3525#include <stdio.h> 3526int 3527main () 3528{ 3529FILE *f = fopen ("conftest.out", "w"); 3530 return ferror (f) || fclose (f) != 0; 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536ac_clean_files="$ac_clean_files conftest.out" 3537# Check that the compiler produces executables we can run. If not, either 3538# the compiler is broken, or we cross compile. 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3540$as_echo_n "checking whether we are cross compiling... " >&6; } 3541if test "$cross_compiling" != yes; then 3542 { { ac_try="$ac_link" 3543case "(($ac_try" in 3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3545 *) ac_try_echo=$ac_try;; 3546esac 3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3548$as_echo "$ac_try_echo"; } >&5 3549 (eval "$ac_link") 2>&5 3550 ac_status=$? 3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3552 test $ac_status = 0; } 3553 if { ac_try='./conftest$ac_cv_exeext' 3554 { { case "(($ac_try" in 3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3556 *) ac_try_echo=$ac_try;; 3557esac 3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3559$as_echo "$ac_try_echo"; } >&5 3560 (eval "$ac_try") 2>&5 3561 ac_status=$? 3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3563 test $ac_status = 0; }; }; then 3564 cross_compiling=no 3565 else 3566 if test "$cross_compiling" = maybe; then 3567 cross_compiling=yes 3568 else 3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3571as_fn_error $? "cannot run C compiled programs. 3572If you meant to cross compile, use \`--host'. 3573See \`config.log' for more details" "$LINENO" 5; } 3574 fi 3575 fi 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3578$as_echo "$cross_compiling" >&6; } 3579 3580rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3581ac_clean_files=$ac_clean_files_save 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3583$as_echo_n "checking for suffix of object files... " >&6; } 3584if ${ac_cv_objext+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3588/* end confdefs.h. */ 3589 3590int 3591main () 3592{ 3593 3594 ; 3595 return 0; 3596} 3597_ACEOF 3598rm -f conftest.o conftest.obj 3599if { { ac_try="$ac_compile" 3600case "(($ac_try" in 3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3602 *) ac_try_echo=$ac_try;; 3603esac 3604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3605$as_echo "$ac_try_echo"; } >&5 3606 (eval "$ac_compile") 2>&5 3607 ac_status=$? 3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3609 test $ac_status = 0; }; then : 3610 for ac_file in conftest.o conftest.obj conftest.*; do 3611 test -f "$ac_file" || continue; 3612 case $ac_file in 3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3614 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3615 break;; 3616 esac 3617done 3618else 3619 $as_echo "$as_me: failed program was:" >&5 3620sed 's/^/| /' conftest.$ac_ext >&5 3621 3622{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3624as_fn_error $? "cannot compute suffix of object files: cannot compile 3625See \`config.log' for more details" "$LINENO" 5; } 3626fi 3627rm -f conftest.$ac_cv_objext conftest.$ac_ext 3628fi 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3630$as_echo "$ac_cv_objext" >&6; } 3631OBJEXT=$ac_cv_objext 3632ac_objext=$OBJEXT 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3634$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3635if ${ac_cv_c_compiler_gnu+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3639/* end confdefs.h. */ 3640 3641int 3642main () 3643{ 3644#ifndef __GNUC__ 3645 choke me 3646#endif 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652if ac_fn_c_try_compile "$LINENO"; then : 3653 ac_compiler_gnu=yes 3654else 3655 ac_compiler_gnu=no 3656fi 3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3658ac_cv_c_compiler_gnu=$ac_compiler_gnu 3659 3660fi 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3662$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3663if test $ac_compiler_gnu = yes; then 3664 GCC=yes 3665else 3666 GCC= 3667fi 3668ac_test_CFLAGS=${CFLAGS+set} 3669ac_save_CFLAGS=$CFLAGS 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3671$as_echo_n "checking whether $CC accepts -g... " >&6; } 3672if ${ac_cv_prog_cc_g+:} false; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 ac_save_c_werror_flag=$ac_c_werror_flag 3676 ac_c_werror_flag=yes 3677 ac_cv_prog_cc_g=no 3678 CFLAGS="-g" 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681 3682int 3683main () 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690if ac_fn_c_try_compile "$LINENO"; then : 3691 ac_cv_prog_cc_g=yes 3692else 3693 CFLAGS="" 3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3695/* end confdefs.h. */ 3696 3697int 3698main () 3699{ 3700 3701 ; 3702 return 0; 3703} 3704_ACEOF 3705if ac_fn_c_try_compile "$LINENO"; then : 3706 3707else 3708 ac_c_werror_flag=$ac_save_c_werror_flag 3709 CFLAGS="-g" 3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3711/* end confdefs.h. */ 3712 3713int 3714main () 3715{ 3716 3717 ; 3718 return 0; 3719} 3720_ACEOF 3721if ac_fn_c_try_compile "$LINENO"; then : 3722 ac_cv_prog_cc_g=yes 3723fi 3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3725fi 3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3727fi 3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3729 ac_c_werror_flag=$ac_save_c_werror_flag 3730fi 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3732$as_echo "$ac_cv_prog_cc_g" >&6; } 3733if test "$ac_test_CFLAGS" = set; then 3734 CFLAGS=$ac_save_CFLAGS 3735elif test $ac_cv_prog_cc_g = yes; then 3736 if test "$GCC" = yes; then 3737 CFLAGS="-g -O2" 3738 else 3739 CFLAGS="-g" 3740 fi 3741else 3742 if test "$GCC" = yes; then 3743 CFLAGS="-O2" 3744 else 3745 CFLAGS= 3746 fi 3747fi 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3749$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3750if ${ac_cv_prog_cc_c89+:} false; then : 3751 $as_echo_n "(cached) " >&6 3752else 3753 ac_cv_prog_cc_c89=no 3754ac_save_CC=$CC 3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757#include <stdarg.h> 3758#include <stdio.h> 3759struct stat; 3760/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3761struct buf { int x; }; 3762FILE * (*rcsopen) (struct buf *, struct stat *, int); 3763static char *e (p, i) 3764 char **p; 3765 int i; 3766{ 3767 return p[i]; 3768} 3769static char *f (char * (*g) (char **, int), char **p, ...) 3770{ 3771 char *s; 3772 va_list v; 3773 va_start (v,p); 3774 s = g (p, va_arg (v,int)); 3775 va_end (v); 3776 return s; 3777} 3778 3779/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3780 function prototypes and stuff, but not '\xHH' hex character constants. 3781 These don't provoke an error unfortunately, instead are silently treated 3782 as 'x'. The following induces an error, until -std is added to get 3783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3784 array size at least. It's necessary to write '\x00'==0 to get something 3785 that's true only with -std. */ 3786int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3787 3788/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3789 inside strings and character constants. */ 3790#define FOO(x) 'x' 3791int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3792 3793int test (int i, double x); 3794struct s1 {int (*f) (int a);}; 3795struct s2 {int (*f) (double a);}; 3796int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3797int argc; 3798char **argv; 3799int 3800main () 3801{ 3802return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3803 ; 3804 return 0; 3805} 3806_ACEOF 3807for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3808 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3809do 3810 CC="$ac_save_CC $ac_arg" 3811 if ac_fn_c_try_compile "$LINENO"; then : 3812 ac_cv_prog_cc_c89=$ac_arg 3813fi 3814rm -f core conftest.err conftest.$ac_objext 3815 test "x$ac_cv_prog_cc_c89" != "xno" && break 3816done 3817rm -f conftest.$ac_ext 3818CC=$ac_save_CC 3819 3820fi 3821# AC_CACHE_VAL 3822case "x$ac_cv_prog_cc_c89" in 3823 x) 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3825$as_echo "none needed" >&6; } ;; 3826 xno) 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3828$as_echo "unsupported" >&6; } ;; 3829 *) 3830 CC="$CC $ac_cv_prog_cc_c89" 3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3832$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3833esac 3834if test "x$ac_cv_prog_cc_c89" != xno; then : 3835 3836fi 3837 3838ac_ext=c 3839ac_cpp='$CPP $CPPFLAGS' 3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3842ac_compiler_gnu=$ac_cv_c_compiler_gnu 3843 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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3850$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3851if ${am_cv_prog_cc_c_o+:} false; then : 3852 $as_echo_n "(cached) " >&6 3853else 3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3855/* end confdefs.h. */ 3856 3857int 3858main () 3859{ 3860 3861 ; 3862 return 0; 3863} 3864_ACEOF 3865 # Make sure it works both with $CC and with simple cc. 3866 # Following AC_PROG_CC_C_O, we do the test twice because some 3867 # compilers refuse to overwrite an existing .o file with -o, 3868 # though they will create one. 3869 am_cv_prog_cc_c_o=yes 3870 for am_i in 1 2; do 3871 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3872 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3873 ac_status=$? 3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3875 (exit $ac_status); } \ 3876 && test -f conftest2.$ac_objext; then 3877 : OK 3878 else 3879 am_cv_prog_cc_c_o=no 3880 break 3881 fi 3882 done 3883 rm -f core conftest* 3884 unset am_i 3885fi 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3887$as_echo "$am_cv_prog_cc_c_o" >&6; } 3888if test "$am_cv_prog_cc_c_o" != yes; then 3889 # Losing compiler, so override with the script. 3890 # FIXME: It is wrong to rewrite CC. 3891 # But if we don't then we get into trouble of one sort or another. 3892 # A longer-term fix would be to have automake use am__CC in this case, 3893 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3894 CC="$am_aux_dir/compile $CC" 3895fi 3896ac_ext=c 3897ac_cpp='$CPP $CPPFLAGS' 3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3900ac_compiler_gnu=$ac_cv_c_compiler_gnu 3901 3902 3903depcc="$CC" am_compiler_list= 3904 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3906$as_echo_n "checking dependency style of $depcc... " >&6; } 3907if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3908 $as_echo_n "(cached) " >&6 3909else 3910 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3911 # We make a subdir and do the tests there. Otherwise we can end up 3912 # making bogus files that we don't know about and never remove. For 3913 # instance it was reported that on HP-UX the gcc test will end up 3914 # making a dummy file named 'D' -- because '-MD' means "put the output 3915 # in D". 3916 rm -rf conftest.dir 3917 mkdir conftest.dir 3918 # Copy depcomp to subdir because otherwise we won't find it if we're 3919 # using a relative directory. 3920 cp "$am_depcomp" conftest.dir 3921 cd conftest.dir 3922 # We will build objects and dependencies in a subdirectory because 3923 # it helps to detect inapplicable dependency modes. For instance 3924 # both Tru64's cc and ICC support -MD to output dependencies as a 3925 # side effect of compilation, but ICC will put the dependencies in 3926 # the current directory while Tru64 will put them in the object 3927 # directory. 3928 mkdir sub 3929 3930 am_cv_CC_dependencies_compiler_type=none 3931 if test "$am_compiler_list" = ""; then 3932 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3933 fi 3934 am__universal=false 3935 case " $depcc " in #( 3936 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3937 esac 3938 3939 for depmode in $am_compiler_list; do 3940 # Setup a source with many dependencies, because some compilers 3941 # like to wrap large dependency lists on column 80 (with \), and 3942 # we should not choose a depcomp mode which is confused by this. 3943 # 3944 # We need to recreate these files for each test, as the compiler may 3945 # overwrite some of them when testing with obscure command lines. 3946 # This happens at least with the AIX C compiler. 3947 : > sub/conftest.c 3948 for i in 1 2 3 4 5 6; do 3949 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3950 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3951 # Solaris 10 /bin/sh. 3952 echo '/* dummy */' > sub/conftst$i.h 3953 done 3954 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3955 3956 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3957 # mode. It turns out that the SunPro C++ compiler does not properly 3958 # handle '-M -o', and we need to detect this. Also, some Intel 3959 # versions had trouble with output in subdirs. 3960 am__obj=sub/conftest.${OBJEXT-o} 3961 am__minus_obj="-o $am__obj" 3962 case $depmode in 3963 gcc) 3964 # This depmode causes a compiler race in universal mode. 3965 test "$am__universal" = false || continue 3966 ;; 3967 nosideeffect) 3968 # After this tag, mechanisms are not by side-effect, so they'll 3969 # only be used when explicitly requested. 3970 if test "x$enable_dependency_tracking" = xyes; then 3971 continue 3972 else 3973 break 3974 fi 3975 ;; 3976 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3977 # This compiler won't grok '-c -o', but also, the minuso test has 3978 # not run yet. These depmodes are late enough in the game, and 3979 # so weak that their functioning should not be impacted. 3980 am__obj=conftest.${OBJEXT-o} 3981 am__minus_obj= 3982 ;; 3983 none) break ;; 3984 esac 3985 if depmode=$depmode \ 3986 source=sub/conftest.c object=$am__obj \ 3987 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3988 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3989 >/dev/null 2>conftest.err && 3990 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3992 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3994 # icc doesn't choke on unknown options, it will just issue warnings 3995 # or remarks (even with -Werror). So we grep stderr for any message 3996 # that says an option was ignored or not supported. 3997 # When given -MP, icc 7.0 and 7.1 complain thusly: 3998 # icc: Command line warning: ignoring option '-M'; no argument required 3999 # The diagnosis changed in icc 8.0: 4000 # icc: Command line remark: option '-MP' not supported 4001 if (grep 'ignoring option' conftest.err || 4002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4003 am_cv_CC_dependencies_compiler_type=$depmode 4004 break 4005 fi 4006 fi 4007 done 4008 4009 cd .. 4010 rm -rf conftest.dir 4011else 4012 am_cv_CC_dependencies_compiler_type=none 4013fi 4014 4015fi 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4017$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4018CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4019 4020 if 4021 test "x$enable_dependency_tracking" != xno \ 4022 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4023 am__fastdepCC_TRUE= 4024 am__fastdepCC_FALSE='#' 4025else 4026 am__fastdepCC_TRUE='#' 4027 am__fastdepCC_FALSE= 4028fi 4029 4030 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4032$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4033if ${ac_cv_prog_cc_c99+:} false; then : 4034 $as_echo_n "(cached) " >&6 4035else 4036 ac_cv_prog_cc_c99=no 4037ac_save_CC=$CC 4038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4039/* end confdefs.h. */ 4040#include <stdarg.h> 4041#include <stdbool.h> 4042#include <stdlib.h> 4043#include <wchar.h> 4044#include <stdio.h> 4045 4046// Check varargs macros. These examples are taken from C99 6.10.3.5. 4047#define debug(...) fprintf (stderr, __VA_ARGS__) 4048#define showlist(...) puts (#__VA_ARGS__) 4049#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4050static void 4051test_varargs_macros (void) 4052{ 4053 int x = 1234; 4054 int y = 5678; 4055 debug ("Flag"); 4056 debug ("X = %d\n", x); 4057 showlist (The first, second, and third items.); 4058 report (x>y, "x is %d but y is %d", x, y); 4059} 4060 4061// Check long long types. 4062#define BIG64 18446744073709551615ull 4063#define BIG32 4294967295ul 4064#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4065#if !BIG_OK 4066 your preprocessor is broken; 4067#endif 4068#if BIG_OK 4069#else 4070 your preprocessor is broken; 4071#endif 4072static long long int bignum = -9223372036854775807LL; 4073static unsigned long long int ubignum = BIG64; 4074 4075struct incomplete_array 4076{ 4077 int datasize; 4078 double data[]; 4079}; 4080 4081struct named_init { 4082 int number; 4083 const wchar_t *name; 4084 double average; 4085}; 4086 4087typedef const char *ccp; 4088 4089static inline int 4090test_restrict (ccp restrict text) 4091{ 4092 // See if C++-style comments work. 4093 // Iterate through items via the restricted pointer. 4094 // Also check for declarations in for loops. 4095 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4096 continue; 4097 return 0; 4098} 4099 4100// Check varargs and va_copy. 4101static void 4102test_varargs (const char *format, ...) 4103{ 4104 va_list args; 4105 va_start (args, format); 4106 va_list args_copy; 4107 va_copy (args_copy, args); 4108 4109 const char *str; 4110 int number; 4111 float fnumber; 4112 4113 while (*format) 4114 { 4115 switch (*format++) 4116 { 4117 case 's': // string 4118 str = va_arg (args_copy, const char *); 4119 break; 4120 case 'd': // int 4121 number = va_arg (args_copy, int); 4122 break; 4123 case 'f': // float 4124 fnumber = va_arg (args_copy, double); 4125 break; 4126 default: 4127 break; 4128 } 4129 } 4130 va_end (args_copy); 4131 va_end (args); 4132} 4133 4134int 4135main () 4136{ 4137 4138 // Check bool. 4139 _Bool success = false; 4140 4141 // Check restrict. 4142 if (test_restrict ("String literal") == 0) 4143 success = true; 4144 char *restrict newvar = "Another string"; 4145 4146 // Check varargs. 4147 test_varargs ("s, d' f .", "string", 65, 34.234); 4148 test_varargs_macros (); 4149 4150 // Check flexible array members. 4151 struct incomplete_array *ia = 4152 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4153 ia->datasize = 10; 4154 for (int i = 0; i < ia->datasize; ++i) 4155 ia->data[i] = i * 1.234; 4156 4157 // Check named initializers. 4158 struct named_init ni = { 4159 .number = 34, 4160 .name = L"Test wide string", 4161 .average = 543.34343, 4162 }; 4163 4164 ni.number = 58; 4165 4166 int dynamic_array[ni.number]; 4167 dynamic_array[ni.number - 1] = 543; 4168 4169 // work around unused variable warnings 4170 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4171 || dynamic_array[ni.number - 1] != 543); 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4178do 4179 CC="$ac_save_CC $ac_arg" 4180 if ac_fn_c_try_compile "$LINENO"; then : 4181 ac_cv_prog_cc_c99=$ac_arg 4182fi 4183rm -f core conftest.err conftest.$ac_objext 4184 test "x$ac_cv_prog_cc_c99" != "xno" && break 4185done 4186rm -f conftest.$ac_ext 4187CC=$ac_save_CC 4188 4189fi 4190# AC_CACHE_VAL 4191case "x$ac_cv_prog_cc_c99" in 4192 x) 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4194$as_echo "none needed" >&6; } ;; 4195 xno) 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4197$as_echo "unsupported" >&6; } ;; 4198 *) 4199 CC="$CC $ac_cv_prog_cc_c99" 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4201$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4202esac 4203if test "x$ac_cv_prog_cc_c99" != xno; then : 4204 4205fi 4206 4207 4208 4209ac_ext=c 4210ac_cpp='$CPP $CPPFLAGS' 4211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4213ac_compiler_gnu=$ac_cv_c_compiler_gnu 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4215$as_echo_n "checking how to run the C preprocessor... " >&6; } 4216# On Suns, sometimes $CPP names a directory. 4217if test -n "$CPP" && test -d "$CPP"; then 4218 CPP= 4219fi 4220if test -z "$CPP"; then 4221 if ${ac_cv_prog_CPP+:} false; then : 4222 $as_echo_n "(cached) " >&6 4223else 4224 # Double quotes because CPP needs to be expanded 4225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4226 do 4227 ac_preproc_ok=false 4228for ac_c_preproc_warn_flag in '' yes 4229do 4230 # Use a header file that comes with gcc, so configuring glibc 4231 # with a fresh cross-compiler works. 4232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4233 # <limits.h> exists even on freestanding compilers. 4234 # On the NeXT, cc -E runs the code through the compiler's parser, 4235 # not just through cpp. "Syntax error" is here to catch this case. 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238#ifdef __STDC__ 4239# include <limits.h> 4240#else 4241# include <assert.h> 4242#endif 4243 Syntax error 4244_ACEOF 4245if ac_fn_c_try_cpp "$LINENO"; then : 4246 4247else 4248 # Broken: fails on valid input. 4249continue 4250fi 4251rm -f conftest.err conftest.i conftest.$ac_ext 4252 4253 # OK, works on sane cases. Now check whether nonexistent headers 4254 # can be detected and how. 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256/* end confdefs.h. */ 4257#include <ac_nonexistent.h> 4258_ACEOF 4259if ac_fn_c_try_cpp "$LINENO"; then : 4260 # Broken: success on invalid input. 4261continue 4262else 4263 # Passes both tests. 4264ac_preproc_ok=: 4265break 4266fi 4267rm -f conftest.err conftest.i conftest.$ac_ext 4268 4269done 4270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4271rm -f conftest.i conftest.err conftest.$ac_ext 4272if $ac_preproc_ok; then : 4273 break 4274fi 4275 4276 done 4277 ac_cv_prog_CPP=$CPP 4278 4279fi 4280 CPP=$ac_cv_prog_CPP 4281else 4282 ac_cv_prog_CPP=$CPP 4283fi 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4285$as_echo "$CPP" >&6; } 4286ac_preproc_ok=false 4287for ac_c_preproc_warn_flag in '' yes 4288do 4289 # Use a header file that comes with gcc, so configuring glibc 4290 # with a fresh cross-compiler works. 4291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4292 # <limits.h> exists even on freestanding compilers. 4293 # On the NeXT, cc -E runs the code through the compiler's parser, 4294 # not just through cpp. "Syntax error" is here to catch this case. 4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296/* end confdefs.h. */ 4297#ifdef __STDC__ 4298# include <limits.h> 4299#else 4300# include <assert.h> 4301#endif 4302 Syntax error 4303_ACEOF 4304if ac_fn_c_try_cpp "$LINENO"; then : 4305 4306else 4307 # Broken: fails on valid input. 4308continue 4309fi 4310rm -f conftest.err conftest.i conftest.$ac_ext 4311 4312 # OK, works on sane cases. Now check whether nonexistent headers 4313 # can be detected and how. 4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4315/* end confdefs.h. */ 4316#include <ac_nonexistent.h> 4317_ACEOF 4318if ac_fn_c_try_cpp "$LINENO"; then : 4319 # Broken: success on invalid input. 4320continue 4321else 4322 # Passes both tests. 4323ac_preproc_ok=: 4324break 4325fi 4326rm -f conftest.err conftest.i conftest.$ac_ext 4327 4328done 4329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4330rm -f conftest.i conftest.err conftest.$ac_ext 4331if $ac_preproc_ok; then : 4332 4333else 4334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4336as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4337See \`config.log' for more details" "$LINENO" 5; } 4338fi 4339 4340ac_ext=c 4341ac_cpp='$CPP $CPPFLAGS' 4342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4344ac_compiler_gnu=$ac_cv_c_compiler_gnu 4345 4346 4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4348$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4349if ${ac_cv_path_GREP+:} false; then : 4350 $as_echo_n "(cached) " >&6 4351else 4352 if test -z "$GREP"; then 4353 ac_path_GREP_found=false 4354 # Loop through the user's path and test for each of PROGNAME-LIST 4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4356for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4357do 4358 IFS=$as_save_IFS 4359 test -z "$as_dir" && as_dir=. 4360 for ac_prog in grep ggrep; do 4361 for ac_exec_ext in '' $ac_executable_extensions; do 4362 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4363 as_fn_executable_p "$ac_path_GREP" || continue 4364# Check for GNU ac_path_GREP and select it if it is found. 4365 # Check for GNU $ac_path_GREP 4366case `"$ac_path_GREP" --version 2>&1` in 4367*GNU*) 4368 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4369*) 4370 ac_count=0 4371 $as_echo_n 0123456789 >"conftest.in" 4372 while : 4373 do 4374 cat "conftest.in" "conftest.in" >"conftest.tmp" 4375 mv "conftest.tmp" "conftest.in" 4376 cp "conftest.in" "conftest.nl" 4377 $as_echo 'GREP' >> "conftest.nl" 4378 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4380 as_fn_arith $ac_count + 1 && ac_count=$as_val 4381 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4382 # Best one so far, save it but keep looking for a better one 4383 ac_cv_path_GREP="$ac_path_GREP" 4384 ac_path_GREP_max=$ac_count 4385 fi 4386 # 10*(2^10) chars as input seems more than enough 4387 test $ac_count -gt 10 && break 4388 done 4389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4390esac 4391 4392 $ac_path_GREP_found && break 3 4393 done 4394 done 4395 done 4396IFS=$as_save_IFS 4397 if test -z "$ac_cv_path_GREP"; then 4398 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4399 fi 4400else 4401 ac_cv_path_GREP=$GREP 4402fi 4403 4404fi 4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4406$as_echo "$ac_cv_path_GREP" >&6; } 4407 GREP="$ac_cv_path_GREP" 4408 4409 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4411$as_echo_n "checking for egrep... " >&6; } 4412if ${ac_cv_path_EGREP+:} false; then : 4413 $as_echo_n "(cached) " >&6 4414else 4415 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4416 then ac_cv_path_EGREP="$GREP -E" 4417 else 4418 if test -z "$EGREP"; then 4419 ac_path_EGREP_found=false 4420 # Loop through the user's path and test for each of PROGNAME-LIST 4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4422for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4423do 4424 IFS=$as_save_IFS 4425 test -z "$as_dir" && as_dir=. 4426 for ac_prog in egrep; do 4427 for ac_exec_ext in '' $ac_executable_extensions; do 4428 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4429 as_fn_executable_p "$ac_path_EGREP" || continue 4430# Check for GNU ac_path_EGREP and select it if it is found. 4431 # Check for GNU $ac_path_EGREP 4432case `"$ac_path_EGREP" --version 2>&1` in 4433*GNU*) 4434 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4435*) 4436 ac_count=0 4437 $as_echo_n 0123456789 >"conftest.in" 4438 while : 4439 do 4440 cat "conftest.in" "conftest.in" >"conftest.tmp" 4441 mv "conftest.tmp" "conftest.in" 4442 cp "conftest.in" "conftest.nl" 4443 $as_echo 'EGREP' >> "conftest.nl" 4444 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4446 as_fn_arith $ac_count + 1 && ac_count=$as_val 4447 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4448 # Best one so far, save it but keep looking for a better one 4449 ac_cv_path_EGREP="$ac_path_EGREP" 4450 ac_path_EGREP_max=$ac_count 4451 fi 4452 # 10*(2^10) chars as input seems more than enough 4453 test $ac_count -gt 10 && break 4454 done 4455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4456esac 4457 4458 $ac_path_EGREP_found && break 3 4459 done 4460 done 4461 done 4462IFS=$as_save_IFS 4463 if test -z "$ac_cv_path_EGREP"; then 4464 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4465 fi 4466else 4467 ac_cv_path_EGREP=$EGREP 4468fi 4469 4470 fi 4471fi 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4473$as_echo "$ac_cv_path_EGREP" >&6; } 4474 EGREP="$ac_cv_path_EGREP" 4475 4476 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4478$as_echo_n "checking for ANSI C header files... " >&6; } 4479if ${ac_cv_header_stdc+:} false; then : 4480 $as_echo_n "(cached) " >&6 4481else 4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4483/* end confdefs.h. */ 4484#include <stdlib.h> 4485#include <stdarg.h> 4486#include <string.h> 4487#include <float.h> 4488 4489int 4490main () 4491{ 4492 4493 ; 4494 return 0; 4495} 4496_ACEOF 4497if ac_fn_c_try_compile "$LINENO"; then : 4498 ac_cv_header_stdc=yes 4499else 4500 ac_cv_header_stdc=no 4501fi 4502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4503 4504if test $ac_cv_header_stdc = yes; then 4505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4507/* end confdefs.h. */ 4508#include <string.h> 4509 4510_ACEOF 4511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4512 $EGREP "memchr" >/dev/null 2>&1; then : 4513 4514else 4515 ac_cv_header_stdc=no 4516fi 4517rm -f conftest* 4518 4519fi 4520 4521if test $ac_cv_header_stdc = yes; then 4522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4524/* end confdefs.h. */ 4525#include <stdlib.h> 4526 4527_ACEOF 4528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4529 $EGREP "free" >/dev/null 2>&1; then : 4530 4531else 4532 ac_cv_header_stdc=no 4533fi 4534rm -f conftest* 4535 4536fi 4537 4538if test $ac_cv_header_stdc = yes; then 4539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4540 if test "$cross_compiling" = yes; then : 4541 : 4542else 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4544/* end confdefs.h. */ 4545#include <ctype.h> 4546#include <stdlib.h> 4547#if ((' ' & 0x0FF) == 0x020) 4548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4550#else 4551# define ISLOWER(c) \ 4552 (('a' <= (c) && (c) <= 'i') \ 4553 || ('j' <= (c) && (c) <= 'r') \ 4554 || ('s' <= (c) && (c) <= 'z')) 4555# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4556#endif 4557 4558#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4559int 4560main () 4561{ 4562 int i; 4563 for (i = 0; i < 256; i++) 4564 if (XOR (islower (i), ISLOWER (i)) 4565 || toupper (i) != TOUPPER (i)) 4566 return 2; 4567 return 0; 4568} 4569_ACEOF 4570if ac_fn_c_try_run "$LINENO"; then : 4571 4572else 4573 ac_cv_header_stdc=no 4574fi 4575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4576 conftest.$ac_objext conftest.beam conftest.$ac_ext 4577fi 4578 4579fi 4580fi 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4582$as_echo "$ac_cv_header_stdc" >&6; } 4583if test $ac_cv_header_stdc = yes; then 4584 4585$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4586 4587fi 4588 4589# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4590for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4591 inttypes.h stdint.h unistd.h 4592do : 4593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4594ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4595" 4596if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4597 cat >>confdefs.h <<_ACEOF 4598#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4599_ACEOF 4600 4601fi 4602 4603done 4604 4605 4606 4607 4608 4609 4610ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4611if test "x$ac_cv_have_decl___clang__" = xyes; then : 4612 CLANGCC="yes" 4613else 4614 CLANGCC="no" 4615fi 4616 4617ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4618if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4619 INTELCC="yes" 4620else 4621 INTELCC="no" 4622fi 4623 4624ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4625if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4626 SUNCC="yes" 4627else 4628 SUNCC="no" 4629fi 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4640 if test -n "$ac_tool_prefix"; then 4641 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4642set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4644$as_echo_n "checking for $ac_word... " >&6; } 4645if ${ac_cv_path_PKG_CONFIG+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 case $PKG_CONFIG in 4649 [\\/]* | ?:[\\/]*) 4650 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4651 ;; 4652 *) 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH 4655do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_exec_ext in '' $ac_executable_extensions; do 4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4660 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4662 break 2 4663 fi 4664done 4665 done 4666IFS=$as_save_IFS 4667 4668 ;; 4669esac 4670fi 4671PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4672if test -n "$PKG_CONFIG"; then 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4674$as_echo "$PKG_CONFIG" >&6; } 4675else 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4677$as_echo "no" >&6; } 4678fi 4679 4680 4681fi 4682if test -z "$ac_cv_path_PKG_CONFIG"; then 4683 ac_pt_PKG_CONFIG=$PKG_CONFIG 4684 # Extract the first word of "pkg-config", so it can be a program name with args. 4685set dummy pkg-config; ac_word=$2 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4687$as_echo_n "checking for $ac_word... " >&6; } 4688if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4689 $as_echo_n "(cached) " >&6 4690else 4691 case $ac_pt_PKG_CONFIG in 4692 [\\/]* | ?:[\\/]*) 4693 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4694 ;; 4695 *) 4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4697for as_dir in $PATH 4698do 4699 IFS=$as_save_IFS 4700 test -z "$as_dir" && as_dir=. 4701 for ac_exec_ext in '' $ac_executable_extensions; do 4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4703 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4705 break 2 4706 fi 4707done 4708 done 4709IFS=$as_save_IFS 4710 4711 ;; 4712esac 4713fi 4714ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4715if test -n "$ac_pt_PKG_CONFIG"; then 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4717$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4718else 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4720$as_echo "no" >&6; } 4721fi 4722 4723 if test "x$ac_pt_PKG_CONFIG" = x; then 4724 PKG_CONFIG="" 4725 else 4726 case $cross_compiling:$ac_tool_warned in 4727yes:) 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4730ac_tool_warned=yes ;; 4731esac 4732 PKG_CONFIG=$ac_pt_PKG_CONFIG 4733 fi 4734else 4735 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4736fi 4737 4738fi 4739if test -n "$PKG_CONFIG"; then 4740 _pkg_min_version=0.9.0 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4742$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4743 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4745$as_echo "yes" >&6; } 4746 else 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4748$as_echo "no" >&6; } 4749 PKG_CONFIG="" 4750 fi 4751fi 4752# Make sure we can run config.sub. 4753$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4754 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4755 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4757$as_echo_n "checking build system type... " >&6; } 4758if ${ac_cv_build+:} false; then : 4759 $as_echo_n "(cached) " >&6 4760else 4761 ac_build_alias=$build_alias 4762test "x$ac_build_alias" = x && 4763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4764test "x$ac_build_alias" = x && 4765 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4766ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4767 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4768 4769fi 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4771$as_echo "$ac_cv_build" >&6; } 4772case $ac_cv_build in 4773*-*-*) ;; 4774*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4775esac 4776build=$ac_cv_build 4777ac_save_IFS=$IFS; IFS='-' 4778set x $ac_cv_build 4779shift 4780build_cpu=$1 4781build_vendor=$2 4782shift; shift 4783# Remember, the first character of IFS is used to create $*, 4784# except with old shells: 4785build_os=$* 4786IFS=$ac_save_IFS 4787case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4788 4789 4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4791$as_echo_n "checking host system type... " >&6; } 4792if ${ac_cv_host+:} false; then : 4793 $as_echo_n "(cached) " >&6 4794else 4795 if test "x$host_alias" = x; then 4796 ac_cv_host=$ac_cv_build 4797else 4798 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4799 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4800fi 4801 4802fi 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4804$as_echo "$ac_cv_host" >&6; } 4805case $ac_cv_host in 4806*-*-*) ;; 4807*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4808esac 4809host=$ac_cv_host 4810ac_save_IFS=$IFS; IFS='-' 4811set x $ac_cv_host 4812shift 4813host_cpu=$1 4814host_vendor=$2 4815shift; shift 4816# Remember, the first character of IFS is used to create $*, 4817# except with old shells: 4818host_os=$* 4819IFS=$ac_save_IFS 4820case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4821 4822 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4824$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4825if ${ac_cv_path_SED+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4829 for ac_i in 1 2 3 4 5 6 7; do 4830 ac_script="$ac_script$as_nl$ac_script" 4831 done 4832 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4833 { ac_script=; unset ac_script;} 4834 if test -z "$SED"; then 4835 ac_path_SED_found=false 4836 # Loop through the user's path and test for each of PROGNAME-LIST 4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4838for as_dir in $PATH 4839do 4840 IFS=$as_save_IFS 4841 test -z "$as_dir" && as_dir=. 4842 for ac_prog in sed gsed; do 4843 for ac_exec_ext in '' $ac_executable_extensions; do 4844 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4845 as_fn_executable_p "$ac_path_SED" || continue 4846# Check for GNU ac_path_SED and select it if it is found. 4847 # Check for GNU $ac_path_SED 4848case `"$ac_path_SED" --version 2>&1` in 4849*GNU*) 4850 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4851*) 4852 ac_count=0 4853 $as_echo_n 0123456789 >"conftest.in" 4854 while : 4855 do 4856 cat "conftest.in" "conftest.in" >"conftest.tmp" 4857 mv "conftest.tmp" "conftest.in" 4858 cp "conftest.in" "conftest.nl" 4859 $as_echo '' >> "conftest.nl" 4860 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4862 as_fn_arith $ac_count + 1 && ac_count=$as_val 4863 if test $ac_count -gt ${ac_path_SED_max-0}; then 4864 # Best one so far, save it but keep looking for a better one 4865 ac_cv_path_SED="$ac_path_SED" 4866 ac_path_SED_max=$ac_count 4867 fi 4868 # 10*(2^10) chars as input seems more than enough 4869 test $ac_count -gt 10 && break 4870 done 4871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4872esac 4873 4874 $ac_path_SED_found && break 3 4875 done 4876 done 4877 done 4878IFS=$as_save_IFS 4879 if test -z "$ac_cv_path_SED"; then 4880 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4881 fi 4882else 4883 ac_cv_path_SED=$SED 4884fi 4885 4886fi 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4888$as_echo "$ac_cv_path_SED" >&6; } 4889 SED="$ac_cv_path_SED" 4890 rm -f conftest.sed 4891 4892 4893 4894 4895 4896 4897# Check whether --enable-selective-werror was given. 4898if test "${enable_selective_werror+set}" = set; then : 4899 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4900else 4901 SELECTIVE_WERROR=yes 4902fi 4903 4904 4905 4906 4907 4908# -v is too short to test reliably with XORG_TESTSET_CFLAG 4909if test "x$SUNCC" = "xyes"; then 4910 BASE_CFLAGS="-v" 4911else 4912 BASE_CFLAGS="" 4913fi 4914 4915# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929xorg_testset_save_CFLAGS="$CFLAGS" 4930 4931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4936 $as_echo_n "(cached) " >&6 4937else 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4939/* end confdefs.h. */ 4940int i; 4941_ACEOF 4942if ac_fn_c_try_compile "$LINENO"; then : 4943 xorg_cv_cc_flag_unknown_warning_option=yes 4944else 4945 xorg_cv_cc_flag_unknown_warning_option=no 4946fi 4947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4952 CFLAGS="$xorg_testset_save_CFLAGS" 4953fi 4954 4955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4958 fi 4959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4966/* end confdefs.h. */ 4967int i; 4968_ACEOF 4969if ac_fn_c_try_compile "$LINENO"; then : 4970 xorg_cv_cc_flag_unused_command_line_argument=yes 4971else 4972 xorg_cv_cc_flag_unused_command_line_argument=no 4973fi 4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4975fi 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4979 CFLAGS="$xorg_testset_save_CFLAGS" 4980fi 4981 4982found="no" 4983 4984 if test $found = "no" ; then 4985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4987 fi 4988 4989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4991 fi 4992 4993 CFLAGS="$CFLAGS -Wall" 4994 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4996$as_echo_n "checking if $CC supports -Wall... " >&6; } 4997 cacheid=xorg_cv_cc_flag__Wall 4998 if eval \${$cacheid+:} false; then : 4999 $as_echo_n "(cached) " >&6 5000else 5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5002/* end confdefs.h. */ 5003int i; 5004int 5005main () 5006{ 5007 5008 ; 5009 return 0; 5010} 5011_ACEOF 5012if ac_fn_c_try_link "$LINENO"; then : 5013 eval $cacheid=yes 5014else 5015 eval $cacheid=no 5016fi 5017rm -f core conftest.err conftest.$ac_objext \ 5018 conftest$ac_exeext conftest.$ac_ext 5019fi 5020 5021 5022 CFLAGS="$xorg_testset_save_CFLAGS" 5023 5024 eval supported=\$$cacheid 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5026$as_echo "$supported" >&6; } 5027 if test "$supported" = "yes" ; then 5028 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5029 found="yes" 5030 fi 5031 fi 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047xorg_testset_save_CFLAGS="$CFLAGS" 5048 5049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5054 $as_echo_n "(cached) " >&6 5055else 5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5057/* end confdefs.h. */ 5058int i; 5059_ACEOF 5060if ac_fn_c_try_compile "$LINENO"; then : 5061 xorg_cv_cc_flag_unknown_warning_option=yes 5062else 5063 xorg_cv_cc_flag_unknown_warning_option=no 5064fi 5065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5066fi 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5070 CFLAGS="$xorg_testset_save_CFLAGS" 5071fi 5072 5073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5076 fi 5077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5081 $as_echo_n "(cached) " >&6 5082else 5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5084/* end confdefs.h. */ 5085int i; 5086_ACEOF 5087if ac_fn_c_try_compile "$LINENO"; then : 5088 xorg_cv_cc_flag_unused_command_line_argument=yes 5089else 5090 xorg_cv_cc_flag_unused_command_line_argument=no 5091fi 5092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5093fi 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5097 CFLAGS="$xorg_testset_save_CFLAGS" 5098fi 5099 5100found="no" 5101 5102 if test $found = "no" ; then 5103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5105 fi 5106 5107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5109 fi 5110 5111 CFLAGS="$CFLAGS -Wpointer-arith" 5112 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5114$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5115 cacheid=xorg_cv_cc_flag__Wpointer_arith 5116 if eval \${$cacheid+:} false; then : 5117 $as_echo_n "(cached) " >&6 5118else 5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5120/* end confdefs.h. */ 5121int i; 5122int 5123main () 5124{ 5125 5126 ; 5127 return 0; 5128} 5129_ACEOF 5130if ac_fn_c_try_link "$LINENO"; then : 5131 eval $cacheid=yes 5132else 5133 eval $cacheid=no 5134fi 5135rm -f core conftest.err conftest.$ac_objext \ 5136 conftest$ac_exeext conftest.$ac_ext 5137fi 5138 5139 5140 CFLAGS="$xorg_testset_save_CFLAGS" 5141 5142 eval supported=\$$cacheid 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5144$as_echo "$supported" >&6; } 5145 if test "$supported" = "yes" ; then 5146 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5147 found="yes" 5148 fi 5149 fi 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165xorg_testset_save_CFLAGS="$CFLAGS" 5166 5167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176int i; 5177_ACEOF 5178if ac_fn_c_try_compile "$LINENO"; then : 5179 xorg_cv_cc_flag_unknown_warning_option=yes 5180else 5181 xorg_cv_cc_flag_unknown_warning_option=no 5182fi 5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5184fi 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5188 CFLAGS="$xorg_testset_save_CFLAGS" 5189fi 5190 5191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5194 fi 5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203int i; 5204_ACEOF 5205if ac_fn_c_try_compile "$LINENO"; then : 5206 xorg_cv_cc_flag_unused_command_line_argument=yes 5207else 5208 xorg_cv_cc_flag_unused_command_line_argument=no 5209fi 5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5211fi 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5215 CFLAGS="$xorg_testset_save_CFLAGS" 5216fi 5217 5218found="no" 5219 5220 if test $found = "no" ; then 5221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5223 fi 5224 5225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5227 fi 5228 5229 CFLAGS="$CFLAGS -Wmissing-declarations" 5230 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5232$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5233 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5234 if eval \${$cacheid+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236else 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238/* end confdefs.h. */ 5239int i; 5240int 5241main () 5242{ 5243 5244 ; 5245 return 0; 5246} 5247_ACEOF 5248if ac_fn_c_try_link "$LINENO"; then : 5249 eval $cacheid=yes 5250else 5251 eval $cacheid=no 5252fi 5253rm -f core conftest.err conftest.$ac_objext \ 5254 conftest$ac_exeext conftest.$ac_ext 5255fi 5256 5257 5258 CFLAGS="$xorg_testset_save_CFLAGS" 5259 5260 eval supported=\$$cacheid 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5262$as_echo "$supported" >&6; } 5263 if test "$supported" = "yes" ; then 5264 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5265 found="yes" 5266 fi 5267 fi 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283xorg_testset_save_CFLAGS="$CFLAGS" 5284 5285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291else 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295_ACEOF 5296if ac_fn_c_try_compile "$LINENO"; then : 5297 xorg_cv_cc_flag_unknown_warning_option=yes 5298else 5299 xorg_cv_cc_flag_unknown_warning_option=no 5300fi 5301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5302fi 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5306 CFLAGS="$xorg_testset_save_CFLAGS" 5307fi 5308 5309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 fi 5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5317 $as_echo_n "(cached) " >&6 5318else 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321int i; 5322_ACEOF 5323if ac_fn_c_try_compile "$LINENO"; then : 5324 xorg_cv_cc_flag_unused_command_line_argument=yes 5325else 5326 xorg_cv_cc_flag_unused_command_line_argument=no 5327fi 5328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5329fi 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5333 CFLAGS="$xorg_testset_save_CFLAGS" 5334fi 5335 5336found="no" 5337 5338 if test $found = "no" ; then 5339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5341 fi 5342 5343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5345 fi 5346 5347 CFLAGS="$CFLAGS -Wformat=2" 5348 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5350$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5351 cacheid=xorg_cv_cc_flag__Wformat_2 5352 if eval \${$cacheid+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354else 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356/* end confdefs.h. */ 5357int i; 5358int 5359main () 5360{ 5361 5362 ; 5363 return 0; 5364} 5365_ACEOF 5366if ac_fn_c_try_link "$LINENO"; then : 5367 eval $cacheid=yes 5368else 5369 eval $cacheid=no 5370fi 5371rm -f core conftest.err conftest.$ac_objext \ 5372 conftest$ac_exeext conftest.$ac_ext 5373fi 5374 5375 5376 CFLAGS="$xorg_testset_save_CFLAGS" 5377 5378 eval supported=\$$cacheid 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5380$as_echo "$supported" >&6; } 5381 if test "$supported" = "yes" ; then 5382 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5383 found="yes" 5384 fi 5385 fi 5386 5387 if test $found = "no" ; then 5388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5390 fi 5391 5392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5394 fi 5395 5396 CFLAGS="$CFLAGS -Wformat" 5397 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5399$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5400 cacheid=xorg_cv_cc_flag__Wformat 5401 if eval \${$cacheid+:} false; then : 5402 $as_echo_n "(cached) " >&6 5403else 5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5405/* end confdefs.h. */ 5406int i; 5407int 5408main () 5409{ 5410 5411 ; 5412 return 0; 5413} 5414_ACEOF 5415if ac_fn_c_try_link "$LINENO"; then : 5416 eval $cacheid=yes 5417else 5418 eval $cacheid=no 5419fi 5420rm -f core conftest.err conftest.$ac_objext \ 5421 conftest$ac_exeext conftest.$ac_ext 5422fi 5423 5424 5425 CFLAGS="$xorg_testset_save_CFLAGS" 5426 5427 eval supported=\$$cacheid 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5429$as_echo "$supported" >&6; } 5430 if test "$supported" = "yes" ; then 5431 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5432 found="yes" 5433 fi 5434 fi 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452xorg_testset_save_CFLAGS="$CFLAGS" 5453 5454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463int i; 5464_ACEOF 5465if ac_fn_c_try_compile "$LINENO"; then : 5466 xorg_cv_cc_flag_unknown_warning_option=yes 5467else 5468 xorg_cv_cc_flag_unknown_warning_option=no 5469fi 5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5471fi 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5475 CFLAGS="$xorg_testset_save_CFLAGS" 5476fi 5477 5478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5481 fi 5482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5485if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5489/* end confdefs.h. */ 5490int i; 5491_ACEOF 5492if ac_fn_c_try_compile "$LINENO"; then : 5493 xorg_cv_cc_flag_unused_command_line_argument=yes 5494else 5495 xorg_cv_cc_flag_unused_command_line_argument=no 5496fi 5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5498fi 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5502 CFLAGS="$xorg_testset_save_CFLAGS" 5503fi 5504 5505found="no" 5506 5507 if test $found = "no" ; then 5508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5510 fi 5511 5512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5514 fi 5515 5516 CFLAGS="$CFLAGS -Wstrict-prototypes" 5517 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5519$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5520 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5521 if eval \${$cacheid+:} false; then : 5522 $as_echo_n "(cached) " >&6 5523else 5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5525/* end confdefs.h. */ 5526int i; 5527int 5528main () 5529{ 5530 5531 ; 5532 return 0; 5533} 5534_ACEOF 5535if ac_fn_c_try_link "$LINENO"; then : 5536 eval $cacheid=yes 5537else 5538 eval $cacheid=no 5539fi 5540rm -f core conftest.err conftest.$ac_objext \ 5541 conftest$ac_exeext conftest.$ac_ext 5542fi 5543 5544 5545 CFLAGS="$xorg_testset_save_CFLAGS" 5546 5547 eval supported=\$$cacheid 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5549$as_echo "$supported" >&6; } 5550 if test "$supported" = "yes" ; then 5551 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5552 found="yes" 5553 fi 5554 fi 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570xorg_testset_save_CFLAGS="$CFLAGS" 5571 5572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5577 $as_echo_n "(cached) " >&6 5578else 5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5580/* end confdefs.h. */ 5581int i; 5582_ACEOF 5583if ac_fn_c_try_compile "$LINENO"; then : 5584 xorg_cv_cc_flag_unknown_warning_option=yes 5585else 5586 xorg_cv_cc_flag_unknown_warning_option=no 5587fi 5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5589fi 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5593 CFLAGS="$xorg_testset_save_CFLAGS" 5594fi 5595 5596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5599 fi 5600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5604 $as_echo_n "(cached) " >&6 5605else 5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608int i; 5609_ACEOF 5610if ac_fn_c_try_compile "$LINENO"; then : 5611 xorg_cv_cc_flag_unused_command_line_argument=yes 5612else 5613 xorg_cv_cc_flag_unused_command_line_argument=no 5614fi 5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5616fi 5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5620 CFLAGS="$xorg_testset_save_CFLAGS" 5621fi 5622 5623found="no" 5624 5625 if test $found = "no" ; then 5626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5628 fi 5629 5630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5632 fi 5633 5634 CFLAGS="$CFLAGS -Wmissing-prototypes" 5635 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5637$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5638 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5639 if eval \${$cacheid+:} false; then : 5640 $as_echo_n "(cached) " >&6 5641else 5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5643/* end confdefs.h. */ 5644int i; 5645int 5646main () 5647{ 5648 5649 ; 5650 return 0; 5651} 5652_ACEOF 5653if ac_fn_c_try_link "$LINENO"; then : 5654 eval $cacheid=yes 5655else 5656 eval $cacheid=no 5657fi 5658rm -f core conftest.err conftest.$ac_objext \ 5659 conftest$ac_exeext conftest.$ac_ext 5660fi 5661 5662 5663 CFLAGS="$xorg_testset_save_CFLAGS" 5664 5665 eval supported=\$$cacheid 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5667$as_echo "$supported" >&6; } 5668 if test "$supported" = "yes" ; then 5669 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5670 found="yes" 5671 fi 5672 fi 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688xorg_testset_save_CFLAGS="$CFLAGS" 5689 5690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5695 $as_echo_n "(cached) " >&6 5696else 5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5698/* end confdefs.h. */ 5699int i; 5700_ACEOF 5701if ac_fn_c_try_compile "$LINENO"; then : 5702 xorg_cv_cc_flag_unknown_warning_option=yes 5703else 5704 xorg_cv_cc_flag_unknown_warning_option=no 5705fi 5706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5707fi 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5711 CFLAGS="$xorg_testset_save_CFLAGS" 5712fi 5713 5714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5717 fi 5718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723else 5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5725/* end confdefs.h. */ 5726int i; 5727_ACEOF 5728if ac_fn_c_try_compile "$LINENO"; then : 5729 xorg_cv_cc_flag_unused_command_line_argument=yes 5730else 5731 xorg_cv_cc_flag_unused_command_line_argument=no 5732fi 5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5734fi 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5738 CFLAGS="$xorg_testset_save_CFLAGS" 5739fi 5740 5741found="no" 5742 5743 if test $found = "no" ; then 5744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5746 fi 5747 5748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5750 fi 5751 5752 CFLAGS="$CFLAGS -Wnested-externs" 5753 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5755$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5756 cacheid=xorg_cv_cc_flag__Wnested_externs 5757 if eval \${$cacheid+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762int i; 5763int 5764main () 5765{ 5766 5767 ; 5768 return 0; 5769} 5770_ACEOF 5771if ac_fn_c_try_link "$LINENO"; then : 5772 eval $cacheid=yes 5773else 5774 eval $cacheid=no 5775fi 5776rm -f core conftest.err conftest.$ac_objext \ 5777 conftest$ac_exeext conftest.$ac_ext 5778fi 5779 5780 5781 CFLAGS="$xorg_testset_save_CFLAGS" 5782 5783 eval supported=\$$cacheid 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5785$as_echo "$supported" >&6; } 5786 if test "$supported" = "yes" ; then 5787 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5788 found="yes" 5789 fi 5790 fi 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806xorg_testset_save_CFLAGS="$CFLAGS" 5807 5808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5813 $as_echo_n "(cached) " >&6 5814else 5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5816/* end confdefs.h. */ 5817int i; 5818_ACEOF 5819if ac_fn_c_try_compile "$LINENO"; then : 5820 xorg_cv_cc_flag_unknown_warning_option=yes 5821else 5822 xorg_cv_cc_flag_unknown_warning_option=no 5823fi 5824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5825fi 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5829 CFLAGS="$xorg_testset_save_CFLAGS" 5830fi 5831 5832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5835 fi 5836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5840 $as_echo_n "(cached) " >&6 5841else 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843/* end confdefs.h. */ 5844int i; 5845_ACEOF 5846if ac_fn_c_try_compile "$LINENO"; then : 5847 xorg_cv_cc_flag_unused_command_line_argument=yes 5848else 5849 xorg_cv_cc_flag_unused_command_line_argument=no 5850fi 5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5852fi 5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5856 CFLAGS="$xorg_testset_save_CFLAGS" 5857fi 5858 5859found="no" 5860 5861 if test $found = "no" ; then 5862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5864 fi 5865 5866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5868 fi 5869 5870 CFLAGS="$CFLAGS -Wbad-function-cast" 5871 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5873$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5874 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5875 if eval \${$cacheid+:} false; then : 5876 $as_echo_n "(cached) " >&6 5877else 5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879/* end confdefs.h. */ 5880int i; 5881int 5882main () 5883{ 5884 5885 ; 5886 return 0; 5887} 5888_ACEOF 5889if ac_fn_c_try_link "$LINENO"; then : 5890 eval $cacheid=yes 5891else 5892 eval $cacheid=no 5893fi 5894rm -f core conftest.err conftest.$ac_objext \ 5895 conftest$ac_exeext conftest.$ac_ext 5896fi 5897 5898 5899 CFLAGS="$xorg_testset_save_CFLAGS" 5900 5901 eval supported=\$$cacheid 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5903$as_echo "$supported" >&6; } 5904 if test "$supported" = "yes" ; then 5905 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5906 found="yes" 5907 fi 5908 fi 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924xorg_testset_save_CFLAGS="$CFLAGS" 5925 5926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5934/* end confdefs.h. */ 5935int i; 5936_ACEOF 5937if ac_fn_c_try_compile "$LINENO"; then : 5938 xorg_cv_cc_flag_unknown_warning_option=yes 5939else 5940 xorg_cv_cc_flag_unknown_warning_option=no 5941fi 5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5943fi 5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5947 CFLAGS="$xorg_testset_save_CFLAGS" 5948fi 5949 5950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5953 fi 5954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5961/* end confdefs.h. */ 5962int i; 5963_ACEOF 5964if ac_fn_c_try_compile "$LINENO"; then : 5965 xorg_cv_cc_flag_unused_command_line_argument=yes 5966else 5967 xorg_cv_cc_flag_unused_command_line_argument=no 5968fi 5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5970fi 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5974 CFLAGS="$xorg_testset_save_CFLAGS" 5975fi 5976 5977found="no" 5978 5979 if test $found = "no" ; then 5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5982 fi 5983 5984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5986 fi 5987 5988 CFLAGS="$CFLAGS -Wold-style-definition" 5989 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5991$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5992 cacheid=xorg_cv_cc_flag__Wold_style_definition 5993 if eval \${$cacheid+:} false; then : 5994 $as_echo_n "(cached) " >&6 5995else 5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997/* end confdefs.h. */ 5998int i; 5999int 6000main () 6001{ 6002 6003 ; 6004 return 0; 6005} 6006_ACEOF 6007if ac_fn_c_try_link "$LINENO"; then : 6008 eval $cacheid=yes 6009else 6010 eval $cacheid=no 6011fi 6012rm -f core conftest.err conftest.$ac_objext \ 6013 conftest$ac_exeext conftest.$ac_ext 6014fi 6015 6016 6017 CFLAGS="$xorg_testset_save_CFLAGS" 6018 6019 eval supported=\$$cacheid 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6021$as_echo "$supported" >&6; } 6022 if test "$supported" = "yes" ; then 6023 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6024 found="yes" 6025 fi 6026 fi 6027 6028 if test $found = "no" ; then 6029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6031 fi 6032 6033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6035 fi 6036 6037 CFLAGS="$CFLAGS -fd" 6038 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6040$as_echo_n "checking if $CC supports -fd... " >&6; } 6041 cacheid=xorg_cv_cc_flag__fd 6042 if eval \${$cacheid+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6046/* end confdefs.h. */ 6047int i; 6048int 6049main () 6050{ 6051 6052 ; 6053 return 0; 6054} 6055_ACEOF 6056if ac_fn_c_try_link "$LINENO"; then : 6057 eval $cacheid=yes 6058else 6059 eval $cacheid=no 6060fi 6061rm -f core conftest.err conftest.$ac_objext \ 6062 conftest$ac_exeext conftest.$ac_ext 6063fi 6064 6065 6066 CFLAGS="$xorg_testset_save_CFLAGS" 6067 6068 eval supported=\$$cacheid 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6070$as_echo "$supported" >&6; } 6071 if test "$supported" = "yes" ; then 6072 BASE_CFLAGS="$BASE_CFLAGS -fd" 6073 found="yes" 6074 fi 6075 fi 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091xorg_testset_save_CFLAGS="$CFLAGS" 6092 6093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6101/* end confdefs.h. */ 6102int i; 6103_ACEOF 6104if ac_fn_c_try_compile "$LINENO"; then : 6105 xorg_cv_cc_flag_unknown_warning_option=yes 6106else 6107 xorg_cv_cc_flag_unknown_warning_option=no 6108fi 6109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6110fi 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6114 CFLAGS="$xorg_testset_save_CFLAGS" 6115fi 6116 6117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6120 fi 6121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129int i; 6130_ACEOF 6131if ac_fn_c_try_compile "$LINENO"; then : 6132 xorg_cv_cc_flag_unused_command_line_argument=yes 6133else 6134 xorg_cv_cc_flag_unused_command_line_argument=no 6135fi 6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6137fi 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6141 CFLAGS="$xorg_testset_save_CFLAGS" 6142fi 6143 6144found="no" 6145 6146 if test $found = "no" ; then 6147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6149 fi 6150 6151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6153 fi 6154 6155 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6156 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6158$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6159 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6160 if eval \${$cacheid+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6164/* end confdefs.h. */ 6165int i; 6166int 6167main () 6168{ 6169 6170 ; 6171 return 0; 6172} 6173_ACEOF 6174if ac_fn_c_try_link "$LINENO"; then : 6175 eval $cacheid=yes 6176else 6177 eval $cacheid=no 6178fi 6179rm -f core conftest.err conftest.$ac_objext \ 6180 conftest$ac_exeext conftest.$ac_ext 6181fi 6182 6183 6184 CFLAGS="$xorg_testset_save_CFLAGS" 6185 6186 eval supported=\$$cacheid 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6188$as_echo "$supported" >&6; } 6189 if test "$supported" = "yes" ; then 6190 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6191 found="yes" 6192 fi 6193 fi 6194 6195 6196 6197 6198 6199# This chunk adds additional warnings that could catch undesired effects. 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213xorg_testset_save_CFLAGS="$CFLAGS" 6214 6215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6220 $as_echo_n "(cached) " >&6 6221else 6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224int i; 6225_ACEOF 6226if ac_fn_c_try_compile "$LINENO"; then : 6227 xorg_cv_cc_flag_unknown_warning_option=yes 6228else 6229 xorg_cv_cc_flag_unknown_warning_option=no 6230fi 6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6232fi 6233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6236 CFLAGS="$xorg_testset_save_CFLAGS" 6237fi 6238 6239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6242 fi 6243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6247 $as_echo_n "(cached) " >&6 6248else 6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6250/* end confdefs.h. */ 6251int i; 6252_ACEOF 6253if ac_fn_c_try_compile "$LINENO"; then : 6254 xorg_cv_cc_flag_unused_command_line_argument=yes 6255else 6256 xorg_cv_cc_flag_unused_command_line_argument=no 6257fi 6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6259fi 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6263 CFLAGS="$xorg_testset_save_CFLAGS" 6264fi 6265 6266found="no" 6267 6268 if test $found = "no" ; then 6269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6271 fi 6272 6273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6275 fi 6276 6277 CFLAGS="$CFLAGS -Wunused" 6278 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6280$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6281 cacheid=xorg_cv_cc_flag__Wunused 6282 if eval \${$cacheid+:} false; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6286/* end confdefs.h. */ 6287int i; 6288int 6289main () 6290{ 6291 6292 ; 6293 return 0; 6294} 6295_ACEOF 6296if ac_fn_c_try_link "$LINENO"; then : 6297 eval $cacheid=yes 6298else 6299 eval $cacheid=no 6300fi 6301rm -f core conftest.err conftest.$ac_objext \ 6302 conftest$ac_exeext conftest.$ac_ext 6303fi 6304 6305 6306 CFLAGS="$xorg_testset_save_CFLAGS" 6307 6308 eval supported=\$$cacheid 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6310$as_echo "$supported" >&6; } 6311 if test "$supported" = "yes" ; then 6312 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6313 found="yes" 6314 fi 6315 fi 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331xorg_testset_save_CFLAGS="$CFLAGS" 6332 6333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6338 $as_echo_n "(cached) " >&6 6339else 6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6341/* end confdefs.h. */ 6342int i; 6343_ACEOF 6344if ac_fn_c_try_compile "$LINENO"; then : 6345 xorg_cv_cc_flag_unknown_warning_option=yes 6346else 6347 xorg_cv_cc_flag_unknown_warning_option=no 6348fi 6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6350fi 6351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6354 CFLAGS="$xorg_testset_save_CFLAGS" 6355fi 6356 6357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6360 fi 6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6365 $as_echo_n "(cached) " >&6 6366else 6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6368/* end confdefs.h. */ 6369int i; 6370_ACEOF 6371if ac_fn_c_try_compile "$LINENO"; then : 6372 xorg_cv_cc_flag_unused_command_line_argument=yes 6373else 6374 xorg_cv_cc_flag_unused_command_line_argument=no 6375fi 6376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6377fi 6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6381 CFLAGS="$xorg_testset_save_CFLAGS" 6382fi 6383 6384found="no" 6385 6386 if test $found = "no" ; then 6387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6389 fi 6390 6391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6393 fi 6394 6395 CFLAGS="$CFLAGS -Wuninitialized" 6396 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6398$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6399 cacheid=xorg_cv_cc_flag__Wuninitialized 6400 if eval \${$cacheid+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6404/* end confdefs.h. */ 6405int i; 6406int 6407main () 6408{ 6409 6410 ; 6411 return 0; 6412} 6413_ACEOF 6414if ac_fn_c_try_link "$LINENO"; then : 6415 eval $cacheid=yes 6416else 6417 eval $cacheid=no 6418fi 6419rm -f core conftest.err conftest.$ac_objext \ 6420 conftest$ac_exeext conftest.$ac_ext 6421fi 6422 6423 6424 CFLAGS="$xorg_testset_save_CFLAGS" 6425 6426 eval supported=\$$cacheid 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6428$as_echo "$supported" >&6; } 6429 if test "$supported" = "yes" ; then 6430 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6431 found="yes" 6432 fi 6433 fi 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449xorg_testset_save_CFLAGS="$CFLAGS" 6450 6451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6456 $as_echo_n "(cached) " >&6 6457else 6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6459/* end confdefs.h. */ 6460int i; 6461_ACEOF 6462if ac_fn_c_try_compile "$LINENO"; then : 6463 xorg_cv_cc_flag_unknown_warning_option=yes 6464else 6465 xorg_cv_cc_flag_unknown_warning_option=no 6466fi 6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6468fi 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6472 CFLAGS="$xorg_testset_save_CFLAGS" 6473fi 6474 6475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6478 fi 6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6486/* end confdefs.h. */ 6487int i; 6488_ACEOF 6489if ac_fn_c_try_compile "$LINENO"; then : 6490 xorg_cv_cc_flag_unused_command_line_argument=yes 6491else 6492 xorg_cv_cc_flag_unused_command_line_argument=no 6493fi 6494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6495fi 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6499 CFLAGS="$xorg_testset_save_CFLAGS" 6500fi 6501 6502found="no" 6503 6504 if test $found = "no" ; then 6505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6507 fi 6508 6509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6511 fi 6512 6513 CFLAGS="$CFLAGS -Wshadow" 6514 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6516$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6517 cacheid=xorg_cv_cc_flag__Wshadow 6518 if eval \${$cacheid+:} false; then : 6519 $as_echo_n "(cached) " >&6 6520else 6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6522/* end confdefs.h. */ 6523int i; 6524int 6525main () 6526{ 6527 6528 ; 6529 return 0; 6530} 6531_ACEOF 6532if ac_fn_c_try_link "$LINENO"; then : 6533 eval $cacheid=yes 6534else 6535 eval $cacheid=no 6536fi 6537rm -f core conftest.err conftest.$ac_objext \ 6538 conftest$ac_exeext conftest.$ac_ext 6539fi 6540 6541 6542 CFLAGS="$xorg_testset_save_CFLAGS" 6543 6544 eval supported=\$$cacheid 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6546$as_echo "$supported" >&6; } 6547 if test "$supported" = "yes" ; then 6548 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6549 found="yes" 6550 fi 6551 fi 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567xorg_testset_save_CFLAGS="$CFLAGS" 6568 6569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6574 $as_echo_n "(cached) " >&6 6575else 6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6577/* end confdefs.h. */ 6578int i; 6579_ACEOF 6580if ac_fn_c_try_compile "$LINENO"; then : 6581 xorg_cv_cc_flag_unknown_warning_option=yes 6582else 6583 xorg_cv_cc_flag_unknown_warning_option=no 6584fi 6585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6586fi 6587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6590 CFLAGS="$xorg_testset_save_CFLAGS" 6591fi 6592 6593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6596 fi 6597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6601 $as_echo_n "(cached) " >&6 6602else 6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6604/* end confdefs.h. */ 6605int i; 6606_ACEOF 6607if ac_fn_c_try_compile "$LINENO"; then : 6608 xorg_cv_cc_flag_unused_command_line_argument=yes 6609else 6610 xorg_cv_cc_flag_unused_command_line_argument=no 6611fi 6612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6613fi 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6617 CFLAGS="$xorg_testset_save_CFLAGS" 6618fi 6619 6620found="no" 6621 6622 if test $found = "no" ; then 6623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6625 fi 6626 6627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6629 fi 6630 6631 CFLAGS="$CFLAGS -Wmissing-noreturn" 6632 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6634$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6635 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6636 if eval \${$cacheid+:} false; then : 6637 $as_echo_n "(cached) " >&6 6638else 6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6640/* end confdefs.h. */ 6641int i; 6642int 6643main () 6644{ 6645 6646 ; 6647 return 0; 6648} 6649_ACEOF 6650if ac_fn_c_try_link "$LINENO"; then : 6651 eval $cacheid=yes 6652else 6653 eval $cacheid=no 6654fi 6655rm -f core conftest.err conftest.$ac_objext \ 6656 conftest$ac_exeext conftest.$ac_ext 6657fi 6658 6659 6660 CFLAGS="$xorg_testset_save_CFLAGS" 6661 6662 eval supported=\$$cacheid 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6664$as_echo "$supported" >&6; } 6665 if test "$supported" = "yes" ; then 6666 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6667 found="yes" 6668 fi 6669 fi 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685xorg_testset_save_CFLAGS="$CFLAGS" 6686 6687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6692 $as_echo_n "(cached) " >&6 6693else 6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6695/* end confdefs.h. */ 6696int i; 6697_ACEOF 6698if ac_fn_c_try_compile "$LINENO"; then : 6699 xorg_cv_cc_flag_unknown_warning_option=yes 6700else 6701 xorg_cv_cc_flag_unknown_warning_option=no 6702fi 6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6704fi 6705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6708 CFLAGS="$xorg_testset_save_CFLAGS" 6709fi 6710 6711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6714 fi 6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6719 $as_echo_n "(cached) " >&6 6720else 6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6722/* end confdefs.h. */ 6723int i; 6724_ACEOF 6725if ac_fn_c_try_compile "$LINENO"; then : 6726 xorg_cv_cc_flag_unused_command_line_argument=yes 6727else 6728 xorg_cv_cc_flag_unused_command_line_argument=no 6729fi 6730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6731fi 6732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6735 CFLAGS="$xorg_testset_save_CFLAGS" 6736fi 6737 6738found="no" 6739 6740 if test $found = "no" ; then 6741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6743 fi 6744 6745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6747 fi 6748 6749 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6750 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6752$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6753 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6754 if eval \${$cacheid+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6758/* end confdefs.h. */ 6759int i; 6760int 6761main () 6762{ 6763 6764 ; 6765 return 0; 6766} 6767_ACEOF 6768if ac_fn_c_try_link "$LINENO"; then : 6769 eval $cacheid=yes 6770else 6771 eval $cacheid=no 6772fi 6773rm -f core conftest.err conftest.$ac_objext \ 6774 conftest$ac_exeext conftest.$ac_ext 6775fi 6776 6777 6778 CFLAGS="$xorg_testset_save_CFLAGS" 6779 6780 eval supported=\$$cacheid 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6782$as_echo "$supported" >&6; } 6783 if test "$supported" = "yes" ; then 6784 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6785 found="yes" 6786 fi 6787 fi 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803xorg_testset_save_CFLAGS="$CFLAGS" 6804 6805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811else 6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813/* end confdefs.h. */ 6814int i; 6815_ACEOF 6816if ac_fn_c_try_compile "$LINENO"; then : 6817 xorg_cv_cc_flag_unknown_warning_option=yes 6818else 6819 xorg_cv_cc_flag_unknown_warning_option=no 6820fi 6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6822fi 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6826 CFLAGS="$xorg_testset_save_CFLAGS" 6827fi 6828 6829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6832 fi 6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838else 6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6840/* end confdefs.h. */ 6841int i; 6842_ACEOF 6843if ac_fn_c_try_compile "$LINENO"; then : 6844 xorg_cv_cc_flag_unused_command_line_argument=yes 6845else 6846 xorg_cv_cc_flag_unused_command_line_argument=no 6847fi 6848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6849fi 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6853 CFLAGS="$xorg_testset_save_CFLAGS" 6854fi 6855 6856found="no" 6857 6858 if test $found = "no" ; then 6859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6861 fi 6862 6863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6865 fi 6866 6867 CFLAGS="$CFLAGS -Wredundant-decls" 6868 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6870$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6871 cacheid=xorg_cv_cc_flag__Wredundant_decls 6872 if eval \${$cacheid+:} false; then : 6873 $as_echo_n "(cached) " >&6 6874else 6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6876/* end confdefs.h. */ 6877int i; 6878int 6879main () 6880{ 6881 6882 ; 6883 return 0; 6884} 6885_ACEOF 6886if ac_fn_c_try_link "$LINENO"; then : 6887 eval $cacheid=yes 6888else 6889 eval $cacheid=no 6890fi 6891rm -f core conftest.err conftest.$ac_objext \ 6892 conftest$ac_exeext conftest.$ac_ext 6893fi 6894 6895 6896 CFLAGS="$xorg_testset_save_CFLAGS" 6897 6898 eval supported=\$$cacheid 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6900$as_echo "$supported" >&6; } 6901 if test "$supported" = "yes" ; then 6902 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6903 found="yes" 6904 fi 6905 fi 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921xorg_testset_save_CFLAGS="$CFLAGS" 6922 6923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6931/* end confdefs.h. */ 6932int i; 6933_ACEOF 6934if ac_fn_c_try_compile "$LINENO"; then : 6935 xorg_cv_cc_flag_unknown_warning_option=yes 6936else 6937 xorg_cv_cc_flag_unknown_warning_option=no 6938fi 6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6940fi 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6944 CFLAGS="$xorg_testset_save_CFLAGS" 6945fi 6946 6947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6950 fi 6951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6955 $as_echo_n "(cached) " >&6 6956else 6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6958/* end confdefs.h. */ 6959int i; 6960_ACEOF 6961if ac_fn_c_try_compile "$LINENO"; then : 6962 xorg_cv_cc_flag_unused_command_line_argument=yes 6963else 6964 xorg_cv_cc_flag_unused_command_line_argument=no 6965fi 6966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6967fi 6968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6971 CFLAGS="$xorg_testset_save_CFLAGS" 6972fi 6973 6974found="no" 6975 6976 if test $found = "no" ; then 6977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6979 fi 6980 6981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6983 fi 6984 6985 CFLAGS="$CFLAGS -Wlogical-op" 6986 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6988$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6989 cacheid=xorg_cv_cc_flag__Wlogical_op 6990 if eval \${$cacheid+:} false; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6994/* end confdefs.h. */ 6995int i; 6996int 6997main () 6998{ 6999 7000 ; 7001 return 0; 7002} 7003_ACEOF 7004if ac_fn_c_try_link "$LINENO"; then : 7005 eval $cacheid=yes 7006else 7007 eval $cacheid=no 7008fi 7009rm -f core conftest.err conftest.$ac_objext \ 7010 conftest$ac_exeext conftest.$ac_ext 7011fi 7012 7013 7014 CFLAGS="$xorg_testset_save_CFLAGS" 7015 7016 eval supported=\$$cacheid 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7018$as_echo "$supported" >&6; } 7019 if test "$supported" = "yes" ; then 7020 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7021 found="yes" 7022 fi 7023 fi 7024 7025 7026 7027# These are currently disabled because they are noisy. They will be enabled 7028# in the future once the codebase is sufficiently modernized to silence 7029# them. For now, I don't want them to drown out the other warnings. 7030# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7031# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7032# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7033 7034# Turn some warnings into errors, so we don't accidently get successful builds 7035# when there are problems that should be fixed. 7036 7037if test "x$SELECTIVE_WERROR" = "xyes" ; then 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051xorg_testset_save_CFLAGS="$CFLAGS" 7052 7053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7058 $as_echo_n "(cached) " >&6 7059else 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062int i; 7063_ACEOF 7064if ac_fn_c_try_compile "$LINENO"; then : 7065 xorg_cv_cc_flag_unknown_warning_option=yes 7066else 7067 xorg_cv_cc_flag_unknown_warning_option=no 7068fi 7069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7070fi 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7074 CFLAGS="$xorg_testset_save_CFLAGS" 7075fi 7076 7077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7080 fi 7081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089int i; 7090_ACEOF 7091if ac_fn_c_try_compile "$LINENO"; then : 7092 xorg_cv_cc_flag_unused_command_line_argument=yes 7093else 7094 xorg_cv_cc_flag_unused_command_line_argument=no 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7097fi 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102fi 7103 7104found="no" 7105 7106 if test $found = "no" ; then 7107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7109 fi 7110 7111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7113 fi 7114 7115 CFLAGS="$CFLAGS -Werror=implicit" 7116 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7118$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7119 cacheid=xorg_cv_cc_flag__Werror_implicit 7120 if eval \${$cacheid+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124/* end confdefs.h. */ 7125int i; 7126int 7127main () 7128{ 7129 7130 ; 7131 return 0; 7132} 7133_ACEOF 7134if ac_fn_c_try_link "$LINENO"; then : 7135 eval $cacheid=yes 7136else 7137 eval $cacheid=no 7138fi 7139rm -f core conftest.err conftest.$ac_objext \ 7140 conftest$ac_exeext conftest.$ac_ext 7141fi 7142 7143 7144 CFLAGS="$xorg_testset_save_CFLAGS" 7145 7146 eval supported=\$$cacheid 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7148$as_echo "$supported" >&6; } 7149 if test "$supported" = "yes" ; then 7150 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7151 found="yes" 7152 fi 7153 fi 7154 7155 if test $found = "no" ; then 7156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7158 fi 7159 7160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7162 fi 7163 7164 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7165 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7167$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7168 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7169 if eval \${$cacheid+:} false; then : 7170 $as_echo_n "(cached) " >&6 7171else 7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7173/* end confdefs.h. */ 7174int i; 7175int 7176main () 7177{ 7178 7179 ; 7180 return 0; 7181} 7182_ACEOF 7183if ac_fn_c_try_link "$LINENO"; then : 7184 eval $cacheid=yes 7185else 7186 eval $cacheid=no 7187fi 7188rm -f core conftest.err conftest.$ac_objext \ 7189 conftest$ac_exeext conftest.$ac_ext 7190fi 7191 7192 7193 CFLAGS="$xorg_testset_save_CFLAGS" 7194 7195 eval supported=\$$cacheid 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7197$as_echo "$supported" >&6; } 7198 if test "$supported" = "yes" ; then 7199 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7200 found="yes" 7201 fi 7202 fi 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218xorg_testset_save_CFLAGS="$CFLAGS" 7219 7220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226else 7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7228/* end confdefs.h. */ 7229int i; 7230_ACEOF 7231if ac_fn_c_try_compile "$LINENO"; then : 7232 xorg_cv_cc_flag_unknown_warning_option=yes 7233else 7234 xorg_cv_cc_flag_unknown_warning_option=no 7235fi 7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7237fi 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7241 CFLAGS="$xorg_testset_save_CFLAGS" 7242fi 7243 7244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7247 fi 7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7252 $as_echo_n "(cached) " >&6 7253else 7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7255/* end confdefs.h. */ 7256int i; 7257_ACEOF 7258if ac_fn_c_try_compile "$LINENO"; then : 7259 xorg_cv_cc_flag_unused_command_line_argument=yes 7260else 7261 xorg_cv_cc_flag_unused_command_line_argument=no 7262fi 7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7264fi 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7268 CFLAGS="$xorg_testset_save_CFLAGS" 7269fi 7270 7271found="no" 7272 7273 if test $found = "no" ; then 7274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7276 fi 7277 7278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7280 fi 7281 7282 CFLAGS="$CFLAGS -Werror=nonnull" 7283 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7285$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7286 cacheid=xorg_cv_cc_flag__Werror_nonnull 7287 if eval \${$cacheid+:} false; then : 7288 $as_echo_n "(cached) " >&6 7289else 7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7291/* end confdefs.h. */ 7292int i; 7293int 7294main () 7295{ 7296 7297 ; 7298 return 0; 7299} 7300_ACEOF 7301if ac_fn_c_try_link "$LINENO"; then : 7302 eval $cacheid=yes 7303else 7304 eval $cacheid=no 7305fi 7306rm -f core conftest.err conftest.$ac_objext \ 7307 conftest$ac_exeext conftest.$ac_ext 7308fi 7309 7310 7311 CFLAGS="$xorg_testset_save_CFLAGS" 7312 7313 eval supported=\$$cacheid 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7315$as_echo "$supported" >&6; } 7316 if test "$supported" = "yes" ; then 7317 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7318 found="yes" 7319 fi 7320 fi 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336xorg_testset_save_CFLAGS="$CFLAGS" 7337 7338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347int i; 7348_ACEOF 7349if ac_fn_c_try_compile "$LINENO"; then : 7350 xorg_cv_cc_flag_unknown_warning_option=yes 7351else 7352 xorg_cv_cc_flag_unknown_warning_option=no 7353fi 7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7355fi 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7359 CFLAGS="$xorg_testset_save_CFLAGS" 7360fi 7361 7362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7365 fi 7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7370 $as_echo_n "(cached) " >&6 7371else 7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7373/* end confdefs.h. */ 7374int i; 7375_ACEOF 7376if ac_fn_c_try_compile "$LINENO"; then : 7377 xorg_cv_cc_flag_unused_command_line_argument=yes 7378else 7379 xorg_cv_cc_flag_unused_command_line_argument=no 7380fi 7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7382fi 7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7386 CFLAGS="$xorg_testset_save_CFLAGS" 7387fi 7388 7389found="no" 7390 7391 if test $found = "no" ; then 7392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7394 fi 7395 7396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7398 fi 7399 7400 CFLAGS="$CFLAGS -Werror=init-self" 7401 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7403$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7404 cacheid=xorg_cv_cc_flag__Werror_init_self 7405 if eval \${$cacheid+:} false; then : 7406 $as_echo_n "(cached) " >&6 7407else 7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7409/* end confdefs.h. */ 7410int i; 7411int 7412main () 7413{ 7414 7415 ; 7416 return 0; 7417} 7418_ACEOF 7419if ac_fn_c_try_link "$LINENO"; then : 7420 eval $cacheid=yes 7421else 7422 eval $cacheid=no 7423fi 7424rm -f core conftest.err conftest.$ac_objext \ 7425 conftest$ac_exeext conftest.$ac_ext 7426fi 7427 7428 7429 CFLAGS="$xorg_testset_save_CFLAGS" 7430 7431 eval supported=\$$cacheid 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7433$as_echo "$supported" >&6; } 7434 if test "$supported" = "yes" ; then 7435 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7436 found="yes" 7437 fi 7438 fi 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454xorg_testset_save_CFLAGS="$CFLAGS" 7455 7456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7461 $as_echo_n "(cached) " >&6 7462else 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465int i; 7466_ACEOF 7467if ac_fn_c_try_compile "$LINENO"; then : 7468 xorg_cv_cc_flag_unknown_warning_option=yes 7469else 7470 xorg_cv_cc_flag_unknown_warning_option=no 7471fi 7472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7473fi 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7477 CFLAGS="$xorg_testset_save_CFLAGS" 7478fi 7479 7480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7483 fi 7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489else 7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491/* end confdefs.h. */ 7492int i; 7493_ACEOF 7494if ac_fn_c_try_compile "$LINENO"; then : 7495 xorg_cv_cc_flag_unused_command_line_argument=yes 7496else 7497 xorg_cv_cc_flag_unused_command_line_argument=no 7498fi 7499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7500fi 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7504 CFLAGS="$xorg_testset_save_CFLAGS" 7505fi 7506 7507found="no" 7508 7509 if test $found = "no" ; then 7510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7512 fi 7513 7514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7516 fi 7517 7518 CFLAGS="$CFLAGS -Werror=main" 7519 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7521$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7522 cacheid=xorg_cv_cc_flag__Werror_main 7523 if eval \${$cacheid+:} false; then : 7524 $as_echo_n "(cached) " >&6 7525else 7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7527/* end confdefs.h. */ 7528int i; 7529int 7530main () 7531{ 7532 7533 ; 7534 return 0; 7535} 7536_ACEOF 7537if ac_fn_c_try_link "$LINENO"; then : 7538 eval $cacheid=yes 7539else 7540 eval $cacheid=no 7541fi 7542rm -f core conftest.err conftest.$ac_objext \ 7543 conftest$ac_exeext conftest.$ac_ext 7544fi 7545 7546 7547 CFLAGS="$xorg_testset_save_CFLAGS" 7548 7549 eval supported=\$$cacheid 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7551$as_echo "$supported" >&6; } 7552 if test "$supported" = "yes" ; then 7553 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7554 found="yes" 7555 fi 7556 fi 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572xorg_testset_save_CFLAGS="$CFLAGS" 7573 7574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7579 $as_echo_n "(cached) " >&6 7580else 7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7582/* end confdefs.h. */ 7583int i; 7584_ACEOF 7585if ac_fn_c_try_compile "$LINENO"; then : 7586 xorg_cv_cc_flag_unknown_warning_option=yes 7587else 7588 xorg_cv_cc_flag_unknown_warning_option=no 7589fi 7590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7591fi 7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7595 CFLAGS="$xorg_testset_save_CFLAGS" 7596fi 7597 7598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7601 fi 7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610int i; 7611_ACEOF 7612if ac_fn_c_try_compile "$LINENO"; then : 7613 xorg_cv_cc_flag_unused_command_line_argument=yes 7614else 7615 xorg_cv_cc_flag_unused_command_line_argument=no 7616fi 7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7618fi 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7622 CFLAGS="$xorg_testset_save_CFLAGS" 7623fi 7624 7625found="no" 7626 7627 if test $found = "no" ; then 7628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7630 fi 7631 7632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7634 fi 7635 7636 CFLAGS="$CFLAGS -Werror=missing-braces" 7637 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7639$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7640 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7641 if eval \${$cacheid+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646int i; 7647int 7648main () 7649{ 7650 7651 ; 7652 return 0; 7653} 7654_ACEOF 7655if ac_fn_c_try_link "$LINENO"; then : 7656 eval $cacheid=yes 7657else 7658 eval $cacheid=no 7659fi 7660rm -f core conftest.err conftest.$ac_objext \ 7661 conftest$ac_exeext conftest.$ac_ext 7662fi 7663 7664 7665 CFLAGS="$xorg_testset_save_CFLAGS" 7666 7667 eval supported=\$$cacheid 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7669$as_echo "$supported" >&6; } 7670 if test "$supported" = "yes" ; then 7671 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7672 found="yes" 7673 fi 7674 fi 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690xorg_testset_save_CFLAGS="$CFLAGS" 7691 7692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7697 $as_echo_n "(cached) " >&6 7698else 7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700/* end confdefs.h. */ 7701int i; 7702_ACEOF 7703if ac_fn_c_try_compile "$LINENO"; then : 7704 xorg_cv_cc_flag_unknown_warning_option=yes 7705else 7706 xorg_cv_cc_flag_unknown_warning_option=no 7707fi 7708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7709fi 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7713 CFLAGS="$xorg_testset_save_CFLAGS" 7714fi 7715 7716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7719 fi 7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728int i; 7729_ACEOF 7730if ac_fn_c_try_compile "$LINENO"; then : 7731 xorg_cv_cc_flag_unused_command_line_argument=yes 7732else 7733 xorg_cv_cc_flag_unused_command_line_argument=no 7734fi 7735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7736fi 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7740 CFLAGS="$xorg_testset_save_CFLAGS" 7741fi 7742 7743found="no" 7744 7745 if test $found = "no" ; then 7746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7748 fi 7749 7750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7752 fi 7753 7754 CFLAGS="$CFLAGS -Werror=sequence-point" 7755 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7757$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7758 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7759 if eval \${$cacheid+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764int i; 7765int 7766main () 7767{ 7768 7769 ; 7770 return 0; 7771} 7772_ACEOF 7773if ac_fn_c_try_link "$LINENO"; then : 7774 eval $cacheid=yes 7775else 7776 eval $cacheid=no 7777fi 7778rm -f core conftest.err conftest.$ac_objext \ 7779 conftest$ac_exeext conftest.$ac_ext 7780fi 7781 7782 7783 CFLAGS="$xorg_testset_save_CFLAGS" 7784 7785 eval supported=\$$cacheid 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7787$as_echo "$supported" >&6; } 7788 if test "$supported" = "yes" ; then 7789 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7790 found="yes" 7791 fi 7792 fi 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808xorg_testset_save_CFLAGS="$CFLAGS" 7809 7810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819int i; 7820_ACEOF 7821if ac_fn_c_try_compile "$LINENO"; then : 7822 xorg_cv_cc_flag_unknown_warning_option=yes 7823else 7824 xorg_cv_cc_flag_unknown_warning_option=no 7825fi 7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7827fi 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7831 CFLAGS="$xorg_testset_save_CFLAGS" 7832fi 7833 7834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7837 fi 7838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845/* end confdefs.h. */ 7846int i; 7847_ACEOF 7848if ac_fn_c_try_compile "$LINENO"; then : 7849 xorg_cv_cc_flag_unused_command_line_argument=yes 7850else 7851 xorg_cv_cc_flag_unused_command_line_argument=no 7852fi 7853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7854fi 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859fi 7860 7861found="no" 7862 7863 if test $found = "no" ; then 7864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7866 fi 7867 7868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7870 fi 7871 7872 CFLAGS="$CFLAGS -Werror=return-type" 7873 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7875$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7876 cacheid=xorg_cv_cc_flag__Werror_return_type 7877 if eval \${$cacheid+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882int i; 7883int 7884main () 7885{ 7886 7887 ; 7888 return 0; 7889} 7890_ACEOF 7891if ac_fn_c_try_link "$LINENO"; then : 7892 eval $cacheid=yes 7893else 7894 eval $cacheid=no 7895fi 7896rm -f core conftest.err conftest.$ac_objext \ 7897 conftest$ac_exeext conftest.$ac_ext 7898fi 7899 7900 7901 CFLAGS="$xorg_testset_save_CFLAGS" 7902 7903 eval supported=\$$cacheid 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7905$as_echo "$supported" >&6; } 7906 if test "$supported" = "yes" ; then 7907 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7908 found="yes" 7909 fi 7910 fi 7911 7912 if test $found = "no" ; then 7913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7915 fi 7916 7917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7919 fi 7920 7921 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7922 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7924$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7925 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7926 if eval \${$cacheid+:} false; then : 7927 $as_echo_n "(cached) " >&6 7928else 7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7930/* end confdefs.h. */ 7931int i; 7932int 7933main () 7934{ 7935 7936 ; 7937 return 0; 7938} 7939_ACEOF 7940if ac_fn_c_try_link "$LINENO"; then : 7941 eval $cacheid=yes 7942else 7943 eval $cacheid=no 7944fi 7945rm -f core conftest.err conftest.$ac_objext \ 7946 conftest$ac_exeext conftest.$ac_ext 7947fi 7948 7949 7950 CFLAGS="$xorg_testset_save_CFLAGS" 7951 7952 eval supported=\$$cacheid 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7954$as_echo "$supported" >&6; } 7955 if test "$supported" = "yes" ; then 7956 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7957 found="yes" 7958 fi 7959 fi 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975xorg_testset_save_CFLAGS="$CFLAGS" 7976 7977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7982 $as_echo_n "(cached) " >&6 7983else 7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7985/* end confdefs.h. */ 7986int i; 7987_ACEOF 7988if ac_fn_c_try_compile "$LINENO"; then : 7989 xorg_cv_cc_flag_unknown_warning_option=yes 7990else 7991 xorg_cv_cc_flag_unknown_warning_option=no 7992fi 7993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7994fi 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7998 CFLAGS="$xorg_testset_save_CFLAGS" 7999fi 8000 8001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8004 fi 8005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8009 $as_echo_n "(cached) " >&6 8010else 8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8012/* end confdefs.h. */ 8013int i; 8014_ACEOF 8015if ac_fn_c_try_compile "$LINENO"; then : 8016 xorg_cv_cc_flag_unused_command_line_argument=yes 8017else 8018 xorg_cv_cc_flag_unused_command_line_argument=no 8019fi 8020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8021fi 8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8025 CFLAGS="$xorg_testset_save_CFLAGS" 8026fi 8027 8028found="no" 8029 8030 if test $found = "no" ; then 8031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8033 fi 8034 8035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8037 fi 8038 8039 CFLAGS="$CFLAGS -Werror=trigraphs" 8040 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8042$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8043 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8044 if eval \${$cacheid+:} false; then : 8045 $as_echo_n "(cached) " >&6 8046else 8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8048/* end confdefs.h. */ 8049int i; 8050int 8051main () 8052{ 8053 8054 ; 8055 return 0; 8056} 8057_ACEOF 8058if ac_fn_c_try_link "$LINENO"; then : 8059 eval $cacheid=yes 8060else 8061 eval $cacheid=no 8062fi 8063rm -f core conftest.err conftest.$ac_objext \ 8064 conftest$ac_exeext conftest.$ac_ext 8065fi 8066 8067 8068 CFLAGS="$xorg_testset_save_CFLAGS" 8069 8070 eval supported=\$$cacheid 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8072$as_echo "$supported" >&6; } 8073 if test "$supported" = "yes" ; then 8074 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8075 found="yes" 8076 fi 8077 fi 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093xorg_testset_save_CFLAGS="$CFLAGS" 8094 8095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8100 $as_echo_n "(cached) " >&6 8101else 8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8103/* end confdefs.h. */ 8104int i; 8105_ACEOF 8106if ac_fn_c_try_compile "$LINENO"; then : 8107 xorg_cv_cc_flag_unknown_warning_option=yes 8108else 8109 xorg_cv_cc_flag_unknown_warning_option=no 8110fi 8111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8112fi 8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8116 CFLAGS="$xorg_testset_save_CFLAGS" 8117fi 8118 8119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8122 fi 8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8127 $as_echo_n "(cached) " >&6 8128else 8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8130/* end confdefs.h. */ 8131int i; 8132_ACEOF 8133if ac_fn_c_try_compile "$LINENO"; then : 8134 xorg_cv_cc_flag_unused_command_line_argument=yes 8135else 8136 xorg_cv_cc_flag_unused_command_line_argument=no 8137fi 8138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8139fi 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8143 CFLAGS="$xorg_testset_save_CFLAGS" 8144fi 8145 8146found="no" 8147 8148 if test $found = "no" ; then 8149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8151 fi 8152 8153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8155 fi 8156 8157 CFLAGS="$CFLAGS -Werror=array-bounds" 8158 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8160$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8161 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8162 if eval \${$cacheid+:} false; then : 8163 $as_echo_n "(cached) " >&6 8164else 8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8166/* end confdefs.h. */ 8167int i; 8168int 8169main () 8170{ 8171 8172 ; 8173 return 0; 8174} 8175_ACEOF 8176if ac_fn_c_try_link "$LINENO"; then : 8177 eval $cacheid=yes 8178else 8179 eval $cacheid=no 8180fi 8181rm -f core conftest.err conftest.$ac_objext \ 8182 conftest$ac_exeext conftest.$ac_ext 8183fi 8184 8185 8186 CFLAGS="$xorg_testset_save_CFLAGS" 8187 8188 eval supported=\$$cacheid 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8190$as_echo "$supported" >&6; } 8191 if test "$supported" = "yes" ; then 8192 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8193 found="yes" 8194 fi 8195 fi 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211xorg_testset_save_CFLAGS="$CFLAGS" 8212 8213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8218 $as_echo_n "(cached) " >&6 8219else 8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8221/* end confdefs.h. */ 8222int i; 8223_ACEOF 8224if ac_fn_c_try_compile "$LINENO"; then : 8225 xorg_cv_cc_flag_unknown_warning_option=yes 8226else 8227 xorg_cv_cc_flag_unknown_warning_option=no 8228fi 8229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8230fi 8231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8234 CFLAGS="$xorg_testset_save_CFLAGS" 8235fi 8236 8237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8240 fi 8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246else 8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8248/* end confdefs.h. */ 8249int i; 8250_ACEOF 8251if ac_fn_c_try_compile "$LINENO"; then : 8252 xorg_cv_cc_flag_unused_command_line_argument=yes 8253else 8254 xorg_cv_cc_flag_unused_command_line_argument=no 8255fi 8256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8257fi 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8261 CFLAGS="$xorg_testset_save_CFLAGS" 8262fi 8263 8264found="no" 8265 8266 if test $found = "no" ; then 8267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8269 fi 8270 8271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8273 fi 8274 8275 CFLAGS="$CFLAGS -Werror=write-strings" 8276 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8278$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8279 cacheid=xorg_cv_cc_flag__Werror_write_strings 8280 if eval \${$cacheid+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8284/* end confdefs.h. */ 8285int i; 8286int 8287main () 8288{ 8289 8290 ; 8291 return 0; 8292} 8293_ACEOF 8294if ac_fn_c_try_link "$LINENO"; then : 8295 eval $cacheid=yes 8296else 8297 eval $cacheid=no 8298fi 8299rm -f core conftest.err conftest.$ac_objext \ 8300 conftest$ac_exeext conftest.$ac_ext 8301fi 8302 8303 8304 CFLAGS="$xorg_testset_save_CFLAGS" 8305 8306 eval supported=\$$cacheid 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8308$as_echo "$supported" >&6; } 8309 if test "$supported" = "yes" ; then 8310 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8311 found="yes" 8312 fi 8313 fi 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329xorg_testset_save_CFLAGS="$CFLAGS" 8330 8331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8336 $as_echo_n "(cached) " >&6 8337else 8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8339/* end confdefs.h. */ 8340int i; 8341_ACEOF 8342if ac_fn_c_try_compile "$LINENO"; then : 8343 xorg_cv_cc_flag_unknown_warning_option=yes 8344else 8345 xorg_cv_cc_flag_unknown_warning_option=no 8346fi 8347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8348fi 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8352 CFLAGS="$xorg_testset_save_CFLAGS" 8353fi 8354 8355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8358 fi 8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8363 $as_echo_n "(cached) " >&6 8364else 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366/* end confdefs.h. */ 8367int i; 8368_ACEOF 8369if ac_fn_c_try_compile "$LINENO"; then : 8370 xorg_cv_cc_flag_unused_command_line_argument=yes 8371else 8372 xorg_cv_cc_flag_unused_command_line_argument=no 8373fi 8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8375fi 8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8379 CFLAGS="$xorg_testset_save_CFLAGS" 8380fi 8381 8382found="no" 8383 8384 if test $found = "no" ; then 8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 fi 8388 8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8391 fi 8392 8393 CFLAGS="$CFLAGS -Werror=address" 8394 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8396$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8397 cacheid=xorg_cv_cc_flag__Werror_address 8398 if eval \${$cacheid+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400else 8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8402/* end confdefs.h. */ 8403int i; 8404int 8405main () 8406{ 8407 8408 ; 8409 return 0; 8410} 8411_ACEOF 8412if ac_fn_c_try_link "$LINENO"; then : 8413 eval $cacheid=yes 8414else 8415 eval $cacheid=no 8416fi 8417rm -f core conftest.err conftest.$ac_objext \ 8418 conftest$ac_exeext conftest.$ac_ext 8419fi 8420 8421 8422 CFLAGS="$xorg_testset_save_CFLAGS" 8423 8424 eval supported=\$$cacheid 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8426$as_echo "$supported" >&6; } 8427 if test "$supported" = "yes" ; then 8428 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8429 found="yes" 8430 fi 8431 fi 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447xorg_testset_save_CFLAGS="$CFLAGS" 8448 8449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8457/* end confdefs.h. */ 8458int i; 8459_ACEOF 8460if ac_fn_c_try_compile "$LINENO"; then : 8461 xorg_cv_cc_flag_unknown_warning_option=yes 8462else 8463 xorg_cv_cc_flag_unknown_warning_option=no 8464fi 8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8466fi 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8470 CFLAGS="$xorg_testset_save_CFLAGS" 8471fi 8472 8473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8476 fi 8477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8481 $as_echo_n "(cached) " >&6 8482else 8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485int i; 8486_ACEOF 8487if ac_fn_c_try_compile "$LINENO"; then : 8488 xorg_cv_cc_flag_unused_command_line_argument=yes 8489else 8490 xorg_cv_cc_flag_unused_command_line_argument=no 8491fi 8492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8493fi 8494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8497 CFLAGS="$xorg_testset_save_CFLAGS" 8498fi 8499 8500found="no" 8501 8502 if test $found = "no" ; then 8503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8505 fi 8506 8507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8509 fi 8510 8511 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8512 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8514$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8515 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8516 if eval \${$cacheid+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521int i; 8522int 8523main () 8524{ 8525 8526 ; 8527 return 0; 8528} 8529_ACEOF 8530if ac_fn_c_try_link "$LINENO"; then : 8531 eval $cacheid=yes 8532else 8533 eval $cacheid=no 8534fi 8535rm -f core conftest.err conftest.$ac_objext \ 8536 conftest$ac_exeext conftest.$ac_ext 8537fi 8538 8539 8540 CFLAGS="$xorg_testset_save_CFLAGS" 8541 8542 eval supported=\$$cacheid 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8544$as_echo "$supported" >&6; } 8545 if test "$supported" = "yes" ; then 8546 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8547 found="yes" 8548 fi 8549 fi 8550 8551 if test $found = "no" ; then 8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8554 fi 8555 8556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8558 fi 8559 8560 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8561 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8563$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8564 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8565 if eval \${$cacheid+:} false; then : 8566 $as_echo_n "(cached) " >&6 8567else 8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8569/* end confdefs.h. */ 8570int i; 8571int 8572main () 8573{ 8574 8575 ; 8576 return 0; 8577} 8578_ACEOF 8579if ac_fn_c_try_link "$LINENO"; then : 8580 eval $cacheid=yes 8581else 8582 eval $cacheid=no 8583fi 8584rm -f core conftest.err conftest.$ac_objext \ 8585 conftest$ac_exeext conftest.$ac_ext 8586fi 8587 8588 8589 CFLAGS="$xorg_testset_save_CFLAGS" 8590 8591 eval supported=\$$cacheid 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8593$as_echo "$supported" >&6; } 8594 if test "$supported" = "yes" ; then 8595 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8596 found="yes" 8597 fi 8598 fi 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614xorg_testset_save_CFLAGS="$CFLAGS" 8615 8616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8621 $as_echo_n "(cached) " >&6 8622else 8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8624/* end confdefs.h. */ 8625int i; 8626_ACEOF 8627if ac_fn_c_try_compile "$LINENO"; then : 8628 xorg_cv_cc_flag_unknown_warning_option=yes 8629else 8630 xorg_cv_cc_flag_unknown_warning_option=no 8631fi 8632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8633fi 8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8637 CFLAGS="$xorg_testset_save_CFLAGS" 8638fi 8639 8640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8643 fi 8644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8648 $as_echo_n "(cached) " >&6 8649else 8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8651/* end confdefs.h. */ 8652int i; 8653_ACEOF 8654if ac_fn_c_try_compile "$LINENO"; then : 8655 xorg_cv_cc_flag_unused_command_line_argument=yes 8656else 8657 xorg_cv_cc_flag_unused_command_line_argument=no 8658fi 8659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8660fi 8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8664 CFLAGS="$xorg_testset_save_CFLAGS" 8665fi 8666 8667found="no" 8668 8669 if test $found = "no" ; then 8670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8672 fi 8673 8674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8676 fi 8677 8678 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8679 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8681$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8682 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8683 if eval \${$cacheid+:} false; then : 8684 $as_echo_n "(cached) " >&6 8685else 8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8687/* end confdefs.h. */ 8688int i; 8689int 8690main () 8691{ 8692 8693 ; 8694 return 0; 8695} 8696_ACEOF 8697if ac_fn_c_try_link "$LINENO"; then : 8698 eval $cacheid=yes 8699else 8700 eval $cacheid=no 8701fi 8702rm -f core conftest.err conftest.$ac_objext \ 8703 conftest$ac_exeext conftest.$ac_ext 8704fi 8705 8706 8707 CFLAGS="$xorg_testset_save_CFLAGS" 8708 8709 eval supported=\$$cacheid 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8711$as_echo "$supported" >&6; } 8712 if test "$supported" = "yes" ; then 8713 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8714 found="yes" 8715 fi 8716 fi 8717 8718 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8719else 8720{ $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 8721$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;} 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735xorg_testset_save_CFLAGS="$CFLAGS" 8736 8737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8742 $as_echo_n "(cached) " >&6 8743else 8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8745/* end confdefs.h. */ 8746int i; 8747_ACEOF 8748if ac_fn_c_try_compile "$LINENO"; then : 8749 xorg_cv_cc_flag_unknown_warning_option=yes 8750else 8751 xorg_cv_cc_flag_unknown_warning_option=no 8752fi 8753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8754fi 8755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8758 CFLAGS="$xorg_testset_save_CFLAGS" 8759fi 8760 8761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8764 fi 8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8769 $as_echo_n "(cached) " >&6 8770else 8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772/* end confdefs.h. */ 8773int i; 8774_ACEOF 8775if ac_fn_c_try_compile "$LINENO"; then : 8776 xorg_cv_cc_flag_unused_command_line_argument=yes 8777else 8778 xorg_cv_cc_flag_unused_command_line_argument=no 8779fi 8780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8781fi 8782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8785 CFLAGS="$xorg_testset_save_CFLAGS" 8786fi 8787 8788found="no" 8789 8790 if test $found = "no" ; then 8791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8793 fi 8794 8795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8797 fi 8798 8799 CFLAGS="$CFLAGS -Wimplicit" 8800 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8802$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8803 cacheid=xorg_cv_cc_flag__Wimplicit 8804 if eval \${$cacheid+:} false; then : 8805 $as_echo_n "(cached) " >&6 8806else 8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8808/* end confdefs.h. */ 8809int i; 8810int 8811main () 8812{ 8813 8814 ; 8815 return 0; 8816} 8817_ACEOF 8818if ac_fn_c_try_link "$LINENO"; then : 8819 eval $cacheid=yes 8820else 8821 eval $cacheid=no 8822fi 8823rm -f core conftest.err conftest.$ac_objext \ 8824 conftest$ac_exeext conftest.$ac_ext 8825fi 8826 8827 8828 CFLAGS="$xorg_testset_save_CFLAGS" 8829 8830 eval supported=\$$cacheid 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8832$as_echo "$supported" >&6; } 8833 if test "$supported" = "yes" ; then 8834 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8835 found="yes" 8836 fi 8837 fi 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853xorg_testset_save_CFLAGS="$CFLAGS" 8854 8855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8860 $as_echo_n "(cached) " >&6 8861else 8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8863/* end confdefs.h. */ 8864int i; 8865_ACEOF 8866if ac_fn_c_try_compile "$LINENO"; then : 8867 xorg_cv_cc_flag_unknown_warning_option=yes 8868else 8869 xorg_cv_cc_flag_unknown_warning_option=no 8870fi 8871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8872fi 8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8876 CFLAGS="$xorg_testset_save_CFLAGS" 8877fi 8878 8879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8882 fi 8883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8887 $as_echo_n "(cached) " >&6 8888else 8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8890/* end confdefs.h. */ 8891int i; 8892_ACEOF 8893if ac_fn_c_try_compile "$LINENO"; then : 8894 xorg_cv_cc_flag_unused_command_line_argument=yes 8895else 8896 xorg_cv_cc_flag_unused_command_line_argument=no 8897fi 8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8899fi 8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8903 CFLAGS="$xorg_testset_save_CFLAGS" 8904fi 8905 8906found="no" 8907 8908 if test $found = "no" ; then 8909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8911 fi 8912 8913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8915 fi 8916 8917 CFLAGS="$CFLAGS -Wnonnull" 8918 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8920$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8921 cacheid=xorg_cv_cc_flag__Wnonnull 8922 if eval \${$cacheid+:} false; then : 8923 $as_echo_n "(cached) " >&6 8924else 8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8926/* end confdefs.h. */ 8927int i; 8928int 8929main () 8930{ 8931 8932 ; 8933 return 0; 8934} 8935_ACEOF 8936if ac_fn_c_try_link "$LINENO"; then : 8937 eval $cacheid=yes 8938else 8939 eval $cacheid=no 8940fi 8941rm -f core conftest.err conftest.$ac_objext \ 8942 conftest$ac_exeext conftest.$ac_ext 8943fi 8944 8945 8946 CFLAGS="$xorg_testset_save_CFLAGS" 8947 8948 eval supported=\$$cacheid 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8950$as_echo "$supported" >&6; } 8951 if test "$supported" = "yes" ; then 8952 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8953 found="yes" 8954 fi 8955 fi 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971xorg_testset_save_CFLAGS="$CFLAGS" 8972 8973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8978 $as_echo_n "(cached) " >&6 8979else 8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8981/* end confdefs.h. */ 8982int i; 8983_ACEOF 8984if ac_fn_c_try_compile "$LINENO"; then : 8985 xorg_cv_cc_flag_unknown_warning_option=yes 8986else 8987 xorg_cv_cc_flag_unknown_warning_option=no 8988fi 8989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8990fi 8991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8994 CFLAGS="$xorg_testset_save_CFLAGS" 8995fi 8996 8997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9000 fi 9001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9005 $as_echo_n "(cached) " >&6 9006else 9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9008/* end confdefs.h. */ 9009int i; 9010_ACEOF 9011if ac_fn_c_try_compile "$LINENO"; then : 9012 xorg_cv_cc_flag_unused_command_line_argument=yes 9013else 9014 xorg_cv_cc_flag_unused_command_line_argument=no 9015fi 9016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9017fi 9018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9021 CFLAGS="$xorg_testset_save_CFLAGS" 9022fi 9023 9024found="no" 9025 9026 if test $found = "no" ; then 9027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9029 fi 9030 9031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9033 fi 9034 9035 CFLAGS="$CFLAGS -Winit-self" 9036 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9038$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9039 cacheid=xorg_cv_cc_flag__Winit_self 9040 if eval \${$cacheid+:} false; then : 9041 $as_echo_n "(cached) " >&6 9042else 9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9044/* end confdefs.h. */ 9045int i; 9046int 9047main () 9048{ 9049 9050 ; 9051 return 0; 9052} 9053_ACEOF 9054if ac_fn_c_try_link "$LINENO"; then : 9055 eval $cacheid=yes 9056else 9057 eval $cacheid=no 9058fi 9059rm -f core conftest.err conftest.$ac_objext \ 9060 conftest$ac_exeext conftest.$ac_ext 9061fi 9062 9063 9064 CFLAGS="$xorg_testset_save_CFLAGS" 9065 9066 eval supported=\$$cacheid 9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9068$as_echo "$supported" >&6; } 9069 if test "$supported" = "yes" ; then 9070 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9071 found="yes" 9072 fi 9073 fi 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089xorg_testset_save_CFLAGS="$CFLAGS" 9090 9091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9096 $as_echo_n "(cached) " >&6 9097else 9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9099/* end confdefs.h. */ 9100int i; 9101_ACEOF 9102if ac_fn_c_try_compile "$LINENO"; then : 9103 xorg_cv_cc_flag_unknown_warning_option=yes 9104else 9105 xorg_cv_cc_flag_unknown_warning_option=no 9106fi 9107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9108fi 9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9112 CFLAGS="$xorg_testset_save_CFLAGS" 9113fi 9114 9115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9118 fi 9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9123 $as_echo_n "(cached) " >&6 9124else 9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9126/* end confdefs.h. */ 9127int i; 9128_ACEOF 9129if ac_fn_c_try_compile "$LINENO"; then : 9130 xorg_cv_cc_flag_unused_command_line_argument=yes 9131else 9132 xorg_cv_cc_flag_unused_command_line_argument=no 9133fi 9134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9135fi 9136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9139 CFLAGS="$xorg_testset_save_CFLAGS" 9140fi 9141 9142found="no" 9143 9144 if test $found = "no" ; then 9145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9147 fi 9148 9149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9151 fi 9152 9153 CFLAGS="$CFLAGS -Wmain" 9154 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9156$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9157 cacheid=xorg_cv_cc_flag__Wmain 9158 if eval \${$cacheid+:} false; then : 9159 $as_echo_n "(cached) " >&6 9160else 9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9162/* end confdefs.h. */ 9163int i; 9164int 9165main () 9166{ 9167 9168 ; 9169 return 0; 9170} 9171_ACEOF 9172if ac_fn_c_try_link "$LINENO"; then : 9173 eval $cacheid=yes 9174else 9175 eval $cacheid=no 9176fi 9177rm -f core conftest.err conftest.$ac_objext \ 9178 conftest$ac_exeext conftest.$ac_ext 9179fi 9180 9181 9182 CFLAGS="$xorg_testset_save_CFLAGS" 9183 9184 eval supported=\$$cacheid 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9186$as_echo "$supported" >&6; } 9187 if test "$supported" = "yes" ; then 9188 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9189 found="yes" 9190 fi 9191 fi 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207xorg_testset_save_CFLAGS="$CFLAGS" 9208 9209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9214 $as_echo_n "(cached) " >&6 9215else 9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9217/* end confdefs.h. */ 9218int i; 9219_ACEOF 9220if ac_fn_c_try_compile "$LINENO"; then : 9221 xorg_cv_cc_flag_unknown_warning_option=yes 9222else 9223 xorg_cv_cc_flag_unknown_warning_option=no 9224fi 9225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9226fi 9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9230 CFLAGS="$xorg_testset_save_CFLAGS" 9231fi 9232 9233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9236 fi 9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9241 $as_echo_n "(cached) " >&6 9242else 9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9244/* end confdefs.h. */ 9245int i; 9246_ACEOF 9247if ac_fn_c_try_compile "$LINENO"; then : 9248 xorg_cv_cc_flag_unused_command_line_argument=yes 9249else 9250 xorg_cv_cc_flag_unused_command_line_argument=no 9251fi 9252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9253fi 9254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9257 CFLAGS="$xorg_testset_save_CFLAGS" 9258fi 9259 9260found="no" 9261 9262 if test $found = "no" ; then 9263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9265 fi 9266 9267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9269 fi 9270 9271 CFLAGS="$CFLAGS -Wmissing-braces" 9272 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9274$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9275 cacheid=xorg_cv_cc_flag__Wmissing_braces 9276 if eval \${$cacheid+:} false; then : 9277 $as_echo_n "(cached) " >&6 9278else 9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9280/* end confdefs.h. */ 9281int i; 9282int 9283main () 9284{ 9285 9286 ; 9287 return 0; 9288} 9289_ACEOF 9290if ac_fn_c_try_link "$LINENO"; then : 9291 eval $cacheid=yes 9292else 9293 eval $cacheid=no 9294fi 9295rm -f core conftest.err conftest.$ac_objext \ 9296 conftest$ac_exeext conftest.$ac_ext 9297fi 9298 9299 9300 CFLAGS="$xorg_testset_save_CFLAGS" 9301 9302 eval supported=\$$cacheid 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9304$as_echo "$supported" >&6; } 9305 if test "$supported" = "yes" ; then 9306 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9307 found="yes" 9308 fi 9309 fi 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325xorg_testset_save_CFLAGS="$CFLAGS" 9326 9327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9332 $as_echo_n "(cached) " >&6 9333else 9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9335/* end confdefs.h. */ 9336int i; 9337_ACEOF 9338if ac_fn_c_try_compile "$LINENO"; then : 9339 xorg_cv_cc_flag_unknown_warning_option=yes 9340else 9341 xorg_cv_cc_flag_unknown_warning_option=no 9342fi 9343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9344fi 9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9348 CFLAGS="$xorg_testset_save_CFLAGS" 9349fi 9350 9351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9354 fi 9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9359 $as_echo_n "(cached) " >&6 9360else 9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9362/* end confdefs.h. */ 9363int i; 9364_ACEOF 9365if ac_fn_c_try_compile "$LINENO"; then : 9366 xorg_cv_cc_flag_unused_command_line_argument=yes 9367else 9368 xorg_cv_cc_flag_unused_command_line_argument=no 9369fi 9370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9371fi 9372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9375 CFLAGS="$xorg_testset_save_CFLAGS" 9376fi 9377 9378found="no" 9379 9380 if test $found = "no" ; then 9381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9383 fi 9384 9385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9387 fi 9388 9389 CFLAGS="$CFLAGS -Wsequence-point" 9390 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9392$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9393 cacheid=xorg_cv_cc_flag__Wsequence_point 9394 if eval \${$cacheid+:} false; then : 9395 $as_echo_n "(cached) " >&6 9396else 9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9398/* end confdefs.h. */ 9399int i; 9400int 9401main () 9402{ 9403 9404 ; 9405 return 0; 9406} 9407_ACEOF 9408if ac_fn_c_try_link "$LINENO"; then : 9409 eval $cacheid=yes 9410else 9411 eval $cacheid=no 9412fi 9413rm -f core conftest.err conftest.$ac_objext \ 9414 conftest$ac_exeext conftest.$ac_ext 9415fi 9416 9417 9418 CFLAGS="$xorg_testset_save_CFLAGS" 9419 9420 eval supported=\$$cacheid 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9422$as_echo "$supported" >&6; } 9423 if test "$supported" = "yes" ; then 9424 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9425 found="yes" 9426 fi 9427 fi 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443xorg_testset_save_CFLAGS="$CFLAGS" 9444 9445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9449if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9450 $as_echo_n "(cached) " >&6 9451else 9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9453/* end confdefs.h. */ 9454int i; 9455_ACEOF 9456if ac_fn_c_try_compile "$LINENO"; then : 9457 xorg_cv_cc_flag_unknown_warning_option=yes 9458else 9459 xorg_cv_cc_flag_unknown_warning_option=no 9460fi 9461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9462fi 9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9464$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9466 CFLAGS="$xorg_testset_save_CFLAGS" 9467fi 9468 9469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9472 fi 9473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9475$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9476if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480/* end confdefs.h. */ 9481int i; 9482_ACEOF 9483if ac_fn_c_try_compile "$LINENO"; then : 9484 xorg_cv_cc_flag_unused_command_line_argument=yes 9485else 9486 xorg_cv_cc_flag_unused_command_line_argument=no 9487fi 9488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9489fi 9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9491$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9493 CFLAGS="$xorg_testset_save_CFLAGS" 9494fi 9495 9496found="no" 9497 9498 if test $found = "no" ; then 9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9501 fi 9502 9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9505 fi 9506 9507 CFLAGS="$CFLAGS -Wreturn-type" 9508 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9510$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9511 cacheid=xorg_cv_cc_flag__Wreturn_type 9512 if eval \${$cacheid+:} false; then : 9513 $as_echo_n "(cached) " >&6 9514else 9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9516/* end confdefs.h. */ 9517int i; 9518int 9519main () 9520{ 9521 9522 ; 9523 return 0; 9524} 9525_ACEOF 9526if ac_fn_c_try_link "$LINENO"; then : 9527 eval $cacheid=yes 9528else 9529 eval $cacheid=no 9530fi 9531rm -f core conftest.err conftest.$ac_objext \ 9532 conftest$ac_exeext conftest.$ac_ext 9533fi 9534 9535 9536 CFLAGS="$xorg_testset_save_CFLAGS" 9537 9538 eval supported=\$$cacheid 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9540$as_echo "$supported" >&6; } 9541 if test "$supported" = "yes" ; then 9542 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9543 found="yes" 9544 fi 9545 fi 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561xorg_testset_save_CFLAGS="$CFLAGS" 9562 9563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9568 $as_echo_n "(cached) " >&6 9569else 9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9571/* end confdefs.h. */ 9572int i; 9573_ACEOF 9574if ac_fn_c_try_compile "$LINENO"; then : 9575 xorg_cv_cc_flag_unknown_warning_option=yes 9576else 9577 xorg_cv_cc_flag_unknown_warning_option=no 9578fi 9579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9580fi 9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9584 CFLAGS="$xorg_testset_save_CFLAGS" 9585fi 9586 9587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9590 fi 9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9595 $as_echo_n "(cached) " >&6 9596else 9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9598/* end confdefs.h. */ 9599int i; 9600_ACEOF 9601if ac_fn_c_try_compile "$LINENO"; then : 9602 xorg_cv_cc_flag_unused_command_line_argument=yes 9603else 9604 xorg_cv_cc_flag_unused_command_line_argument=no 9605fi 9606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9607fi 9608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9611 CFLAGS="$xorg_testset_save_CFLAGS" 9612fi 9613 9614found="no" 9615 9616 if test $found = "no" ; then 9617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9619 fi 9620 9621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9623 fi 9624 9625 CFLAGS="$CFLAGS -Wtrigraphs" 9626 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9628$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9629 cacheid=xorg_cv_cc_flag__Wtrigraphs 9630 if eval \${$cacheid+:} false; then : 9631 $as_echo_n "(cached) " >&6 9632else 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635int i; 9636int 9637main () 9638{ 9639 9640 ; 9641 return 0; 9642} 9643_ACEOF 9644if ac_fn_c_try_link "$LINENO"; then : 9645 eval $cacheid=yes 9646else 9647 eval $cacheid=no 9648fi 9649rm -f core conftest.err conftest.$ac_objext \ 9650 conftest$ac_exeext conftest.$ac_ext 9651fi 9652 9653 9654 CFLAGS="$xorg_testset_save_CFLAGS" 9655 9656 eval supported=\$$cacheid 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9658$as_echo "$supported" >&6; } 9659 if test "$supported" = "yes" ; then 9660 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9661 found="yes" 9662 fi 9663 fi 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679xorg_testset_save_CFLAGS="$CFLAGS" 9680 9681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9686 $as_echo_n "(cached) " >&6 9687else 9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9689/* end confdefs.h. */ 9690int i; 9691_ACEOF 9692if ac_fn_c_try_compile "$LINENO"; then : 9693 xorg_cv_cc_flag_unknown_warning_option=yes 9694else 9695 xorg_cv_cc_flag_unknown_warning_option=no 9696fi 9697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9698fi 9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9702 CFLAGS="$xorg_testset_save_CFLAGS" 9703fi 9704 9705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9708 fi 9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9713 $as_echo_n "(cached) " >&6 9714else 9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9716/* end confdefs.h. */ 9717int i; 9718_ACEOF 9719if ac_fn_c_try_compile "$LINENO"; then : 9720 xorg_cv_cc_flag_unused_command_line_argument=yes 9721else 9722 xorg_cv_cc_flag_unused_command_line_argument=no 9723fi 9724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9725fi 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9729 CFLAGS="$xorg_testset_save_CFLAGS" 9730fi 9731 9732found="no" 9733 9734 if test $found = "no" ; then 9735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9737 fi 9738 9739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9741 fi 9742 9743 CFLAGS="$CFLAGS -Warray-bounds" 9744 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9746$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9747 cacheid=xorg_cv_cc_flag__Warray_bounds 9748 if eval \${$cacheid+:} false; then : 9749 $as_echo_n "(cached) " >&6 9750else 9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9752/* end confdefs.h. */ 9753int i; 9754int 9755main () 9756{ 9757 9758 ; 9759 return 0; 9760} 9761_ACEOF 9762if ac_fn_c_try_link "$LINENO"; then : 9763 eval $cacheid=yes 9764else 9765 eval $cacheid=no 9766fi 9767rm -f core conftest.err conftest.$ac_objext \ 9768 conftest$ac_exeext conftest.$ac_ext 9769fi 9770 9771 9772 CFLAGS="$xorg_testset_save_CFLAGS" 9773 9774 eval supported=\$$cacheid 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9776$as_echo "$supported" >&6; } 9777 if test "$supported" = "yes" ; then 9778 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9779 found="yes" 9780 fi 9781 fi 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797xorg_testset_save_CFLAGS="$CFLAGS" 9798 9799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9804 $as_echo_n "(cached) " >&6 9805else 9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9807/* end confdefs.h. */ 9808int i; 9809_ACEOF 9810if ac_fn_c_try_compile "$LINENO"; then : 9811 xorg_cv_cc_flag_unknown_warning_option=yes 9812else 9813 xorg_cv_cc_flag_unknown_warning_option=no 9814fi 9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9816fi 9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9820 CFLAGS="$xorg_testset_save_CFLAGS" 9821fi 9822 9823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9826 fi 9827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9831 $as_echo_n "(cached) " >&6 9832else 9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834/* end confdefs.h. */ 9835int i; 9836_ACEOF 9837if ac_fn_c_try_compile "$LINENO"; then : 9838 xorg_cv_cc_flag_unused_command_line_argument=yes 9839else 9840 xorg_cv_cc_flag_unused_command_line_argument=no 9841fi 9842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9843fi 9844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9847 CFLAGS="$xorg_testset_save_CFLAGS" 9848fi 9849 9850found="no" 9851 9852 if test $found = "no" ; then 9853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9855 fi 9856 9857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9859 fi 9860 9861 CFLAGS="$CFLAGS -Wwrite-strings" 9862 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9864$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9865 cacheid=xorg_cv_cc_flag__Wwrite_strings 9866 if eval \${$cacheid+:} false; then : 9867 $as_echo_n "(cached) " >&6 9868else 9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9870/* end confdefs.h. */ 9871int i; 9872int 9873main () 9874{ 9875 9876 ; 9877 return 0; 9878} 9879_ACEOF 9880if ac_fn_c_try_link "$LINENO"; then : 9881 eval $cacheid=yes 9882else 9883 eval $cacheid=no 9884fi 9885rm -f core conftest.err conftest.$ac_objext \ 9886 conftest$ac_exeext conftest.$ac_ext 9887fi 9888 9889 9890 CFLAGS="$xorg_testset_save_CFLAGS" 9891 9892 eval supported=\$$cacheid 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9894$as_echo "$supported" >&6; } 9895 if test "$supported" = "yes" ; then 9896 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9897 found="yes" 9898 fi 9899 fi 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915xorg_testset_save_CFLAGS="$CFLAGS" 9916 9917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9922 $as_echo_n "(cached) " >&6 9923else 9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9925/* end confdefs.h. */ 9926int i; 9927_ACEOF 9928if ac_fn_c_try_compile "$LINENO"; then : 9929 xorg_cv_cc_flag_unknown_warning_option=yes 9930else 9931 xorg_cv_cc_flag_unknown_warning_option=no 9932fi 9933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9934fi 9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9938 CFLAGS="$xorg_testset_save_CFLAGS" 9939fi 9940 9941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9944 fi 9945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9949 $as_echo_n "(cached) " >&6 9950else 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953int i; 9954_ACEOF 9955if ac_fn_c_try_compile "$LINENO"; then : 9956 xorg_cv_cc_flag_unused_command_line_argument=yes 9957else 9958 xorg_cv_cc_flag_unused_command_line_argument=no 9959fi 9960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9961fi 9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9965 CFLAGS="$xorg_testset_save_CFLAGS" 9966fi 9967 9968found="no" 9969 9970 if test $found = "no" ; then 9971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9973 fi 9974 9975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9977 fi 9978 9979 CFLAGS="$CFLAGS -Waddress" 9980 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9982$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9983 cacheid=xorg_cv_cc_flag__Waddress 9984 if eval \${$cacheid+:} false; then : 9985 $as_echo_n "(cached) " >&6 9986else 9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9988/* end confdefs.h. */ 9989int i; 9990int 9991main () 9992{ 9993 9994 ; 9995 return 0; 9996} 9997_ACEOF 9998if ac_fn_c_try_link "$LINENO"; then : 9999 eval $cacheid=yes 10000else 10001 eval $cacheid=no 10002fi 10003rm -f core conftest.err conftest.$ac_objext \ 10004 conftest$ac_exeext conftest.$ac_ext 10005fi 10006 10007 10008 CFLAGS="$xorg_testset_save_CFLAGS" 10009 10010 eval supported=\$$cacheid 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10012$as_echo "$supported" >&6; } 10013 if test "$supported" = "yes" ; then 10014 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10015 found="yes" 10016 fi 10017 fi 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033xorg_testset_save_CFLAGS="$CFLAGS" 10034 10035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10040 $as_echo_n "(cached) " >&6 10041else 10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10043/* end confdefs.h. */ 10044int i; 10045_ACEOF 10046if ac_fn_c_try_compile "$LINENO"; then : 10047 xorg_cv_cc_flag_unknown_warning_option=yes 10048else 10049 xorg_cv_cc_flag_unknown_warning_option=no 10050fi 10051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10052fi 10053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10056 CFLAGS="$xorg_testset_save_CFLAGS" 10057fi 10058 10059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10062 fi 10063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10067 $as_echo_n "(cached) " >&6 10068else 10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10070/* end confdefs.h. */ 10071int i; 10072_ACEOF 10073if ac_fn_c_try_compile "$LINENO"; then : 10074 xorg_cv_cc_flag_unused_command_line_argument=yes 10075else 10076 xorg_cv_cc_flag_unused_command_line_argument=no 10077fi 10078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10079fi 10080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10083 CFLAGS="$xorg_testset_save_CFLAGS" 10084fi 10085 10086found="no" 10087 10088 if test $found = "no" ; then 10089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10091 fi 10092 10093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10095 fi 10096 10097 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10098 10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10100$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10101 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10102 if eval \${$cacheid+:} false; then : 10103 $as_echo_n "(cached) " >&6 10104else 10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10106/* end confdefs.h. */ 10107int i; 10108int 10109main () 10110{ 10111 10112 ; 10113 return 0; 10114} 10115_ACEOF 10116if ac_fn_c_try_link "$LINENO"; then : 10117 eval $cacheid=yes 10118else 10119 eval $cacheid=no 10120fi 10121rm -f core conftest.err conftest.$ac_objext \ 10122 conftest$ac_exeext conftest.$ac_ext 10123fi 10124 10125 10126 CFLAGS="$xorg_testset_save_CFLAGS" 10127 10128 eval supported=\$$cacheid 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10130$as_echo "$supported" >&6; } 10131 if test "$supported" = "yes" ; then 10132 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10133 found="yes" 10134 fi 10135 fi 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151xorg_testset_save_CFLAGS="$CFLAGS" 10152 10153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10158 $as_echo_n "(cached) " >&6 10159else 10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10161/* end confdefs.h. */ 10162int i; 10163_ACEOF 10164if ac_fn_c_try_compile "$LINENO"; then : 10165 xorg_cv_cc_flag_unknown_warning_option=yes 10166else 10167 xorg_cv_cc_flag_unknown_warning_option=no 10168fi 10169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10170fi 10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10174 CFLAGS="$xorg_testset_save_CFLAGS" 10175fi 10176 10177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10180 fi 10181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10185 $as_echo_n "(cached) " >&6 10186else 10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10188/* end confdefs.h. */ 10189int i; 10190_ACEOF 10191if ac_fn_c_try_compile "$LINENO"; then : 10192 xorg_cv_cc_flag_unused_command_line_argument=yes 10193else 10194 xorg_cv_cc_flag_unused_command_line_argument=no 10195fi 10196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10197fi 10198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10201 CFLAGS="$xorg_testset_save_CFLAGS" 10202fi 10203 10204found="no" 10205 10206 if test $found = "no" ; then 10207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10209 fi 10210 10211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10213 fi 10214 10215 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10216 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10218$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10219 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10220 if eval \${$cacheid+:} false; then : 10221 $as_echo_n "(cached) " >&6 10222else 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225int i; 10226int 10227main () 10228{ 10229 10230 ; 10231 return 0; 10232} 10233_ACEOF 10234if ac_fn_c_try_link "$LINENO"; then : 10235 eval $cacheid=yes 10236else 10237 eval $cacheid=no 10238fi 10239rm -f core conftest.err conftest.$ac_objext \ 10240 conftest$ac_exeext conftest.$ac_ext 10241fi 10242 10243 10244 CFLAGS="$xorg_testset_save_CFLAGS" 10245 10246 eval supported=\$$cacheid 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10248$as_echo "$supported" >&6; } 10249 if test "$supported" = "yes" ; then 10250 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10251 found="yes" 10252 fi 10253 fi 10254 10255 10256fi 10257 10258 10259 10260 10261 10262 10263 10264 CWARNFLAGS="$BASE_CFLAGS" 10265 if test "x$GCC" = xyes ; then 10266 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10267 fi 10268 10269 10270 10271 10272 10273 10274 10275 10276# Check whether --enable-strict-compilation was given. 10277if test "${enable_strict_compilation+set}" = set; then : 10278 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10279else 10280 STRICT_COMPILE=no 10281fi 10282 10283 10284 10285 10286 10287 10288STRICT_CFLAGS="" 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302xorg_testset_save_CFLAGS="$CFLAGS" 10303 10304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10309 $as_echo_n "(cached) " >&6 10310else 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10312/* end confdefs.h. */ 10313int i; 10314_ACEOF 10315if ac_fn_c_try_compile "$LINENO"; then : 10316 xorg_cv_cc_flag_unknown_warning_option=yes 10317else 10318 xorg_cv_cc_flag_unknown_warning_option=no 10319fi 10320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10321fi 10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10325 CFLAGS="$xorg_testset_save_CFLAGS" 10326fi 10327 10328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10331 fi 10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10336 $as_echo_n "(cached) " >&6 10337else 10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10339/* end confdefs.h. */ 10340int i; 10341_ACEOF 10342if ac_fn_c_try_compile "$LINENO"; then : 10343 xorg_cv_cc_flag_unused_command_line_argument=yes 10344else 10345 xorg_cv_cc_flag_unused_command_line_argument=no 10346fi 10347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10348fi 10349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10352 CFLAGS="$xorg_testset_save_CFLAGS" 10353fi 10354 10355found="no" 10356 10357 if test $found = "no" ; then 10358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10360 fi 10361 10362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10364 fi 10365 10366 CFLAGS="$CFLAGS -pedantic" 10367 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10369$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10370 cacheid=xorg_cv_cc_flag__pedantic 10371 if eval \${$cacheid+:} false; then : 10372 $as_echo_n "(cached) " >&6 10373else 10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10375/* end confdefs.h. */ 10376int i; 10377int 10378main () 10379{ 10380 10381 ; 10382 return 0; 10383} 10384_ACEOF 10385if ac_fn_c_try_link "$LINENO"; then : 10386 eval $cacheid=yes 10387else 10388 eval $cacheid=no 10389fi 10390rm -f core conftest.err conftest.$ac_objext \ 10391 conftest$ac_exeext conftest.$ac_ext 10392fi 10393 10394 10395 CFLAGS="$xorg_testset_save_CFLAGS" 10396 10397 eval supported=\$$cacheid 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10399$as_echo "$supported" >&6; } 10400 if test "$supported" = "yes" ; then 10401 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10402 found="yes" 10403 fi 10404 fi 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420xorg_testset_save_CFLAGS="$CFLAGS" 10421 10422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10425$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10426if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10427 $as_echo_n "(cached) " >&6 10428else 10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10430/* end confdefs.h. */ 10431int i; 10432_ACEOF 10433if ac_fn_c_try_compile "$LINENO"; then : 10434 xorg_cv_cc_flag_unknown_warning_option=yes 10435else 10436 xorg_cv_cc_flag_unknown_warning_option=no 10437fi 10438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10439fi 10440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10441$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10443 CFLAGS="$xorg_testset_save_CFLAGS" 10444fi 10445 10446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10449 fi 10450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10452$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10453if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10454 $as_echo_n "(cached) " >&6 10455else 10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10457/* end confdefs.h. */ 10458int i; 10459_ACEOF 10460if ac_fn_c_try_compile "$LINENO"; then : 10461 xorg_cv_cc_flag_unused_command_line_argument=yes 10462else 10463 xorg_cv_cc_flag_unused_command_line_argument=no 10464fi 10465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10466fi 10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10468$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10470 CFLAGS="$xorg_testset_save_CFLAGS" 10471fi 10472 10473found="no" 10474 10475 if test $found = "no" ; then 10476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10478 fi 10479 10480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10482 fi 10483 10484 CFLAGS="$CFLAGS -Werror" 10485 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10487$as_echo_n "checking if $CC supports -Werror... " >&6; } 10488 cacheid=xorg_cv_cc_flag__Werror 10489 if eval \${$cacheid+:} false; then : 10490 $as_echo_n "(cached) " >&6 10491else 10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10493/* end confdefs.h. */ 10494int i; 10495int 10496main () 10497{ 10498 10499 ; 10500 return 0; 10501} 10502_ACEOF 10503if ac_fn_c_try_link "$LINENO"; then : 10504 eval $cacheid=yes 10505else 10506 eval $cacheid=no 10507fi 10508rm -f core conftest.err conftest.$ac_objext \ 10509 conftest$ac_exeext conftest.$ac_ext 10510fi 10511 10512 10513 CFLAGS="$xorg_testset_save_CFLAGS" 10514 10515 eval supported=\$$cacheid 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10517$as_echo "$supported" >&6; } 10518 if test "$supported" = "yes" ; then 10519 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10520 found="yes" 10521 fi 10522 fi 10523 10524 if test $found = "no" ; then 10525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10527 fi 10528 10529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10531 fi 10532 10533 CFLAGS="$CFLAGS -errwarn" 10534 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10536$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10537 cacheid=xorg_cv_cc_flag__errwarn 10538 if eval \${$cacheid+:} false; then : 10539 $as_echo_n "(cached) " >&6 10540else 10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10542/* end confdefs.h. */ 10543int i; 10544int 10545main () 10546{ 10547 10548 ; 10549 return 0; 10550} 10551_ACEOF 10552if ac_fn_c_try_link "$LINENO"; then : 10553 eval $cacheid=yes 10554else 10555 eval $cacheid=no 10556fi 10557rm -f core conftest.err conftest.$ac_objext \ 10558 conftest$ac_exeext conftest.$ac_ext 10559fi 10560 10561 10562 CFLAGS="$xorg_testset_save_CFLAGS" 10563 10564 eval supported=\$$cacheid 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10566$as_echo "$supported" >&6; } 10567 if test "$supported" = "yes" ; then 10568 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10569 found="yes" 10570 fi 10571 fi 10572 10573 10574 10575# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10576# activate it with -Werror, so we add it here explicitly. 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590xorg_testset_save_CFLAGS="$CFLAGS" 10591 10592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10595$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10596if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10597 $as_echo_n "(cached) " >&6 10598else 10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10600/* end confdefs.h. */ 10601int i; 10602_ACEOF 10603if ac_fn_c_try_compile "$LINENO"; then : 10604 xorg_cv_cc_flag_unknown_warning_option=yes 10605else 10606 xorg_cv_cc_flag_unknown_warning_option=no 10607fi 10608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10609fi 10610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10611$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10613 CFLAGS="$xorg_testset_save_CFLAGS" 10614fi 10615 10616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10619 fi 10620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10622$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10623if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10624 $as_echo_n "(cached) " >&6 10625else 10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10627/* end confdefs.h. */ 10628int i; 10629_ACEOF 10630if ac_fn_c_try_compile "$LINENO"; then : 10631 xorg_cv_cc_flag_unused_command_line_argument=yes 10632else 10633 xorg_cv_cc_flag_unused_command_line_argument=no 10634fi 10635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10636fi 10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10638$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10640 CFLAGS="$xorg_testset_save_CFLAGS" 10641fi 10642 10643found="no" 10644 10645 if test $found = "no" ; then 10646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10648 fi 10649 10650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10652 fi 10653 10654 CFLAGS="$CFLAGS -Werror=attributes" 10655 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10657$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10658 cacheid=xorg_cv_cc_flag__Werror_attributes 10659 if eval \${$cacheid+:} false; then : 10660 $as_echo_n "(cached) " >&6 10661else 10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663/* end confdefs.h. */ 10664int i; 10665int 10666main () 10667{ 10668 10669 ; 10670 return 0; 10671} 10672_ACEOF 10673if ac_fn_c_try_link "$LINENO"; then : 10674 eval $cacheid=yes 10675else 10676 eval $cacheid=no 10677fi 10678rm -f core conftest.err conftest.$ac_objext \ 10679 conftest$ac_exeext conftest.$ac_ext 10680fi 10681 10682 10683 CFLAGS="$xorg_testset_save_CFLAGS" 10684 10685 eval supported=\$$cacheid 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10687$as_echo "$supported" >&6; } 10688 if test "$supported" = "yes" ; then 10689 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10690 found="yes" 10691 fi 10692 fi 10693 10694 10695 10696if test "x$STRICT_COMPILE" = "xyes"; then 10697 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10698 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10699fi 10700 10701 10702 10703 10704 10705 10706cat >>confdefs.h <<_ACEOF 10707#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10708_ACEOF 10709 10710 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10711 if test "x$PVM" = "x"; then 10712 PVM="0" 10713 fi 10714 10715cat >>confdefs.h <<_ACEOF 10716#define PACKAGE_VERSION_MINOR $PVM 10717_ACEOF 10718 10719 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10720 if test "x$PVP" = "x"; then 10721 PVP="0" 10722 fi 10723 10724cat >>confdefs.h <<_ACEOF 10725#define PACKAGE_VERSION_PATCHLEVEL $PVP 10726_ACEOF 10727 10728 10729 10730CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10731mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10732|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10733echo 'git directory not found: installing possibly empty changelog.' >&2)" 10734 10735 10736 10737 10738macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10739INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10740mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10741|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10742echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10743 10744 10745 10746 10747 10748 10749if test x$APP_MAN_SUFFIX = x ; then 10750 APP_MAN_SUFFIX=1 10751fi 10752if test x$APP_MAN_DIR = x ; then 10753 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10754fi 10755 10756if test x$LIB_MAN_SUFFIX = x ; then 10757 LIB_MAN_SUFFIX=3 10758fi 10759if test x$LIB_MAN_DIR = x ; then 10760 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10761fi 10762 10763if test x$FILE_MAN_SUFFIX = x ; then 10764 case $host_os in 10765 solaris*) FILE_MAN_SUFFIX=4 ;; 10766 *) FILE_MAN_SUFFIX=5 ;; 10767 esac 10768fi 10769if test x$FILE_MAN_DIR = x ; then 10770 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10771fi 10772 10773if test x$MISC_MAN_SUFFIX = x ; then 10774 case $host_os in 10775 solaris*) MISC_MAN_SUFFIX=5 ;; 10776 *) MISC_MAN_SUFFIX=7 ;; 10777 esac 10778fi 10779if test x$MISC_MAN_DIR = x ; then 10780 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10781fi 10782 10783if test x$DRIVER_MAN_SUFFIX = x ; then 10784 case $host_os in 10785 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10786 *) DRIVER_MAN_SUFFIX=4 ;; 10787 esac 10788fi 10789if test x$DRIVER_MAN_DIR = x ; then 10790 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10791fi 10792 10793if test x$ADMIN_MAN_SUFFIX = x ; then 10794 case $host_os in 10795 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10796 *) ADMIN_MAN_SUFFIX=8 ;; 10797 esac 10798fi 10799if test x$ADMIN_MAN_DIR = x ; then 10800 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10801fi 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817XORG_MAN_PAGE="X Version 11" 10818 10819MAN_SUBSTS="\ 10820 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10821 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10822 -e 's|__xservername__|Xorg|g' \ 10823 -e 's|__xconfigfile__|xorg.conf|g' \ 10824 -e 's|__projectroot__|\$(prefix)|g' \ 10825 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10826 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10827 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10828 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10829 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10830 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10831 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10832 10833 10834 10835# Check whether --enable-silent-rules was given. 10836if test "${enable_silent_rules+set}" = set; then : 10837 enableval=$enable_silent_rules; 10838fi 10839 10840case $enable_silent_rules in # ((( 10841 yes) AM_DEFAULT_VERBOSITY=0;; 10842 no) AM_DEFAULT_VERBOSITY=1;; 10843 *) AM_DEFAULT_VERBOSITY=0;; 10844esac 10845am_make=${MAKE-make} 10846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10847$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10848if ${am_cv_make_support_nested_variables+:} false; then : 10849 $as_echo_n "(cached) " >&6 10850else 10851 if $as_echo 'TRUE=$(BAR$(V)) 10852BAR0=false 10853BAR1=true 10854V=1 10855am__doit: 10856 @$(TRUE) 10857.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10858 am_cv_make_support_nested_variables=yes 10859else 10860 am_cv_make_support_nested_variables=no 10861fi 10862fi 10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10864$as_echo "$am_cv_make_support_nested_variables" >&6; } 10865if test $am_cv_make_support_nested_variables = yes; then 10866 AM_V='$(V)' 10867 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10868else 10869 AM_V=$AM_DEFAULT_VERBOSITY 10870 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10871fi 10872AM_BACKSLASH='\' 10873 10874 10875 10876# Initialize libtool 10877# Check whether --enable-static was given. 10878if test "${enable_static+set}" = set; then : 10879 enableval=$enable_static; p=${PACKAGE-default} 10880 case $enableval in 10881 yes) enable_static=yes ;; 10882 no) enable_static=no ;; 10883 *) 10884 enable_static=no 10885 # Look at the argument we got. We use all the common list separators. 10886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10887 for pkg in $enableval; do 10888 IFS="$lt_save_ifs" 10889 if test "X$pkg" = "X$p"; then 10890 enable_static=yes 10891 fi 10892 done 10893 IFS="$lt_save_ifs" 10894 ;; 10895 esac 10896else 10897 enable_static=no 10898fi 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908case `pwd` in 10909 *\ * | *\ *) 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10911$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10912esac 10913 10914 10915 10916macro_version='2.4.2' 10917macro_revision='1.3337' 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931ltmain="$ac_aux_dir/ltmain.sh" 10932 10933# Backslashify metacharacters that are still active within 10934# double-quoted strings. 10935sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10936 10937# Same as above, but do not quote variable references. 10938double_quote_subst='s/\(["`\\]\)/\\\1/g' 10939 10940# Sed substitution to delay expansion of an escaped shell variable in a 10941# double_quote_subst'ed string. 10942delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10943 10944# Sed substitution to delay expansion of an escaped single quote. 10945delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10946 10947# Sed substitution to avoid accidental globbing in evaled expressions 10948no_glob_subst='s/\*/\\\*/g' 10949 10950ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10951ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10952ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10953 10954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10955$as_echo_n "checking how to print strings... " >&6; } 10956# Test print first, because it will be a builtin if present. 10957if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10958 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10959 ECHO='print -r --' 10960elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10961 ECHO='printf %s\n' 10962else 10963 # Use this function as a fallback that always works. 10964 func_fallback_echo () 10965 { 10966 eval 'cat <<_LTECHO_EOF 10967$1 10968_LTECHO_EOF' 10969 } 10970 ECHO='func_fallback_echo' 10971fi 10972 10973# func_echo_all arg... 10974# Invoke $ECHO with all args, space-separated. 10975func_echo_all () 10976{ 10977 $ECHO "" 10978} 10979 10980case "$ECHO" in 10981 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10982$as_echo "printf" >&6; } ;; 10983 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10984$as_echo "print -r" >&6; } ;; 10985 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10986$as_echo "cat" >&6; } ;; 10987esac 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11003$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11004if ${ac_cv_path_SED+:} false; then : 11005 $as_echo_n "(cached) " >&6 11006else 11007 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11008 for ac_i in 1 2 3 4 5 6 7; do 11009 ac_script="$ac_script$as_nl$ac_script" 11010 done 11011 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11012 { ac_script=; unset ac_script;} 11013 if test -z "$SED"; then 11014 ac_path_SED_found=false 11015 # Loop through the user's path and test for each of PROGNAME-LIST 11016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11017for as_dir in $PATH 11018do 11019 IFS=$as_save_IFS 11020 test -z "$as_dir" && as_dir=. 11021 for ac_prog in sed gsed; do 11022 for ac_exec_ext in '' $ac_executable_extensions; do 11023 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11024 as_fn_executable_p "$ac_path_SED" || continue 11025# Check for GNU ac_path_SED and select it if it is found. 11026 # Check for GNU $ac_path_SED 11027case `"$ac_path_SED" --version 2>&1` in 11028*GNU*) 11029 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11030*) 11031 ac_count=0 11032 $as_echo_n 0123456789 >"conftest.in" 11033 while : 11034 do 11035 cat "conftest.in" "conftest.in" >"conftest.tmp" 11036 mv "conftest.tmp" "conftest.in" 11037 cp "conftest.in" "conftest.nl" 11038 $as_echo '' >> "conftest.nl" 11039 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11041 as_fn_arith $ac_count + 1 && ac_count=$as_val 11042 if test $ac_count -gt ${ac_path_SED_max-0}; then 11043 # Best one so far, save it but keep looking for a better one 11044 ac_cv_path_SED="$ac_path_SED" 11045 ac_path_SED_max=$ac_count 11046 fi 11047 # 10*(2^10) chars as input seems more than enough 11048 test $ac_count -gt 10 && break 11049 done 11050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11051esac 11052 11053 $ac_path_SED_found && break 3 11054 done 11055 done 11056 done 11057IFS=$as_save_IFS 11058 if test -z "$ac_cv_path_SED"; then 11059 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11060 fi 11061else 11062 ac_cv_path_SED=$SED 11063fi 11064 11065fi 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11067$as_echo "$ac_cv_path_SED" >&6; } 11068 SED="$ac_cv_path_SED" 11069 rm -f conftest.sed 11070 11071test -z "$SED" && SED=sed 11072Xsed="$SED -e 1s/^X//" 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11085$as_echo_n "checking for fgrep... " >&6; } 11086if ${ac_cv_path_FGREP+:} false; then : 11087 $as_echo_n "(cached) " >&6 11088else 11089 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11090 then ac_cv_path_FGREP="$GREP -F" 11091 else 11092 if test -z "$FGREP"; then 11093 ac_path_FGREP_found=false 11094 # Loop through the user's path and test for each of PROGNAME-LIST 11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11096for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11097do 11098 IFS=$as_save_IFS 11099 test -z "$as_dir" && as_dir=. 11100 for ac_prog in fgrep; do 11101 for ac_exec_ext in '' $ac_executable_extensions; do 11102 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11103 as_fn_executable_p "$ac_path_FGREP" || continue 11104# Check for GNU ac_path_FGREP and select it if it is found. 11105 # Check for GNU $ac_path_FGREP 11106case `"$ac_path_FGREP" --version 2>&1` in 11107*GNU*) 11108 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11109*) 11110 ac_count=0 11111 $as_echo_n 0123456789 >"conftest.in" 11112 while : 11113 do 11114 cat "conftest.in" "conftest.in" >"conftest.tmp" 11115 mv "conftest.tmp" "conftest.in" 11116 cp "conftest.in" "conftest.nl" 11117 $as_echo 'FGREP' >> "conftest.nl" 11118 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11120 as_fn_arith $ac_count + 1 && ac_count=$as_val 11121 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11122 # Best one so far, save it but keep looking for a better one 11123 ac_cv_path_FGREP="$ac_path_FGREP" 11124 ac_path_FGREP_max=$ac_count 11125 fi 11126 # 10*(2^10) chars as input seems more than enough 11127 test $ac_count -gt 10 && break 11128 done 11129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11130esac 11131 11132 $ac_path_FGREP_found && break 3 11133 done 11134 done 11135 done 11136IFS=$as_save_IFS 11137 if test -z "$ac_cv_path_FGREP"; then 11138 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11139 fi 11140else 11141 ac_cv_path_FGREP=$FGREP 11142fi 11143 11144 fi 11145fi 11146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11147$as_echo "$ac_cv_path_FGREP" >&6; } 11148 FGREP="$ac_cv_path_FGREP" 11149 11150 11151test -z "$GREP" && GREP=grep 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171# Check whether --with-gnu-ld was given. 11172if test "${with_gnu_ld+set}" = set; then : 11173 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11174else 11175 with_gnu_ld=no 11176fi 11177 11178ac_prog=ld 11179if test "$GCC" = yes; then 11180 # Check if gcc -print-prog-name=ld gives a path. 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11182$as_echo_n "checking for ld used by $CC... " >&6; } 11183 case $host in 11184 *-*-mingw*) 11185 # gcc leaves a trailing carriage return which upsets mingw 11186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11187 *) 11188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11189 esac 11190 case $ac_prog in 11191 # Accept absolute paths. 11192 [\\/]* | ?:[\\/]*) 11193 re_direlt='/[^/][^/]*/\.\./' 11194 # Canonicalize the pathname of ld 11195 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11196 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11197 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11198 done 11199 test -z "$LD" && LD="$ac_prog" 11200 ;; 11201 "") 11202 # If it fails, then pretend we aren't using GCC. 11203 ac_prog=ld 11204 ;; 11205 *) 11206 # If it is relative, then search for the first ld in PATH. 11207 with_gnu_ld=unknown 11208 ;; 11209 esac 11210elif test "$with_gnu_ld" = yes; then 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11212$as_echo_n "checking for GNU ld... " >&6; } 11213else 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11215$as_echo_n "checking for non-GNU ld... " >&6; } 11216fi 11217if ${lt_cv_path_LD+:} false; then : 11218 $as_echo_n "(cached) " >&6 11219else 11220 if test -z "$LD"; then 11221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11222 for ac_dir in $PATH; do 11223 IFS="$lt_save_ifs" 11224 test -z "$ac_dir" && ac_dir=. 11225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11226 lt_cv_path_LD="$ac_dir/$ac_prog" 11227 # Check to see if the program is GNU ld. I'd rather use --version, 11228 # but apparently some variants of GNU ld only accept -v. 11229 # Break only if it was the GNU/non-GNU ld that we prefer. 11230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11231 *GNU* | *'with BFD'*) 11232 test "$with_gnu_ld" != no && break 11233 ;; 11234 *) 11235 test "$with_gnu_ld" != yes && break 11236 ;; 11237 esac 11238 fi 11239 done 11240 IFS="$lt_save_ifs" 11241else 11242 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11243fi 11244fi 11245 11246LD="$lt_cv_path_LD" 11247if test -n "$LD"; then 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11249$as_echo "$LD" >&6; } 11250else 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11252$as_echo "no" >&6; } 11253fi 11254test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11256$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11257if ${lt_cv_prog_gnu_ld+:} false; then : 11258 $as_echo_n "(cached) " >&6 11259else 11260 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11261case `$LD -v 2>&1 </dev/null` in 11262*GNU* | *'with BFD'*) 11263 lt_cv_prog_gnu_ld=yes 11264 ;; 11265*) 11266 lt_cv_prog_gnu_ld=no 11267 ;; 11268esac 11269fi 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11271$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11272with_gnu_ld=$lt_cv_prog_gnu_ld 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11283$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11284if ${lt_cv_path_NM+:} false; then : 11285 $as_echo_n "(cached) " >&6 11286else 11287 if test -n "$NM"; then 11288 # Let the user override the test. 11289 lt_cv_path_NM="$NM" 11290else 11291 lt_nm_to_check="${ac_tool_prefix}nm" 11292 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11293 lt_nm_to_check="$lt_nm_to_check nm" 11294 fi 11295 for lt_tmp_nm in $lt_nm_to_check; do 11296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11297 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11298 IFS="$lt_save_ifs" 11299 test -z "$ac_dir" && ac_dir=. 11300 tmp_nm="$ac_dir/$lt_tmp_nm" 11301 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11302 # Check to see if the nm accepts a BSD-compat flag. 11303 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11304 # nm: unknown option "B" ignored 11305 # Tru64's nm complains that /dev/null is an invalid object file 11306 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11307 */dev/null* | *'Invalid file or object type'*) 11308 lt_cv_path_NM="$tmp_nm -B" 11309 break 11310 ;; 11311 *) 11312 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11313 */dev/null*) 11314 lt_cv_path_NM="$tmp_nm -p" 11315 break 11316 ;; 11317 *) 11318 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11319 continue # so that we can try to find one that supports BSD flags 11320 ;; 11321 esac 11322 ;; 11323 esac 11324 fi 11325 done 11326 IFS="$lt_save_ifs" 11327 done 11328 : ${lt_cv_path_NM=no} 11329fi 11330fi 11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11332$as_echo "$lt_cv_path_NM" >&6; } 11333if test "$lt_cv_path_NM" != "no"; then 11334 NM="$lt_cv_path_NM" 11335else 11336 # Didn't find any BSD compatible name lister, look for dumpbin. 11337 if test -n "$DUMPBIN"; then : 11338 # Let the user override the test. 11339 else 11340 if test -n "$ac_tool_prefix"; then 11341 for ac_prog in dumpbin "link -dump" 11342 do 11343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11344set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11346$as_echo_n "checking for $ac_word... " >&6; } 11347if ${ac_cv_prog_DUMPBIN+:} false; then : 11348 $as_echo_n "(cached) " >&6 11349else 11350 if test -n "$DUMPBIN"; then 11351 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11352else 11353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11354for as_dir in $PATH 11355do 11356 IFS=$as_save_IFS 11357 test -z "$as_dir" && as_dir=. 11358 for ac_exec_ext in '' $ac_executable_extensions; do 11359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11360 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11362 break 2 11363 fi 11364done 11365 done 11366IFS=$as_save_IFS 11367 11368fi 11369fi 11370DUMPBIN=$ac_cv_prog_DUMPBIN 11371if test -n "$DUMPBIN"; then 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11373$as_echo "$DUMPBIN" >&6; } 11374else 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11376$as_echo "no" >&6; } 11377fi 11378 11379 11380 test -n "$DUMPBIN" && break 11381 done 11382fi 11383if test -z "$DUMPBIN"; then 11384 ac_ct_DUMPBIN=$DUMPBIN 11385 for ac_prog in dumpbin "link -dump" 11386do 11387 # Extract the first word of "$ac_prog", so it can be a program name with args. 11388set dummy $ac_prog; ac_word=$2 11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11390$as_echo_n "checking for $ac_word... " >&6; } 11391if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11392 $as_echo_n "(cached) " >&6 11393else 11394 if test -n "$ac_ct_DUMPBIN"; then 11395 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11396else 11397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11398for as_dir in $PATH 11399do 11400 IFS=$as_save_IFS 11401 test -z "$as_dir" && as_dir=. 11402 for ac_exec_ext in '' $ac_executable_extensions; do 11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11404 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11406 break 2 11407 fi 11408done 11409 done 11410IFS=$as_save_IFS 11411 11412fi 11413fi 11414ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11415if test -n "$ac_ct_DUMPBIN"; then 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11417$as_echo "$ac_ct_DUMPBIN" >&6; } 11418else 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11420$as_echo "no" >&6; } 11421fi 11422 11423 11424 test -n "$ac_ct_DUMPBIN" && break 11425done 11426 11427 if test "x$ac_ct_DUMPBIN" = x; then 11428 DUMPBIN=":" 11429 else 11430 case $cross_compiling:$ac_tool_warned in 11431yes:) 11432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11434ac_tool_warned=yes ;; 11435esac 11436 DUMPBIN=$ac_ct_DUMPBIN 11437 fi 11438fi 11439 11440 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11441 *COFF*) 11442 DUMPBIN="$DUMPBIN -symbols" 11443 ;; 11444 *) 11445 DUMPBIN=: 11446 ;; 11447 esac 11448 fi 11449 11450 if test "$DUMPBIN" != ":"; then 11451 NM="$DUMPBIN" 11452 fi 11453fi 11454test -z "$NM" && NM=nm 11455 11456 11457 11458 11459 11460 11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11462$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11463if ${lt_cv_nm_interface+:} false; then : 11464 $as_echo_n "(cached) " >&6 11465else 11466 lt_cv_nm_interface="BSD nm" 11467 echo "int some_variable = 0;" > conftest.$ac_ext 11468 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11469 (eval "$ac_compile" 2>conftest.err) 11470 cat conftest.err >&5 11471 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11472 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11473 cat conftest.err >&5 11474 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11475 cat conftest.out >&5 11476 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11477 lt_cv_nm_interface="MS dumpbin" 11478 fi 11479 rm -f conftest* 11480fi 11481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11482$as_echo "$lt_cv_nm_interface" >&6; } 11483 11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11485$as_echo_n "checking whether ln -s works... " >&6; } 11486LN_S=$as_ln_s 11487if test "$LN_S" = "ln -s"; then 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11489$as_echo "yes" >&6; } 11490else 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11492$as_echo "no, using $LN_S" >&6; } 11493fi 11494 11495# find the maximum length of command line arguments 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11497$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11498if ${lt_cv_sys_max_cmd_len+:} false; then : 11499 $as_echo_n "(cached) " >&6 11500else 11501 i=0 11502 teststring="ABCD" 11503 11504 case $build_os in 11505 msdosdjgpp*) 11506 # On DJGPP, this test can blow up pretty badly due to problems in libc 11507 # (any single argument exceeding 2000 bytes causes a buffer overrun 11508 # during glob expansion). Even if it were fixed, the result of this 11509 # check would be larger than it should be. 11510 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11511 ;; 11512 11513 gnu*) 11514 # Under GNU Hurd, this test is not required because there is 11515 # no limit to the length of command line arguments. 11516 # Libtool will interpret -1 as no limit whatsoever 11517 lt_cv_sys_max_cmd_len=-1; 11518 ;; 11519 11520 cygwin* | mingw* | cegcc*) 11521 # On Win9x/ME, this test blows up -- it succeeds, but takes 11522 # about 5 minutes as the teststring grows exponentially. 11523 # Worse, since 9x/ME are not pre-emptively multitasking, 11524 # you end up with a "frozen" computer, even though with patience 11525 # the test eventually succeeds (with a max line length of 256k). 11526 # Instead, let's just punt: use the minimum linelength reported by 11527 # all of the supported platforms: 8192 (on NT/2K/XP). 11528 lt_cv_sys_max_cmd_len=8192; 11529 ;; 11530 11531 mint*) 11532 # On MiNT this can take a long time and run out of memory. 11533 lt_cv_sys_max_cmd_len=8192; 11534 ;; 11535 11536 amigaos*) 11537 # On AmigaOS with pdksh, this test takes hours, literally. 11538 # So we just punt and use a minimum line length of 8192. 11539 lt_cv_sys_max_cmd_len=8192; 11540 ;; 11541 11542 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11543 # This has been around since 386BSD, at least. Likely further. 11544 if test -x /sbin/sysctl; then 11545 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11546 elif test -x /usr/sbin/sysctl; then 11547 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11548 else 11549 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11550 fi 11551 # And add a safety zone 11552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11554 ;; 11555 11556 interix*) 11557 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11558 lt_cv_sys_max_cmd_len=196608 11559 ;; 11560 11561 os2*) 11562 # The test takes a long time on OS/2. 11563 lt_cv_sys_max_cmd_len=8192 11564 ;; 11565 11566 osf*) 11567 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11568 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11569 # nice to cause kernel panics so lets avoid the loop below. 11570 # First set a reasonable default. 11571 lt_cv_sys_max_cmd_len=16384 11572 # 11573 if test -x /sbin/sysconfig; then 11574 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11575 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11576 esac 11577 fi 11578 ;; 11579 sco3.2v5*) 11580 lt_cv_sys_max_cmd_len=102400 11581 ;; 11582 sysv5* | sco5v6* | sysv4.2uw2*) 11583 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11584 if test -n "$kargmax"; then 11585 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11586 else 11587 lt_cv_sys_max_cmd_len=32768 11588 fi 11589 ;; 11590 *) 11591 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11592 if test -n "$lt_cv_sys_max_cmd_len" && \ 11593 test undefined != "$lt_cv_sys_max_cmd_len"; then 11594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11596 else 11597 # Make teststring a little bigger before we do anything with it. 11598 # a 1K string should be a reasonable start. 11599 for i in 1 2 3 4 5 6 7 8 ; do 11600 teststring=$teststring$teststring 11601 done 11602 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11603 # If test is not a shell built-in, we'll probably end up computing a 11604 # maximum length that is only half of the actual maximum length, but 11605 # we can't tell. 11606 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11607 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11608 test $i != 17 # 1/2 MB should be enough 11609 do 11610 i=`expr $i + 1` 11611 teststring=$teststring$teststring 11612 done 11613 # Only check the string length outside the loop. 11614 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11615 teststring= 11616 # Add a significant safety factor because C++ compilers can tack on 11617 # massive amounts of additional arguments before passing them to the 11618 # linker. It appears as though 1/2 is a usable value. 11619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11620 fi 11621 ;; 11622 esac 11623 11624fi 11625 11626if test -n $lt_cv_sys_max_cmd_len ; then 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11628$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11629else 11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11631$as_echo "none" >&6; } 11632fi 11633max_cmd_len=$lt_cv_sys_max_cmd_len 11634 11635 11636 11637 11638 11639 11640: ${CP="cp -f"} 11641: ${MV="mv -f"} 11642: ${RM="rm -f"} 11643 11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11645$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11646# Try some XSI features 11647xsi_shell=no 11648( _lt_dummy="a/b/c" 11649 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11650 = c,a/b,b/c, \ 11651 && eval 'test $(( 1 + 1 )) -eq 2 \ 11652 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11653 && xsi_shell=yes 11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11655$as_echo "$xsi_shell" >&6; } 11656 11657 11658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11659$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11660lt_shell_append=no 11661( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11662 >/dev/null 2>&1 \ 11663 && lt_shell_append=yes 11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11665$as_echo "$lt_shell_append" >&6; } 11666 11667 11668if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11669 lt_unset=unset 11670else 11671 lt_unset=false 11672fi 11673 11674 11675 11676 11677 11678# test EBCDIC or ASCII 11679case `echo X|tr X '\101'` in 11680 A) # ASCII based system 11681 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11682 lt_SP2NL='tr \040 \012' 11683 lt_NL2SP='tr \015\012 \040\040' 11684 ;; 11685 *) # EBCDIC based system 11686 lt_SP2NL='tr \100 \n' 11687 lt_NL2SP='tr \r\n \100\100' 11688 ;; 11689esac 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11700$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11701if ${lt_cv_to_host_file_cmd+:} false; then : 11702 $as_echo_n "(cached) " >&6 11703else 11704 case $host in 11705 *-*-mingw* ) 11706 case $build in 11707 *-*-mingw* ) # actually msys 11708 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11709 ;; 11710 *-*-cygwin* ) 11711 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11712 ;; 11713 * ) # otherwise, assume *nix 11714 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11715 ;; 11716 esac 11717 ;; 11718 *-*-cygwin* ) 11719 case $build in 11720 *-*-mingw* ) # actually msys 11721 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11722 ;; 11723 *-*-cygwin* ) 11724 lt_cv_to_host_file_cmd=func_convert_file_noop 11725 ;; 11726 * ) # otherwise, assume *nix 11727 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11728 ;; 11729 esac 11730 ;; 11731 * ) # unhandled hosts (and "normal" native builds) 11732 lt_cv_to_host_file_cmd=func_convert_file_noop 11733 ;; 11734esac 11735 11736fi 11737 11738to_host_file_cmd=$lt_cv_to_host_file_cmd 11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11740$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11741 11742 11743 11744 11745 11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11747$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11748if ${lt_cv_to_tool_file_cmd+:} false; then : 11749 $as_echo_n "(cached) " >&6 11750else 11751 #assume ordinary cross tools, or native build. 11752lt_cv_to_tool_file_cmd=func_convert_file_noop 11753case $host in 11754 *-*-mingw* ) 11755 case $build in 11756 *-*-mingw* ) # actually msys 11757 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11758 ;; 11759 esac 11760 ;; 11761esac 11762 11763fi 11764 11765to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11767$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11768 11769 11770 11771 11772 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11774$as_echo_n "checking for $LD option to reload object files... " >&6; } 11775if ${lt_cv_ld_reload_flag+:} false; then : 11776 $as_echo_n "(cached) " >&6 11777else 11778 lt_cv_ld_reload_flag='-r' 11779fi 11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11781$as_echo "$lt_cv_ld_reload_flag" >&6; } 11782reload_flag=$lt_cv_ld_reload_flag 11783case $reload_flag in 11784"" | " "*) ;; 11785*) reload_flag=" $reload_flag" ;; 11786esac 11787reload_cmds='$LD$reload_flag -o $output$reload_objs' 11788case $host_os in 11789 cygwin* | mingw* | pw32* | cegcc*) 11790 if test "$GCC" != yes; then 11791 reload_cmds=false 11792 fi 11793 ;; 11794 darwin*) 11795 if test "$GCC" = yes; then 11796 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11797 else 11798 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11799 fi 11800 ;; 11801esac 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811if test -n "$ac_tool_prefix"; then 11812 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11813set dummy ${ac_tool_prefix}objdump; ac_word=$2 11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11815$as_echo_n "checking for $ac_word... " >&6; } 11816if ${ac_cv_prog_OBJDUMP+:} false; then : 11817 $as_echo_n "(cached) " >&6 11818else 11819 if test -n "$OBJDUMP"; then 11820 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11821else 11822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11823for as_dir in $PATH 11824do 11825 IFS=$as_save_IFS 11826 test -z "$as_dir" && as_dir=. 11827 for ac_exec_ext in '' $ac_executable_extensions; do 11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11829 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11831 break 2 11832 fi 11833done 11834 done 11835IFS=$as_save_IFS 11836 11837fi 11838fi 11839OBJDUMP=$ac_cv_prog_OBJDUMP 11840if test -n "$OBJDUMP"; then 11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11842$as_echo "$OBJDUMP" >&6; } 11843else 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11845$as_echo "no" >&6; } 11846fi 11847 11848 11849fi 11850if test -z "$ac_cv_prog_OBJDUMP"; then 11851 ac_ct_OBJDUMP=$OBJDUMP 11852 # Extract the first word of "objdump", so it can be a program name with args. 11853set dummy objdump; ac_word=$2 11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11855$as_echo_n "checking for $ac_word... " >&6; } 11856if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11857 $as_echo_n "(cached) " >&6 11858else 11859 if test -n "$ac_ct_OBJDUMP"; then 11860 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11861else 11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11863for as_dir in $PATH 11864do 11865 IFS=$as_save_IFS 11866 test -z "$as_dir" && as_dir=. 11867 for ac_exec_ext in '' $ac_executable_extensions; do 11868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11869 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11871 break 2 11872 fi 11873done 11874 done 11875IFS=$as_save_IFS 11876 11877fi 11878fi 11879ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11880if test -n "$ac_ct_OBJDUMP"; then 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11882$as_echo "$ac_ct_OBJDUMP" >&6; } 11883else 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11885$as_echo "no" >&6; } 11886fi 11887 11888 if test "x$ac_ct_OBJDUMP" = x; then 11889 OBJDUMP="false" 11890 else 11891 case $cross_compiling:$ac_tool_warned in 11892yes:) 11893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11895ac_tool_warned=yes ;; 11896esac 11897 OBJDUMP=$ac_ct_OBJDUMP 11898 fi 11899else 11900 OBJDUMP="$ac_cv_prog_OBJDUMP" 11901fi 11902 11903test -z "$OBJDUMP" && OBJDUMP=objdump 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11914$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11915if ${lt_cv_deplibs_check_method+:} false; then : 11916 $as_echo_n "(cached) " >&6 11917else 11918 lt_cv_file_magic_cmd='$MAGIC_CMD' 11919lt_cv_file_magic_test_file= 11920lt_cv_deplibs_check_method='unknown' 11921# Need to set the preceding variable on all platforms that support 11922# interlibrary dependencies. 11923# 'none' -- dependencies not supported. 11924# `unknown' -- same as none, but documents that we really don't know. 11925# 'pass_all' -- all dependencies passed with no checks. 11926# 'test_compile' -- check by making test program. 11927# 'file_magic [[regex]]' -- check by looking for files in library path 11928# which responds to the $file_magic_cmd with a given extended regex. 11929# If you have `file' or equivalent on your system and you're not sure 11930# whether `pass_all' will *always* work, you probably want this one. 11931 11932case $host_os in 11933aix[4-9]*) 11934 lt_cv_deplibs_check_method=pass_all 11935 ;; 11936 11937beos*) 11938 lt_cv_deplibs_check_method=pass_all 11939 ;; 11940 11941bsdi[45]*) 11942 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11943 lt_cv_file_magic_cmd='/usr/bin/file -L' 11944 lt_cv_file_magic_test_file=/shlib/libc.so 11945 ;; 11946 11947cygwin*) 11948 # func_win32_libid is a shell function defined in ltmain.sh 11949 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11950 lt_cv_file_magic_cmd='func_win32_libid' 11951 ;; 11952 11953mingw* | pw32*) 11954 # Base MSYS/MinGW do not provide the 'file' command needed by 11955 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11956 # unless we find 'file', for example because we are cross-compiling. 11957 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11958 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11960 lt_cv_file_magic_cmd='func_win32_libid' 11961 else 11962 # Keep this pattern in sync with the one in func_win32_libid. 11963 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11964 lt_cv_file_magic_cmd='$OBJDUMP -f' 11965 fi 11966 ;; 11967 11968cegcc*) 11969 # use the weaker test based on 'objdump'. See mingw*. 11970 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11971 lt_cv_file_magic_cmd='$OBJDUMP -f' 11972 ;; 11973 11974darwin* | rhapsody*) 11975 lt_cv_deplibs_check_method=pass_all 11976 ;; 11977 11978freebsd* | dragonfly*) 11979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11980 case $host_cpu in 11981 i*86 ) 11982 # Not sure whether the presence of OpenBSD here was a mistake. 11983 # Let's accept both of them until this is cleared up. 11984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11985 lt_cv_file_magic_cmd=/usr/bin/file 11986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11987 ;; 11988 esac 11989 else 11990 lt_cv_deplibs_check_method=pass_all 11991 fi 11992 ;; 11993 11994haiku*) 11995 lt_cv_deplibs_check_method=pass_all 11996 ;; 11997 11998hpux10.20* | hpux11*) 11999 lt_cv_file_magic_cmd=/usr/bin/file 12000 case $host_cpu in 12001 ia64*) 12002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12004 ;; 12005 hppa*64*) 12006 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]' 12007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12008 ;; 12009 *) 12010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12011 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12012 ;; 12013 esac 12014 ;; 12015 12016interix[3-9]*) 12017 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12019 ;; 12020 12021irix5* | irix6* | nonstopux*) 12022 case $LD in 12023 *-32|*"-32 ") libmagic=32-bit;; 12024 *-n32|*"-n32 ") libmagic=N32;; 12025 *-64|*"-64 ") libmagic=64-bit;; 12026 *) libmagic=never-match;; 12027 esac 12028 lt_cv_deplibs_check_method=pass_all 12029 ;; 12030 12031# This must be glibc/ELF. 12032linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12033 lt_cv_deplibs_check_method=pass_all 12034 ;; 12035 12036netbsd* | netbsdelf*-gnu) 12037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12039 else 12040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12041 fi 12042 ;; 12043 12044newos6*) 12045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12046 lt_cv_file_magic_cmd=/usr/bin/file 12047 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12048 ;; 12049 12050*nto* | *qnx*) 12051 lt_cv_deplibs_check_method=pass_all 12052 ;; 12053 12054openbsd*) 12055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12057 else 12058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12059 fi 12060 ;; 12061 12062osf3* | osf4* | osf5*) 12063 lt_cv_deplibs_check_method=pass_all 12064 ;; 12065 12066rdos*) 12067 lt_cv_deplibs_check_method=pass_all 12068 ;; 12069 12070solaris*) 12071 lt_cv_deplibs_check_method=pass_all 12072 ;; 12073 12074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12075 lt_cv_deplibs_check_method=pass_all 12076 ;; 12077 12078sysv4 | sysv4.3*) 12079 case $host_vendor in 12080 motorola) 12081 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]' 12082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12083 ;; 12084 ncr) 12085 lt_cv_deplibs_check_method=pass_all 12086 ;; 12087 sequent) 12088 lt_cv_file_magic_cmd='/bin/file' 12089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12090 ;; 12091 sni) 12092 lt_cv_file_magic_cmd='/bin/file' 12093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12094 lt_cv_file_magic_test_file=/lib/libc.so 12095 ;; 12096 siemens) 12097 lt_cv_deplibs_check_method=pass_all 12098 ;; 12099 pc) 12100 lt_cv_deplibs_check_method=pass_all 12101 ;; 12102 esac 12103 ;; 12104 12105tpf*) 12106 lt_cv_deplibs_check_method=pass_all 12107 ;; 12108esac 12109 12110fi 12111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12112$as_echo "$lt_cv_deplibs_check_method" >&6; } 12113 12114file_magic_glob= 12115want_nocaseglob=no 12116if test "$build" = "$host"; then 12117 case $host_os in 12118 mingw* | pw32*) 12119 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12120 want_nocaseglob=yes 12121 else 12122 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12123 fi 12124 ;; 12125 esac 12126fi 12127 12128file_magic_cmd=$lt_cv_file_magic_cmd 12129deplibs_check_method=$lt_cv_deplibs_check_method 12130test -z "$deplibs_check_method" && deplibs_check_method=unknown 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153if test -n "$ac_tool_prefix"; then 12154 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12155set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12157$as_echo_n "checking for $ac_word... " >&6; } 12158if ${ac_cv_prog_DLLTOOL+:} false; then : 12159 $as_echo_n "(cached) " >&6 12160else 12161 if test -n "$DLLTOOL"; then 12162 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12163else 12164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12165for as_dir in $PATH 12166do 12167 IFS=$as_save_IFS 12168 test -z "$as_dir" && as_dir=. 12169 for ac_exec_ext in '' $ac_executable_extensions; do 12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12171 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12173 break 2 12174 fi 12175done 12176 done 12177IFS=$as_save_IFS 12178 12179fi 12180fi 12181DLLTOOL=$ac_cv_prog_DLLTOOL 12182if test -n "$DLLTOOL"; then 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12184$as_echo "$DLLTOOL" >&6; } 12185else 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12187$as_echo "no" >&6; } 12188fi 12189 12190 12191fi 12192if test -z "$ac_cv_prog_DLLTOOL"; then 12193 ac_ct_DLLTOOL=$DLLTOOL 12194 # Extract the first word of "dlltool", so it can be a program name with args. 12195set dummy dlltool; ac_word=$2 12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12197$as_echo_n "checking for $ac_word... " >&6; } 12198if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12199 $as_echo_n "(cached) " >&6 12200else 12201 if test -n "$ac_ct_DLLTOOL"; then 12202 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12203else 12204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12205for as_dir in $PATH 12206do 12207 IFS=$as_save_IFS 12208 test -z "$as_dir" && as_dir=. 12209 for ac_exec_ext in '' $ac_executable_extensions; do 12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12211 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12213 break 2 12214 fi 12215done 12216 done 12217IFS=$as_save_IFS 12218 12219fi 12220fi 12221ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12222if test -n "$ac_ct_DLLTOOL"; then 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12224$as_echo "$ac_ct_DLLTOOL" >&6; } 12225else 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12227$as_echo "no" >&6; } 12228fi 12229 12230 if test "x$ac_ct_DLLTOOL" = x; then 12231 DLLTOOL="false" 12232 else 12233 case $cross_compiling:$ac_tool_warned in 12234yes:) 12235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12237ac_tool_warned=yes ;; 12238esac 12239 DLLTOOL=$ac_ct_DLLTOOL 12240 fi 12241else 12242 DLLTOOL="$ac_cv_prog_DLLTOOL" 12243fi 12244 12245test -z "$DLLTOOL" && DLLTOOL=dlltool 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12257$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12258if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12259 $as_echo_n "(cached) " >&6 12260else 12261 lt_cv_sharedlib_from_linklib_cmd='unknown' 12262 12263case $host_os in 12264cygwin* | mingw* | pw32* | cegcc*) 12265 # two different shell functions defined in ltmain.sh 12266 # decide which to use based on capabilities of $DLLTOOL 12267 case `$DLLTOOL --help 2>&1` in 12268 *--identify-strict*) 12269 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12270 ;; 12271 *) 12272 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12273 ;; 12274 esac 12275 ;; 12276*) 12277 # fallback: assume linklib IS sharedlib 12278 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12279 ;; 12280esac 12281 12282fi 12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12284$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12285sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12286test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12287 12288 12289 12290 12291 12292 12293 12294if test -n "$ac_tool_prefix"; then 12295 for ac_prog in ar 12296 do 12297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12298set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12300$as_echo_n "checking for $ac_word... " >&6; } 12301if ${ac_cv_prog_AR+:} false; then : 12302 $as_echo_n "(cached) " >&6 12303else 12304 if test -n "$AR"; then 12305 ac_cv_prog_AR="$AR" # Let the user override the test. 12306else 12307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12308for as_dir in $PATH 12309do 12310 IFS=$as_save_IFS 12311 test -z "$as_dir" && as_dir=. 12312 for ac_exec_ext in '' $ac_executable_extensions; do 12313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12314 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12316 break 2 12317 fi 12318done 12319 done 12320IFS=$as_save_IFS 12321 12322fi 12323fi 12324AR=$ac_cv_prog_AR 12325if test -n "$AR"; then 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12327$as_echo "$AR" >&6; } 12328else 12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12330$as_echo "no" >&6; } 12331fi 12332 12333 12334 test -n "$AR" && break 12335 done 12336fi 12337if test -z "$AR"; then 12338 ac_ct_AR=$AR 12339 for ac_prog in ar 12340do 12341 # Extract the first word of "$ac_prog", so it can be a program name with args. 12342set dummy $ac_prog; ac_word=$2 12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12344$as_echo_n "checking for $ac_word... " >&6; } 12345if ${ac_cv_prog_ac_ct_AR+:} false; then : 12346 $as_echo_n "(cached) " >&6 12347else 12348 if test -n "$ac_ct_AR"; then 12349 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12350else 12351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12352for as_dir in $PATH 12353do 12354 IFS=$as_save_IFS 12355 test -z "$as_dir" && as_dir=. 12356 for ac_exec_ext in '' $ac_executable_extensions; do 12357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12358 ac_cv_prog_ac_ct_AR="$ac_prog" 12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12360 break 2 12361 fi 12362done 12363 done 12364IFS=$as_save_IFS 12365 12366fi 12367fi 12368ac_ct_AR=$ac_cv_prog_ac_ct_AR 12369if test -n "$ac_ct_AR"; then 12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12371$as_echo "$ac_ct_AR" >&6; } 12372else 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12374$as_echo "no" >&6; } 12375fi 12376 12377 12378 test -n "$ac_ct_AR" && break 12379done 12380 12381 if test "x$ac_ct_AR" = x; then 12382 AR="false" 12383 else 12384 case $cross_compiling:$ac_tool_warned in 12385yes:) 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12388ac_tool_warned=yes ;; 12389esac 12390 AR=$ac_ct_AR 12391 fi 12392fi 12393 12394: ${AR=ar} 12395: ${AR_FLAGS=cru} 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12408$as_echo_n "checking for archiver @FILE support... " >&6; } 12409if ${lt_cv_ar_at_file+:} false; then : 12410 $as_echo_n "(cached) " >&6 12411else 12412 lt_cv_ar_at_file=no 12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12414/* end confdefs.h. */ 12415 12416int 12417main () 12418{ 12419 12420 ; 12421 return 0; 12422} 12423_ACEOF 12424if ac_fn_c_try_compile "$LINENO"; then : 12425 echo conftest.$ac_objext > conftest.lst 12426 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12428 (eval $lt_ar_try) 2>&5 12429 ac_status=$? 12430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12431 test $ac_status = 0; } 12432 if test "$ac_status" -eq 0; then 12433 # Ensure the archiver fails upon bogus file names. 12434 rm -f conftest.$ac_objext libconftest.a 12435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12436 (eval $lt_ar_try) 2>&5 12437 ac_status=$? 12438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12439 test $ac_status = 0; } 12440 if test "$ac_status" -ne 0; then 12441 lt_cv_ar_at_file=@ 12442 fi 12443 fi 12444 rm -f conftest.* libconftest.a 12445 12446fi 12447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12448 12449fi 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12451$as_echo "$lt_cv_ar_at_file" >&6; } 12452 12453if test "x$lt_cv_ar_at_file" = xno; then 12454 archiver_list_spec= 12455else 12456 archiver_list_spec=$lt_cv_ar_at_file 12457fi 12458 12459 12460 12461 12462 12463 12464 12465if test -n "$ac_tool_prefix"; then 12466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12467set dummy ${ac_tool_prefix}strip; ac_word=$2 12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12469$as_echo_n "checking for $ac_word... " >&6; } 12470if ${ac_cv_prog_STRIP+:} false; then : 12471 $as_echo_n "(cached) " >&6 12472else 12473 if test -n "$STRIP"; then 12474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12475else 12476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12477for as_dir in $PATH 12478do 12479 IFS=$as_save_IFS 12480 test -z "$as_dir" && as_dir=. 12481 for ac_exec_ext in '' $ac_executable_extensions; do 12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12483 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12485 break 2 12486 fi 12487done 12488 done 12489IFS=$as_save_IFS 12490 12491fi 12492fi 12493STRIP=$ac_cv_prog_STRIP 12494if test -n "$STRIP"; then 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12496$as_echo "$STRIP" >&6; } 12497else 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12499$as_echo "no" >&6; } 12500fi 12501 12502 12503fi 12504if test -z "$ac_cv_prog_STRIP"; then 12505 ac_ct_STRIP=$STRIP 12506 # Extract the first word of "strip", so it can be a program name with args. 12507set dummy strip; ac_word=$2 12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12509$as_echo_n "checking for $ac_word... " >&6; } 12510if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12511 $as_echo_n "(cached) " >&6 12512else 12513 if test -n "$ac_ct_STRIP"; then 12514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12515else 12516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12517for as_dir in $PATH 12518do 12519 IFS=$as_save_IFS 12520 test -z "$as_dir" && as_dir=. 12521 for ac_exec_ext in '' $ac_executable_extensions; do 12522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12523 ac_cv_prog_ac_ct_STRIP="strip" 12524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12525 break 2 12526 fi 12527done 12528 done 12529IFS=$as_save_IFS 12530 12531fi 12532fi 12533ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12534if test -n "$ac_ct_STRIP"; then 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12536$as_echo "$ac_ct_STRIP" >&6; } 12537else 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12539$as_echo "no" >&6; } 12540fi 12541 12542 if test "x$ac_ct_STRIP" = x; then 12543 STRIP=":" 12544 else 12545 case $cross_compiling:$ac_tool_warned in 12546yes:) 12547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12549ac_tool_warned=yes ;; 12550esac 12551 STRIP=$ac_ct_STRIP 12552 fi 12553else 12554 STRIP="$ac_cv_prog_STRIP" 12555fi 12556 12557test -z "$STRIP" && STRIP=: 12558 12559 12560 12561 12562 12563 12564if test -n "$ac_tool_prefix"; then 12565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12566set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12568$as_echo_n "checking for $ac_word... " >&6; } 12569if ${ac_cv_prog_RANLIB+:} false; then : 12570 $as_echo_n "(cached) " >&6 12571else 12572 if test -n "$RANLIB"; then 12573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12574else 12575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12576for as_dir in $PATH 12577do 12578 IFS=$as_save_IFS 12579 test -z "$as_dir" && as_dir=. 12580 for ac_exec_ext in '' $ac_executable_extensions; do 12581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12584 break 2 12585 fi 12586done 12587 done 12588IFS=$as_save_IFS 12589 12590fi 12591fi 12592RANLIB=$ac_cv_prog_RANLIB 12593if test -n "$RANLIB"; then 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12595$as_echo "$RANLIB" >&6; } 12596else 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12598$as_echo "no" >&6; } 12599fi 12600 12601 12602fi 12603if test -z "$ac_cv_prog_RANLIB"; then 12604 ac_ct_RANLIB=$RANLIB 12605 # Extract the first word of "ranlib", so it can be a program name with args. 12606set dummy ranlib; ac_word=$2 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12608$as_echo_n "checking for $ac_word... " >&6; } 12609if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12610 $as_echo_n "(cached) " >&6 12611else 12612 if test -n "$ac_ct_RANLIB"; then 12613 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12614else 12615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12616for as_dir in $PATH 12617do 12618 IFS=$as_save_IFS 12619 test -z "$as_dir" && as_dir=. 12620 for ac_exec_ext in '' $ac_executable_extensions; do 12621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12622 ac_cv_prog_ac_ct_RANLIB="ranlib" 12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12624 break 2 12625 fi 12626done 12627 done 12628IFS=$as_save_IFS 12629 12630fi 12631fi 12632ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12633if test -n "$ac_ct_RANLIB"; then 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12635$as_echo "$ac_ct_RANLIB" >&6; } 12636else 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12638$as_echo "no" >&6; } 12639fi 12640 12641 if test "x$ac_ct_RANLIB" = x; then 12642 RANLIB=":" 12643 else 12644 case $cross_compiling:$ac_tool_warned in 12645yes:) 12646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12648ac_tool_warned=yes ;; 12649esac 12650 RANLIB=$ac_ct_RANLIB 12651 fi 12652else 12653 RANLIB="$ac_cv_prog_RANLIB" 12654fi 12655 12656test -z "$RANLIB" && RANLIB=: 12657 12658 12659 12660 12661 12662 12663# Determine commands to create old-style static archives. 12664old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12665old_postinstall_cmds='chmod 644 $oldlib' 12666old_postuninstall_cmds= 12667 12668if test -n "$RANLIB"; then 12669 case $host_os in 12670 openbsd*) 12671 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12672 ;; 12673 *) 12674 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12675 ;; 12676 esac 12677 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12678fi 12679 12680case $host_os in 12681 darwin*) 12682 lock_old_archive_extraction=yes ;; 12683 *) 12684 lock_old_archive_extraction=no ;; 12685esac 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725# If no C compiler was specified, use CC. 12726LTCC=${LTCC-"$CC"} 12727 12728# If no C compiler flags were specified, use CFLAGS. 12729LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12730 12731# Allow CC to be a program name with arguments. 12732compiler=$CC 12733 12734 12735# Check for command to grab the raw symbol name followed by C symbol from nm. 12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12737$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12738if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 12742# These are sane defaults that work on at least a few old systems. 12743# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12744 12745# Character class describing NM global symbol codes. 12746symcode='[BCDEGRST]' 12747 12748# Regexp to match symbols that can be accessed directly from C. 12749sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12750 12751# Define system-specific variables. 12752case $host_os in 12753aix*) 12754 symcode='[BCDT]' 12755 ;; 12756cygwin* | mingw* | pw32* | cegcc*) 12757 symcode='[ABCDGISTW]' 12758 ;; 12759hpux*) 12760 if test "$host_cpu" = ia64; then 12761 symcode='[ABCDEGRST]' 12762 fi 12763 ;; 12764irix* | nonstopux*) 12765 symcode='[BCDEGRST]' 12766 ;; 12767osf*) 12768 symcode='[BCDEGQRST]' 12769 ;; 12770solaris*) 12771 symcode='[BDRT]' 12772 ;; 12773sco3.2v5*) 12774 symcode='[DT]' 12775 ;; 12776sysv4.2uw2*) 12777 symcode='[DT]' 12778 ;; 12779sysv5* | sco5v6* | unixware* | OpenUNIX*) 12780 symcode='[ABDT]' 12781 ;; 12782sysv4) 12783 symcode='[DFNSTU]' 12784 ;; 12785esac 12786 12787# If we're using GNU nm, then use its standard symbol codes. 12788case `$NM -V 2>&1` in 12789*GNU* | *'with BFD'*) 12790 symcode='[ABCDGIRSTW]' ;; 12791esac 12792 12793# Transform an extracted symbol line into a proper C declaration. 12794# Some systems (esp. on ia64) link data and code symbols differently, 12795# so use this general approach. 12796lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12797 12798# Transform an extracted symbol line into symbol name and symbol address 12799lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12800lt_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'" 12801 12802# Handle CRLF in mingw tool chain 12803opt_cr= 12804case $build_os in 12805mingw*) 12806 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12807 ;; 12808esac 12809 12810# Try without a prefix underscore, then with it. 12811for ac_symprfx in "" "_"; do 12812 12813 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12814 symxfrm="\\1 $ac_symprfx\\2 \\2" 12815 12816 # Write the raw and C identifiers. 12817 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12818 # Fake it for dumpbin and say T for any non-static function 12819 # and D for any global variable. 12820 # Also find C++ and __fastcall symbols from MSVC++, 12821 # which start with @ or ?. 12822 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12823" {last_section=section; section=\$ 3};"\ 12824" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12825" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12826" \$ 0!~/External *\|/{next};"\ 12827" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12828" {if(hide[section]) next};"\ 12829" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12830" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12831" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12832" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12833" ' prfx=^$ac_symprfx" 12834 else 12835 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12836 fi 12837 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12838 12839 # Check to see that the pipe works correctly. 12840 pipe_works=no 12841 12842 rm -f conftest* 12843 cat > conftest.$ac_ext <<_LT_EOF 12844#ifdef __cplusplus 12845extern "C" { 12846#endif 12847char nm_test_var; 12848void nm_test_func(void); 12849void nm_test_func(void){} 12850#ifdef __cplusplus 12851} 12852#endif 12853int main(){nm_test_var='a';nm_test_func();return(0);} 12854_LT_EOF 12855 12856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12857 (eval $ac_compile) 2>&5 12858 ac_status=$? 12859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12860 test $ac_status = 0; }; then 12861 # Now try to grab the symbols. 12862 nlist=conftest.nm 12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12864 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12865 ac_status=$? 12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12867 test $ac_status = 0; } && test -s "$nlist"; then 12868 # Try sorting and uniquifying the output. 12869 if sort "$nlist" | uniq > "$nlist"T; then 12870 mv -f "$nlist"T "$nlist" 12871 else 12872 rm -f "$nlist"T 12873 fi 12874 12875 # Make sure that we snagged all the symbols we need. 12876 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12877 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12878 cat <<_LT_EOF > conftest.$ac_ext 12879/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12880#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12881/* DATA imports from DLLs on WIN32 con't be const, because runtime 12882 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12883# define LT_DLSYM_CONST 12884#elif defined(__osf__) 12885/* This system does not cope well with relocations in const data. */ 12886# define LT_DLSYM_CONST 12887#else 12888# define LT_DLSYM_CONST const 12889#endif 12890 12891#ifdef __cplusplus 12892extern "C" { 12893#endif 12894 12895_LT_EOF 12896 # Now generate the symbol file. 12897 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12898 12899 cat <<_LT_EOF >> conftest.$ac_ext 12900 12901/* The mapping between symbol names and symbols. */ 12902LT_DLSYM_CONST struct { 12903 const char *name; 12904 void *address; 12905} 12906lt__PROGRAM__LTX_preloaded_symbols[] = 12907{ 12908 { "@PROGRAM@", (void *) 0 }, 12909_LT_EOF 12910 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12911 cat <<\_LT_EOF >> conftest.$ac_ext 12912 {0, (void *) 0} 12913}; 12914 12915/* This works around a problem in FreeBSD linker */ 12916#ifdef FREEBSD_WORKAROUND 12917static const void *lt_preloaded_setup() { 12918 return lt__PROGRAM__LTX_preloaded_symbols; 12919} 12920#endif 12921 12922#ifdef __cplusplus 12923} 12924#endif 12925_LT_EOF 12926 # Now try linking the two files. 12927 mv conftest.$ac_objext conftstm.$ac_objext 12928 lt_globsym_save_LIBS=$LIBS 12929 lt_globsym_save_CFLAGS=$CFLAGS 12930 LIBS="conftstm.$ac_objext" 12931 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12933 (eval $ac_link) 2>&5 12934 ac_status=$? 12935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12936 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12937 pipe_works=yes 12938 fi 12939 LIBS=$lt_globsym_save_LIBS 12940 CFLAGS=$lt_globsym_save_CFLAGS 12941 else 12942 echo "cannot find nm_test_func in $nlist" >&5 12943 fi 12944 else 12945 echo "cannot find nm_test_var in $nlist" >&5 12946 fi 12947 else 12948 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12949 fi 12950 else 12951 echo "$progname: failed program was:" >&5 12952 cat conftest.$ac_ext >&5 12953 fi 12954 rm -rf conftest* conftst* 12955 12956 # Do not use the global_symbol_pipe unless it works. 12957 if test "$pipe_works" = yes; then 12958 break 12959 else 12960 lt_cv_sys_global_symbol_pipe= 12961 fi 12962done 12963 12964fi 12965 12966if test -z "$lt_cv_sys_global_symbol_pipe"; then 12967 lt_cv_sys_global_symbol_to_cdecl= 12968fi 12969if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12971$as_echo "failed" >&6; } 12972else 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12974$as_echo "ok" >&6; } 12975fi 12976 12977# Response file support. 12978if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12979 nm_file_list_spec='@' 12980elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12981 nm_file_list_spec='@' 12982fi 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13011$as_echo_n "checking for sysroot... " >&6; } 13012 13013# Check whether --with-sysroot was given. 13014if test "${with_sysroot+set}" = set; then : 13015 withval=$with_sysroot; 13016else 13017 with_sysroot=no 13018fi 13019 13020 13021lt_sysroot= 13022case ${with_sysroot} in #( 13023 yes) 13024 if test "$GCC" = yes; then 13025 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13026 fi 13027 ;; #( 13028 /*) 13029 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13030 ;; #( 13031 no|'') 13032 ;; #( 13033 *) 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 13035$as_echo "${with_sysroot}" >&6; } 13036 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13037 ;; 13038esac 13039 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13041$as_echo "${lt_sysroot:-no}" >&6; } 13042 13043 13044 13045 13046 13047# Check whether --enable-libtool-lock was given. 13048if test "${enable_libtool_lock+set}" = set; then : 13049 enableval=$enable_libtool_lock; 13050fi 13051 13052test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 13053 13054# Some flags need to be propagated to the compiler or linker for good 13055# libtool support. 13056case $host in 13057ia64-*-hpux*) 13058 # Find out which ABI we are using. 13059 echo 'int i;' > conftest.$ac_ext 13060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13061 (eval $ac_compile) 2>&5 13062 ac_status=$? 13063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13064 test $ac_status = 0; }; then 13065 case `/usr/bin/file conftest.$ac_objext` in 13066 *ELF-32*) 13067 HPUX_IA64_MODE="32" 13068 ;; 13069 *ELF-64*) 13070 HPUX_IA64_MODE="64" 13071 ;; 13072 esac 13073 fi 13074 rm -rf conftest* 13075 ;; 13076*-*-irix6*) 13077 # Find out which ABI we are using. 13078 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13080 (eval $ac_compile) 2>&5 13081 ac_status=$? 13082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13083 test $ac_status = 0; }; then 13084 if test "$lt_cv_prog_gnu_ld" = yes; then 13085 case `/usr/bin/file conftest.$ac_objext` in 13086 *32-bit*) 13087 LD="${LD-ld} -melf32bsmip" 13088 ;; 13089 *N32*) 13090 LD="${LD-ld} -melf32bmipn32" 13091 ;; 13092 *64-bit*) 13093 LD="${LD-ld} -melf64bmip" 13094 ;; 13095 esac 13096 else 13097 case `/usr/bin/file conftest.$ac_objext` in 13098 *32-bit*) 13099 LD="${LD-ld} -32" 13100 ;; 13101 *N32*) 13102 LD="${LD-ld} -n32" 13103 ;; 13104 *64-bit*) 13105 LD="${LD-ld} -64" 13106 ;; 13107 esac 13108 fi 13109 fi 13110 rm -rf conftest* 13111 ;; 13112 13113x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13114s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13115 # Find out which ABI we are using. 13116 echo 'int i;' > conftest.$ac_ext 13117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13118 (eval $ac_compile) 2>&5 13119 ac_status=$? 13120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13121 test $ac_status = 0; }; then 13122 case `/usr/bin/file conftest.o` in 13123 *32-bit*) 13124 case $host in 13125 x86_64-*kfreebsd*-gnu) 13126 LD="${LD-ld} -m elf_i386_fbsd" 13127 ;; 13128 x86_64-*linux*) 13129 case `/usr/bin/file conftest.o` in 13130 *x86-64*) 13131 LD="${LD-ld} -m elf32_x86_64" 13132 ;; 13133 *) 13134 LD="${LD-ld} -m elf_i386" 13135 ;; 13136 esac 13137 ;; 13138 powerpc64le-*) 13139 LD="${LD-ld} -m elf32lppclinux" 13140 ;; 13141 powerpc64-*) 13142 LD="${LD-ld} -m elf32ppclinux" 13143 ;; 13144 s390x-*linux*) 13145 LD="${LD-ld} -m elf_s390" 13146 ;; 13147 sparc64-*linux*) 13148 LD="${LD-ld} -m elf32_sparc" 13149 ;; 13150 esac 13151 ;; 13152 *64-bit*) 13153 case $host in 13154 x86_64-*kfreebsd*-gnu) 13155 LD="${LD-ld} -m elf_x86_64_fbsd" 13156 ;; 13157 x86_64-*linux*) 13158 LD="${LD-ld} -m elf_x86_64" 13159 ;; 13160 powerpcle-*) 13161 LD="${LD-ld} -m elf64lppc" 13162 ;; 13163 powerpc-*) 13164 LD="${LD-ld} -m elf64ppc" 13165 ;; 13166 s390*-*linux*|s390*-*tpf*) 13167 LD="${LD-ld} -m elf64_s390" 13168 ;; 13169 sparc*-*linux*) 13170 LD="${LD-ld} -m elf64_sparc" 13171 ;; 13172 esac 13173 ;; 13174 esac 13175 fi 13176 rm -rf conftest* 13177 ;; 13178 13179*-*-sco3.2v5*) 13180 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13181 SAVE_CFLAGS="$CFLAGS" 13182 CFLAGS="$CFLAGS -belf" 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13184$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13185if ${lt_cv_cc_needs_belf+:} false; then : 13186 $as_echo_n "(cached) " >&6 13187else 13188 ac_ext=c 13189ac_cpp='$CPP $CPPFLAGS' 13190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13192ac_compiler_gnu=$ac_cv_c_compiler_gnu 13193 13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13195/* end confdefs.h. */ 13196 13197int 13198main () 13199{ 13200 13201 ; 13202 return 0; 13203} 13204_ACEOF 13205if ac_fn_c_try_link "$LINENO"; then : 13206 lt_cv_cc_needs_belf=yes 13207else 13208 lt_cv_cc_needs_belf=no 13209fi 13210rm -f core conftest.err conftest.$ac_objext \ 13211 conftest$ac_exeext conftest.$ac_ext 13212 ac_ext=c 13213ac_cpp='$CPP $CPPFLAGS' 13214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13216ac_compiler_gnu=$ac_cv_c_compiler_gnu 13217 13218fi 13219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13220$as_echo "$lt_cv_cc_needs_belf" >&6; } 13221 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13222 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13223 CFLAGS="$SAVE_CFLAGS" 13224 fi 13225 ;; 13226*-*solaris*) 13227 # Find out which ABI we are using. 13228 echo 'int i;' > conftest.$ac_ext 13229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13230 (eval $ac_compile) 2>&5 13231 ac_status=$? 13232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13233 test $ac_status = 0; }; then 13234 case `/usr/bin/file conftest.o` in 13235 *64-bit*) 13236 case $lt_cv_prog_gnu_ld in 13237 yes*) 13238 case $host in 13239 i?86-*-solaris*) 13240 LD="${LD-ld} -m elf_x86_64" 13241 ;; 13242 sparc*-*-solaris*) 13243 LD="${LD-ld} -m elf64_sparc" 13244 ;; 13245 esac 13246 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13247 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13248 LD="${LD-ld}_sol2" 13249 fi 13250 ;; 13251 *) 13252 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13253 LD="${LD-ld} -64" 13254 fi 13255 ;; 13256 esac 13257 ;; 13258 esac 13259 fi 13260 rm -rf conftest* 13261 ;; 13262esac 13263 13264need_locks="$enable_libtool_lock" 13265 13266if test -n "$ac_tool_prefix"; then 13267 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13268set dummy ${ac_tool_prefix}mt; ac_word=$2 13269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13270$as_echo_n "checking for $ac_word... " >&6; } 13271if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13272 $as_echo_n "(cached) " >&6 13273else 13274 if test -n "$MANIFEST_TOOL"; then 13275 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13276else 13277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13278for as_dir in $PATH 13279do 13280 IFS=$as_save_IFS 13281 test -z "$as_dir" && as_dir=. 13282 for ac_exec_ext in '' $ac_executable_extensions; do 13283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13284 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13286 break 2 13287 fi 13288done 13289 done 13290IFS=$as_save_IFS 13291 13292fi 13293fi 13294MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13295if test -n "$MANIFEST_TOOL"; then 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13297$as_echo "$MANIFEST_TOOL" >&6; } 13298else 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13300$as_echo "no" >&6; } 13301fi 13302 13303 13304fi 13305if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13306 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13307 # Extract the first word of "mt", so it can be a program name with args. 13308set dummy mt; ac_word=$2 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13310$as_echo_n "checking for $ac_word... " >&6; } 13311if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13312 $as_echo_n "(cached) " >&6 13313else 13314 if test -n "$ac_ct_MANIFEST_TOOL"; then 13315 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13316else 13317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13318for as_dir in $PATH 13319do 13320 IFS=$as_save_IFS 13321 test -z "$as_dir" && as_dir=. 13322 for ac_exec_ext in '' $ac_executable_extensions; do 13323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13324 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13326 break 2 13327 fi 13328done 13329 done 13330IFS=$as_save_IFS 13331 13332fi 13333fi 13334ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13335if test -n "$ac_ct_MANIFEST_TOOL"; then 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13337$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13338else 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13340$as_echo "no" >&6; } 13341fi 13342 13343 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13344 MANIFEST_TOOL=":" 13345 else 13346 case $cross_compiling:$ac_tool_warned in 13347yes:) 13348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13350ac_tool_warned=yes ;; 13351esac 13352 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13353 fi 13354else 13355 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13356fi 13357 13358test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13360$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13361if ${lt_cv_path_mainfest_tool+:} false; then : 13362 $as_echo_n "(cached) " >&6 13363else 13364 lt_cv_path_mainfest_tool=no 13365 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13366 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13367 cat conftest.err >&5 13368 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13369 lt_cv_path_mainfest_tool=yes 13370 fi 13371 rm -f conftest* 13372fi 13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13374$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13375if test "x$lt_cv_path_mainfest_tool" != xyes; then 13376 MANIFEST_TOOL=: 13377fi 13378 13379 13380 13381 13382 13383 13384 case $host_os in 13385 rhapsody* | darwin*) 13386 if test -n "$ac_tool_prefix"; then 13387 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13388set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13390$as_echo_n "checking for $ac_word... " >&6; } 13391if ${ac_cv_prog_DSYMUTIL+:} false; then : 13392 $as_echo_n "(cached) " >&6 13393else 13394 if test -n "$DSYMUTIL"; then 13395 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13396else 13397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13398for as_dir in $PATH 13399do 13400 IFS=$as_save_IFS 13401 test -z "$as_dir" && as_dir=. 13402 for ac_exec_ext in '' $ac_executable_extensions; do 13403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13404 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13406 break 2 13407 fi 13408done 13409 done 13410IFS=$as_save_IFS 13411 13412fi 13413fi 13414DSYMUTIL=$ac_cv_prog_DSYMUTIL 13415if test -n "$DSYMUTIL"; then 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13417$as_echo "$DSYMUTIL" >&6; } 13418else 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13420$as_echo "no" >&6; } 13421fi 13422 13423 13424fi 13425if test -z "$ac_cv_prog_DSYMUTIL"; then 13426 ac_ct_DSYMUTIL=$DSYMUTIL 13427 # Extract the first word of "dsymutil", so it can be a program name with args. 13428set dummy dsymutil; ac_word=$2 13429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13430$as_echo_n "checking for $ac_word... " >&6; } 13431if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13432 $as_echo_n "(cached) " >&6 13433else 13434 if test -n "$ac_ct_DSYMUTIL"; then 13435 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13436else 13437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13438for as_dir in $PATH 13439do 13440 IFS=$as_save_IFS 13441 test -z "$as_dir" && as_dir=. 13442 for ac_exec_ext in '' $ac_executable_extensions; do 13443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13444 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13446 break 2 13447 fi 13448done 13449 done 13450IFS=$as_save_IFS 13451 13452fi 13453fi 13454ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13455if test -n "$ac_ct_DSYMUTIL"; then 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13457$as_echo "$ac_ct_DSYMUTIL" >&6; } 13458else 13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13460$as_echo "no" >&6; } 13461fi 13462 13463 if test "x$ac_ct_DSYMUTIL" = x; then 13464 DSYMUTIL=":" 13465 else 13466 case $cross_compiling:$ac_tool_warned in 13467yes:) 13468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13470ac_tool_warned=yes ;; 13471esac 13472 DSYMUTIL=$ac_ct_DSYMUTIL 13473 fi 13474else 13475 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13476fi 13477 13478 if test -n "$ac_tool_prefix"; then 13479 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13480set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13482$as_echo_n "checking for $ac_word... " >&6; } 13483if ${ac_cv_prog_NMEDIT+:} false; then : 13484 $as_echo_n "(cached) " >&6 13485else 13486 if test -n "$NMEDIT"; then 13487 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13488else 13489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13490for as_dir in $PATH 13491do 13492 IFS=$as_save_IFS 13493 test -z "$as_dir" && as_dir=. 13494 for ac_exec_ext in '' $ac_executable_extensions; do 13495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13496 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13498 break 2 13499 fi 13500done 13501 done 13502IFS=$as_save_IFS 13503 13504fi 13505fi 13506NMEDIT=$ac_cv_prog_NMEDIT 13507if test -n "$NMEDIT"; then 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13509$as_echo "$NMEDIT" >&6; } 13510else 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13512$as_echo "no" >&6; } 13513fi 13514 13515 13516fi 13517if test -z "$ac_cv_prog_NMEDIT"; then 13518 ac_ct_NMEDIT=$NMEDIT 13519 # Extract the first word of "nmedit", so it can be a program name with args. 13520set dummy nmedit; ac_word=$2 13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13522$as_echo_n "checking for $ac_word... " >&6; } 13523if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13524 $as_echo_n "(cached) " >&6 13525else 13526 if test -n "$ac_ct_NMEDIT"; then 13527 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13528else 13529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13530for as_dir in $PATH 13531do 13532 IFS=$as_save_IFS 13533 test -z "$as_dir" && as_dir=. 13534 for ac_exec_ext in '' $ac_executable_extensions; do 13535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13536 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13538 break 2 13539 fi 13540done 13541 done 13542IFS=$as_save_IFS 13543 13544fi 13545fi 13546ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13547if test -n "$ac_ct_NMEDIT"; then 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13549$as_echo "$ac_ct_NMEDIT" >&6; } 13550else 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13552$as_echo "no" >&6; } 13553fi 13554 13555 if test "x$ac_ct_NMEDIT" = x; then 13556 NMEDIT=":" 13557 else 13558 case $cross_compiling:$ac_tool_warned in 13559yes:) 13560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13562ac_tool_warned=yes ;; 13563esac 13564 NMEDIT=$ac_ct_NMEDIT 13565 fi 13566else 13567 NMEDIT="$ac_cv_prog_NMEDIT" 13568fi 13569 13570 if test -n "$ac_tool_prefix"; then 13571 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13572set dummy ${ac_tool_prefix}lipo; ac_word=$2 13573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13574$as_echo_n "checking for $ac_word... " >&6; } 13575if ${ac_cv_prog_LIPO+:} false; then : 13576 $as_echo_n "(cached) " >&6 13577else 13578 if test -n "$LIPO"; then 13579 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13580else 13581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13582for as_dir in $PATH 13583do 13584 IFS=$as_save_IFS 13585 test -z "$as_dir" && as_dir=. 13586 for ac_exec_ext in '' $ac_executable_extensions; do 13587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13588 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13590 break 2 13591 fi 13592done 13593 done 13594IFS=$as_save_IFS 13595 13596fi 13597fi 13598LIPO=$ac_cv_prog_LIPO 13599if test -n "$LIPO"; then 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13601$as_echo "$LIPO" >&6; } 13602else 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13604$as_echo "no" >&6; } 13605fi 13606 13607 13608fi 13609if test -z "$ac_cv_prog_LIPO"; then 13610 ac_ct_LIPO=$LIPO 13611 # Extract the first word of "lipo", so it can be a program name with args. 13612set dummy lipo; ac_word=$2 13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13614$as_echo_n "checking for $ac_word... " >&6; } 13615if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13616 $as_echo_n "(cached) " >&6 13617else 13618 if test -n "$ac_ct_LIPO"; then 13619 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13620else 13621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13622for as_dir in $PATH 13623do 13624 IFS=$as_save_IFS 13625 test -z "$as_dir" && as_dir=. 13626 for ac_exec_ext in '' $ac_executable_extensions; do 13627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13628 ac_cv_prog_ac_ct_LIPO="lipo" 13629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13630 break 2 13631 fi 13632done 13633 done 13634IFS=$as_save_IFS 13635 13636fi 13637fi 13638ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13639if test -n "$ac_ct_LIPO"; then 13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13641$as_echo "$ac_ct_LIPO" >&6; } 13642else 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13644$as_echo "no" >&6; } 13645fi 13646 13647 if test "x$ac_ct_LIPO" = x; then 13648 LIPO=":" 13649 else 13650 case $cross_compiling:$ac_tool_warned in 13651yes:) 13652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13654ac_tool_warned=yes ;; 13655esac 13656 LIPO=$ac_ct_LIPO 13657 fi 13658else 13659 LIPO="$ac_cv_prog_LIPO" 13660fi 13661 13662 if test -n "$ac_tool_prefix"; then 13663 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13664set dummy ${ac_tool_prefix}otool; ac_word=$2 13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13666$as_echo_n "checking for $ac_word... " >&6; } 13667if ${ac_cv_prog_OTOOL+:} false; then : 13668 $as_echo_n "(cached) " >&6 13669else 13670 if test -n "$OTOOL"; then 13671 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13672else 13673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13674for as_dir in $PATH 13675do 13676 IFS=$as_save_IFS 13677 test -z "$as_dir" && as_dir=. 13678 for ac_exec_ext in '' $ac_executable_extensions; do 13679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13680 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13682 break 2 13683 fi 13684done 13685 done 13686IFS=$as_save_IFS 13687 13688fi 13689fi 13690OTOOL=$ac_cv_prog_OTOOL 13691if test -n "$OTOOL"; then 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13693$as_echo "$OTOOL" >&6; } 13694else 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13696$as_echo "no" >&6; } 13697fi 13698 13699 13700fi 13701if test -z "$ac_cv_prog_OTOOL"; then 13702 ac_ct_OTOOL=$OTOOL 13703 # Extract the first word of "otool", so it can be a program name with args. 13704set dummy otool; ac_word=$2 13705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13706$as_echo_n "checking for $ac_word... " >&6; } 13707if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13708 $as_echo_n "(cached) " >&6 13709else 13710 if test -n "$ac_ct_OTOOL"; then 13711 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13712else 13713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13714for as_dir in $PATH 13715do 13716 IFS=$as_save_IFS 13717 test -z "$as_dir" && as_dir=. 13718 for ac_exec_ext in '' $ac_executable_extensions; do 13719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13720 ac_cv_prog_ac_ct_OTOOL="otool" 13721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13722 break 2 13723 fi 13724done 13725 done 13726IFS=$as_save_IFS 13727 13728fi 13729fi 13730ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13731if test -n "$ac_ct_OTOOL"; then 13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13733$as_echo "$ac_ct_OTOOL" >&6; } 13734else 13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13736$as_echo "no" >&6; } 13737fi 13738 13739 if test "x$ac_ct_OTOOL" = x; then 13740 OTOOL=":" 13741 else 13742 case $cross_compiling:$ac_tool_warned in 13743yes:) 13744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13746ac_tool_warned=yes ;; 13747esac 13748 OTOOL=$ac_ct_OTOOL 13749 fi 13750else 13751 OTOOL="$ac_cv_prog_OTOOL" 13752fi 13753 13754 if test -n "$ac_tool_prefix"; then 13755 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13756set dummy ${ac_tool_prefix}otool64; ac_word=$2 13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13758$as_echo_n "checking for $ac_word... " >&6; } 13759if ${ac_cv_prog_OTOOL64+:} false; then : 13760 $as_echo_n "(cached) " >&6 13761else 13762 if test -n "$OTOOL64"; then 13763 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13764else 13765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13766for as_dir in $PATH 13767do 13768 IFS=$as_save_IFS 13769 test -z "$as_dir" && as_dir=. 13770 for ac_exec_ext in '' $ac_executable_extensions; do 13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13772 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13774 break 2 13775 fi 13776done 13777 done 13778IFS=$as_save_IFS 13779 13780fi 13781fi 13782OTOOL64=$ac_cv_prog_OTOOL64 13783if test -n "$OTOOL64"; then 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13785$as_echo "$OTOOL64" >&6; } 13786else 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13788$as_echo "no" >&6; } 13789fi 13790 13791 13792fi 13793if test -z "$ac_cv_prog_OTOOL64"; then 13794 ac_ct_OTOOL64=$OTOOL64 13795 # Extract the first word of "otool64", so it can be a program name with args. 13796set dummy otool64; ac_word=$2 13797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13798$as_echo_n "checking for $ac_word... " >&6; } 13799if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 if test -n "$ac_ct_OTOOL64"; then 13803 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13804else 13805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13806for as_dir in $PATH 13807do 13808 IFS=$as_save_IFS 13809 test -z "$as_dir" && as_dir=. 13810 for ac_exec_ext in '' $ac_executable_extensions; do 13811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13812 ac_cv_prog_ac_ct_OTOOL64="otool64" 13813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13814 break 2 13815 fi 13816done 13817 done 13818IFS=$as_save_IFS 13819 13820fi 13821fi 13822ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13823if test -n "$ac_ct_OTOOL64"; then 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13825$as_echo "$ac_ct_OTOOL64" >&6; } 13826else 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13828$as_echo "no" >&6; } 13829fi 13830 13831 if test "x$ac_ct_OTOOL64" = x; then 13832 OTOOL64=":" 13833 else 13834 case $cross_compiling:$ac_tool_warned in 13835yes:) 13836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13838ac_tool_warned=yes ;; 13839esac 13840 OTOOL64=$ac_ct_OTOOL64 13841 fi 13842else 13843 OTOOL64="$ac_cv_prog_OTOOL64" 13844fi 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13873$as_echo_n "checking for -single_module linker flag... " >&6; } 13874if ${lt_cv_apple_cc_single_mod+:} false; then : 13875 $as_echo_n "(cached) " >&6 13876else 13877 lt_cv_apple_cc_single_mod=no 13878 if test -z "${LT_MULTI_MODULE}"; then 13879 # By default we will add the -single_module flag. You can override 13880 # by either setting the environment variable LT_MULTI_MODULE 13881 # non-empty at configure time, or by adding -multi_module to the 13882 # link flags. 13883 rm -rf libconftest.dylib* 13884 echo "int foo(void){return 1;}" > conftest.c 13885 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13886-dynamiclib -Wl,-single_module conftest.c" >&5 13887 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13888 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13889 _lt_result=$? 13890 # If there is a non-empty error log, and "single_module" 13891 # appears in it, assume the flag caused a linker warning 13892 if test -s conftest.err && $GREP single_module conftest.err; then 13893 cat conftest.err >&5 13894 # Otherwise, if the output was created with a 0 exit code from 13895 # the compiler, it worked. 13896 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13897 lt_cv_apple_cc_single_mod=yes 13898 else 13899 cat conftest.err >&5 13900 fi 13901 rm -rf libconftest.dylib* 13902 rm -f conftest.* 13903 fi 13904fi 13905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13906$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13907 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13909$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13910if ${lt_cv_ld_exported_symbols_list+:} false; then : 13911 $as_echo_n "(cached) " >&6 13912else 13913 lt_cv_ld_exported_symbols_list=no 13914 save_LDFLAGS=$LDFLAGS 13915 echo "_main" > conftest.sym 13916 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13918/* end confdefs.h. */ 13919 13920int 13921main () 13922{ 13923 13924 ; 13925 return 0; 13926} 13927_ACEOF 13928if ac_fn_c_try_link "$LINENO"; then : 13929 lt_cv_ld_exported_symbols_list=yes 13930else 13931 lt_cv_ld_exported_symbols_list=no 13932fi 13933rm -f core conftest.err conftest.$ac_objext \ 13934 conftest$ac_exeext conftest.$ac_ext 13935 LDFLAGS="$save_LDFLAGS" 13936 13937fi 13938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13939$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13940 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13942$as_echo_n "checking for -force_load linker flag... " >&6; } 13943if ${lt_cv_ld_force_load+:} false; then : 13944 $as_echo_n "(cached) " >&6 13945else 13946 lt_cv_ld_force_load=no 13947 cat > conftest.c << _LT_EOF 13948int forced_loaded() { return 2;} 13949_LT_EOF 13950 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13951 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13952 echo "$AR cru libconftest.a conftest.o" >&5 13953 $AR cru libconftest.a conftest.o 2>&5 13954 echo "$RANLIB libconftest.a" >&5 13955 $RANLIB libconftest.a 2>&5 13956 cat > conftest.c << _LT_EOF 13957int main() { return 0;} 13958_LT_EOF 13959 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13960 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13961 _lt_result=$? 13962 if test -s conftest.err && $GREP force_load conftest.err; then 13963 cat conftest.err >&5 13964 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13965 lt_cv_ld_force_load=yes 13966 else 13967 cat conftest.err >&5 13968 fi 13969 rm -f conftest.err libconftest.a conftest conftest.c 13970 rm -rf conftest.dSYM 13971 13972fi 13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13974$as_echo "$lt_cv_ld_force_load" >&6; } 13975 case $host_os in 13976 rhapsody* | darwin1.[012]) 13977 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13978 darwin1.*) 13979 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13980 darwin*) # darwin 5.x on 13981 # if running on 10.5 or later, the deployment target defaults 13982 # to the OS version, if on x86, and 10.4, the deployment 13983 # target defaults to 10.4. Don't you love it? 13984 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13985 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13987 10.[012]*) 13988 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13989 10.*) 13990 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13991 esac 13992 ;; 13993 esac 13994 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13995 _lt_dar_single_mod='$single_module' 13996 fi 13997 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13998 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13999 else 14000 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 14001 fi 14002 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 14003 _lt_dsymutil='~$DSYMUTIL $lib || :' 14004 else 14005 _lt_dsymutil= 14006 fi 14007 ;; 14008 esac 14009 14010for ac_header in dlfcn.h 14011do : 14012 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14013" 14014if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14015 cat >>confdefs.h <<_ACEOF 14016#define HAVE_DLFCN_H 1 14017_ACEOF 14018 14019fi 14020 14021done 14022 14023 14024 14025 14026 14027# Set options 14028 14029 14030 14031 enable_dlopen=no 14032 14033 14034 enable_win32_dll=no 14035 14036 14037 # Check whether --enable-shared was given. 14038if test "${enable_shared+set}" = set; then : 14039 enableval=$enable_shared; p=${PACKAGE-default} 14040 case $enableval in 14041 yes) enable_shared=yes ;; 14042 no) enable_shared=no ;; 14043 *) 14044 enable_shared=no 14045 # Look at the argument we got. We use all the common list separators. 14046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14047 for pkg in $enableval; do 14048 IFS="$lt_save_ifs" 14049 if test "X$pkg" = "X$p"; then 14050 enable_shared=yes 14051 fi 14052 done 14053 IFS="$lt_save_ifs" 14054 ;; 14055 esac 14056else 14057 enable_shared=yes 14058fi 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070# Check whether --with-pic was given. 14071if test "${with_pic+set}" = set; then : 14072 withval=$with_pic; lt_p=${PACKAGE-default} 14073 case $withval in 14074 yes|no) pic_mode=$withval ;; 14075 *) 14076 pic_mode=default 14077 # Look at the argument we got. We use all the common list separators. 14078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14079 for lt_pkg in $withval; do 14080 IFS="$lt_save_ifs" 14081 if test "X$lt_pkg" = "X$lt_p"; then 14082 pic_mode=yes 14083 fi 14084 done 14085 IFS="$lt_save_ifs" 14086 ;; 14087 esac 14088else 14089 pic_mode=default 14090fi 14091 14092 14093test -z "$pic_mode" && pic_mode=default 14094 14095 14096 14097 14098 14099 14100 14101 # Check whether --enable-fast-install was given. 14102if test "${enable_fast_install+set}" = set; then : 14103 enableval=$enable_fast_install; p=${PACKAGE-default} 14104 case $enableval in 14105 yes) enable_fast_install=yes ;; 14106 no) enable_fast_install=no ;; 14107 *) 14108 enable_fast_install=no 14109 # Look at the argument we got. We use all the common list separators. 14110 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14111 for pkg in $enableval; do 14112 IFS="$lt_save_ifs" 14113 if test "X$pkg" = "X$p"; then 14114 enable_fast_install=yes 14115 fi 14116 done 14117 IFS="$lt_save_ifs" 14118 ;; 14119 esac 14120else 14121 enable_fast_install=yes 14122fi 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134# This can be used to rebuild libtool when needed 14135LIBTOOL_DEPS="$ltmain" 14136 14137# Always use our own libtool. 14138LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169test -z "$LN_S" && LN_S="ln -s" 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184if test -n "${ZSH_VERSION+set}" ; then 14185 setopt NO_GLOB_SUBST 14186fi 14187 14188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14189$as_echo_n "checking for objdir... " >&6; } 14190if ${lt_cv_objdir+:} false; then : 14191 $as_echo_n "(cached) " >&6 14192else 14193 rm -f .libs 2>/dev/null 14194mkdir .libs 2>/dev/null 14195if test -d .libs; then 14196 lt_cv_objdir=.libs 14197else 14198 # MS-DOS does not allow filenames that begin with a dot. 14199 lt_cv_objdir=_libs 14200fi 14201rmdir .libs 2>/dev/null 14202fi 14203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14204$as_echo "$lt_cv_objdir" >&6; } 14205objdir=$lt_cv_objdir 14206 14207 14208 14209 14210 14211cat >>confdefs.h <<_ACEOF 14212#define LT_OBJDIR "$lt_cv_objdir/" 14213_ACEOF 14214 14215 14216 14217 14218case $host_os in 14219aix3*) 14220 # AIX sometimes has problems with the GCC collect2 program. For some 14221 # reason, if we set the COLLECT_NAMES environment variable, the problems 14222 # vanish in a puff of smoke. 14223 if test "X${COLLECT_NAMES+set}" != Xset; then 14224 COLLECT_NAMES= 14225 export COLLECT_NAMES 14226 fi 14227 ;; 14228esac 14229 14230# Global variables: 14231ofile=libtool 14232can_build_shared=yes 14233 14234# All known linkers require a `.a' archive for static linking (except MSVC, 14235# which needs '.lib'). 14236libext=a 14237 14238with_gnu_ld="$lt_cv_prog_gnu_ld" 14239 14240old_CC="$CC" 14241old_CFLAGS="$CFLAGS" 14242 14243# Set sane defaults for various variables 14244test -z "$CC" && CC=cc 14245test -z "$LTCC" && LTCC=$CC 14246test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14247test -z "$LD" && LD=ld 14248test -z "$ac_objext" && ac_objext=o 14249 14250for cc_temp in $compiler""; do 14251 case $cc_temp in 14252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14254 \-*) ;; 14255 *) break;; 14256 esac 14257done 14258cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14259 14260 14261# Only perform the check for file, if the check method requires it 14262test -z "$MAGIC_CMD" && MAGIC_CMD=file 14263case $deplibs_check_method in 14264file_magic*) 14265 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14267$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14268if ${lt_cv_path_MAGIC_CMD+:} false; then : 14269 $as_echo_n "(cached) " >&6 14270else 14271 case $MAGIC_CMD in 14272[\\/*] | ?:[\\/]*) 14273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14274 ;; 14275*) 14276 lt_save_MAGIC_CMD="$MAGIC_CMD" 14277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14278 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14279 for ac_dir in $ac_dummy; do 14280 IFS="$lt_save_ifs" 14281 test -z "$ac_dir" && ac_dir=. 14282 if test -f $ac_dir/${ac_tool_prefix}file; then 14283 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14284 if test -n "$file_magic_test_file"; then 14285 case $deplibs_check_method in 14286 "file_magic "*) 14287 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14289 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14290 $EGREP "$file_magic_regex" > /dev/null; then 14291 : 14292 else 14293 cat <<_LT_EOF 1>&2 14294 14295*** Warning: the command libtool uses to detect shared libraries, 14296*** $file_magic_cmd, produces output that libtool cannot recognize. 14297*** The result is that libtool may fail to recognize shared libraries 14298*** as such. This will affect the creation of libtool libraries that 14299*** depend on shared libraries, but programs linked with such libtool 14300*** libraries will work regardless of this problem. Nevertheless, you 14301*** may want to report the problem to your system manager and/or to 14302*** bug-libtool@gnu.org 14303 14304_LT_EOF 14305 fi ;; 14306 esac 14307 fi 14308 break 14309 fi 14310 done 14311 IFS="$lt_save_ifs" 14312 MAGIC_CMD="$lt_save_MAGIC_CMD" 14313 ;; 14314esac 14315fi 14316 14317MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14318if test -n "$MAGIC_CMD"; then 14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14320$as_echo "$MAGIC_CMD" >&6; } 14321else 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14323$as_echo "no" >&6; } 14324fi 14325 14326 14327 14328 14329 14330if test -z "$lt_cv_path_MAGIC_CMD"; then 14331 if test -n "$ac_tool_prefix"; then 14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14333$as_echo_n "checking for file... " >&6; } 14334if ${lt_cv_path_MAGIC_CMD+:} false; then : 14335 $as_echo_n "(cached) " >&6 14336else 14337 case $MAGIC_CMD in 14338[\\/*] | ?:[\\/]*) 14339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14340 ;; 14341*) 14342 lt_save_MAGIC_CMD="$MAGIC_CMD" 14343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14345 for ac_dir in $ac_dummy; do 14346 IFS="$lt_save_ifs" 14347 test -z "$ac_dir" && ac_dir=. 14348 if test -f $ac_dir/file; then 14349 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14350 if test -n "$file_magic_test_file"; then 14351 case $deplibs_check_method in 14352 "file_magic "*) 14353 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14356 $EGREP "$file_magic_regex" > /dev/null; then 14357 : 14358 else 14359 cat <<_LT_EOF 1>&2 14360 14361*** Warning: the command libtool uses to detect shared libraries, 14362*** $file_magic_cmd, produces output that libtool cannot recognize. 14363*** The result is that libtool may fail to recognize shared libraries 14364*** as such. This will affect the creation of libtool libraries that 14365*** depend on shared libraries, but programs linked with such libtool 14366*** libraries will work regardless of this problem. Nevertheless, you 14367*** may want to report the problem to your system manager and/or to 14368*** bug-libtool@gnu.org 14369 14370_LT_EOF 14371 fi ;; 14372 esac 14373 fi 14374 break 14375 fi 14376 done 14377 IFS="$lt_save_ifs" 14378 MAGIC_CMD="$lt_save_MAGIC_CMD" 14379 ;; 14380esac 14381fi 14382 14383MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14384if test -n "$MAGIC_CMD"; then 14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14386$as_echo "$MAGIC_CMD" >&6; } 14387else 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14389$as_echo "no" >&6; } 14390fi 14391 14392 14393 else 14394 MAGIC_CMD=: 14395 fi 14396fi 14397 14398 fi 14399 ;; 14400esac 14401 14402# Use C for the default configuration in the libtool script 14403 14404lt_save_CC="$CC" 14405ac_ext=c 14406ac_cpp='$CPP $CPPFLAGS' 14407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14409ac_compiler_gnu=$ac_cv_c_compiler_gnu 14410 14411 14412# Source file extension for C test sources. 14413ac_ext=c 14414 14415# Object file extension for compiled C test sources. 14416objext=o 14417objext=$objext 14418 14419# Code to be used in simple compile tests 14420lt_simple_compile_test_code="int some_variable = 0;" 14421 14422# Code to be used in simple link tests 14423lt_simple_link_test_code='int main(){return(0);}' 14424 14425 14426 14427 14428 14429 14430 14431# If no C compiler was specified, use CC. 14432LTCC=${LTCC-"$CC"} 14433 14434# If no C compiler flags were specified, use CFLAGS. 14435LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14436 14437# Allow CC to be a program name with arguments. 14438compiler=$CC 14439 14440# Save the default compiler, since it gets overwritten when the other 14441# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14442compiler_DEFAULT=$CC 14443 14444# save warnings/boilerplate of simple test code 14445ac_outfile=conftest.$ac_objext 14446echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14447eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14448_lt_compiler_boilerplate=`cat conftest.err` 14449$RM conftest* 14450 14451ac_outfile=conftest.$ac_objext 14452echo "$lt_simple_link_test_code" >conftest.$ac_ext 14453eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14454_lt_linker_boilerplate=`cat conftest.err` 14455$RM -r conftest* 14456 14457 14458if test -n "$compiler"; then 14459 14460lt_prog_compiler_no_builtin_flag= 14461 14462if test "$GCC" = yes; then 14463 case $cc_basename in 14464 nvcc*) 14465 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14466 *) 14467 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14468 esac 14469 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14471$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14472if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14473 $as_echo_n "(cached) " >&6 14474else 14475 lt_cv_prog_compiler_rtti_exceptions=no 14476 ac_outfile=conftest.$ac_objext 14477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14478 lt_compiler_flag="-fno-rtti -fno-exceptions" 14479 # Insert the option either (1) after the last *FLAGS variable, or 14480 # (2) before a word containing "conftest.", or (3) at the end. 14481 # Note that $ac_compile itself does not contain backslashes and begins 14482 # with a dollar sign (not a hyphen), so the echo should work correctly. 14483 # The option is referenced via a variable to avoid confusing sed. 14484 lt_compile=`echo "$ac_compile" | $SED \ 14485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14487 -e 's:$: $lt_compiler_flag:'` 14488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14489 (eval "$lt_compile" 2>conftest.err) 14490 ac_status=$? 14491 cat conftest.err >&5 14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14493 if (exit $ac_status) && test -s "$ac_outfile"; then 14494 # The compiler can only warn and ignore the option if not recognized 14495 # So say no if there are warnings other than the usual output. 14496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14499 lt_cv_prog_compiler_rtti_exceptions=yes 14500 fi 14501 fi 14502 $RM conftest* 14503 14504fi 14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14506$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14507 14508if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14509 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14510else 14511 : 14512fi 14513 14514fi 14515 14516 14517 14518 14519 14520 14521 lt_prog_compiler_wl= 14522lt_prog_compiler_pic= 14523lt_prog_compiler_static= 14524 14525 14526 if test "$GCC" = yes; then 14527 lt_prog_compiler_wl='-Wl,' 14528 lt_prog_compiler_static='-static' 14529 14530 case $host_os in 14531 aix*) 14532 # All AIX code is PIC. 14533 if test "$host_cpu" = ia64; then 14534 # AIX 5 now supports IA64 processor 14535 lt_prog_compiler_static='-Bstatic' 14536 fi 14537 ;; 14538 14539 amigaos*) 14540 case $host_cpu in 14541 powerpc) 14542 # see comment about AmigaOS4 .so support 14543 lt_prog_compiler_pic='-fPIC' 14544 ;; 14545 m68k) 14546 # FIXME: we need at least 68020 code to build shared libraries, but 14547 # adding the `-m68020' flag to GCC prevents building anything better, 14548 # like `-m68040'. 14549 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14550 ;; 14551 esac 14552 ;; 14553 14554 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14555 # PIC is the default for these OSes. 14556 ;; 14557 14558 mingw* | cygwin* | pw32* | os2* | cegcc*) 14559 # This hack is so that the source file can tell whether it is being 14560 # built for inclusion in a dll (and should export symbols for example). 14561 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14562 # (--disable-auto-import) libraries 14563 lt_prog_compiler_pic='-DDLL_EXPORT' 14564 ;; 14565 14566 darwin* | rhapsody*) 14567 # PIC is the default on this platform 14568 # Common symbols not allowed in MH_DYLIB files 14569 lt_prog_compiler_pic='-fno-common' 14570 ;; 14571 14572 haiku*) 14573 # PIC is the default for Haiku. 14574 # The "-static" flag exists, but is broken. 14575 lt_prog_compiler_static= 14576 ;; 14577 14578 hpux*) 14579 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14580 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14581 # sets the default TLS model and affects inlining. 14582 case $host_cpu in 14583 hppa*64*) 14584 # +Z the default 14585 ;; 14586 *) 14587 lt_prog_compiler_pic='-fPIC' 14588 ;; 14589 esac 14590 ;; 14591 14592 interix[3-9]*) 14593 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14594 # Instead, we relocate shared libraries at runtime. 14595 ;; 14596 14597 msdosdjgpp*) 14598 # Just because we use GCC doesn't mean we suddenly get shared libraries 14599 # on systems that don't support them. 14600 lt_prog_compiler_can_build_shared=no 14601 enable_shared=no 14602 ;; 14603 14604 *nto* | *qnx*) 14605 # QNX uses GNU C++, but need to define -shared option too, otherwise 14606 # it will coredump. 14607 lt_prog_compiler_pic='-fPIC -shared' 14608 ;; 14609 14610 sysv4*MP*) 14611 if test -d /usr/nec; then 14612 lt_prog_compiler_pic=-Kconform_pic 14613 fi 14614 ;; 14615 14616 *) 14617 lt_prog_compiler_pic='-fPIC' 14618 ;; 14619 esac 14620 14621 case $cc_basename in 14622 nvcc*) # Cuda Compiler Driver 2.2 14623 lt_prog_compiler_wl='-Xlinker ' 14624 if test -n "$lt_prog_compiler_pic"; then 14625 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14626 fi 14627 ;; 14628 esac 14629 else 14630 # PORTME Check for flag to pass linker flags through the system compiler. 14631 case $host_os in 14632 aix*) 14633 lt_prog_compiler_wl='-Wl,' 14634 if test "$host_cpu" = ia64; then 14635 # AIX 5 now supports IA64 processor 14636 lt_prog_compiler_static='-Bstatic' 14637 else 14638 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14639 fi 14640 ;; 14641 14642 mingw* | cygwin* | pw32* | os2* | cegcc*) 14643 # This hack is so that the source file can tell whether it is being 14644 # built for inclusion in a dll (and should export symbols for example). 14645 lt_prog_compiler_pic='-DDLL_EXPORT' 14646 ;; 14647 14648 hpux9* | hpux10* | hpux11*) 14649 lt_prog_compiler_wl='-Wl,' 14650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14651 # not for PA HP-UX. 14652 case $host_cpu in 14653 hppa*64*|ia64*) 14654 # +Z the default 14655 ;; 14656 *) 14657 lt_prog_compiler_pic='+Z' 14658 ;; 14659 esac 14660 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14661 lt_prog_compiler_static='${wl}-a ${wl}archive' 14662 ;; 14663 14664 irix5* | irix6* | nonstopux*) 14665 lt_prog_compiler_wl='-Wl,' 14666 # PIC (with -KPIC) is the default. 14667 lt_prog_compiler_static='-non_shared' 14668 ;; 14669 14670 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14671 case $cc_basename in 14672 # old Intel for x86_64 which still supported -KPIC. 14673 ecc*) 14674 lt_prog_compiler_wl='-Wl,' 14675 lt_prog_compiler_pic='-KPIC' 14676 lt_prog_compiler_static='-static' 14677 ;; 14678 # icc used to be incompatible with GCC. 14679 # ICC 10 doesn't accept -KPIC any more. 14680 icc* | ifort*) 14681 lt_prog_compiler_wl='-Wl,' 14682 lt_prog_compiler_pic='-fPIC' 14683 lt_prog_compiler_static='-static' 14684 ;; 14685 # Lahey Fortran 8.1. 14686 lf95*) 14687 lt_prog_compiler_wl='-Wl,' 14688 lt_prog_compiler_pic='--shared' 14689 lt_prog_compiler_static='--static' 14690 ;; 14691 nagfor*) 14692 # NAG Fortran compiler 14693 lt_prog_compiler_wl='-Wl,-Wl,,' 14694 lt_prog_compiler_pic='-PIC' 14695 lt_prog_compiler_static='-Bstatic' 14696 ;; 14697 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14698 # Portland Group compilers (*not* the Pentium gcc compiler, 14699 # which looks to be a dead project) 14700 lt_prog_compiler_wl='-Wl,' 14701 lt_prog_compiler_pic='-fpic' 14702 lt_prog_compiler_static='-Bstatic' 14703 ;; 14704 ccc*) 14705 lt_prog_compiler_wl='-Wl,' 14706 # All Alpha code is PIC. 14707 lt_prog_compiler_static='-non_shared' 14708 ;; 14709 xl* | bgxl* | bgf* | mpixl*) 14710 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14711 lt_prog_compiler_wl='-Wl,' 14712 lt_prog_compiler_pic='-qpic' 14713 lt_prog_compiler_static='-qstaticlink' 14714 ;; 14715 *) 14716 case `$CC -V 2>&1 | sed 5q` in 14717 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14718 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14719 lt_prog_compiler_pic='-KPIC' 14720 lt_prog_compiler_static='-Bstatic' 14721 lt_prog_compiler_wl='' 14722 ;; 14723 *Sun\ F* | *Sun*Fortran*) 14724 lt_prog_compiler_pic='-KPIC' 14725 lt_prog_compiler_static='-Bstatic' 14726 lt_prog_compiler_wl='-Qoption ld ' 14727 ;; 14728 *Sun\ C*) 14729 # Sun C 5.9 14730 lt_prog_compiler_pic='-KPIC' 14731 lt_prog_compiler_static='-Bstatic' 14732 lt_prog_compiler_wl='-Wl,' 14733 ;; 14734 *Intel*\ [CF]*Compiler*) 14735 lt_prog_compiler_wl='-Wl,' 14736 lt_prog_compiler_pic='-fPIC' 14737 lt_prog_compiler_static='-static' 14738 ;; 14739 *Portland\ Group*) 14740 lt_prog_compiler_wl='-Wl,' 14741 lt_prog_compiler_pic='-fpic' 14742 lt_prog_compiler_static='-Bstatic' 14743 ;; 14744 esac 14745 ;; 14746 esac 14747 ;; 14748 14749 newsos6) 14750 lt_prog_compiler_pic='-KPIC' 14751 lt_prog_compiler_static='-Bstatic' 14752 ;; 14753 14754 *nto* | *qnx*) 14755 # QNX uses GNU C++, but need to define -shared option too, otherwise 14756 # it will coredump. 14757 lt_prog_compiler_pic='-fPIC -shared' 14758 ;; 14759 14760 osf3* | osf4* | osf5*) 14761 lt_prog_compiler_wl='-Wl,' 14762 # All OSF/1 code is PIC. 14763 lt_prog_compiler_static='-non_shared' 14764 ;; 14765 14766 rdos*) 14767 lt_prog_compiler_static='-non_shared' 14768 ;; 14769 14770 solaris*) 14771 lt_prog_compiler_pic='-KPIC' 14772 lt_prog_compiler_static='-Bstatic' 14773 case $cc_basename in 14774 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14775 lt_prog_compiler_wl='-Qoption ld ';; 14776 *) 14777 lt_prog_compiler_wl='-Wl,';; 14778 esac 14779 ;; 14780 14781 sunos4*) 14782 lt_prog_compiler_wl='-Qoption ld ' 14783 lt_prog_compiler_pic='-PIC' 14784 lt_prog_compiler_static='-Bstatic' 14785 ;; 14786 14787 sysv4 | sysv4.2uw2* | sysv4.3*) 14788 lt_prog_compiler_wl='-Wl,' 14789 lt_prog_compiler_pic='-KPIC' 14790 lt_prog_compiler_static='-Bstatic' 14791 ;; 14792 14793 sysv4*MP*) 14794 if test -d /usr/nec ;then 14795 lt_prog_compiler_pic='-Kconform_pic' 14796 lt_prog_compiler_static='-Bstatic' 14797 fi 14798 ;; 14799 14800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14801 lt_prog_compiler_wl='-Wl,' 14802 lt_prog_compiler_pic='-KPIC' 14803 lt_prog_compiler_static='-Bstatic' 14804 ;; 14805 14806 unicos*) 14807 lt_prog_compiler_wl='-Wl,' 14808 lt_prog_compiler_can_build_shared=no 14809 ;; 14810 14811 uts4*) 14812 lt_prog_compiler_pic='-pic' 14813 lt_prog_compiler_static='-Bstatic' 14814 ;; 14815 14816 *) 14817 lt_prog_compiler_can_build_shared=no 14818 ;; 14819 esac 14820 fi 14821 14822case $host_os in 14823 # For platforms which do not support PIC, -DPIC is meaningless: 14824 *djgpp*) 14825 lt_prog_compiler_pic= 14826 ;; 14827 *) 14828 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14829 ;; 14830esac 14831 14832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14833$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14834if ${lt_cv_prog_compiler_pic+:} false; then : 14835 $as_echo_n "(cached) " >&6 14836else 14837 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14838fi 14839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14840$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14841lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14842 14843# 14844# Check to make sure the PIC flag actually works. 14845# 14846if test -n "$lt_prog_compiler_pic"; then 14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14848$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14849if ${lt_cv_prog_compiler_pic_works+:} false; then : 14850 $as_echo_n "(cached) " >&6 14851else 14852 lt_cv_prog_compiler_pic_works=no 14853 ac_outfile=conftest.$ac_objext 14854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14855 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14856 # Insert the option either (1) after the last *FLAGS variable, or 14857 # (2) before a word containing "conftest.", or (3) at the end. 14858 # Note that $ac_compile itself does not contain backslashes and begins 14859 # with a dollar sign (not a hyphen), so the echo should work correctly. 14860 # The option is referenced via a variable to avoid confusing sed. 14861 lt_compile=`echo "$ac_compile" | $SED \ 14862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14864 -e 's:$: $lt_compiler_flag:'` 14865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14866 (eval "$lt_compile" 2>conftest.err) 14867 ac_status=$? 14868 cat conftest.err >&5 14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14870 if (exit $ac_status) && test -s "$ac_outfile"; then 14871 # The compiler can only warn and ignore the option if not recognized 14872 # So say no if there are warnings other than the usual output. 14873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14876 lt_cv_prog_compiler_pic_works=yes 14877 fi 14878 fi 14879 $RM conftest* 14880 14881fi 14882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14883$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14884 14885if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14886 case $lt_prog_compiler_pic in 14887 "" | " "*) ;; 14888 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14889 esac 14890else 14891 lt_prog_compiler_pic= 14892 lt_prog_compiler_can_build_shared=no 14893fi 14894 14895fi 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907# 14908# Check to make sure the static flag actually works. 14909# 14910wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14912$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14913if ${lt_cv_prog_compiler_static_works+:} false; then : 14914 $as_echo_n "(cached) " >&6 14915else 14916 lt_cv_prog_compiler_static_works=no 14917 save_LDFLAGS="$LDFLAGS" 14918 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14919 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14920 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14921 # The linker can only warn and ignore the option if not recognized 14922 # So say no if there are warnings 14923 if test -s conftest.err; then 14924 # Append any errors to the config.log. 14925 cat conftest.err 1>&5 14926 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14928 if diff conftest.exp conftest.er2 >/dev/null; then 14929 lt_cv_prog_compiler_static_works=yes 14930 fi 14931 else 14932 lt_cv_prog_compiler_static_works=yes 14933 fi 14934 fi 14935 $RM -r conftest* 14936 LDFLAGS="$save_LDFLAGS" 14937 14938fi 14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14940$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14941 14942if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14943 : 14944else 14945 lt_prog_compiler_static= 14946fi 14947 14948 14949 14950 14951 14952 14953 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14955$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14956if ${lt_cv_prog_compiler_c_o+:} false; then : 14957 $as_echo_n "(cached) " >&6 14958else 14959 lt_cv_prog_compiler_c_o=no 14960 $RM -r conftest 2>/dev/null 14961 mkdir conftest 14962 cd conftest 14963 mkdir out 14964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14965 14966 lt_compiler_flag="-o out/conftest2.$ac_objext" 14967 # Insert the option either (1) after the last *FLAGS variable, or 14968 # (2) before a word containing "conftest.", or (3) at the end. 14969 # Note that $ac_compile itself does not contain backslashes and begins 14970 # with a dollar sign (not a hyphen), so the echo should work correctly. 14971 lt_compile=`echo "$ac_compile" | $SED \ 14972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14974 -e 's:$: $lt_compiler_flag:'` 14975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14976 (eval "$lt_compile" 2>out/conftest.err) 14977 ac_status=$? 14978 cat out/conftest.err >&5 14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14980 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14981 then 14982 # The compiler can only warn and ignore the option if not recognized 14983 # So say no if there are warnings 14984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14987 lt_cv_prog_compiler_c_o=yes 14988 fi 14989 fi 14990 chmod u+w . 2>&5 14991 $RM conftest* 14992 # SGI C++ compiler will create directory out/ii_files/ for 14993 # template instantiation 14994 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14995 $RM out/* && rmdir out 14996 cd .. 14997 $RM -r conftest 14998 $RM conftest* 14999 15000fi 15001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15002$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15003 15004 15005 15006 15007 15008 15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15010$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15011if ${lt_cv_prog_compiler_c_o+:} false; then : 15012 $as_echo_n "(cached) " >&6 15013else 15014 lt_cv_prog_compiler_c_o=no 15015 $RM -r conftest 2>/dev/null 15016 mkdir conftest 15017 cd conftest 15018 mkdir out 15019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15020 15021 lt_compiler_flag="-o out/conftest2.$ac_objext" 15022 # Insert the option either (1) after the last *FLAGS variable, or 15023 # (2) before a word containing "conftest.", or (3) at the end. 15024 # Note that $ac_compile itself does not contain backslashes and begins 15025 # with a dollar sign (not a hyphen), so the echo should work correctly. 15026 lt_compile=`echo "$ac_compile" | $SED \ 15027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15029 -e 's:$: $lt_compiler_flag:'` 15030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15031 (eval "$lt_compile" 2>out/conftest.err) 15032 ac_status=$? 15033 cat out/conftest.err >&5 15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15035 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15036 then 15037 # The compiler can only warn and ignore the option if not recognized 15038 # So say no if there are warnings 15039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15040 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15041 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15042 lt_cv_prog_compiler_c_o=yes 15043 fi 15044 fi 15045 chmod u+w . 2>&5 15046 $RM conftest* 15047 # SGI C++ compiler will create directory out/ii_files/ for 15048 # template instantiation 15049 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15050 $RM out/* && rmdir out 15051 cd .. 15052 $RM -r conftest 15053 $RM conftest* 15054 15055fi 15056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15057$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15058 15059 15060 15061 15062hard_links="nottested" 15063if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 15064 # do not overwrite the value of need_locks provided by the user 15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15066$as_echo_n "checking if we can lock with hard links... " >&6; } 15067 hard_links=yes 15068 $RM conftest* 15069 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15070 touch conftest.a 15071 ln conftest.a conftest.b 2>&5 || hard_links=no 15072 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15074$as_echo "$hard_links" >&6; } 15075 if test "$hard_links" = no; then 15076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15077$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15078 need_locks=warn 15079 fi 15080else 15081 need_locks=no 15082fi 15083 15084 15085 15086 15087 15088 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15090$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15091 15092 runpath_var= 15093 allow_undefined_flag= 15094 always_export_symbols=no 15095 archive_cmds= 15096 archive_expsym_cmds= 15097 compiler_needs_object=no 15098 enable_shared_with_static_runtimes=no 15099 export_dynamic_flag_spec= 15100 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15101 hardcode_automatic=no 15102 hardcode_direct=no 15103 hardcode_direct_absolute=no 15104 hardcode_libdir_flag_spec= 15105 hardcode_libdir_separator= 15106 hardcode_minus_L=no 15107 hardcode_shlibpath_var=unsupported 15108 inherit_rpath=no 15109 link_all_deplibs=unknown 15110 module_cmds= 15111 module_expsym_cmds= 15112 old_archive_from_new_cmds= 15113 old_archive_from_expsyms_cmds= 15114 thread_safe_flag_spec= 15115 whole_archive_flag_spec= 15116 # include_expsyms should be a list of space-separated symbols to be *always* 15117 # included in the symbol list 15118 include_expsyms= 15119 # exclude_expsyms can be an extended regexp of symbols to exclude 15120 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15122 # as well as any symbol that contains `d'. 15123 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15125 # platforms (ab)use it in PIC code, but their linkers get confused if 15126 # the symbol is explicitly referenced. Since portable code cannot 15127 # rely on this symbol name, it's probably fine to never include it in 15128 # preloaded symbol tables. 15129 # Exclude shared library initialization/finalization symbols. 15130 extract_expsyms_cmds= 15131 15132 case $host_os in 15133 cygwin* | mingw* | pw32* | cegcc*) 15134 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15135 # When not using gcc, we currently assume that we are using 15136 # Microsoft Visual C++. 15137 if test "$GCC" != yes; then 15138 with_gnu_ld=no 15139 fi 15140 ;; 15141 interix*) 15142 # we just hope/assume this is gcc and not c89 (= MSVC++) 15143 with_gnu_ld=yes 15144 ;; 15145 openbsd*) 15146 with_gnu_ld=no 15147 ;; 15148 linux* | k*bsd*-gnu | gnu*) 15149 link_all_deplibs=no 15150 ;; 15151 esac 15152 15153 ld_shlibs=yes 15154 15155 # On some targets, GNU ld is compatible enough with the native linker 15156 # that we're better off using the native interface for both. 15157 lt_use_gnu_ld_interface=no 15158 if test "$with_gnu_ld" = yes; then 15159 case $host_os in 15160 aix*) 15161 # The AIX port of GNU ld has always aspired to compatibility 15162 # with the native linker. However, as the warning in the GNU ld 15163 # block says, versions before 2.19.5* couldn't really create working 15164 # shared libraries, regardless of the interface used. 15165 case `$LD -v 2>&1` in 15166 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15167 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15168 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15169 *) 15170 lt_use_gnu_ld_interface=yes 15171 ;; 15172 esac 15173 ;; 15174 *) 15175 lt_use_gnu_ld_interface=yes 15176 ;; 15177 esac 15178 fi 15179 15180 if test "$lt_use_gnu_ld_interface" = yes; then 15181 # If archive_cmds runs LD, not CC, wlarc should be empty 15182 wlarc='${wl}' 15183 15184 # Set some defaults for GNU ld with shared library support. These 15185 # are reset later if shared libraries are not supported. Putting them 15186 # here allows them to be overridden if necessary. 15187 runpath_var=LD_RUN_PATH 15188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15189 export_dynamic_flag_spec='${wl}--export-dynamic' 15190 # ancient GNU ld didn't support --whole-archive et. al. 15191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15193 else 15194 whole_archive_flag_spec= 15195 fi 15196 supports_anon_versioning=no 15197 case `$LD -v 2>&1` in 15198 *GNU\ gold*) supports_anon_versioning=yes ;; 15199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15202 *\ 2.11.*) ;; # other 2.11 versions 15203 *) supports_anon_versioning=yes ;; 15204 esac 15205 15206 # See if GNU ld supports shared libraries. 15207 case $host_os in 15208 aix[3-9]*) 15209 # On AIX/PPC, the GNU linker is very broken 15210 if test "$host_cpu" != ia64; then 15211 ld_shlibs=no 15212 cat <<_LT_EOF 1>&2 15213 15214*** Warning: the GNU linker, at least up to release 2.19, is reported 15215*** to be unable to reliably create shared libraries on AIX. 15216*** Therefore, libtool is disabling shared libraries support. If you 15217*** really care for shared libraries, you may want to install binutils 15218*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15219*** You will then need to restart the configuration process. 15220 15221_LT_EOF 15222 fi 15223 ;; 15224 15225 amigaos*) 15226 case $host_cpu in 15227 powerpc) 15228 # see comment about AmigaOS4 .so support 15229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15230 archive_expsym_cmds='' 15231 ;; 15232 m68k) 15233 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)' 15234 hardcode_libdir_flag_spec='-L$libdir' 15235 hardcode_minus_L=yes 15236 ;; 15237 esac 15238 ;; 15239 15240 beos*) 15241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15242 allow_undefined_flag=unsupported 15243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15244 # support --undefined. This deserves some investigation. FIXME 15245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15246 else 15247 ld_shlibs=no 15248 fi 15249 ;; 15250 15251 cygwin* | mingw* | pw32* | cegcc*) 15252 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15253 # as there is no search path for DLLs. 15254 hardcode_libdir_flag_spec='-L$libdir' 15255 export_dynamic_flag_spec='${wl}--export-all-symbols' 15256 allow_undefined_flag=unsupported 15257 always_export_symbols=no 15258 enable_shared_with_static_runtimes=yes 15259 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' 15260 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15261 15262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15264 # If the export-symbols file already is a .def file (1st line 15265 # is EXPORTS), use it as is; otherwise, prepend... 15266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15267 cp $export_symbols $output_objdir/$soname.def; 15268 else 15269 echo EXPORTS > $output_objdir/$soname.def; 15270 cat $export_symbols >> $output_objdir/$soname.def; 15271 fi~ 15272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15273 else 15274 ld_shlibs=no 15275 fi 15276 ;; 15277 15278 haiku*) 15279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15280 link_all_deplibs=yes 15281 ;; 15282 15283 interix[3-9]*) 15284 hardcode_direct=no 15285 hardcode_shlibpath_var=no 15286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15287 export_dynamic_flag_spec='${wl}-E' 15288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15289 # Instead, shared libraries are loaded at an image base (0x10000000 by 15290 # default) and relocated if they conflict, which is a slow very memory 15291 # consuming and fragmenting process. To avoid this, we pick a random, 15292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15293 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15295 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' 15296 ;; 15297 15298 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15299 tmp_diet=no 15300 if test "$host_os" = linux-dietlibc; then 15301 case $cc_basename in 15302 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15303 esac 15304 fi 15305 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15306 && test "$tmp_diet" = no 15307 then 15308 tmp_addflag=' $pic_flag' 15309 tmp_sharedflag='-shared' 15310 case $cc_basename,$host_cpu in 15311 pgcc*) # Portland Group C compiler 15312 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' 15313 tmp_addflag=' $pic_flag' 15314 ;; 15315 pgf77* | pgf90* | pgf95* | pgfortran*) 15316 # Portland Group f77 and f90 compilers 15317 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' 15318 tmp_addflag=' $pic_flag -Mnomain' ;; 15319 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15320 tmp_addflag=' -i_dynamic' ;; 15321 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15322 tmp_addflag=' -i_dynamic -nofor_main' ;; 15323 ifc* | ifort*) # Intel Fortran compiler 15324 tmp_addflag=' -nofor_main' ;; 15325 lf95*) # Lahey Fortran 8.1 15326 whole_archive_flag_spec= 15327 tmp_sharedflag='--shared' ;; 15328 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15329 tmp_sharedflag='-qmkshrobj' 15330 tmp_addflag= ;; 15331 nvcc*) # Cuda Compiler Driver 2.2 15332 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' 15333 compiler_needs_object=yes 15334 ;; 15335 esac 15336 case `$CC -V 2>&1 | sed 5q` in 15337 *Sun\ C*) # Sun C 5.9 15338 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' 15339 compiler_needs_object=yes 15340 tmp_sharedflag='-G' ;; 15341 *Sun\ F*) # Sun Fortran 8.3 15342 tmp_sharedflag='-G' ;; 15343 esac 15344 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15345 15346 if test "x$supports_anon_versioning" = xyes; then 15347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15349 echo "local: *; };" >> $output_objdir/$libname.ver~ 15350 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15351 fi 15352 15353 case $cc_basename in 15354 xlf* | bgf* | bgxlf* | mpixlf*) 15355 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15356 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15358 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15359 if test "x$supports_anon_versioning" = xyes; then 15360 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15361 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15362 echo "local: *; };" >> $output_objdir/$libname.ver~ 15363 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15364 fi 15365 ;; 15366 esac 15367 else 15368 ld_shlibs=no 15369 fi 15370 ;; 15371 15372 netbsd* | netbsdelf*-gnu) 15373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15374 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15375 wlarc= 15376 else 15377 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15378 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15379 fi 15380 ;; 15381 15382 solaris*) 15383 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15384 ld_shlibs=no 15385 cat <<_LT_EOF 1>&2 15386 15387*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15388*** create shared libraries on Solaris systems. Therefore, libtool 15389*** is disabling shared libraries support. We urge you to upgrade GNU 15390*** binutils to release 2.9.1 or newer. Another option is to modify 15391*** your PATH or compiler configuration so that the native linker is 15392*** used, and then restart. 15393 15394_LT_EOF 15395 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15396 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15397 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15398 else 15399 ld_shlibs=no 15400 fi 15401 ;; 15402 15403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15404 case `$LD -v 2>&1` in 15405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15406 ld_shlibs=no 15407 cat <<_LT_EOF 1>&2 15408 15409*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15410*** reliably create shared libraries on SCO systems. Therefore, libtool 15411*** is disabling shared libraries support. We urge you to upgrade GNU 15412*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15413*** your PATH or compiler configuration so that the native linker is 15414*** used, and then restart. 15415 15416_LT_EOF 15417 ;; 15418 *) 15419 # For security reasons, it is highly recommended that you always 15420 # use absolute paths for naming shared libraries, and exclude the 15421 # DT_RUNPATH tag from executables and libraries. But doing so 15422 # requires that you compile everything twice, which is a pain. 15423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15427 else 15428 ld_shlibs=no 15429 fi 15430 ;; 15431 esac 15432 ;; 15433 15434 sunos4*) 15435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15436 wlarc= 15437 hardcode_direct=yes 15438 hardcode_shlibpath_var=no 15439 ;; 15440 15441 *) 15442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15444 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15445 else 15446 ld_shlibs=no 15447 fi 15448 ;; 15449 esac 15450 15451 if test "$ld_shlibs" = no; then 15452 runpath_var= 15453 hardcode_libdir_flag_spec= 15454 export_dynamic_flag_spec= 15455 whole_archive_flag_spec= 15456 fi 15457 else 15458 # PORTME fill in a description of your system's linker (not GNU ld) 15459 case $host_os in 15460 aix3*) 15461 allow_undefined_flag=unsupported 15462 always_export_symbols=yes 15463 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' 15464 # Note: this linker hardcodes the directories in LIBPATH if there 15465 # are no directories specified by -L. 15466 hardcode_minus_L=yes 15467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15468 # Neither direct hardcoding nor static linking is supported with a 15469 # broken collect2. 15470 hardcode_direct=unsupported 15471 fi 15472 ;; 15473 15474 aix[4-9]*) 15475 if test "$host_cpu" = ia64; then 15476 # On IA64, the linker does run time linking by default, so we don't 15477 # have to do anything special. 15478 aix_use_runtimelinking=no 15479 exp_sym_flag='-Bexport' 15480 no_entry_flag="" 15481 else 15482 # If we're using GNU nm, then we don't want the "-C" option. 15483 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15484 # Also, AIX nm treats weak defined symbols like other global 15485 # defined symbols, whereas GNU nm marks them as "W". 15486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15487 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' 15488 else 15489 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' 15490 fi 15491 aix_use_runtimelinking=no 15492 15493 # Test if we are trying to use run time linking or normal 15494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15495 # need to do runtime linking. 15496 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15497 for ld_flag in $LDFLAGS; do 15498 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15499 aix_use_runtimelinking=yes 15500 break 15501 fi 15502 done 15503 ;; 15504 esac 15505 15506 exp_sym_flag='-bexport' 15507 no_entry_flag='-bnoentry' 15508 fi 15509 15510 # When large executables or shared objects are built, AIX ld can 15511 # have problems creating the table of contents. If linking a library 15512 # or program results in "error TOC overflow" add -mminimal-toc to 15513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15515 15516 archive_cmds='' 15517 hardcode_direct=yes 15518 hardcode_direct_absolute=yes 15519 hardcode_libdir_separator=':' 15520 link_all_deplibs=yes 15521 file_list_spec='${wl}-f,' 15522 15523 if test "$GCC" = yes; then 15524 case $host_os in aix4.[012]|aix4.[012].*) 15525 # We only want to do this on AIX 4.2 and lower, the check 15526 # below for broken collect2 doesn't work under 4.3+ 15527 collect2name=`${CC} -print-prog-name=collect2` 15528 if test -f "$collect2name" && 15529 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15530 then 15531 # We have reworked collect2 15532 : 15533 else 15534 # We have old collect2 15535 hardcode_direct=unsupported 15536 # It fails to find uninstalled libraries when the uninstalled 15537 # path is not listed in the libpath. Setting hardcode_minus_L 15538 # to unsupported forces relinking 15539 hardcode_minus_L=yes 15540 hardcode_libdir_flag_spec='-L$libdir' 15541 hardcode_libdir_separator= 15542 fi 15543 ;; 15544 esac 15545 shared_flag='-shared' 15546 if test "$aix_use_runtimelinking" = yes; then 15547 shared_flag="$shared_flag "'${wl}-G' 15548 fi 15549 link_all_deplibs=no 15550 else 15551 # not using gcc 15552 if test "$host_cpu" = ia64; then 15553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15554 # chokes on -Wl,-G. The following line is correct: 15555 shared_flag='-G' 15556 else 15557 if test "$aix_use_runtimelinking" = yes; then 15558 shared_flag='${wl}-G' 15559 else 15560 shared_flag='${wl}-bM:SRE' 15561 fi 15562 fi 15563 fi 15564 15565 export_dynamic_flag_spec='${wl}-bexpall' 15566 # It seems that -bexpall does not export symbols beginning with 15567 # underscore (_), so it is better to generate a list of symbols to export. 15568 always_export_symbols=yes 15569 if test "$aix_use_runtimelinking" = yes; then 15570 # Warning - without using the other runtime loading flags (-brtl), 15571 # -berok will link without error, but may produce a broken library. 15572 allow_undefined_flag='-berok' 15573 # Determine the default libpath from the value encoded in an 15574 # empty executable. 15575 if test "${lt_cv_aix_libpath+set}" = set; then 15576 aix_libpath=$lt_cv_aix_libpath 15577else 15578 if ${lt_cv_aix_libpath_+:} false; then : 15579 $as_echo_n "(cached) " >&6 15580else 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582/* end confdefs.h. */ 15583 15584int 15585main () 15586{ 15587 15588 ; 15589 return 0; 15590} 15591_ACEOF 15592if ac_fn_c_try_link "$LINENO"; then : 15593 15594 lt_aix_libpath_sed=' 15595 /Import File Strings/,/^$/ { 15596 /^0/ { 15597 s/^0 *\([^ ]*\) *$/\1/ 15598 p 15599 } 15600 }' 15601 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15602 # Check for a 64-bit object if we didn't find anything. 15603 if test -z "$lt_cv_aix_libpath_"; then 15604 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15605 fi 15606fi 15607rm -f core conftest.err conftest.$ac_objext \ 15608 conftest$ac_exeext conftest.$ac_ext 15609 if test -z "$lt_cv_aix_libpath_"; then 15610 lt_cv_aix_libpath_="/usr/lib:/lib" 15611 fi 15612 15613fi 15614 15615 aix_libpath=$lt_cv_aix_libpath_ 15616fi 15617 15618 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15619 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" 15620 else 15621 if test "$host_cpu" = ia64; then 15622 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15623 allow_undefined_flag="-z nodefs" 15624 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" 15625 else 15626 # Determine the default libpath from the value encoded in an 15627 # empty executable. 15628 if test "${lt_cv_aix_libpath+set}" = set; then 15629 aix_libpath=$lt_cv_aix_libpath 15630else 15631 if ${lt_cv_aix_libpath_+:} false; then : 15632 $as_echo_n "(cached) " >&6 15633else 15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15635/* end confdefs.h. */ 15636 15637int 15638main () 15639{ 15640 15641 ; 15642 return 0; 15643} 15644_ACEOF 15645if ac_fn_c_try_link "$LINENO"; then : 15646 15647 lt_aix_libpath_sed=' 15648 /Import File Strings/,/^$/ { 15649 /^0/ { 15650 s/^0 *\([^ ]*\) *$/\1/ 15651 p 15652 } 15653 }' 15654 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15655 # Check for a 64-bit object if we didn't find anything. 15656 if test -z "$lt_cv_aix_libpath_"; then 15657 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15658 fi 15659fi 15660rm -f core conftest.err conftest.$ac_objext \ 15661 conftest$ac_exeext conftest.$ac_ext 15662 if test -z "$lt_cv_aix_libpath_"; then 15663 lt_cv_aix_libpath_="/usr/lib:/lib" 15664 fi 15665 15666fi 15667 15668 aix_libpath=$lt_cv_aix_libpath_ 15669fi 15670 15671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15672 # Warning - without using the other run time loading flags, 15673 # -berok will link without error, but may produce a broken library. 15674 no_undefined_flag=' ${wl}-bernotok' 15675 allow_undefined_flag=' ${wl}-berok' 15676 if test "$with_gnu_ld" = yes; then 15677 # We only use this code for GNU lds that support --whole-archive. 15678 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15679 else 15680 # Exported symbols can be pulled into shared objects from archives 15681 whole_archive_flag_spec='$convenience' 15682 fi 15683 archive_cmds_need_lc=yes 15684 # This is similar to how AIX traditionally builds its shared libraries. 15685 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' 15686 fi 15687 fi 15688 ;; 15689 15690 amigaos*) 15691 case $host_cpu in 15692 powerpc) 15693 # see comment about AmigaOS4 .so support 15694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15695 archive_expsym_cmds='' 15696 ;; 15697 m68k) 15698 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)' 15699 hardcode_libdir_flag_spec='-L$libdir' 15700 hardcode_minus_L=yes 15701 ;; 15702 esac 15703 ;; 15704 15705 bsdi[45]*) 15706 export_dynamic_flag_spec=-rdynamic 15707 ;; 15708 15709 cygwin* | mingw* | pw32* | cegcc*) 15710 # When not using gcc, we currently assume that we are using 15711 # Microsoft Visual C++. 15712 # hardcode_libdir_flag_spec is actually meaningless, as there is 15713 # no search path for DLLs. 15714 case $cc_basename in 15715 cl*) 15716 # Native MSVC 15717 hardcode_libdir_flag_spec=' ' 15718 allow_undefined_flag=unsupported 15719 always_export_symbols=yes 15720 file_list_spec='@' 15721 # Tell ltmain to make .lib files, not .a files. 15722 libext=lib 15723 # Tell ltmain to make .dll files, not .so files. 15724 shrext_cmds=".dll" 15725 # FIXME: Setting linknames here is a bad hack. 15726 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15727 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15728 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15729 else 15730 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15731 fi~ 15732 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15733 linknames=' 15734 # The linker will not automatically build a static lib if we build a DLL. 15735 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15736 enable_shared_with_static_runtimes=yes 15737 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15738 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15739 # Don't use ranlib 15740 old_postinstall_cmds='chmod 644 $oldlib' 15741 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15742 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15743 case $lt_outputfile in 15744 *.exe|*.EXE) ;; 15745 *) 15746 lt_outputfile="$lt_outputfile.exe" 15747 lt_tool_outputfile="$lt_tool_outputfile.exe" 15748 ;; 15749 esac~ 15750 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15751 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15752 $RM "$lt_outputfile.manifest"; 15753 fi' 15754 ;; 15755 *) 15756 # Assume MSVC wrapper 15757 hardcode_libdir_flag_spec=' ' 15758 allow_undefined_flag=unsupported 15759 # Tell ltmain to make .lib files, not .a files. 15760 libext=lib 15761 # Tell ltmain to make .dll files, not .so files. 15762 shrext_cmds=".dll" 15763 # FIXME: Setting linknames here is a bad hack. 15764 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15765 # The linker will automatically build a .lib file if we build a DLL. 15766 old_archive_from_new_cmds='true' 15767 # FIXME: Should let the user specify the lib program. 15768 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15769 enable_shared_with_static_runtimes=yes 15770 ;; 15771 esac 15772 ;; 15773 15774 darwin* | rhapsody*) 15775 15776 15777 archive_cmds_need_lc=no 15778 hardcode_direct=no 15779 hardcode_automatic=yes 15780 hardcode_shlibpath_var=unsupported 15781 if test "$lt_cv_ld_force_load" = "yes"; then 15782 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\"`' 15783 15784 else 15785 whole_archive_flag_spec='' 15786 fi 15787 link_all_deplibs=yes 15788 allow_undefined_flag="$_lt_dar_allow_undefined" 15789 case $cc_basename in 15790 ifort*) _lt_dar_can_shared=yes ;; 15791 *) _lt_dar_can_shared=$GCC ;; 15792 esac 15793 if test "$_lt_dar_can_shared" = "yes"; then 15794 output_verbose_link_cmd=func_echo_all 15795 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15796 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15797 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}" 15798 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}" 15799 15800 else 15801 ld_shlibs=no 15802 fi 15803 15804 ;; 15805 15806 dgux*) 15807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15808 hardcode_libdir_flag_spec='-L$libdir' 15809 hardcode_shlibpath_var=no 15810 ;; 15811 15812 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15813 # support. Future versions do this automatically, but an explicit c++rt0.o 15814 # does not break anything, and helps significantly (at the cost of a little 15815 # extra space). 15816 freebsd2.2*) 15817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15818 hardcode_libdir_flag_spec='-R$libdir' 15819 hardcode_direct=yes 15820 hardcode_shlibpath_var=no 15821 ;; 15822 15823 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15824 freebsd2.*) 15825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15826 hardcode_direct=yes 15827 hardcode_minus_L=yes 15828 hardcode_shlibpath_var=no 15829 ;; 15830 15831 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15832 freebsd* | dragonfly*) 15833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15834 hardcode_libdir_flag_spec='-R$libdir' 15835 hardcode_direct=yes 15836 hardcode_shlibpath_var=no 15837 ;; 15838 15839 hpux9*) 15840 if test "$GCC" = yes; then 15841 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' 15842 else 15843 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' 15844 fi 15845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15846 hardcode_libdir_separator=: 15847 hardcode_direct=yes 15848 15849 # hardcode_minus_L: Not really in the search PATH, 15850 # but as the default location of the library. 15851 hardcode_minus_L=yes 15852 export_dynamic_flag_spec='${wl}-E' 15853 ;; 15854 15855 hpux10*) 15856 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15857 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15858 else 15859 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15860 fi 15861 if test "$with_gnu_ld" = no; then 15862 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15863 hardcode_libdir_separator=: 15864 hardcode_direct=yes 15865 hardcode_direct_absolute=yes 15866 export_dynamic_flag_spec='${wl}-E' 15867 # hardcode_minus_L: Not really in the search PATH, 15868 # but as the default location of the library. 15869 hardcode_minus_L=yes 15870 fi 15871 ;; 15872 15873 hpux11*) 15874 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15875 case $host_cpu in 15876 hppa*64*) 15877 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15878 ;; 15879 ia64*) 15880 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15881 ;; 15882 *) 15883 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15884 ;; 15885 esac 15886 else 15887 case $host_cpu in 15888 hppa*64*) 15889 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15890 ;; 15891 ia64*) 15892 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15893 ;; 15894 *) 15895 15896 # Older versions of the 11.00 compiler do not understand -b yet 15897 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15899$as_echo_n "checking if $CC understands -b... " >&6; } 15900if ${lt_cv_prog_compiler__b+:} false; then : 15901 $as_echo_n "(cached) " >&6 15902else 15903 lt_cv_prog_compiler__b=no 15904 save_LDFLAGS="$LDFLAGS" 15905 LDFLAGS="$LDFLAGS -b" 15906 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15907 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15908 # The linker can only warn and ignore the option if not recognized 15909 # So say no if there are warnings 15910 if test -s conftest.err; then 15911 # Append any errors to the config.log. 15912 cat conftest.err 1>&5 15913 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15915 if diff conftest.exp conftest.er2 >/dev/null; then 15916 lt_cv_prog_compiler__b=yes 15917 fi 15918 else 15919 lt_cv_prog_compiler__b=yes 15920 fi 15921 fi 15922 $RM -r conftest* 15923 LDFLAGS="$save_LDFLAGS" 15924 15925fi 15926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15927$as_echo "$lt_cv_prog_compiler__b" >&6; } 15928 15929if test x"$lt_cv_prog_compiler__b" = xyes; then 15930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15931else 15932 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15933fi 15934 15935 ;; 15936 esac 15937 fi 15938 if test "$with_gnu_ld" = no; then 15939 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15940 hardcode_libdir_separator=: 15941 15942 case $host_cpu in 15943 hppa*64*|ia64*) 15944 hardcode_direct=no 15945 hardcode_shlibpath_var=no 15946 ;; 15947 *) 15948 hardcode_direct=yes 15949 hardcode_direct_absolute=yes 15950 export_dynamic_flag_spec='${wl}-E' 15951 15952 # hardcode_minus_L: Not really in the search PATH, 15953 # but as the default location of the library. 15954 hardcode_minus_L=yes 15955 ;; 15956 esac 15957 fi 15958 ;; 15959 15960 irix5* | irix6* | nonstopux*) 15961 if test "$GCC" = yes; then 15962 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' 15963 # Try to use the -exported_symbol ld option, if it does not 15964 # work, assume that -exports_file does not work either and 15965 # implicitly export all symbols. 15966 # This should be the same for all languages, so no per-tag cache variable. 15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15968$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15969if ${lt_cv_irix_exported_symbol+:} false; then : 15970 $as_echo_n "(cached) " >&6 15971else 15972 save_LDFLAGS="$LDFLAGS" 15973 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975/* end confdefs.h. */ 15976int foo (void) { return 0; } 15977_ACEOF 15978if ac_fn_c_try_link "$LINENO"; then : 15979 lt_cv_irix_exported_symbol=yes 15980else 15981 lt_cv_irix_exported_symbol=no 15982fi 15983rm -f core conftest.err conftest.$ac_objext \ 15984 conftest$ac_exeext conftest.$ac_ext 15985 LDFLAGS="$save_LDFLAGS" 15986fi 15987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15988$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15989 if test "$lt_cv_irix_exported_symbol" = yes; then 15990 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' 15991 fi 15992 else 15993 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' 15994 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' 15995 fi 15996 archive_cmds_need_lc='no' 15997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15998 hardcode_libdir_separator=: 15999 inherit_rpath=yes 16000 link_all_deplibs=yes 16001 ;; 16002 16003 netbsd* | netbsdelf*-gnu) 16004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16006 else 16007 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16008 fi 16009 hardcode_libdir_flag_spec='-R$libdir' 16010 hardcode_direct=yes 16011 hardcode_shlibpath_var=no 16012 ;; 16013 16014 newsos6) 16015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16016 hardcode_direct=yes 16017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16018 hardcode_libdir_separator=: 16019 hardcode_shlibpath_var=no 16020 ;; 16021 16022 *nto* | *qnx*) 16023 ;; 16024 16025 openbsd*) 16026 if test -f /usr/libexec/ld.so; then 16027 hardcode_direct=yes 16028 hardcode_shlibpath_var=no 16029 hardcode_direct_absolute=yes 16030 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16031 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16032 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16034 export_dynamic_flag_spec='${wl}-E' 16035 else 16036 case $host_os in 16037 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16039 hardcode_libdir_flag_spec='-R$libdir' 16040 ;; 16041 *) 16042 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16043 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16044 ;; 16045 esac 16046 fi 16047 else 16048 ld_shlibs=no 16049 fi 16050 ;; 16051 16052 os2*) 16053 hardcode_libdir_flag_spec='-L$libdir' 16054 hardcode_minus_L=yes 16055 allow_undefined_flag=unsupported 16056 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' 16057 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16058 ;; 16059 16060 osf3*) 16061 if test "$GCC" = yes; then 16062 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16063 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' 16064 else 16065 allow_undefined_flag=' -expect_unresolved \*' 16066 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' 16067 fi 16068 archive_cmds_need_lc='no' 16069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16070 hardcode_libdir_separator=: 16071 ;; 16072 16073 osf4* | osf5*) # as osf3* with the addition of -msym flag 16074 if test "$GCC" = yes; then 16075 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16076 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' 16077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16078 else 16079 allow_undefined_flag=' -expect_unresolved \*' 16080 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' 16081 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~ 16082 $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' 16083 16084 # Both c and cxx compiler support -rpath directly 16085 hardcode_libdir_flag_spec='-rpath $libdir' 16086 fi 16087 archive_cmds_need_lc='no' 16088 hardcode_libdir_separator=: 16089 ;; 16090 16091 solaris*) 16092 no_undefined_flag=' -z defs' 16093 if test "$GCC" = yes; then 16094 wlarc='${wl}' 16095 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16097 $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' 16098 else 16099 case `$CC -V 2>&1` in 16100 *"Compilers 5.0"*) 16101 wlarc='' 16102 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16104 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16105 ;; 16106 *) 16107 wlarc='${wl}' 16108 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16110 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16111 ;; 16112 esac 16113 fi 16114 hardcode_libdir_flag_spec='-R$libdir' 16115 hardcode_shlibpath_var=no 16116 case $host_os in 16117 solaris2.[0-5] | solaris2.[0-5].*) ;; 16118 *) 16119 # The compiler driver will combine and reorder linker options, 16120 # but understands `-z linker_flag'. GCC discards it without `$wl', 16121 # but is careful enough not to reorder. 16122 # Supported since Solaris 2.6 (maybe 2.5.1?) 16123 if test "$GCC" = yes; then 16124 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16125 else 16126 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16127 fi 16128 ;; 16129 esac 16130 link_all_deplibs=yes 16131 ;; 16132 16133 sunos4*) 16134 if test "x$host_vendor" = xsequent; then 16135 # Use $CC to link under sequent, because it throws in some extra .o 16136 # files that make .init and .fini sections work. 16137 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16138 else 16139 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16140 fi 16141 hardcode_libdir_flag_spec='-L$libdir' 16142 hardcode_direct=yes 16143 hardcode_minus_L=yes 16144 hardcode_shlibpath_var=no 16145 ;; 16146 16147 sysv4) 16148 case $host_vendor in 16149 sni) 16150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16151 hardcode_direct=yes # is this really true??? 16152 ;; 16153 siemens) 16154 ## LD is ld it makes a PLAMLIB 16155 ## CC just makes a GrossModule. 16156 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16157 reload_cmds='$CC -r -o $output$reload_objs' 16158 hardcode_direct=no 16159 ;; 16160 motorola) 16161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16162 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16163 ;; 16164 esac 16165 runpath_var='LD_RUN_PATH' 16166 hardcode_shlibpath_var=no 16167 ;; 16168 16169 sysv4.3*) 16170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16171 hardcode_shlibpath_var=no 16172 export_dynamic_flag_spec='-Bexport' 16173 ;; 16174 16175 sysv4*MP*) 16176 if test -d /usr/nec; then 16177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16178 hardcode_shlibpath_var=no 16179 runpath_var=LD_RUN_PATH 16180 hardcode_runpath_var=yes 16181 ld_shlibs=yes 16182 fi 16183 ;; 16184 16185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16186 no_undefined_flag='${wl}-z,text' 16187 archive_cmds_need_lc=no 16188 hardcode_shlibpath_var=no 16189 runpath_var='LD_RUN_PATH' 16190 16191 if test "$GCC" = yes; then 16192 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16193 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16194 else 16195 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16196 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16197 fi 16198 ;; 16199 16200 sysv5* | sco3.2v5* | sco5v6*) 16201 # Note: We can NOT use -z defs as we might desire, because we do not 16202 # link with -lc, and that would cause any symbols used from libc to 16203 # always be unresolved, which means just about no library would 16204 # ever link correctly. If we're not using GNU ld we use -z text 16205 # though, which does catch some bad symbols but isn't as heavy-handed 16206 # as -z defs. 16207 no_undefined_flag='${wl}-z,text' 16208 allow_undefined_flag='${wl}-z,nodefs' 16209 archive_cmds_need_lc=no 16210 hardcode_shlibpath_var=no 16211 hardcode_libdir_flag_spec='${wl}-R,$libdir' 16212 hardcode_libdir_separator=':' 16213 link_all_deplibs=yes 16214 export_dynamic_flag_spec='${wl}-Bexport' 16215 runpath_var='LD_RUN_PATH' 16216 16217 if test "$GCC" = yes; then 16218 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16219 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16220 else 16221 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16222 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16223 fi 16224 ;; 16225 16226 uts4*) 16227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16228 hardcode_libdir_flag_spec='-L$libdir' 16229 hardcode_shlibpath_var=no 16230 ;; 16231 16232 *) 16233 ld_shlibs=no 16234 ;; 16235 esac 16236 16237 if test x$host_vendor = xsni; then 16238 case $host in 16239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16240 export_dynamic_flag_spec='${wl}-Blargedynsym' 16241 ;; 16242 esac 16243 fi 16244 fi 16245 16246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16247$as_echo "$ld_shlibs" >&6; } 16248test "$ld_shlibs" = no && can_build_shared=no 16249 16250with_gnu_ld=$with_gnu_ld 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266# 16267# Do we need to explicitly link libc? 16268# 16269case "x$archive_cmds_need_lc" in 16270x|xyes) 16271 # Assume -lc should be added 16272 archive_cmds_need_lc=yes 16273 16274 if test "$enable_shared" = yes && test "$GCC" = yes; then 16275 case $archive_cmds in 16276 *'~'*) 16277 # FIXME: we may have to deal with multi-command sequences. 16278 ;; 16279 '$CC '*) 16280 # Test whether the compiler implicitly links with -lc since on some 16281 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16282 # to ld, don't add -lc before -lgcc. 16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16284$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16285if ${lt_cv_archive_cmds_need_lc+:} false; then : 16286 $as_echo_n "(cached) " >&6 16287else 16288 $RM conftest* 16289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16290 16291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16292 (eval $ac_compile) 2>&5 16293 ac_status=$? 16294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16295 test $ac_status = 0; } 2>conftest.err; then 16296 soname=conftest 16297 lib=conftest 16298 libobjs=conftest.$ac_objext 16299 deplibs= 16300 wl=$lt_prog_compiler_wl 16301 pic_flag=$lt_prog_compiler_pic 16302 compiler_flags=-v 16303 linker_flags=-v 16304 verstring= 16305 output_objdir=. 16306 libname=conftest 16307 lt_save_allow_undefined_flag=$allow_undefined_flag 16308 allow_undefined_flag= 16309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16310 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16311 ac_status=$? 16312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16313 test $ac_status = 0; } 16314 then 16315 lt_cv_archive_cmds_need_lc=no 16316 else 16317 lt_cv_archive_cmds_need_lc=yes 16318 fi 16319 allow_undefined_flag=$lt_save_allow_undefined_flag 16320 else 16321 cat conftest.err 1>&5 16322 fi 16323 $RM conftest* 16324 16325fi 16326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16327$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16328 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16329 ;; 16330 esac 16331 fi 16332 ;; 16333esac 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 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16487$as_echo_n "checking dynamic linker characteristics... " >&6; } 16488 16489if test "$GCC" = yes; then 16490 case $host_os in 16491 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16492 *) lt_awk_arg="/^libraries:/" ;; 16493 esac 16494 case $host_os in 16495 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16496 *) lt_sed_strip_eq="s,=/,/,g" ;; 16497 esac 16498 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16499 case $lt_search_path_spec in 16500 *\;*) 16501 # if the path contains ";" then we assume it to be the separator 16502 # otherwise default to the standard path separator (i.e. ":") - it is 16503 # assumed that no part of a normal pathname contains ";" but that should 16504 # okay in the real world where ";" in dirpaths is itself problematic. 16505 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16506 ;; 16507 *) 16508 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16509 ;; 16510 esac 16511 # Ok, now we have the path, separated by spaces, we can step through it 16512 # and add multilib dir if necessary. 16513 lt_tmp_lt_search_path_spec= 16514 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16515 for lt_sys_path in $lt_search_path_spec; do 16516 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16517 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16518 else 16519 test -d "$lt_sys_path" && \ 16520 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16521 fi 16522 done 16523 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16524BEGIN {RS=" "; FS="/|\n";} { 16525 lt_foo=""; 16526 lt_count=0; 16527 for (lt_i = NF; lt_i > 0; lt_i--) { 16528 if ($lt_i != "" && $lt_i != ".") { 16529 if ($lt_i == "..") { 16530 lt_count++; 16531 } else { 16532 if (lt_count == 0) { 16533 lt_foo="/" $lt_i lt_foo; 16534 } else { 16535 lt_count--; 16536 } 16537 } 16538 } 16539 } 16540 if (lt_foo != "") { lt_freq[lt_foo]++; } 16541 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16542}'` 16543 # AWK program above erroneously prepends '/' to C:/dos/paths 16544 # for these hosts. 16545 case $host_os in 16546 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16547 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16548 esac 16549 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16550else 16551 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16552fi 16553library_names_spec= 16554libname_spec='lib$name' 16555soname_spec= 16556shrext_cmds=".so" 16557postinstall_cmds= 16558postuninstall_cmds= 16559finish_cmds= 16560finish_eval= 16561shlibpath_var= 16562shlibpath_overrides_runpath=unknown 16563version_type=none 16564dynamic_linker="$host_os ld.so" 16565sys_lib_dlsearch_path_spec="/lib /usr/lib" 16566need_lib_prefix=unknown 16567hardcode_into_libs=no 16568 16569# when you set need_version to no, make sure it does not cause -set_version 16570# flags to be left without arguments 16571need_version=unknown 16572 16573case $host_os in 16574aix3*) 16575 version_type=linux # correct to gnu/linux during the next big refactor 16576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16577 shlibpath_var=LIBPATH 16578 16579 # AIX 3 has no versioning support, so we append a major version to the name. 16580 soname_spec='${libname}${release}${shared_ext}$major' 16581 ;; 16582 16583aix[4-9]*) 16584 version_type=linux # correct to gnu/linux during the next big refactor 16585 need_lib_prefix=no 16586 need_version=no 16587 hardcode_into_libs=yes 16588 if test "$host_cpu" = ia64; then 16589 # AIX 5 supports IA64 16590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16591 shlibpath_var=LD_LIBRARY_PATH 16592 else 16593 # With GCC up to 2.95.x, collect2 would create an import file 16594 # for dependence libraries. The import file would start with 16595 # the line `#! .'. This would cause the generated library to 16596 # depend on `.', always an invalid library. This was fixed in 16597 # development snapshots of GCC prior to 3.0. 16598 case $host_os in 16599 aix4 | aix4.[01] | aix4.[01].*) 16600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16601 echo ' yes ' 16602 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16603 : 16604 else 16605 can_build_shared=no 16606 fi 16607 ;; 16608 esac 16609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16610 # soname into executable. Probably we can add versioning support to 16611 # collect2, so additional links can be useful in future. 16612 if test "$aix_use_runtimelinking" = yes; then 16613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16614 # instead of lib<name>.a to let people know that these are not 16615 # typical AIX shared libraries. 16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16617 else 16618 # We preserve .a as extension for shared libraries through AIX4.2 16619 # and later when we are not doing run time linking. 16620 library_names_spec='${libname}${release}.a $libname.a' 16621 soname_spec='${libname}${release}${shared_ext}$major' 16622 fi 16623 shlibpath_var=LIBPATH 16624 fi 16625 ;; 16626 16627amigaos*) 16628 case $host_cpu in 16629 powerpc) 16630 # Since July 2007 AmigaOS4 officially supports .so libraries. 16631 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16633 ;; 16634 m68k) 16635 library_names_spec='$libname.ixlibrary $libname.a' 16636 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16637 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' 16638 ;; 16639 esac 16640 ;; 16641 16642beos*) 16643 library_names_spec='${libname}${shared_ext}' 16644 dynamic_linker="$host_os ld.so" 16645 shlibpath_var=LIBRARY_PATH 16646 ;; 16647 16648bsdi[45]*) 16649 version_type=linux # correct to gnu/linux during the next big refactor 16650 need_version=no 16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16652 soname_spec='${libname}${release}${shared_ext}$major' 16653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16654 shlibpath_var=LD_LIBRARY_PATH 16655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16657 # the default ld.so.conf also contains /usr/contrib/lib and 16658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16659 # libtool to hard-code these into programs 16660 ;; 16661 16662cygwin* | mingw* | pw32* | cegcc*) 16663 version_type=windows 16664 shrext_cmds=".dll" 16665 need_version=no 16666 need_lib_prefix=no 16667 16668 case $GCC,$cc_basename in 16669 yes,*) 16670 # gcc 16671 library_names_spec='$libname.dll.a' 16672 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16673 postinstall_cmds='base_file=`basename \${file}`~ 16674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16675 dldir=$destdir/`dirname \$dlpath`~ 16676 test -d \$dldir || mkdir -p \$dldir~ 16677 $install_prog $dir/$dlname \$dldir/$dlname~ 16678 chmod a+x \$dldir/$dlname~ 16679 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16680 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16681 fi' 16682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16683 dlpath=$dir/\$dldll~ 16684 $RM \$dlpath' 16685 shlibpath_overrides_runpath=yes 16686 16687 case $host_os in 16688 cygwin*) 16689 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16691 16692 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16693 ;; 16694 mingw* | cegcc*) 16695 # MinGW DLLs use traditional 'lib' prefix 16696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16697 ;; 16698 pw32*) 16699 # pw32 DLLs use 'pw' prefix rather than 'lib' 16700 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16701 ;; 16702 esac 16703 dynamic_linker='Win32 ld.exe' 16704 ;; 16705 16706 *,cl*) 16707 # Native MSVC 16708 libname_spec='$name' 16709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16710 library_names_spec='${libname}.dll.lib' 16711 16712 case $build_os in 16713 mingw*) 16714 sys_lib_search_path_spec= 16715 lt_save_ifs=$IFS 16716 IFS=';' 16717 for lt_path in $LIB 16718 do 16719 IFS=$lt_save_ifs 16720 # Let DOS variable expansion print the short 8.3 style file name. 16721 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16722 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16723 done 16724 IFS=$lt_save_ifs 16725 # Convert to MSYS style. 16726 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16727 ;; 16728 cygwin*) 16729 # Convert to unix form, then to dos form, then back to unix form 16730 # but this time dos style (no spaces!) so that the unix form looks 16731 # like /cygdrive/c/PROGRA~1:/cygdr... 16732 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16733 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16734 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16735 ;; 16736 *) 16737 sys_lib_search_path_spec="$LIB" 16738 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16739 # It is most probably a Windows format PATH. 16740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16741 else 16742 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16743 fi 16744 # FIXME: find the short name or the path components, as spaces are 16745 # common. (e.g. "Program Files" -> "PROGRA~1") 16746 ;; 16747 esac 16748 16749 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16750 postinstall_cmds='base_file=`basename \${file}`~ 16751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16752 dldir=$destdir/`dirname \$dlpath`~ 16753 test -d \$dldir || mkdir -p \$dldir~ 16754 $install_prog $dir/$dlname \$dldir/$dlname' 16755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16756 dlpath=$dir/\$dldll~ 16757 $RM \$dlpath' 16758 shlibpath_overrides_runpath=yes 16759 dynamic_linker='Win32 link.exe' 16760 ;; 16761 16762 *) 16763 # Assume MSVC wrapper 16764 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16765 dynamic_linker='Win32 ld.exe' 16766 ;; 16767 esac 16768 # FIXME: first we should search . and the directory the executable is in 16769 shlibpath_var=PATH 16770 ;; 16771 16772darwin* | rhapsody*) 16773 dynamic_linker="$host_os dyld" 16774 version_type=darwin 16775 need_lib_prefix=no 16776 need_version=no 16777 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16778 soname_spec='${libname}${release}${major}$shared_ext' 16779 shlibpath_overrides_runpath=yes 16780 shlibpath_var=DYLD_LIBRARY_PATH 16781 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16782 16783 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16784 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16785 ;; 16786 16787dgux*) 16788 version_type=linux # correct to gnu/linux during the next big refactor 16789 need_lib_prefix=no 16790 need_version=no 16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16792 soname_spec='${libname}${release}${shared_ext}$major' 16793 shlibpath_var=LD_LIBRARY_PATH 16794 ;; 16795 16796freebsd* | dragonfly*) 16797 # DragonFly does not have aout. When/if they implement a new 16798 # versioning mechanism, adjust this. 16799 if test -x /usr/bin/objformat; then 16800 objformat=`/usr/bin/objformat` 16801 else 16802 case $host_os in 16803 freebsd[23].*) objformat=aout ;; 16804 *) objformat=elf ;; 16805 esac 16806 fi 16807 version_type=freebsd-$objformat 16808 case $version_type in 16809 freebsd-elf*) 16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16811 need_version=no 16812 need_lib_prefix=no 16813 ;; 16814 freebsd-*) 16815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16816 need_version=yes 16817 ;; 16818 esac 16819 shlibpath_var=LD_LIBRARY_PATH 16820 case $host_os in 16821 freebsd2.*) 16822 shlibpath_overrides_runpath=yes 16823 ;; 16824 freebsd3.[01]* | freebsdelf3.[01]*) 16825 shlibpath_overrides_runpath=yes 16826 hardcode_into_libs=yes 16827 ;; 16828 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16829 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16830 shlibpath_overrides_runpath=no 16831 hardcode_into_libs=yes 16832 ;; 16833 *) # from 4.6 on, and DragonFly 16834 shlibpath_overrides_runpath=yes 16835 hardcode_into_libs=yes 16836 ;; 16837 esac 16838 ;; 16839 16840haiku*) 16841 version_type=linux # correct to gnu/linux during the next big refactor 16842 need_lib_prefix=no 16843 need_version=no 16844 dynamic_linker="$host_os runtime_loader" 16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16846 soname_spec='${libname}${release}${shared_ext}$major' 16847 shlibpath_var=LIBRARY_PATH 16848 shlibpath_overrides_runpath=yes 16849 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16850 hardcode_into_libs=yes 16851 ;; 16852 16853hpux9* | hpux10* | hpux11*) 16854 # Give a soname corresponding to the major version so that dld.sl refuses to 16855 # link against other versions. 16856 version_type=sunos 16857 need_lib_prefix=no 16858 need_version=no 16859 case $host_cpu in 16860 ia64*) 16861 shrext_cmds='.so' 16862 hardcode_into_libs=yes 16863 dynamic_linker="$host_os dld.so" 16864 shlibpath_var=LD_LIBRARY_PATH 16865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16867 soname_spec='${libname}${release}${shared_ext}$major' 16868 if test "X$HPUX_IA64_MODE" = X32; then 16869 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16870 else 16871 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16872 fi 16873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16874 ;; 16875 hppa*64*) 16876 shrext_cmds='.sl' 16877 hardcode_into_libs=yes 16878 dynamic_linker="$host_os dld.sl" 16879 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16882 soname_spec='${libname}${release}${shared_ext}$major' 16883 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16885 ;; 16886 *) 16887 shrext_cmds='.sl' 16888 dynamic_linker="$host_os dld.sl" 16889 shlibpath_var=SHLIB_PATH 16890 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16892 soname_spec='${libname}${release}${shared_ext}$major' 16893 ;; 16894 esac 16895 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16896 postinstall_cmds='chmod 555 $lib' 16897 # or fails outright, so override atomically: 16898 install_override_mode=555 16899 ;; 16900 16901interix[3-9]*) 16902 version_type=linux # correct to gnu/linux during the next big refactor 16903 need_lib_prefix=no 16904 need_version=no 16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16906 soname_spec='${libname}${release}${shared_ext}$major' 16907 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16908 shlibpath_var=LD_LIBRARY_PATH 16909 shlibpath_overrides_runpath=no 16910 hardcode_into_libs=yes 16911 ;; 16912 16913irix5* | irix6* | nonstopux*) 16914 case $host_os in 16915 nonstopux*) version_type=nonstopux ;; 16916 *) 16917 if test "$lt_cv_prog_gnu_ld" = yes; then 16918 version_type=linux # correct to gnu/linux during the next big refactor 16919 else 16920 version_type=irix 16921 fi ;; 16922 esac 16923 need_lib_prefix=no 16924 need_version=no 16925 soname_spec='${libname}${release}${shared_ext}$major' 16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16927 case $host_os in 16928 irix5* | nonstopux*) 16929 libsuff= shlibsuff= 16930 ;; 16931 *) 16932 case $LD in # libtool.m4 will add one of these switches to LD 16933 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16934 libsuff= shlibsuff= libmagic=32-bit;; 16935 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16936 libsuff=32 shlibsuff=N32 libmagic=N32;; 16937 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16938 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16939 *) libsuff= shlibsuff= libmagic=never-match;; 16940 esac 16941 ;; 16942 esac 16943 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16944 shlibpath_overrides_runpath=no 16945 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16946 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16947 hardcode_into_libs=yes 16948 ;; 16949 16950# No shared lib support for Linux oldld, aout, or coff. 16951linux*oldld* | linux*aout* | linux*coff*) 16952 dynamic_linker=no 16953 ;; 16954 16955# This must be glibc/ELF. 16956linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16957 version_type=linux # correct to gnu/linux during the next big refactor 16958 need_lib_prefix=no 16959 need_version=no 16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16961 soname_spec='${libname}${release}${shared_ext}$major' 16962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16963 shlibpath_var=LD_LIBRARY_PATH 16964 shlibpath_overrides_runpath=no 16965 16966 # Some binutils ld are patched to set DT_RUNPATH 16967 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16968 $as_echo_n "(cached) " >&6 16969else 16970 lt_cv_shlibpath_overrides_runpath=no 16971 save_LDFLAGS=$LDFLAGS 16972 save_libdir=$libdir 16973 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16974 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16976/* end confdefs.h. */ 16977 16978int 16979main () 16980{ 16981 16982 ; 16983 return 0; 16984} 16985_ACEOF 16986if ac_fn_c_try_link "$LINENO"; then : 16987 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16988 lt_cv_shlibpath_overrides_runpath=yes 16989fi 16990fi 16991rm -f core conftest.err conftest.$ac_objext \ 16992 conftest$ac_exeext conftest.$ac_ext 16993 LDFLAGS=$save_LDFLAGS 16994 libdir=$save_libdir 16995 16996fi 16997 16998 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16999 17000 # This implies no fast_install, which is unacceptable. 17001 # Some rework will be needed to allow for fast_install 17002 # before this can be enabled. 17003 hardcode_into_libs=yes 17004 17005 # Append ld.so.conf contents to the search path 17006 if test -f /etc/ld.so.conf; then 17007 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' ' '` 17008 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17009 fi 17010 17011 # We used to test for /lib/ld.so.1 and disable shared libraries on 17012 # powerpc, because MkLinux only supported shared libraries with the 17013 # GNU dynamic linker. Since this was broken with cross compilers, 17014 # most powerpc-linux boxes support dynamic linking these days and 17015 # people can always --disable-shared, the test was removed, and we 17016 # assume the GNU/Linux dynamic linker is in use. 17017 dynamic_linker='GNU/Linux ld.so' 17018 ;; 17019 17020netbsdelf*-gnu) 17021 version_type=linux 17022 need_lib_prefix=no 17023 need_version=no 17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17025 soname_spec='${libname}${release}${shared_ext}$major' 17026 shlibpath_var=LD_LIBRARY_PATH 17027 shlibpath_overrides_runpath=no 17028 hardcode_into_libs=yes 17029 dynamic_linker='NetBSD ld.elf_so' 17030 ;; 17031 17032netbsd*) 17033 version_type=sunos 17034 need_lib_prefix=no 17035 need_version=no 17036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17039 dynamic_linker='NetBSD (a.out) ld.so' 17040 else 17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17042 soname_spec='${libname}${release}${shared_ext}$major' 17043 dynamic_linker='NetBSD ld.elf_so' 17044 fi 17045 shlibpath_var=LD_LIBRARY_PATH 17046 shlibpath_overrides_runpath=yes 17047 hardcode_into_libs=yes 17048 ;; 17049 17050newsos6) 17051 version_type=linux # correct to gnu/linux during the next big refactor 17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17053 shlibpath_var=LD_LIBRARY_PATH 17054 shlibpath_overrides_runpath=yes 17055 ;; 17056 17057*nto* | *qnx*) 17058 version_type=qnx 17059 need_lib_prefix=no 17060 need_version=no 17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17062 soname_spec='${libname}${release}${shared_ext}$major' 17063 shlibpath_var=LD_LIBRARY_PATH 17064 shlibpath_overrides_runpath=no 17065 hardcode_into_libs=yes 17066 dynamic_linker='ldqnx.so' 17067 ;; 17068 17069openbsd*) 17070 version_type=sunos 17071 sys_lib_dlsearch_path_spec="/usr/lib" 17072 need_lib_prefix=no 17073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17074 case $host_os in 17075 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17076 *) need_version=no ;; 17077 esac 17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17080 shlibpath_var=LD_LIBRARY_PATH 17081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17082 case $host_os in 17083 openbsd2.[89] | openbsd2.[89].*) 17084 shlibpath_overrides_runpath=no 17085 ;; 17086 *) 17087 shlibpath_overrides_runpath=yes 17088 ;; 17089 esac 17090 else 17091 shlibpath_overrides_runpath=yes 17092 fi 17093 ;; 17094 17095os2*) 17096 libname_spec='$name' 17097 shrext_cmds=".dll" 17098 need_lib_prefix=no 17099 library_names_spec='$libname${shared_ext} $libname.a' 17100 dynamic_linker='OS/2 ld.exe' 17101 shlibpath_var=LIBPATH 17102 ;; 17103 17104osf3* | osf4* | osf5*) 17105 version_type=osf 17106 need_lib_prefix=no 17107 need_version=no 17108 soname_spec='${libname}${release}${shared_ext}$major' 17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17110 shlibpath_var=LD_LIBRARY_PATH 17111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17113 ;; 17114 17115rdos*) 17116 dynamic_linker=no 17117 ;; 17118 17119solaris*) 17120 version_type=linux # correct to gnu/linux during the next big refactor 17121 need_lib_prefix=no 17122 need_version=no 17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17124 soname_spec='${libname}${release}${shared_ext}$major' 17125 shlibpath_var=LD_LIBRARY_PATH 17126 shlibpath_overrides_runpath=yes 17127 hardcode_into_libs=yes 17128 # ldd complains unless libraries are executable 17129 postinstall_cmds='chmod +x $lib' 17130 ;; 17131 17132sunos4*) 17133 version_type=sunos 17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17136 shlibpath_var=LD_LIBRARY_PATH 17137 shlibpath_overrides_runpath=yes 17138 if test "$with_gnu_ld" = yes; then 17139 need_lib_prefix=no 17140 fi 17141 need_version=yes 17142 ;; 17143 17144sysv4 | sysv4.3*) 17145 version_type=linux # correct to gnu/linux during the next big refactor 17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17147 soname_spec='${libname}${release}${shared_ext}$major' 17148 shlibpath_var=LD_LIBRARY_PATH 17149 case $host_vendor in 17150 sni) 17151 shlibpath_overrides_runpath=no 17152 need_lib_prefix=no 17153 runpath_var=LD_RUN_PATH 17154 ;; 17155 siemens) 17156 need_lib_prefix=no 17157 ;; 17158 motorola) 17159 need_lib_prefix=no 17160 need_version=no 17161 shlibpath_overrides_runpath=no 17162 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17163 ;; 17164 esac 17165 ;; 17166 17167sysv4*MP*) 17168 if test -d /usr/nec ;then 17169 version_type=linux # correct to gnu/linux during the next big refactor 17170 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17171 soname_spec='$libname${shared_ext}.$major' 17172 shlibpath_var=LD_LIBRARY_PATH 17173 fi 17174 ;; 17175 17176sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17177 version_type=freebsd-elf 17178 need_lib_prefix=no 17179 need_version=no 17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17181 soname_spec='${libname}${release}${shared_ext}$major' 17182 shlibpath_var=LD_LIBRARY_PATH 17183 shlibpath_overrides_runpath=yes 17184 hardcode_into_libs=yes 17185 if test "$with_gnu_ld" = yes; then 17186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17187 else 17188 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17189 case $host_os in 17190 sco3.2v5*) 17191 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17192 ;; 17193 esac 17194 fi 17195 sys_lib_dlsearch_path_spec='/usr/lib' 17196 ;; 17197 17198tpf*) 17199 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17200 version_type=linux # correct to gnu/linux during the next big refactor 17201 need_lib_prefix=no 17202 need_version=no 17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17204 shlibpath_var=LD_LIBRARY_PATH 17205 shlibpath_overrides_runpath=no 17206 hardcode_into_libs=yes 17207 ;; 17208 17209uts4*) 17210 version_type=linux # correct to gnu/linux during the next big refactor 17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17212 soname_spec='${libname}${release}${shared_ext}$major' 17213 shlibpath_var=LD_LIBRARY_PATH 17214 ;; 17215 17216*) 17217 dynamic_linker=no 17218 ;; 17219esac 17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17221$as_echo "$dynamic_linker" >&6; } 17222test "$dynamic_linker" = no && can_build_shared=no 17223 17224variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17225if test "$GCC" = yes; then 17226 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17227fi 17228 17229if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17230 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17231fi 17232if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17233 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17234fi 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17328$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17329hardcode_action= 17330if test -n "$hardcode_libdir_flag_spec" || 17331 test -n "$runpath_var" || 17332 test "X$hardcode_automatic" = "Xyes" ; then 17333 17334 # We can hardcode non-existent directories. 17335 if test "$hardcode_direct" != no && 17336 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17337 # have to relink, otherwise we might link with an installed library 17338 # when we should be linking with a yet-to-be-installed one 17339 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17340 test "$hardcode_minus_L" != no; then 17341 # Linking always hardcodes the temporary library directory. 17342 hardcode_action=relink 17343 else 17344 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17345 hardcode_action=immediate 17346 fi 17347else 17348 # We cannot hardcode anything, or else we can only hardcode existing 17349 # directories. 17350 hardcode_action=unsupported 17351fi 17352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17353$as_echo "$hardcode_action" >&6; } 17354 17355if test "$hardcode_action" = relink || 17356 test "$inherit_rpath" = yes; then 17357 # Fast installation is not supported 17358 enable_fast_install=no 17359elif test "$shlibpath_overrides_runpath" = yes || 17360 test "$enable_shared" = no; then 17361 # Fast installation is not necessary 17362 enable_fast_install=needless 17363fi 17364 17365 17366 17367 17368 17369 17370 if test "x$enable_dlopen" != xyes; then 17371 enable_dlopen=unknown 17372 enable_dlopen_self=unknown 17373 enable_dlopen_self_static=unknown 17374else 17375 lt_cv_dlopen=no 17376 lt_cv_dlopen_libs= 17377 17378 case $host_os in 17379 beos*) 17380 lt_cv_dlopen="load_add_on" 17381 lt_cv_dlopen_libs= 17382 lt_cv_dlopen_self=yes 17383 ;; 17384 17385 mingw* | pw32* | cegcc*) 17386 lt_cv_dlopen="LoadLibrary" 17387 lt_cv_dlopen_libs= 17388 ;; 17389 17390 cygwin*) 17391 lt_cv_dlopen="dlopen" 17392 lt_cv_dlopen_libs= 17393 ;; 17394 17395 darwin*) 17396 # if libdl is installed we need to link against it 17397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17398$as_echo_n "checking for dlopen in -ldl... " >&6; } 17399if ${ac_cv_lib_dl_dlopen+:} false; then : 17400 $as_echo_n "(cached) " >&6 17401else 17402 ac_check_lib_save_LIBS=$LIBS 17403LIBS="-ldl $LIBS" 17404cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17405/* end confdefs.h. */ 17406 17407/* Override any GCC internal prototype to avoid an error. 17408 Use char because int might match the return type of a GCC 17409 builtin and then its argument prototype would still apply. */ 17410#ifdef __cplusplus 17411extern "C" 17412#endif 17413char dlopen (); 17414int 17415main () 17416{ 17417return dlopen (); 17418 ; 17419 return 0; 17420} 17421_ACEOF 17422if ac_fn_c_try_link "$LINENO"; then : 17423 ac_cv_lib_dl_dlopen=yes 17424else 17425 ac_cv_lib_dl_dlopen=no 17426fi 17427rm -f core conftest.err conftest.$ac_objext \ 17428 conftest$ac_exeext conftest.$ac_ext 17429LIBS=$ac_check_lib_save_LIBS 17430fi 17431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17432$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17433if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17435else 17436 17437 lt_cv_dlopen="dyld" 17438 lt_cv_dlopen_libs= 17439 lt_cv_dlopen_self=yes 17440 17441fi 17442 17443 ;; 17444 17445 *) 17446 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17447if test "x$ac_cv_func_shl_load" = xyes; then : 17448 lt_cv_dlopen="shl_load" 17449else 17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17451$as_echo_n "checking for shl_load in -ldld... " >&6; } 17452if ${ac_cv_lib_dld_shl_load+:} false; then : 17453 $as_echo_n "(cached) " >&6 17454else 17455 ac_check_lib_save_LIBS=$LIBS 17456LIBS="-ldld $LIBS" 17457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17458/* end confdefs.h. */ 17459 17460/* Override any GCC internal prototype to avoid an error. 17461 Use char because int might match the return type of a GCC 17462 builtin and then its argument prototype would still apply. */ 17463#ifdef __cplusplus 17464extern "C" 17465#endif 17466char shl_load (); 17467int 17468main () 17469{ 17470return shl_load (); 17471 ; 17472 return 0; 17473} 17474_ACEOF 17475if ac_fn_c_try_link "$LINENO"; then : 17476 ac_cv_lib_dld_shl_load=yes 17477else 17478 ac_cv_lib_dld_shl_load=no 17479fi 17480rm -f core conftest.err conftest.$ac_objext \ 17481 conftest$ac_exeext conftest.$ac_ext 17482LIBS=$ac_check_lib_save_LIBS 17483fi 17484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17485$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17486if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17487 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17488else 17489 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17490if test "x$ac_cv_func_dlopen" = xyes; then : 17491 lt_cv_dlopen="dlopen" 17492else 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17494$as_echo_n "checking for dlopen in -ldl... " >&6; } 17495if ${ac_cv_lib_dl_dlopen+:} false; then : 17496 $as_echo_n "(cached) " >&6 17497else 17498 ac_check_lib_save_LIBS=$LIBS 17499LIBS="-ldl $LIBS" 17500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17501/* end confdefs.h. */ 17502 17503/* Override any GCC internal prototype to avoid an error. 17504 Use char because int might match the return type of a GCC 17505 builtin and then its argument prototype would still apply. */ 17506#ifdef __cplusplus 17507extern "C" 17508#endif 17509char dlopen (); 17510int 17511main () 17512{ 17513return dlopen (); 17514 ; 17515 return 0; 17516} 17517_ACEOF 17518if ac_fn_c_try_link "$LINENO"; then : 17519 ac_cv_lib_dl_dlopen=yes 17520else 17521 ac_cv_lib_dl_dlopen=no 17522fi 17523rm -f core conftest.err conftest.$ac_objext \ 17524 conftest$ac_exeext conftest.$ac_ext 17525LIBS=$ac_check_lib_save_LIBS 17526fi 17527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17528$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17529if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17530 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17531else 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17533$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17534if ${ac_cv_lib_svld_dlopen+:} false; then : 17535 $as_echo_n "(cached) " >&6 17536else 17537 ac_check_lib_save_LIBS=$LIBS 17538LIBS="-lsvld $LIBS" 17539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17540/* end confdefs.h. */ 17541 17542/* Override any GCC internal prototype to avoid an error. 17543 Use char because int might match the return type of a GCC 17544 builtin and then its argument prototype would still apply. */ 17545#ifdef __cplusplus 17546extern "C" 17547#endif 17548char dlopen (); 17549int 17550main () 17551{ 17552return dlopen (); 17553 ; 17554 return 0; 17555} 17556_ACEOF 17557if ac_fn_c_try_link "$LINENO"; then : 17558 ac_cv_lib_svld_dlopen=yes 17559else 17560 ac_cv_lib_svld_dlopen=no 17561fi 17562rm -f core conftest.err conftest.$ac_objext \ 17563 conftest$ac_exeext conftest.$ac_ext 17564LIBS=$ac_check_lib_save_LIBS 17565fi 17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17567$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17568if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17569 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17570else 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17572$as_echo_n "checking for dld_link in -ldld... " >&6; } 17573if ${ac_cv_lib_dld_dld_link+:} false; then : 17574 $as_echo_n "(cached) " >&6 17575else 17576 ac_check_lib_save_LIBS=$LIBS 17577LIBS="-ldld $LIBS" 17578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17579/* end confdefs.h. */ 17580 17581/* Override any GCC internal prototype to avoid an error. 17582 Use char because int might match the return type of a GCC 17583 builtin and then its argument prototype would still apply. */ 17584#ifdef __cplusplus 17585extern "C" 17586#endif 17587char dld_link (); 17588int 17589main () 17590{ 17591return dld_link (); 17592 ; 17593 return 0; 17594} 17595_ACEOF 17596if ac_fn_c_try_link "$LINENO"; then : 17597 ac_cv_lib_dld_dld_link=yes 17598else 17599 ac_cv_lib_dld_dld_link=no 17600fi 17601rm -f core conftest.err conftest.$ac_objext \ 17602 conftest$ac_exeext conftest.$ac_ext 17603LIBS=$ac_check_lib_save_LIBS 17604fi 17605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17606$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17607if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17608 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17609fi 17610 17611 17612fi 17613 17614 17615fi 17616 17617 17618fi 17619 17620 17621fi 17622 17623 17624fi 17625 17626 ;; 17627 esac 17628 17629 if test "x$lt_cv_dlopen" != xno; then 17630 enable_dlopen=yes 17631 else 17632 enable_dlopen=no 17633 fi 17634 17635 case $lt_cv_dlopen in 17636 dlopen) 17637 save_CPPFLAGS="$CPPFLAGS" 17638 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17639 17640 save_LDFLAGS="$LDFLAGS" 17641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17642 17643 save_LIBS="$LIBS" 17644 LIBS="$lt_cv_dlopen_libs $LIBS" 17645 17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17647$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17648if ${lt_cv_dlopen_self+:} false; then : 17649 $as_echo_n "(cached) " >&6 17650else 17651 if test "$cross_compiling" = yes; then : 17652 lt_cv_dlopen_self=cross 17653else 17654 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17655 lt_status=$lt_dlunknown 17656 cat > conftest.$ac_ext <<_LT_EOF 17657#line $LINENO "configure" 17658#include "confdefs.h" 17659 17660#if HAVE_DLFCN_H 17661#include <dlfcn.h> 17662#endif 17663 17664#include <stdio.h> 17665 17666#ifdef RTLD_GLOBAL 17667# define LT_DLGLOBAL RTLD_GLOBAL 17668#else 17669# ifdef DL_GLOBAL 17670# define LT_DLGLOBAL DL_GLOBAL 17671# else 17672# define LT_DLGLOBAL 0 17673# endif 17674#endif 17675 17676/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17677 find out it does not work in some platform. */ 17678#ifndef LT_DLLAZY_OR_NOW 17679# ifdef RTLD_LAZY 17680# define LT_DLLAZY_OR_NOW RTLD_LAZY 17681# else 17682# ifdef DL_LAZY 17683# define LT_DLLAZY_OR_NOW DL_LAZY 17684# else 17685# ifdef RTLD_NOW 17686# define LT_DLLAZY_OR_NOW RTLD_NOW 17687# else 17688# ifdef DL_NOW 17689# define LT_DLLAZY_OR_NOW DL_NOW 17690# else 17691# define LT_DLLAZY_OR_NOW 0 17692# endif 17693# endif 17694# endif 17695# endif 17696#endif 17697 17698/* When -fvisbility=hidden is used, assume the code has been annotated 17699 correspondingly for the symbols needed. */ 17700#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17701int fnord () __attribute__((visibility("default"))); 17702#endif 17703 17704int fnord () { return 42; } 17705int main () 17706{ 17707 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17708 int status = $lt_dlunknown; 17709 17710 if (self) 17711 { 17712 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17713 else 17714 { 17715 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17716 else puts (dlerror ()); 17717 } 17718 /* dlclose (self); */ 17719 } 17720 else 17721 puts (dlerror ()); 17722 17723 return status; 17724} 17725_LT_EOF 17726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17727 (eval $ac_link) 2>&5 17728 ac_status=$? 17729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17730 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17731 (./conftest; exit; ) >&5 2>/dev/null 17732 lt_status=$? 17733 case x$lt_status in 17734 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17735 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17736 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17737 esac 17738 else : 17739 # compilation failed 17740 lt_cv_dlopen_self=no 17741 fi 17742fi 17743rm -fr conftest* 17744 17745 17746fi 17747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17748$as_echo "$lt_cv_dlopen_self" >&6; } 17749 17750 if test "x$lt_cv_dlopen_self" = xyes; then 17751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17753$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17754if ${lt_cv_dlopen_self_static+:} false; then : 17755 $as_echo_n "(cached) " >&6 17756else 17757 if test "$cross_compiling" = yes; then : 17758 lt_cv_dlopen_self_static=cross 17759else 17760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17761 lt_status=$lt_dlunknown 17762 cat > conftest.$ac_ext <<_LT_EOF 17763#line $LINENO "configure" 17764#include "confdefs.h" 17765 17766#if HAVE_DLFCN_H 17767#include <dlfcn.h> 17768#endif 17769 17770#include <stdio.h> 17771 17772#ifdef RTLD_GLOBAL 17773# define LT_DLGLOBAL RTLD_GLOBAL 17774#else 17775# ifdef DL_GLOBAL 17776# define LT_DLGLOBAL DL_GLOBAL 17777# else 17778# define LT_DLGLOBAL 0 17779# endif 17780#endif 17781 17782/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17783 find out it does not work in some platform. */ 17784#ifndef LT_DLLAZY_OR_NOW 17785# ifdef RTLD_LAZY 17786# define LT_DLLAZY_OR_NOW RTLD_LAZY 17787# else 17788# ifdef DL_LAZY 17789# define LT_DLLAZY_OR_NOW DL_LAZY 17790# else 17791# ifdef RTLD_NOW 17792# define LT_DLLAZY_OR_NOW RTLD_NOW 17793# else 17794# ifdef DL_NOW 17795# define LT_DLLAZY_OR_NOW DL_NOW 17796# else 17797# define LT_DLLAZY_OR_NOW 0 17798# endif 17799# endif 17800# endif 17801# endif 17802#endif 17803 17804/* When -fvisbility=hidden is used, assume the code has been annotated 17805 correspondingly for the symbols needed. */ 17806#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17807int fnord () __attribute__((visibility("default"))); 17808#endif 17809 17810int fnord () { return 42; } 17811int main () 17812{ 17813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17814 int status = $lt_dlunknown; 17815 17816 if (self) 17817 { 17818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17819 else 17820 { 17821 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17822 else puts (dlerror ()); 17823 } 17824 /* dlclose (self); */ 17825 } 17826 else 17827 puts (dlerror ()); 17828 17829 return status; 17830} 17831_LT_EOF 17832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17833 (eval $ac_link) 2>&5 17834 ac_status=$? 17835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17836 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17837 (./conftest; exit; ) >&5 2>/dev/null 17838 lt_status=$? 17839 case x$lt_status in 17840 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17841 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17842 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17843 esac 17844 else : 17845 # compilation failed 17846 lt_cv_dlopen_self_static=no 17847 fi 17848fi 17849rm -fr conftest* 17850 17851 17852fi 17853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17854$as_echo "$lt_cv_dlopen_self_static" >&6; } 17855 fi 17856 17857 CPPFLAGS="$save_CPPFLAGS" 17858 LDFLAGS="$save_LDFLAGS" 17859 LIBS="$save_LIBS" 17860 ;; 17861 esac 17862 17863 case $lt_cv_dlopen_self in 17864 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17865 *) enable_dlopen_self=unknown ;; 17866 esac 17867 17868 case $lt_cv_dlopen_self_static in 17869 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17870 *) enable_dlopen_self_static=unknown ;; 17871 esac 17872fi 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890striplib= 17891old_striplib= 17892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17893$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17894if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17895 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17896 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17898$as_echo "yes" >&6; } 17899else 17900# FIXME - insert some real tests, host_os isn't really good enough 17901 case $host_os in 17902 darwin*) 17903 if test -n "$STRIP" ; then 17904 striplib="$STRIP -x" 17905 old_striplib="$STRIP -S" 17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17907$as_echo "yes" >&6; } 17908 else 17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17910$as_echo "no" >&6; } 17911 fi 17912 ;; 17913 *) 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17915$as_echo "no" >&6; } 17916 ;; 17917 esac 17918fi 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 # Report which library types will actually be built 17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17933$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17935$as_echo "$can_build_shared" >&6; } 17936 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17938$as_echo_n "checking whether to build shared libraries... " >&6; } 17939 test "$can_build_shared" = "no" && enable_shared=no 17940 17941 # On AIX, shared libraries and static libraries use the same namespace, and 17942 # are all built from PIC. 17943 case $host_os in 17944 aix3*) 17945 test "$enable_shared" = yes && enable_static=no 17946 if test -n "$RANLIB"; then 17947 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17948 postinstall_cmds='$RANLIB $lib' 17949 fi 17950 ;; 17951 17952 aix[4-9]*) 17953 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17954 test "$enable_shared" = yes && enable_static=no 17955 fi 17956 ;; 17957 esac 17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17959$as_echo "$enable_shared" >&6; } 17960 17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17962$as_echo_n "checking whether to build static libraries... " >&6; } 17963 # Make sure either enable_shared or enable_static is yes. 17964 test "$enable_shared" = yes || enable_static=yes 17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17966$as_echo "$enable_static" >&6; } 17967 17968 17969 17970 17971fi 17972ac_ext=c 17973ac_cpp='$CPP $CPPFLAGS' 17974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17976ac_compiler_gnu=$ac_cv_c_compiler_gnu 17977 17978CC="$lt_save_CC" 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 ac_config_commands="$ac_config_commands libtool" 17995 17996 17997 17998 17999# Only expand once: 18000 18001 18002 18003 18004 18005# Define a configure option for an alternate module directory 18006 18007# Check whether --with-xorg-module-dir was given. 18008if test "${with_xorg_module_dir+set}" = set; then : 18009 withval=$with_xorg_module_dir; moduledir="$withval" 18010else 18011 moduledir="$libdir/xorg/modules" 18012fi 18013 18014 18015# Check whether --enable-dri was given. 18016if test "${enable_dri+set}" = set; then : 18017 enableval=$enable_dri; DRI="$enableval" 18018else 18019 DRI=auto 18020fi 18021 18022 18023# Store the list of server defined optional extensions in REQUIRED_MODULES 18024 18025 18026 SAVE_CFLAGS="$CFLAGS" 18027 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18029/* end confdefs.h. */ 18030 18031#include "xorg-server.h" 18032#if !defined RANDR 18033#error RANDR not defined 18034#endif 18035 18036int 18037main () 18038{ 18039 18040 ; 18041 return 0; 18042} 18043_ACEOF 18044if ac_fn_c_try_compile "$LINENO"; then : 18045 _EXT_CHECK=yes 18046else 18047 _EXT_CHECK=no 18048fi 18049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18050 CFLAGS="$SAVE_CFLAGS" 18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18052$as_echo_n "checking if RANDR is defined... " >&6; } 18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18054$as_echo "$_EXT_CHECK" >&6; } 18055 if test "$_EXT_CHECK" != no; then 18056 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18057 fi 18058 18059 18060 18061 SAVE_CFLAGS="$CFLAGS" 18062 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18064/* end confdefs.h. */ 18065 18066#include "xorg-server.h" 18067#if !defined RENDER 18068#error RENDER not defined 18069#endif 18070 18071int 18072main () 18073{ 18074 18075 ; 18076 return 0; 18077} 18078_ACEOF 18079if ac_fn_c_try_compile "$LINENO"; then : 18080 _EXT_CHECK=yes 18081else 18082 _EXT_CHECK=no 18083fi 18084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18085 CFLAGS="$SAVE_CFLAGS" 18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18087$as_echo_n "checking if RENDER is defined... " >&6; } 18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18089$as_echo "$_EXT_CHECK" >&6; } 18090 if test "$_EXT_CHECK" != no; then 18091 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18092 fi 18093 18094 18095 18096 SAVE_CFLAGS="$CFLAGS" 18097 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18099/* end confdefs.h. */ 18100 18101#include "xorg-server.h" 18102#if !defined XV 18103#error XV not defined 18104#endif 18105 18106int 18107main () 18108{ 18109 18110 ; 18111 return 0; 18112} 18113_ACEOF 18114if ac_fn_c_try_compile "$LINENO"; then : 18115 _EXT_CHECK=yes 18116else 18117 _EXT_CHECK=no 18118fi 18119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18120 CFLAGS="$SAVE_CFLAGS" 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18122$as_echo_n "checking if XV is defined... " >&6; } 18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18124$as_echo "$_EXT_CHECK" >&6; } 18125 if test "$_EXT_CHECK" != no; then 18126 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18127 fi 18128 18129 18130 18131 SAVE_CFLAGS="$CFLAGS" 18132 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134/* end confdefs.h. */ 18135 18136#include "xorg-server.h" 18137#if !defined DPMSExtension 18138#error DPMSExtension not defined 18139#endif 18140 18141int 18142main () 18143{ 18144 18145 ; 18146 return 0; 18147} 18148_ACEOF 18149if ac_fn_c_try_compile "$LINENO"; then : 18150 _EXT_CHECK=yes 18151else 18152 _EXT_CHECK=no 18153fi 18154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18155 CFLAGS="$SAVE_CFLAGS" 18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18157$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18159$as_echo "$_EXT_CHECK" >&6; } 18160 if test "$_EXT_CHECK" != no; then 18161 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18162 fi 18163 18164 18165# Obtain compiler/linker options for the driver dependencies 18166 18167pkg_failed=no 18168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18169$as_echo_n "checking for XORG... " >&6; } 18170 18171if test -n "$XORG_CFLAGS"; then 18172 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18173 elif test -n "$PKG_CONFIG"; then 18174 if test -n "$PKG_CONFIG" && \ 18175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18176 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 18177 ac_status=$? 18178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18179 test $ac_status = 0; }; then 18180 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18181 test "x$?" != "x0" && pkg_failed=yes 18182else 18183 pkg_failed=yes 18184fi 18185 else 18186 pkg_failed=untried 18187fi 18188if test -n "$XORG_LIBS"; then 18189 pkg_cv_XORG_LIBS="$XORG_LIBS" 18190 elif test -n "$PKG_CONFIG"; then 18191 if test -n "$PKG_CONFIG" && \ 18192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18193 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 18194 ac_status=$? 18195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18196 test $ac_status = 0; }; then 18197 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18198 test "x$?" != "x0" && pkg_failed=yes 18199else 18200 pkg_failed=yes 18201fi 18202 else 18203 pkg_failed=untried 18204fi 18205 18206 18207 18208if test $pkg_failed = yes; then 18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18210$as_echo "no" >&6; } 18211 18212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18213 _pkg_short_errors_supported=yes 18214else 18215 _pkg_short_errors_supported=no 18216fi 18217 if test $_pkg_short_errors_supported = yes; then 18218 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18219 else 18220 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18221 fi 18222 # Put the nasty error message in config.log where it belongs 18223 echo "$XORG_PKG_ERRORS" >&5 18224 18225 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 18226 18227$XORG_PKG_ERRORS 18228 18229Consider adjusting the PKG_CONFIG_PATH environment variable if you 18230installed software in a non-standard prefix. 18231 18232Alternatively, you may set the environment variables XORG_CFLAGS 18233and XORG_LIBS to avoid the need to call pkg-config. 18234See the pkg-config man page for more details." "$LINENO" 5 18235elif test $pkg_failed = untried; then 18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18237$as_echo "no" >&6; } 18238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18240as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18241is in your PATH or set the PKG_CONFIG environment variable to the full 18242path to pkg-config. 18243 18244Alternatively, you may set the environment variables XORG_CFLAGS 18245and XORG_LIBS to avoid the need to call pkg-config. 18246See the pkg-config man page for more details. 18247 18248To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18249See \`config.log' for more details" "$LINENO" 5; } 18250else 18251 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18252 XORG_LIBS=$pkg_cv_XORG_LIBS 18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18254$as_echo "yes" >&6; } 18255 18256fi 18257 18258pkg_failed=no 18259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18260$as_echo_n "checking for XEXT... " >&6; } 18261 18262if test -n "$XEXT_CFLAGS"; then 18263 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18264 elif test -n "$PKG_CONFIG"; then 18265 if test -n "$PKG_CONFIG" && \ 18266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18267 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18268 ac_status=$? 18269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18270 test $ac_status = 0; }; then 18271 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 18272 test "x$?" != "x0" && pkg_failed=yes 18273else 18274 pkg_failed=yes 18275fi 18276 else 18277 pkg_failed=untried 18278fi 18279if test -n "$XEXT_LIBS"; then 18280 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18281 elif test -n "$PKG_CONFIG"; then 18282 if test -n "$PKG_CONFIG" && \ 18283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18284 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18285 ac_status=$? 18286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18287 test $ac_status = 0; }; then 18288 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 18289 test "x$?" != "x0" && pkg_failed=yes 18290else 18291 pkg_failed=yes 18292fi 18293 else 18294 pkg_failed=untried 18295fi 18296 18297 18298 18299if test $pkg_failed = yes; then 18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18301$as_echo "no" >&6; } 18302 18303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18304 _pkg_short_errors_supported=yes 18305else 18306 _pkg_short_errors_supported=no 18307fi 18308 if test $_pkg_short_errors_supported = yes; then 18309 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18310 else 18311 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18312 fi 18313 # Put the nasty error message in config.log where it belongs 18314 echo "$XEXT_PKG_ERRORS" >&5 18315 18316 HAVE_XEXTPROTO_71="no" 18317elif test $pkg_failed = untried; then 18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18319$as_echo "no" >&6; } 18320 HAVE_XEXTPROTO_71="no" 18321else 18322 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18323 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18325$as_echo "yes" >&6; } 18326 HAVE_XEXTPROTO_71="yes"; 18327$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 18328 18329fi 18330 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 18331 HAVE_XEXTPROTO_71_TRUE= 18332 HAVE_XEXTPROTO_71_FALSE='#' 18333else 18334 HAVE_XEXTPROTO_71_TRUE='#' 18335 HAVE_XEXTPROTO_71_FALSE= 18336fi 18337 18338sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 18339 18340# Checks for libraries. 18341 18342 18343if test "$DRI" != no; then 18344 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 18345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 18346$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 18347if eval \${$as_ac_File+:} false; then : 18348 $as_echo_n "(cached) " >&6 18349else 18350 test "$cross_compiling" = yes && 18351 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18352if test -r "${sdkdir}/dri.h"; then 18353 eval "$as_ac_File=yes" 18354else 18355 eval "$as_ac_File=no" 18356fi 18357fi 18358eval ac_res=\$$as_ac_File 18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18360$as_echo "$ac_res" >&6; } 18361if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18362 have_dri_h="yes" 18363else 18364 have_dri_h="no" 18365fi 18366 18367 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 18368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 18369$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 18370if eval \${$as_ac_File+:} false; then : 18371 $as_echo_n "(cached) " >&6 18372else 18373 test "$cross_compiling" = yes && 18374 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18375if test -r "${sdkdir}/sarea.h"; then 18376 eval "$as_ac_File=yes" 18377else 18378 eval "$as_ac_File=no" 18379fi 18380fi 18381eval ac_res=\$$as_ac_File 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18383$as_echo "$ac_res" >&6; } 18384if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18385 have_sarea_h="yes" 18386else 18387 have_sarea_h="no" 18388fi 18389 18390 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 18391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 18392$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 18393if eval \${$as_ac_File+:} false; then : 18394 $as_echo_n "(cached) " >&6 18395else 18396 test "$cross_compiling" = yes && 18397 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18398if test -r "${sdkdir}/dristruct.h"; then 18399 eval "$as_ac_File=yes" 18400else 18401 eval "$as_ac_File=no" 18402fi 18403fi 18404eval ac_res=\$$as_ac_File 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18406$as_echo "$ac_res" >&6; } 18407if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18408 have_dristruct_h="yes" 18409else 18410 have_dristruct_h="no" 18411fi 18412 18413fi 18414 18415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 18416$as_echo_n "checking whether to include DRI support... " >&6; } 18417if test x$DRI = xauto; then 18418 if test "$have_dri_h" = yes -a \ 18419 "$have_sarea_h" = yes -a \ 18420 "$have_dristruct_h" = yes; then 18421 DRI="yes" 18422 else 18423 DRI="no" 18424 fi 18425fi 18426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 18427$as_echo "$DRI" >&6; } 18428 18429 if test x$DRI = xyes; then 18430 DRI_TRUE= 18431 DRI_FALSE='#' 18432else 18433 DRI_TRUE='#' 18434 DRI_FALSE= 18435fi 18436 18437if test "$DRI" = yes; then 18438 18439pkg_failed=no 18440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 18441$as_echo_n "checking for DRI... " >&6; } 18442 18443if test -n "$DRI_CFLAGS"; then 18444 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 18445 elif test -n "$PKG_CONFIG"; then 18446 if test -n "$PKG_CONFIG" && \ 18447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18448 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18449 ac_status=$? 18450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18451 test $ac_status = 0; }; then 18452 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18453 test "x$?" != "x0" && pkg_failed=yes 18454else 18455 pkg_failed=yes 18456fi 18457 else 18458 pkg_failed=untried 18459fi 18460if test -n "$DRI_LIBS"; then 18461 pkg_cv_DRI_LIBS="$DRI_LIBS" 18462 elif test -n "$PKG_CONFIG"; then 18463 if test -n "$PKG_CONFIG" && \ 18464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18465 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18466 ac_status=$? 18467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18468 test $ac_status = 0; }; then 18469 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18470 test "x$?" != "x0" && pkg_failed=yes 18471else 18472 pkg_failed=yes 18473fi 18474 else 18475 pkg_failed=untried 18476fi 18477 18478 18479 18480if test $pkg_failed = yes; then 18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18482$as_echo "no" >&6; } 18483 18484if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18485 _pkg_short_errors_supported=yes 18486else 18487 _pkg_short_errors_supported=no 18488fi 18489 if test $_pkg_short_errors_supported = yes; then 18490 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 18491 else 18492 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 18493 fi 18494 # Put the nasty error message in config.log where it belongs 18495 echo "$DRI_PKG_ERRORS" >&5 18496 18497 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met: 18498 18499$DRI_PKG_ERRORS 18500 18501Consider adjusting the PKG_CONFIG_PATH environment variable if you 18502installed software in a non-standard prefix. 18503 18504Alternatively, you may set the environment variables DRI_CFLAGS 18505and DRI_LIBS to avoid the need to call pkg-config. 18506See the pkg-config man page for more details." "$LINENO" 5 18507elif test $pkg_failed = untried; then 18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18509$as_echo "no" >&6; } 18510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18512as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18513is in your PATH or set the PKG_CONFIG environment variable to the full 18514path to pkg-config. 18515 18516Alternatively, you may set the environment variables DRI_CFLAGS 18517and DRI_LIBS to avoid the need to call pkg-config. 18518See the pkg-config man page for more details. 18519 18520To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18521See \`config.log' for more details" "$LINENO" 5; } 18522else 18523 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 18524 DRI_LIBS=$pkg_cv_DRI_LIBS 18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18526$as_echo "yes" >&6; } 18527 18528fi 18529 18530$as_echo "#define SAVAGEDRI 1" >>confdefs.h 18531 18532 18533$as_echo "#define SAVAGEDRI_DEVEL 1" >>confdefs.h 18534 18535fi 18536 18537# Check whether --enable-xaa was given. 18538if test "${enable_xaa+set}" = set; then : 18539 enableval=$enable_xaa; XAA="$enableval" 18540else 18541 XAA=auto 18542fi 18543 18544if test "x$XAA" != xno; then 18545 save_CFLAGS=$CFLAGS 18546 save_CPPFLAGS=$CPPFLAGS 18547 CFLAGS=$XORG_CFLAGS 18548 CPPFLAGS="$XORG_CFLAGS" 18549 for ac_header in xaa.h 18550do : 18551 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18552if test "x$ac_cv_header_xaa_h" = xyes; then : 18553 cat >>confdefs.h <<_ACEOF 18554#define HAVE_XAA_H 1 18555_ACEOF 18556 XAA=yes 18557else 18558 XAA=no 18559fi 18560 18561done 18562 18563 CFLAGS=$save_CFLAGS 18564 CPPFLAGS=$save_CPPFLAGS 18565fi 18566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18567$as_echo_n "checking whether to include XAA support... " >&6; } 18568 if test "x$XAA" = xyes; then 18569 XAA_TRUE= 18570 XAA_FALSE='#' 18571else 18572 XAA_TRUE='#' 18573 XAA_FALSE= 18574fi 18575 18576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18577$as_echo "$XAA" >&6; } 18578 18579save_CFLAGS="$CFLAGS" 18580CFLAGS="$XORG_CFLAGS" 18581ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18582" 18583if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18584 XSERVER_LIBPCIACCESS=yes 18585else 18586 XSERVER_LIBPCIACCESS=no 18587fi 18588 18589ac_fn_c_check_decl "$LINENO" "xf86XVFillKeyHelperDrawable" "ac_cv_have_decl_xf86XVFillKeyHelperDrawable" "#include \"xf86xv.h\" 18590" 18591if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = xyes; then : 18592 18593$as_echo "#define HAVE_XV_DRAWABLE_HELPER 1" >>confdefs.h 18594 18595fi 18596 18597CFLAGS="$save_CFLAGS" 18598 18599if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18600 18601pkg_failed=no 18602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18603$as_echo_n "checking for PCIACCESS... " >&6; } 18604 18605if test -n "$PCIACCESS_CFLAGS"; then 18606 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18607 elif test -n "$PKG_CONFIG"; then 18608 if test -n "$PKG_CONFIG" && \ 18609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 18610 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 18611 ac_status=$? 18612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18613 test $ac_status = 0; }; then 18614 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 18615 test "x$?" != "x0" && pkg_failed=yes 18616else 18617 pkg_failed=yes 18618fi 18619 else 18620 pkg_failed=untried 18621fi 18622if test -n "$PCIACCESS_LIBS"; then 18623 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18624 elif test -n "$PKG_CONFIG"; then 18625 if test -n "$PKG_CONFIG" && \ 18626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 18627 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 18628 ac_status=$? 18629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18630 test $ac_status = 0; }; then 18631 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 18632 test "x$?" != "x0" && pkg_failed=yes 18633else 18634 pkg_failed=yes 18635fi 18636 else 18637 pkg_failed=untried 18638fi 18639 18640 18641 18642if test $pkg_failed = yes; then 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18644$as_echo "no" >&6; } 18645 18646if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18647 _pkg_short_errors_supported=yes 18648else 18649 _pkg_short_errors_supported=no 18650fi 18651 if test $_pkg_short_errors_supported = yes; then 18652 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 18653 else 18654 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 18655 fi 18656 # Put the nasty error message in config.log where it belongs 18657 echo "$PCIACCESS_PKG_ERRORS" >&5 18658 18659 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met: 18660 18661$PCIACCESS_PKG_ERRORS 18662 18663Consider adjusting the PKG_CONFIG_PATH environment variable if you 18664installed software in a non-standard prefix. 18665 18666Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18667and PCIACCESS_LIBS to avoid the need to call pkg-config. 18668See the pkg-config man page for more details." "$LINENO" 5 18669elif test $pkg_failed = untried; then 18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18671$as_echo "no" >&6; } 18672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18674as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18675is in your PATH or set the PKG_CONFIG environment variable to the full 18676path to pkg-config. 18677 18678Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18679and PCIACCESS_LIBS to avoid the need to call pkg-config. 18680See the pkg-config man page for more details. 18681 18682To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18683See \`config.log' for more details" "$LINENO" 5; } 18684else 18685 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18686 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18688$as_echo "yes" >&6; } 18689 18690fi 18691fi 18692 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18693 XSERVER_LIBPCIACCESS_TRUE= 18694 XSERVER_LIBPCIACCESS_FALSE='#' 18695else 18696 XSERVER_LIBPCIACCESS_TRUE='#' 18697 XSERVER_LIBPCIACCESS_FALSE= 18698fi 18699 18700 18701 18702 18703DRIVER_NAME=savage 18704 18705 18706ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18707 18708cat >confcache <<\_ACEOF 18709# This file is a shell script that caches the results of configure 18710# tests run on this system so they can be shared between configure 18711# scripts and configure runs, see configure's option --config-cache. 18712# It is not useful on other systems. If it contains results you don't 18713# want to keep, you may remove or edit it. 18714# 18715# config.status only pays attention to the cache file if you give it 18716# the --recheck option to rerun configure. 18717# 18718# `ac_cv_env_foo' variables (set or unset) will be overridden when 18719# loading this file, other *unset* `ac_cv_foo' will be assigned the 18720# following values. 18721 18722_ACEOF 18723 18724# The following way of writing the cache mishandles newlines in values, 18725# but we know of no workaround that is simple, portable, and efficient. 18726# So, we kill variables containing newlines. 18727# Ultrix sh set writes to stderr and can't be redirected directly, 18728# and sets the high bit in the cache file unless we assign to the vars. 18729( 18730 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18731 eval ac_val=\$$ac_var 18732 case $ac_val in #( 18733 *${as_nl}*) 18734 case $ac_var in #( 18735 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18736$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18737 esac 18738 case $ac_var in #( 18739 _ | IFS | as_nl) ;; #( 18740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18741 *) { eval $ac_var=; unset $ac_var;} ;; 18742 esac ;; 18743 esac 18744 done 18745 18746 (set) 2>&1 | 18747 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18748 *${as_nl}ac_space=\ *) 18749 # `set' does not quote correctly, so add quotes: double-quote 18750 # substitution turns \\\\ into \\, and sed turns \\ into \. 18751 sed -n \ 18752 "s/'/'\\\\''/g; 18753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18754 ;; #( 18755 *) 18756 # `set' quotes correctly as required by POSIX, so do not add quotes. 18757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18758 ;; 18759 esac | 18760 sort 18761) | 18762 sed ' 18763 /^ac_cv_env_/b end 18764 t clear 18765 :clear 18766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18767 t end 18768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18769 :end' >>confcache 18770if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18771 if test -w "$cache_file"; then 18772 if test "x$cache_file" != "x/dev/null"; then 18773 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18774$as_echo "$as_me: updating cache $cache_file" >&6;} 18775 if test ! -f "$cache_file" || test -h "$cache_file"; then 18776 cat confcache >"$cache_file" 18777 else 18778 case $cache_file in #( 18779 */* | ?:*) 18780 mv -f confcache "$cache_file"$$ && 18781 mv -f "$cache_file"$$ "$cache_file" ;; #( 18782 *) 18783 mv -f confcache "$cache_file" ;; 18784 esac 18785 fi 18786 fi 18787 else 18788 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18789$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18790 fi 18791fi 18792rm -f confcache 18793 18794test "x$prefix" = xNONE && prefix=$ac_default_prefix 18795# Let make expand exec_prefix. 18796test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18797 18798DEFS=-DHAVE_CONFIG_H 18799 18800ac_libobjs= 18801ac_ltlibobjs= 18802U= 18803for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18804 # 1. Remove the extension, and $U if already installed. 18805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18806 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18808 # will be set to the directory where LIBOBJS objects are built. 18809 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18810 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18811done 18812LIBOBJS=$ac_libobjs 18813 18814LTLIBOBJS=$ac_ltlibobjs 18815 18816 18817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18818$as_echo_n "checking that generated files are newer than configure... " >&6; } 18819 if test -n "$am_sleep_pid"; then 18820 # Hide warnings about reused PIDs. 18821 wait $am_sleep_pid 2>/dev/null 18822 fi 18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18824$as_echo "done" >&6; } 18825 if test -n "$EXEEXT"; then 18826 am__EXEEXT_TRUE= 18827 am__EXEEXT_FALSE='#' 18828else 18829 am__EXEEXT_TRUE='#' 18830 am__EXEEXT_FALSE= 18831fi 18832 18833if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18834 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18835Usually this means the macro was only invoked conditionally." "$LINENO" 5 18836fi 18837if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18838 as_fn_error $? "conditional \"AMDEP\" was never defined. 18839Usually this means the macro was only invoked conditionally." "$LINENO" 5 18840fi 18841if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18842 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18843Usually this means the macro was only invoked conditionally." "$LINENO" 5 18844fi 18845if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 18846 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 18847Usually this means the macro was only invoked conditionally." "$LINENO" 5 18848fi 18849if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 18850 as_fn_error $? "conditional \"DRI\" was never defined. 18851Usually this means the macro was only invoked conditionally." "$LINENO" 5 18852fi 18853if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 18854 as_fn_error $? "conditional \"XAA\" was never defined. 18855Usually this means the macro was only invoked conditionally." "$LINENO" 5 18856fi 18857if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 18858 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 18859Usually this means the macro was only invoked conditionally." "$LINENO" 5 18860fi 18861 18862: "${CONFIG_STATUS=./config.status}" 18863ac_write_fail=0 18864ac_clean_files_save=$ac_clean_files 18865ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18866{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18867$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18868as_write_fail=0 18869cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18870#! $SHELL 18871# Generated by $as_me. 18872# Run this file to recreate the current configuration. 18873# Compiler output produced by configure, useful for debugging 18874# configure, is in config.log if it exists. 18875 18876debug=false 18877ac_cs_recheck=false 18878ac_cs_silent=false 18879 18880SHELL=\${CONFIG_SHELL-$SHELL} 18881export SHELL 18882_ASEOF 18883cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18884## -------------------- ## 18885## M4sh Initialization. ## 18886## -------------------- ## 18887 18888# Be more Bourne compatible 18889DUALCASE=1; export DUALCASE # for MKS sh 18890if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18891 emulate sh 18892 NULLCMD=: 18893 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18894 # is contrary to our usage. Disable this feature. 18895 alias -g '${1+"$@"}'='"$@"' 18896 setopt NO_GLOB_SUBST 18897else 18898 case `(set -o) 2>/dev/null` in #( 18899 *posix*) : 18900 set -o posix ;; #( 18901 *) : 18902 ;; 18903esac 18904fi 18905 18906 18907as_nl=' 18908' 18909export as_nl 18910# Printing a long string crashes Solaris 7 /usr/bin/printf. 18911as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18912as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18913as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18914# Prefer a ksh shell builtin over an external printf program on Solaris, 18915# but without wasting forks for bash or zsh. 18916if test -z "$BASH_VERSION$ZSH_VERSION" \ 18917 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18918 as_echo='print -r --' 18919 as_echo_n='print -rn --' 18920elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18921 as_echo='printf %s\n' 18922 as_echo_n='printf %s' 18923else 18924 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18925 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18926 as_echo_n='/usr/ucb/echo -n' 18927 else 18928 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18929 as_echo_n_body='eval 18930 arg=$1; 18931 case $arg in #( 18932 *"$as_nl"*) 18933 expr "X$arg" : "X\\(.*\\)$as_nl"; 18934 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18935 esac; 18936 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18937 ' 18938 export as_echo_n_body 18939 as_echo_n='sh -c $as_echo_n_body as_echo' 18940 fi 18941 export as_echo_body 18942 as_echo='sh -c $as_echo_body as_echo' 18943fi 18944 18945# The user is always right. 18946if test "${PATH_SEPARATOR+set}" != set; then 18947 PATH_SEPARATOR=: 18948 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18949 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18950 PATH_SEPARATOR=';' 18951 } 18952fi 18953 18954 18955# IFS 18956# We need space, tab and new line, in precisely that order. Quoting is 18957# there to prevent editors from complaining about space-tab. 18958# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18959# splitting by setting IFS to empty value.) 18960IFS=" "" $as_nl" 18961 18962# Find who we are. Look in the path if we contain no directory separator. 18963as_myself= 18964case $0 in #(( 18965 *[\\/]* ) as_myself=$0 ;; 18966 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18967for as_dir in $PATH 18968do 18969 IFS=$as_save_IFS 18970 test -z "$as_dir" && as_dir=. 18971 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18972 done 18973IFS=$as_save_IFS 18974 18975 ;; 18976esac 18977# We did not find ourselves, most probably we were run as `sh COMMAND' 18978# in which case we are not to be found in the path. 18979if test "x$as_myself" = x; then 18980 as_myself=$0 18981fi 18982if test ! -f "$as_myself"; then 18983 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18984 exit 1 18985fi 18986 18987# Unset variables that we do not need and which cause bugs (e.g. in 18988# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18989# suppresses any "Segmentation fault" message there. '((' could 18990# trigger a bug in pdksh 5.2.14. 18991for as_var in BASH_ENV ENV MAIL MAILPATH 18992do eval test x\${$as_var+set} = xset \ 18993 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18994done 18995PS1='$ ' 18996PS2='> ' 18997PS4='+ ' 18998 18999# NLS nuisances. 19000LC_ALL=C 19001export LC_ALL 19002LANGUAGE=C 19003export LANGUAGE 19004 19005# CDPATH. 19006(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19007 19008 19009# as_fn_error STATUS ERROR [LINENO LOG_FD] 19010# ---------------------------------------- 19011# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19012# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19013# script with STATUS, using 1 if that was 0. 19014as_fn_error () 19015{ 19016 as_status=$1; test $as_status -eq 0 && as_status=1 19017 if test "$4"; then 19018 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19019 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19020 fi 19021 $as_echo "$as_me: error: $2" >&2 19022 as_fn_exit $as_status 19023} # as_fn_error 19024 19025 19026# as_fn_set_status STATUS 19027# ----------------------- 19028# Set $? to STATUS, without forking. 19029as_fn_set_status () 19030{ 19031 return $1 19032} # as_fn_set_status 19033 19034# as_fn_exit STATUS 19035# ----------------- 19036# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19037as_fn_exit () 19038{ 19039 set +e 19040 as_fn_set_status $1 19041 exit $1 19042} # as_fn_exit 19043 19044# as_fn_unset VAR 19045# --------------- 19046# Portably unset VAR. 19047as_fn_unset () 19048{ 19049 { eval $1=; unset $1;} 19050} 19051as_unset=as_fn_unset 19052# as_fn_append VAR VALUE 19053# ---------------------- 19054# Append the text in VALUE to the end of the definition contained in VAR. Take 19055# advantage of any shell optimizations that allow amortized linear growth over 19056# repeated appends, instead of the typical quadratic growth present in naive 19057# implementations. 19058if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19059 eval 'as_fn_append () 19060 { 19061 eval $1+=\$2 19062 }' 19063else 19064 as_fn_append () 19065 { 19066 eval $1=\$$1\$2 19067 } 19068fi # as_fn_append 19069 19070# as_fn_arith ARG... 19071# ------------------ 19072# Perform arithmetic evaluation on the ARGs, and store the result in the 19073# global $as_val. Take advantage of shells that can avoid forks. The arguments 19074# must be portable across $(()) and expr. 19075if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19076 eval 'as_fn_arith () 19077 { 19078 as_val=$(( $* )) 19079 }' 19080else 19081 as_fn_arith () 19082 { 19083 as_val=`expr "$@" || test $? -eq 1` 19084 } 19085fi # as_fn_arith 19086 19087 19088if expr a : '\(a\)' >/dev/null 2>&1 && 19089 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19090 as_expr=expr 19091else 19092 as_expr=false 19093fi 19094 19095if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19096 as_basename=basename 19097else 19098 as_basename=false 19099fi 19100 19101if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19102 as_dirname=dirname 19103else 19104 as_dirname=false 19105fi 19106 19107as_me=`$as_basename -- "$0" || 19108$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19109 X"$0" : 'X\(//\)$' \| \ 19110 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19111$as_echo X/"$0" | 19112 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19113 s//\1/ 19114 q 19115 } 19116 /^X\/\(\/\/\)$/{ 19117 s//\1/ 19118 q 19119 } 19120 /^X\/\(\/\).*/{ 19121 s//\1/ 19122 q 19123 } 19124 s/.*/./; q'` 19125 19126# Avoid depending upon Character Ranges. 19127as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19129as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19130as_cr_digits='0123456789' 19131as_cr_alnum=$as_cr_Letters$as_cr_digits 19132 19133ECHO_C= ECHO_N= ECHO_T= 19134case `echo -n x` in #((((( 19135-n*) 19136 case `echo 'xy\c'` in 19137 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19138 xy) ECHO_C='\c';; 19139 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19140 ECHO_T=' ';; 19141 esac;; 19142*) 19143 ECHO_N='-n';; 19144esac 19145 19146rm -f conf$$ conf$$.exe conf$$.file 19147if test -d conf$$.dir; then 19148 rm -f conf$$.dir/conf$$.file 19149else 19150 rm -f conf$$.dir 19151 mkdir conf$$.dir 2>/dev/null 19152fi 19153if (echo >conf$$.file) 2>/dev/null; then 19154 if ln -s conf$$.file conf$$ 2>/dev/null; then 19155 as_ln_s='ln -s' 19156 # ... but there are two gotchas: 19157 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19158 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19159 # In both cases, we have to default to `cp -pR'. 19160 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19161 as_ln_s='cp -pR' 19162 elif ln conf$$.file conf$$ 2>/dev/null; then 19163 as_ln_s=ln 19164 else 19165 as_ln_s='cp -pR' 19166 fi 19167else 19168 as_ln_s='cp -pR' 19169fi 19170rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19171rmdir conf$$.dir 2>/dev/null 19172 19173 19174# as_fn_mkdir_p 19175# ------------- 19176# Create "$as_dir" as a directory, including parents if necessary. 19177as_fn_mkdir_p () 19178{ 19179 19180 case $as_dir in #( 19181 -*) as_dir=./$as_dir;; 19182 esac 19183 test -d "$as_dir" || eval $as_mkdir_p || { 19184 as_dirs= 19185 while :; do 19186 case $as_dir in #( 19187 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19188 *) as_qdir=$as_dir;; 19189 esac 19190 as_dirs="'$as_qdir' $as_dirs" 19191 as_dir=`$as_dirname -- "$as_dir" || 19192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19193 X"$as_dir" : 'X\(//\)[^/]' \| \ 19194 X"$as_dir" : 'X\(//\)$' \| \ 19195 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19196$as_echo X"$as_dir" | 19197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19198 s//\1/ 19199 q 19200 } 19201 /^X\(\/\/\)[^/].*/{ 19202 s//\1/ 19203 q 19204 } 19205 /^X\(\/\/\)$/{ 19206 s//\1/ 19207 q 19208 } 19209 /^X\(\/\).*/{ 19210 s//\1/ 19211 q 19212 } 19213 s/.*/./; q'` 19214 test -d "$as_dir" && break 19215 done 19216 test -z "$as_dirs" || eval "mkdir $as_dirs" 19217 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19218 19219 19220} # as_fn_mkdir_p 19221if mkdir -p . 2>/dev/null; then 19222 as_mkdir_p='mkdir -p "$as_dir"' 19223else 19224 test -d ./-p && rmdir ./-p 19225 as_mkdir_p=false 19226fi 19227 19228 19229# as_fn_executable_p FILE 19230# ----------------------- 19231# Test if FILE is an executable regular file. 19232as_fn_executable_p () 19233{ 19234 test -f "$1" && test -x "$1" 19235} # as_fn_executable_p 19236as_test_x='test -x' 19237as_executable_p=as_fn_executable_p 19238 19239# Sed expression to map a string onto a valid CPP name. 19240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19241 19242# Sed expression to map a string onto a valid variable name. 19243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19244 19245 19246exec 6>&1 19247## ----------------------------------- ## 19248## Main body of $CONFIG_STATUS script. ## 19249## ----------------------------------- ## 19250_ASEOF 19251test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19252 19253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19254# Save the log message, to keep $0 and so on meaningful, and to 19255# report actual input values of CONFIG_FILES etc. instead of their 19256# values after options handling. 19257ac_log=" 19258This file was extended by xf86-video-savage $as_me 2.3.8, which was 19259generated by GNU Autoconf 2.69. Invocation command line was 19260 19261 CONFIG_FILES = $CONFIG_FILES 19262 CONFIG_HEADERS = $CONFIG_HEADERS 19263 CONFIG_LINKS = $CONFIG_LINKS 19264 CONFIG_COMMANDS = $CONFIG_COMMANDS 19265 $ $0 $@ 19266 19267on `(hostname || uname -n) 2>/dev/null | sed 1q` 19268" 19269 19270_ACEOF 19271 19272case $ac_config_files in *" 19273"*) set x $ac_config_files; shift; ac_config_files=$*;; 19274esac 19275 19276case $ac_config_headers in *" 19277"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19278esac 19279 19280 19281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19282# Files that config.status was made for. 19283config_files="$ac_config_files" 19284config_headers="$ac_config_headers" 19285config_commands="$ac_config_commands" 19286 19287_ACEOF 19288 19289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19290ac_cs_usage="\ 19291\`$as_me' instantiates files and other configuration actions 19292from templates according to the current configuration. Unless the files 19293and actions are specified as TAGs, all are instantiated by default. 19294 19295Usage: $0 [OPTION]... [TAG]... 19296 19297 -h, --help print this help, then exit 19298 -V, --version print version number and configuration settings, then exit 19299 --config print configuration, then exit 19300 -q, --quiet, --silent 19301 do not print progress messages 19302 -d, --debug don't remove temporary files 19303 --recheck update $as_me by reconfiguring in the same conditions 19304 --file=FILE[:TEMPLATE] 19305 instantiate the configuration file FILE 19306 --header=FILE[:TEMPLATE] 19307 instantiate the configuration header FILE 19308 19309Configuration files: 19310$config_files 19311 19312Configuration headers: 19313$config_headers 19314 19315Configuration commands: 19316$config_commands 19317 19318Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19319 19320_ACEOF 19321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19322ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19323ac_cs_version="\\ 19324xf86-video-savage config.status 2.3.8 19325configured by $0, generated by GNU Autoconf 2.69, 19326 with options \\"\$ac_cs_config\\" 19327 19328Copyright (C) 2012 Free Software Foundation, Inc. 19329This config.status script is free software; the Free Software Foundation 19330gives unlimited permission to copy, distribute and modify it." 19331 19332ac_pwd='$ac_pwd' 19333srcdir='$srcdir' 19334INSTALL='$INSTALL' 19335MKDIR_P='$MKDIR_P' 19336AWK='$AWK' 19337test -n "\$AWK" || AWK=awk 19338_ACEOF 19339 19340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19341# The default lists apply if the user does not specify any file. 19342ac_need_defaults=: 19343while test $# != 0 19344do 19345 case $1 in 19346 --*=?*) 19347 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19349 ac_shift=: 19350 ;; 19351 --*=) 19352 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19353 ac_optarg= 19354 ac_shift=: 19355 ;; 19356 *) 19357 ac_option=$1 19358 ac_optarg=$2 19359 ac_shift=shift 19360 ;; 19361 esac 19362 19363 case $ac_option in 19364 # Handling of the options. 19365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19366 ac_cs_recheck=: ;; 19367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19368 $as_echo "$ac_cs_version"; exit ;; 19369 --config | --confi | --conf | --con | --co | --c ) 19370 $as_echo "$ac_cs_config"; exit ;; 19371 --debug | --debu | --deb | --de | --d | -d ) 19372 debug=: ;; 19373 --file | --fil | --fi | --f ) 19374 $ac_shift 19375 case $ac_optarg in 19376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19377 '') as_fn_error $? "missing file argument" ;; 19378 esac 19379 as_fn_append CONFIG_FILES " '$ac_optarg'" 19380 ac_need_defaults=false;; 19381 --header | --heade | --head | --hea ) 19382 $ac_shift 19383 case $ac_optarg in 19384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19385 esac 19386 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19387 ac_need_defaults=false;; 19388 --he | --h) 19389 # Conflict between --help and --header 19390 as_fn_error $? "ambiguous option: \`$1' 19391Try \`$0 --help' for more information.";; 19392 --help | --hel | -h ) 19393 $as_echo "$ac_cs_usage"; exit ;; 19394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19395 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19396 ac_cs_silent=: ;; 19397 19398 # This is an error. 19399 -*) as_fn_error $? "unrecognized option: \`$1' 19400Try \`$0 --help' for more information." ;; 19401 19402 *) as_fn_append ac_config_targets " $1" 19403 ac_need_defaults=false ;; 19404 19405 esac 19406 shift 19407done 19408 19409ac_configure_extra_args= 19410 19411if $ac_cs_silent; then 19412 exec 6>/dev/null 19413 ac_configure_extra_args="$ac_configure_extra_args --silent" 19414fi 19415 19416_ACEOF 19417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19418if \$ac_cs_recheck; then 19419 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19420 shift 19421 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19422 CONFIG_SHELL='$SHELL' 19423 export CONFIG_SHELL 19424 exec "\$@" 19425fi 19426 19427_ACEOF 19428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19429exec 5>>config.log 19430{ 19431 echo 19432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19433## Running $as_me. ## 19434_ASBOX 19435 $as_echo "$ac_log" 19436} >&5 19437 19438_ACEOF 19439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19440# 19441# INIT-COMMANDS 19442# 19443AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19444 19445 19446# The HP-UX ksh and POSIX shell print the target directory to stdout 19447# if CDPATH is set. 19448(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19449 19450sed_quote_subst='$sed_quote_subst' 19451double_quote_subst='$double_quote_subst' 19452delay_variable_subst='$delay_variable_subst' 19453enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19454macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19455macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19456enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19457pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19458enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19459SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19460ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19461PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19462host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19463host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19464host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19465build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19466build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19467build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19468SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19469Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19470GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19471EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19472FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19473LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19474NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19475LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19476max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19477ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19478exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19479lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19480lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19481lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19482lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19483lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19484reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19485reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19486OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19487deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19488file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19489file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19490want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19491DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19492sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19493AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19494AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19495archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19496STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19497RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19498old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19499old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19500old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19501lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19502CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19503CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19504compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19505GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19506lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19507lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19508lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19509lt_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"`' 19510nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19511lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19512objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19513MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19514lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19515lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19516lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19517lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19518lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19519need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19520MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19521DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19522NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19523LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19524OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19525OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19526libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19527shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19528extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19529archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19530enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19531export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19532whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19533compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19534old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19535old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19536archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19537archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19538module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19539module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19540with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19541allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19542no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19543hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19544hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19545hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19546hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19547hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19548hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19549hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19550inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19551link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19552always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19553export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19554exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19555include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19556prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19557postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19558file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19559variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19560need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19561need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19562version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19563runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19564shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19565shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19566libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19567library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19568soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19569install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19570postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19571postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19572finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19573finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19574hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19575sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19576sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19577hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19578enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19579enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19580enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19581old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19582striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19583 19584LTCC='$LTCC' 19585LTCFLAGS='$LTCFLAGS' 19586compiler='$compiler_DEFAULT' 19587 19588# A function that is used when there is no print builtin or printf. 19589func_fallback_echo () 19590{ 19591 eval 'cat <<_LTECHO_EOF 19592\$1 19593_LTECHO_EOF' 19594} 19595 19596# Quote evaled strings. 19597for var in SHELL \ 19598ECHO \ 19599PATH_SEPARATOR \ 19600SED \ 19601GREP \ 19602EGREP \ 19603FGREP \ 19604LD \ 19605NM \ 19606LN_S \ 19607lt_SP2NL \ 19608lt_NL2SP \ 19609reload_flag \ 19610OBJDUMP \ 19611deplibs_check_method \ 19612file_magic_cmd \ 19613file_magic_glob \ 19614want_nocaseglob \ 19615DLLTOOL \ 19616sharedlib_from_linklib_cmd \ 19617AR \ 19618AR_FLAGS \ 19619archiver_list_spec \ 19620STRIP \ 19621RANLIB \ 19622CC \ 19623CFLAGS \ 19624compiler \ 19625lt_cv_sys_global_symbol_pipe \ 19626lt_cv_sys_global_symbol_to_cdecl \ 19627lt_cv_sys_global_symbol_to_c_name_address \ 19628lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19629nm_file_list_spec \ 19630lt_prog_compiler_no_builtin_flag \ 19631lt_prog_compiler_pic \ 19632lt_prog_compiler_wl \ 19633lt_prog_compiler_static \ 19634lt_cv_prog_compiler_c_o \ 19635need_locks \ 19636MANIFEST_TOOL \ 19637DSYMUTIL \ 19638NMEDIT \ 19639LIPO \ 19640OTOOL \ 19641OTOOL64 \ 19642shrext_cmds \ 19643export_dynamic_flag_spec \ 19644whole_archive_flag_spec \ 19645compiler_needs_object \ 19646with_gnu_ld \ 19647allow_undefined_flag \ 19648no_undefined_flag \ 19649hardcode_libdir_flag_spec \ 19650hardcode_libdir_separator \ 19651exclude_expsyms \ 19652include_expsyms \ 19653file_list_spec \ 19654variables_saved_for_relink \ 19655libname_spec \ 19656library_names_spec \ 19657soname_spec \ 19658install_override_mode \ 19659finish_eval \ 19660old_striplib \ 19661striplib; do 19662 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19663 *[\\\\\\\`\\"\\\$]*) 19664 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19665 ;; 19666 *) 19667 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19668 ;; 19669 esac 19670done 19671 19672# Double-quote double-evaled strings. 19673for var in reload_cmds \ 19674old_postinstall_cmds \ 19675old_postuninstall_cmds \ 19676old_archive_cmds \ 19677extract_expsyms_cmds \ 19678old_archive_from_new_cmds \ 19679old_archive_from_expsyms_cmds \ 19680archive_cmds \ 19681archive_expsym_cmds \ 19682module_cmds \ 19683module_expsym_cmds \ 19684export_symbols_cmds \ 19685prelink_cmds \ 19686postlink_cmds \ 19687postinstall_cmds \ 19688postuninstall_cmds \ 19689finish_cmds \ 19690sys_lib_search_path_spec \ 19691sys_lib_dlsearch_path_spec; do 19692 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19693 *[\\\\\\\`\\"\\\$]*) 19694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19695 ;; 19696 *) 19697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19698 ;; 19699 esac 19700done 19701 19702ac_aux_dir='$ac_aux_dir' 19703xsi_shell='$xsi_shell' 19704lt_shell_append='$lt_shell_append' 19705 19706# See if we are running on zsh, and set the options which allow our 19707# commands through without removal of \ escapes INIT. 19708if test -n "\${ZSH_VERSION+set}" ; then 19709 setopt NO_GLOB_SUBST 19710fi 19711 19712 19713 PACKAGE='$PACKAGE' 19714 VERSION='$VERSION' 19715 TIMESTAMP='$TIMESTAMP' 19716 RM='$RM' 19717 ofile='$ofile' 19718 19719 19720 19721 19722_ACEOF 19723 19724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19725 19726# Handling of arguments. 19727for ac_config_target in $ac_config_targets 19728do 19729 case $ac_config_target in 19730 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19731 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19732 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19733 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19734 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19735 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19736 19737 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19738 esac 19739done 19740 19741 19742# If the user did not use the arguments to specify the items to instantiate, 19743# then the envvar interface is used. Set only those that are not. 19744# We use the long form for the default assignment because of an extremely 19745# bizarre bug on SunOS 4.1.3. 19746if $ac_need_defaults; then 19747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19749 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19750fi 19751 19752# Have a temporary directory for convenience. Make it in the build tree 19753# simply because there is no reason against having it here, and in addition, 19754# creating and moving files from /tmp can sometimes cause problems. 19755# Hook for its removal unless debugging. 19756# Note that there is a small window in which the directory will not be cleaned: 19757# after its creation but before its name has been assigned to `$tmp'. 19758$debug || 19759{ 19760 tmp= ac_tmp= 19761 trap 'exit_status=$? 19762 : "${ac_tmp:=$tmp}" 19763 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19764' 0 19765 trap 'as_fn_exit 1' 1 2 13 15 19766} 19767# Create a (secure) tmp directory for tmp files. 19768 19769{ 19770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19771 test -d "$tmp" 19772} || 19773{ 19774 tmp=./conf$$-$RANDOM 19775 (umask 077 && mkdir "$tmp") 19776} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19777ac_tmp=$tmp 19778 19779# Set up the scripts for CONFIG_FILES section. 19780# No need to generate them if there are no CONFIG_FILES. 19781# This happens for instance with `./config.status config.h'. 19782if test -n "$CONFIG_FILES"; then 19783 19784 19785ac_cr=`echo X | tr X '\015'` 19786# On cygwin, bash can eat \r inside `` if the user requested igncr. 19787# But we know of no other shell where ac_cr would be empty at this 19788# point, so we can use a bashism as a fallback. 19789if test "x$ac_cr" = x; then 19790 eval ac_cr=\$\'\\r\' 19791fi 19792ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19793if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19794 ac_cs_awk_cr='\\r' 19795else 19796 ac_cs_awk_cr=$ac_cr 19797fi 19798 19799echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19800_ACEOF 19801 19802 19803{ 19804 echo "cat >conf$$subs.awk <<_ACEOF" && 19805 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19806 echo "_ACEOF" 19807} >conf$$subs.sh || 19808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19809ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19810ac_delim='%!_!# ' 19811for ac_last_try in false false false false false :; do 19812 . ./conf$$subs.sh || 19813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19814 19815 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19816 if test $ac_delim_n = $ac_delim_num; then 19817 break 19818 elif $ac_last_try; then 19819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19820 else 19821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19822 fi 19823done 19824rm -f conf$$subs.sh 19825 19826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19827cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19828_ACEOF 19829sed -n ' 19830h 19831s/^/S["/; s/!.*/"]=/ 19832p 19833g 19834s/^[^!]*!// 19835:repl 19836t repl 19837s/'"$ac_delim"'$// 19838t delim 19839:nl 19840h 19841s/\(.\{148\}\)..*/\1/ 19842t more1 19843s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19844p 19845n 19846b repl 19847:more1 19848s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19849p 19850g 19851s/.\{148\}// 19852t nl 19853:delim 19854h 19855s/\(.\{148\}\)..*/\1/ 19856t more2 19857s/["\\]/\\&/g; s/^/"/; s/$/"/ 19858p 19859b 19860:more2 19861s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19862p 19863g 19864s/.\{148\}// 19865t delim 19866' <conf$$subs.awk | sed ' 19867/^[^""]/{ 19868 N 19869 s/\n// 19870} 19871' >>$CONFIG_STATUS || ac_write_fail=1 19872rm -f conf$$subs.awk 19873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19874_ACAWK 19875cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19876 for (key in S) S_is_set[key] = 1 19877 FS = "" 19878 19879} 19880{ 19881 line = $ 0 19882 nfields = split(line, field, "@") 19883 substed = 0 19884 len = length(field[1]) 19885 for (i = 2; i < nfields; i++) { 19886 key = field[i] 19887 keylen = length(key) 19888 if (S_is_set[key]) { 19889 value = S[key] 19890 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19891 len += length(value) + length(field[++i]) 19892 substed = 1 19893 } else 19894 len += 1 + keylen 19895 } 19896 19897 print line 19898} 19899 19900_ACAWK 19901_ACEOF 19902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19903if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19904 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19905else 19906 cat 19907fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19908 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19909_ACEOF 19910 19911# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19912# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19913# trailing colons and then remove the whole line if VPATH becomes empty 19914# (actually we leave an empty line to preserve line numbers). 19915if test "x$srcdir" = x.; then 19916 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19917h 19918s/// 19919s/^/:/ 19920s/[ ]*$/:/ 19921s/:\$(srcdir):/:/g 19922s/:\${srcdir}:/:/g 19923s/:@srcdir@:/:/g 19924s/^:*// 19925s/:*$// 19926x 19927s/\(=[ ]*\).*/\1/ 19928G 19929s/\n// 19930s/^[^=]*=[ ]*$// 19931}' 19932fi 19933 19934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19935fi # test -n "$CONFIG_FILES" 19936 19937# Set up the scripts for CONFIG_HEADERS section. 19938# No need to generate them if there are no CONFIG_HEADERS. 19939# This happens for instance with `./config.status Makefile'. 19940if test -n "$CONFIG_HEADERS"; then 19941cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19942BEGIN { 19943_ACEOF 19944 19945# Transform confdefs.h into an awk script `defines.awk', embedded as 19946# here-document in config.status, that substitutes the proper values into 19947# config.h.in to produce config.h. 19948 19949# Create a delimiter string that does not exist in confdefs.h, to ease 19950# handling of long lines. 19951ac_delim='%!_!# ' 19952for ac_last_try in false false :; do 19953 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19954 if test -z "$ac_tt"; then 19955 break 19956 elif $ac_last_try; then 19957 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19958 else 19959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19960 fi 19961done 19962 19963# For the awk script, D is an array of macro values keyed by name, 19964# likewise P contains macro parameters if any. Preserve backslash 19965# newline sequences. 19966 19967ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19968sed -n ' 19969s/.\{148\}/&'"$ac_delim"'/g 19970t rset 19971:rset 19972s/^[ ]*#[ ]*define[ ][ ]*/ / 19973t def 19974d 19975:def 19976s/\\$// 19977t bsnl 19978s/["\\]/\\&/g 19979s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19980D["\1"]=" \3"/p 19981s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19982d 19983:bsnl 19984s/["\\]/\\&/g 19985s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19986D["\1"]=" \3\\\\\\n"\\/p 19987t cont 19988s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19989t cont 19990d 19991:cont 19992n 19993s/.\{148\}/&'"$ac_delim"'/g 19994t clear 19995:clear 19996s/\\$// 19997t bsnlc 19998s/["\\]/\\&/g; s/^/"/; s/$/"/p 19999d 20000:bsnlc 20001s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20002b cont 20003' <confdefs.h | sed ' 20004s/'"$ac_delim"'/"\\\ 20005"/g' >>$CONFIG_STATUS || ac_write_fail=1 20006 20007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20008 for (key in D) D_is_set[key] = 1 20009 FS = "" 20010} 20011/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20012 line = \$ 0 20013 split(line, arg, " ") 20014 if (arg[1] == "#") { 20015 defundef = arg[2] 20016 mac1 = arg[3] 20017 } else { 20018 defundef = substr(arg[1], 2) 20019 mac1 = arg[2] 20020 } 20021 split(mac1, mac2, "(") #) 20022 macro = mac2[1] 20023 prefix = substr(line, 1, index(line, defundef) - 1) 20024 if (D_is_set[macro]) { 20025 # Preserve the white space surrounding the "#". 20026 print prefix "define", macro P[macro] D[macro] 20027 next 20028 } else { 20029 # Replace #undef with comments. This is necessary, for example, 20030 # in the case of _POSIX_SOURCE, which is predefined and required 20031 # on some systems where configure will not decide to define it. 20032 if (defundef == "undef") { 20033 print "/*", prefix defundef, macro, "*/" 20034 next 20035 } 20036 } 20037} 20038{ print } 20039_ACAWK 20040_ACEOF 20041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20042 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20043fi # test -n "$CONFIG_HEADERS" 20044 20045 20046eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20047shift 20048for ac_tag 20049do 20050 case $ac_tag in 20051 :[FHLC]) ac_mode=$ac_tag; continue;; 20052 esac 20053 case $ac_mode$ac_tag in 20054 :[FHL]*:*);; 20055 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20056 :[FH]-) ac_tag=-:-;; 20057 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20058 esac 20059 ac_save_IFS=$IFS 20060 IFS=: 20061 set x $ac_tag 20062 IFS=$ac_save_IFS 20063 shift 20064 ac_file=$1 20065 shift 20066 20067 case $ac_mode in 20068 :L) ac_source=$1;; 20069 :[FH]) 20070 ac_file_inputs= 20071 for ac_f 20072 do 20073 case $ac_f in 20074 -) ac_f="$ac_tmp/stdin";; 20075 *) # Look for the file first in the build tree, then in the source tree 20076 # (if the path is not absolute). The absolute path cannot be DOS-style, 20077 # because $ac_f cannot contain `:'. 20078 test -f "$ac_f" || 20079 case $ac_f in 20080 [\\/$]*) false;; 20081 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20082 esac || 20083 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20084 esac 20085 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20086 as_fn_append ac_file_inputs " '$ac_f'" 20087 done 20088 20089 # Let's still pretend it is `configure' which instantiates (i.e., don't 20090 # use $as_me), people would be surprised to read: 20091 # /* config.h. Generated by config.status. */ 20092 configure_input='Generated from '` 20093 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20094 `' by configure.' 20095 if test x"$ac_file" != x-; then 20096 configure_input="$ac_file. $configure_input" 20097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20098$as_echo "$as_me: creating $ac_file" >&6;} 20099 fi 20100 # Neutralize special characters interpreted by sed in replacement strings. 20101 case $configure_input in #( 20102 *\&* | *\|* | *\\* ) 20103 ac_sed_conf_input=`$as_echo "$configure_input" | 20104 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20105 *) ac_sed_conf_input=$configure_input;; 20106 esac 20107 20108 case $ac_tag in 20109 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20111 esac 20112 ;; 20113 esac 20114 20115 ac_dir=`$as_dirname -- "$ac_file" || 20116$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20117 X"$ac_file" : 'X\(//\)[^/]' \| \ 20118 X"$ac_file" : 'X\(//\)$' \| \ 20119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20120$as_echo X"$ac_file" | 20121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20122 s//\1/ 20123 q 20124 } 20125 /^X\(\/\/\)[^/].*/{ 20126 s//\1/ 20127 q 20128 } 20129 /^X\(\/\/\)$/{ 20130 s//\1/ 20131 q 20132 } 20133 /^X\(\/\).*/{ 20134 s//\1/ 20135 q 20136 } 20137 s/.*/./; q'` 20138 as_dir="$ac_dir"; as_fn_mkdir_p 20139 ac_builddir=. 20140 20141case "$ac_dir" in 20142.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20143*) 20144 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20145 # A ".." for each directory in $ac_dir_suffix. 20146 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20147 case $ac_top_builddir_sub in 20148 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20149 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20150 esac ;; 20151esac 20152ac_abs_top_builddir=$ac_pwd 20153ac_abs_builddir=$ac_pwd$ac_dir_suffix 20154# for backward compatibility: 20155ac_top_builddir=$ac_top_build_prefix 20156 20157case $srcdir in 20158 .) # We are building in place. 20159 ac_srcdir=. 20160 ac_top_srcdir=$ac_top_builddir_sub 20161 ac_abs_top_srcdir=$ac_pwd ;; 20162 [\\/]* | ?:[\\/]* ) # Absolute name. 20163 ac_srcdir=$srcdir$ac_dir_suffix; 20164 ac_top_srcdir=$srcdir 20165 ac_abs_top_srcdir=$srcdir ;; 20166 *) # Relative name. 20167 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20168 ac_top_srcdir=$ac_top_build_prefix$srcdir 20169 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20170esac 20171ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20172 20173 20174 case $ac_mode in 20175 :F) 20176 # 20177 # CONFIG_FILE 20178 # 20179 20180 case $INSTALL in 20181 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20182 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20183 esac 20184 ac_MKDIR_P=$MKDIR_P 20185 case $MKDIR_P in 20186 [\\/$]* | ?:[\\/]* ) ;; 20187 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20188 esac 20189_ACEOF 20190 20191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20192# If the template does not know about datarootdir, expand it. 20193# FIXME: This hack should be removed a few years after 2.60. 20194ac_datarootdir_hack=; ac_datarootdir_seen= 20195ac_sed_dataroot=' 20196/datarootdir/ { 20197 p 20198 q 20199} 20200/@datadir@/p 20201/@docdir@/p 20202/@infodir@/p 20203/@localedir@/p 20204/@mandir@/p' 20205case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20206*datarootdir*) ac_datarootdir_seen=yes;; 20207*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20209$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20210_ACEOF 20211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20212 ac_datarootdir_hack=' 20213 s&@datadir@&$datadir&g 20214 s&@docdir@&$docdir&g 20215 s&@infodir@&$infodir&g 20216 s&@localedir@&$localedir&g 20217 s&@mandir@&$mandir&g 20218 s&\\\${datarootdir}&$datarootdir&g' ;; 20219esac 20220_ACEOF 20221 20222# Neutralize VPATH when `$srcdir' = `.'. 20223# Shell code in configure.ac might set extrasub. 20224# FIXME: do we really want to maintain this feature? 20225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20226ac_sed_extra="$ac_vpsub 20227$extrasub 20228_ACEOF 20229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20230:t 20231/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20232s|@configure_input@|$ac_sed_conf_input|;t t 20233s&@top_builddir@&$ac_top_builddir_sub&;t t 20234s&@top_build_prefix@&$ac_top_build_prefix&;t t 20235s&@srcdir@&$ac_srcdir&;t t 20236s&@abs_srcdir@&$ac_abs_srcdir&;t t 20237s&@top_srcdir@&$ac_top_srcdir&;t t 20238s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20239s&@builddir@&$ac_builddir&;t t 20240s&@abs_builddir@&$ac_abs_builddir&;t t 20241s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20242s&@INSTALL@&$ac_INSTALL&;t t 20243s&@MKDIR_P@&$ac_MKDIR_P&;t t 20244$ac_datarootdir_hack 20245" 20246eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20247 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20248 20249test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20250 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20251 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20252 "$ac_tmp/out"`; test -z "$ac_out"; } && 20253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20254which seems to be undefined. Please make sure it is defined" >&5 20255$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20256which seems to be undefined. Please make sure it is defined" >&2;} 20257 20258 rm -f "$ac_tmp/stdin" 20259 case $ac_file in 20260 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20261 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20262 esac \ 20263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20264 ;; 20265 :H) 20266 # 20267 # CONFIG_HEADER 20268 # 20269 if test x"$ac_file" != x-; then 20270 { 20271 $as_echo "/* $configure_input */" \ 20272 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20273 } >"$ac_tmp/config.h" \ 20274 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20275 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20276 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20277$as_echo "$as_me: $ac_file is unchanged" >&6;} 20278 else 20279 rm -f "$ac_file" 20280 mv "$ac_tmp/config.h" "$ac_file" \ 20281 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20282 fi 20283 else 20284 $as_echo "/* $configure_input */" \ 20285 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20286 || as_fn_error $? "could not create -" "$LINENO" 5 20287 fi 20288# Compute "$ac_file"'s index in $config_headers. 20289_am_arg="$ac_file" 20290_am_stamp_count=1 20291for _am_header in $config_headers :; do 20292 case $_am_header in 20293 $_am_arg | $_am_arg:* ) 20294 break ;; 20295 * ) 20296 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20297 esac 20298done 20299echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20300$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20301 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20302 X"$_am_arg" : 'X\(//\)$' \| \ 20303 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20304$as_echo X"$_am_arg" | 20305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20306 s//\1/ 20307 q 20308 } 20309 /^X\(\/\/\)[^/].*/{ 20310 s//\1/ 20311 q 20312 } 20313 /^X\(\/\/\)$/{ 20314 s//\1/ 20315 q 20316 } 20317 /^X\(\/\).*/{ 20318 s//\1/ 20319 q 20320 } 20321 s/.*/./; q'`/stamp-h$_am_stamp_count 20322 ;; 20323 20324 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20325$as_echo "$as_me: executing $ac_file commands" >&6;} 20326 ;; 20327 esac 20328 20329 20330 case $ac_file$ac_mode in 20331 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20332 # Older Autoconf quotes --file arguments for eval, but not when files 20333 # are listed without --file. Let's play safe and only enable the eval 20334 # if we detect the quoting. 20335 case $CONFIG_FILES in 20336 *\'*) eval set x "$CONFIG_FILES" ;; 20337 *) set x $CONFIG_FILES ;; 20338 esac 20339 shift 20340 for mf 20341 do 20342 # Strip MF so we end up with the name of the file. 20343 mf=`echo "$mf" | sed -e 's/:.*$//'` 20344 # Check whether this is an Automake generated Makefile or not. 20345 # We used to match only the files named 'Makefile.in', but 20346 # some people rename them; so instead we look at the file content. 20347 # Grep'ing the first line is not enough: some people post-process 20348 # each Makefile.in and add a new line on top of each file to say so. 20349 # Grep'ing the whole file is not good either: AIX grep has a line 20350 # limit of 2048, but all sed's we know have understand at least 4000. 20351 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20352 dirpart=`$as_dirname -- "$mf" || 20353$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20354 X"$mf" : 'X\(//\)[^/]' \| \ 20355 X"$mf" : 'X\(//\)$' \| \ 20356 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20357$as_echo X"$mf" | 20358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20359 s//\1/ 20360 q 20361 } 20362 /^X\(\/\/\)[^/].*/{ 20363 s//\1/ 20364 q 20365 } 20366 /^X\(\/\/\)$/{ 20367 s//\1/ 20368 q 20369 } 20370 /^X\(\/\).*/{ 20371 s//\1/ 20372 q 20373 } 20374 s/.*/./; q'` 20375 else 20376 continue 20377 fi 20378 # Extract the definition of DEPDIR, am__include, and am__quote 20379 # from the Makefile without running 'make'. 20380 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20381 test -z "$DEPDIR" && continue 20382 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20383 test -z "$am__include" && continue 20384 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20385 # Find all dependency output files, they are included files with 20386 # $(DEPDIR) in their names. We invoke sed twice because it is the 20387 # simplest approach to changing $(DEPDIR) to its actual value in the 20388 # expansion. 20389 for file in `sed -n " 20390 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20391 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20392 # Make sure the directory exists. 20393 test -f "$dirpart/$file" && continue 20394 fdir=`$as_dirname -- "$file" || 20395$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20396 X"$file" : 'X\(//\)[^/]' \| \ 20397 X"$file" : 'X\(//\)$' \| \ 20398 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20399$as_echo X"$file" | 20400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20401 s//\1/ 20402 q 20403 } 20404 /^X\(\/\/\)[^/].*/{ 20405 s//\1/ 20406 q 20407 } 20408 /^X\(\/\/\)$/{ 20409 s//\1/ 20410 q 20411 } 20412 /^X\(\/\).*/{ 20413 s//\1/ 20414 q 20415 } 20416 s/.*/./; q'` 20417 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20418 # echo "creating $dirpart/$file" 20419 echo '# dummy' > "$dirpart/$file" 20420 done 20421 done 20422} 20423 ;; 20424 "libtool":C) 20425 20426 # See if we are running on zsh, and set the options which allow our 20427 # commands through without removal of \ escapes. 20428 if test -n "${ZSH_VERSION+set}" ; then 20429 setopt NO_GLOB_SUBST 20430 fi 20431 20432 cfgfile="${ofile}T" 20433 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20434 $RM "$cfgfile" 20435 20436 cat <<_LT_EOF >> "$cfgfile" 20437#! $SHELL 20438 20439# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20440# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20441# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20442# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20443# 20444# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20445# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20446# Foundation, Inc. 20447# Written by Gordon Matzigkeit, 1996 20448# 20449# This file is part of GNU Libtool. 20450# 20451# GNU Libtool is free software; you can redistribute it and/or 20452# modify it under the terms of the GNU General Public License as 20453# published by the Free Software Foundation; either version 2 of 20454# the License, or (at your option) any later version. 20455# 20456# As a special exception to the GNU General Public License, 20457# if you distribute this file as part of a program or library that 20458# is built using GNU Libtool, you may include this file under the 20459# same distribution terms that you use for the rest of that program. 20460# 20461# GNU Libtool is distributed in the hope that it will be useful, 20462# but WITHOUT ANY WARRANTY; without even the implied warranty of 20463# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20464# GNU General Public License for more details. 20465# 20466# You should have received a copy of the GNU General Public License 20467# along with GNU Libtool; see the file COPYING. If not, a copy 20468# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20469# obtained by writing to the Free Software Foundation, Inc., 20470# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20471 20472 20473# The names of the tagged configurations supported by this script. 20474available_tags="" 20475 20476# ### BEGIN LIBTOOL CONFIG 20477 20478# Whether or not to build static libraries. 20479build_old_libs=$enable_static 20480 20481# Which release of libtool.m4 was used? 20482macro_version=$macro_version 20483macro_revision=$macro_revision 20484 20485# Whether or not to build shared libraries. 20486build_libtool_libs=$enable_shared 20487 20488# What type of objects to build. 20489pic_mode=$pic_mode 20490 20491# Whether or not to optimize for fast installation. 20492fast_install=$enable_fast_install 20493 20494# Shell to use when invoking shell scripts. 20495SHELL=$lt_SHELL 20496 20497# An echo program that protects backslashes. 20498ECHO=$lt_ECHO 20499 20500# The PATH separator for the build system. 20501PATH_SEPARATOR=$lt_PATH_SEPARATOR 20502 20503# The host system. 20504host_alias=$host_alias 20505host=$host 20506host_os=$host_os 20507 20508# The build system. 20509build_alias=$build_alias 20510build=$build 20511build_os=$build_os 20512 20513# A sed program that does not truncate output. 20514SED=$lt_SED 20515 20516# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20517Xsed="\$SED -e 1s/^X//" 20518 20519# A grep program that handles long lines. 20520GREP=$lt_GREP 20521 20522# An ERE matcher. 20523EGREP=$lt_EGREP 20524 20525# A literal string matcher. 20526FGREP=$lt_FGREP 20527 20528# A BSD- or MS-compatible name lister. 20529NM=$lt_NM 20530 20531# Whether we need soft or hard links. 20532LN_S=$lt_LN_S 20533 20534# What is the maximum length of a command? 20535max_cmd_len=$max_cmd_len 20536 20537# Object file suffix (normally "o"). 20538objext=$ac_objext 20539 20540# Executable file suffix (normally ""). 20541exeext=$exeext 20542 20543# whether the shell understands "unset". 20544lt_unset=$lt_unset 20545 20546# turn spaces into newlines. 20547SP2NL=$lt_lt_SP2NL 20548 20549# turn newlines into spaces. 20550NL2SP=$lt_lt_NL2SP 20551 20552# convert \$build file names to \$host format. 20553to_host_file_cmd=$lt_cv_to_host_file_cmd 20554 20555# convert \$build files to toolchain format. 20556to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20557 20558# An object symbol dumper. 20559OBJDUMP=$lt_OBJDUMP 20560 20561# Method to check whether dependent libraries are shared objects. 20562deplibs_check_method=$lt_deplibs_check_method 20563 20564# Command to use when deplibs_check_method = "file_magic". 20565file_magic_cmd=$lt_file_magic_cmd 20566 20567# How to find potential files when deplibs_check_method = "file_magic". 20568file_magic_glob=$lt_file_magic_glob 20569 20570# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20571want_nocaseglob=$lt_want_nocaseglob 20572 20573# DLL creation program. 20574DLLTOOL=$lt_DLLTOOL 20575 20576# Command to associate shared and link libraries. 20577sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20578 20579# The archiver. 20580AR=$lt_AR 20581 20582# Flags to create an archive. 20583AR_FLAGS=$lt_AR_FLAGS 20584 20585# How to feed a file listing to the archiver. 20586archiver_list_spec=$lt_archiver_list_spec 20587 20588# A symbol stripping program. 20589STRIP=$lt_STRIP 20590 20591# Commands used to install an old-style archive. 20592RANLIB=$lt_RANLIB 20593old_postinstall_cmds=$lt_old_postinstall_cmds 20594old_postuninstall_cmds=$lt_old_postuninstall_cmds 20595 20596# Whether to use a lock for old archive extraction. 20597lock_old_archive_extraction=$lock_old_archive_extraction 20598 20599# A C compiler. 20600LTCC=$lt_CC 20601 20602# LTCC compiler flags. 20603LTCFLAGS=$lt_CFLAGS 20604 20605# Take the output of nm and produce a listing of raw symbols and C names. 20606global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20607 20608# Transform the output of nm in a proper C declaration. 20609global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20610 20611# Transform the output of nm in a C name address pair. 20612global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20613 20614# Transform the output of nm in a C name address pair when lib prefix is needed. 20615global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20616 20617# Specify filename containing input files for \$NM. 20618nm_file_list_spec=$lt_nm_file_list_spec 20619 20620# The root where to search for dependent libraries,and in which our libraries should be installed. 20621lt_sysroot=$lt_sysroot 20622 20623# The name of the directory that contains temporary libtool files. 20624objdir=$objdir 20625 20626# Used to examine libraries when file_magic_cmd begins with "file". 20627MAGIC_CMD=$MAGIC_CMD 20628 20629# Must we lock files when doing compilation? 20630need_locks=$lt_need_locks 20631 20632# Manifest tool. 20633MANIFEST_TOOL=$lt_MANIFEST_TOOL 20634 20635# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20636DSYMUTIL=$lt_DSYMUTIL 20637 20638# Tool to change global to local symbols on Mac OS X. 20639NMEDIT=$lt_NMEDIT 20640 20641# Tool to manipulate fat objects and archives on Mac OS X. 20642LIPO=$lt_LIPO 20643 20644# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20645OTOOL=$lt_OTOOL 20646 20647# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20648OTOOL64=$lt_OTOOL64 20649 20650# Old archive suffix (normally "a"). 20651libext=$libext 20652 20653# Shared library suffix (normally ".so"). 20654shrext_cmds=$lt_shrext_cmds 20655 20656# The commands to extract the exported symbol list from a shared archive. 20657extract_expsyms_cmds=$lt_extract_expsyms_cmds 20658 20659# Variables whose values should be saved in libtool wrapper scripts and 20660# restored at link time. 20661variables_saved_for_relink=$lt_variables_saved_for_relink 20662 20663# Do we need the "lib" prefix for modules? 20664need_lib_prefix=$need_lib_prefix 20665 20666# Do we need a version for libraries? 20667need_version=$need_version 20668 20669# Library versioning type. 20670version_type=$version_type 20671 20672# Shared library runtime path variable. 20673runpath_var=$runpath_var 20674 20675# Shared library path variable. 20676shlibpath_var=$shlibpath_var 20677 20678# Is shlibpath searched before the hard-coded library search path? 20679shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20680 20681# Format of library name prefix. 20682libname_spec=$lt_libname_spec 20683 20684# List of archive names. First name is the real one, the rest are links. 20685# The last name is the one that the linker finds with -lNAME 20686library_names_spec=$lt_library_names_spec 20687 20688# The coded name of the library, if different from the real name. 20689soname_spec=$lt_soname_spec 20690 20691# Permission mode override for installation of shared libraries. 20692install_override_mode=$lt_install_override_mode 20693 20694# Command to use after installation of a shared archive. 20695postinstall_cmds=$lt_postinstall_cmds 20696 20697# Command to use after uninstallation of a shared archive. 20698postuninstall_cmds=$lt_postuninstall_cmds 20699 20700# Commands used to finish a libtool library installation in a directory. 20701finish_cmds=$lt_finish_cmds 20702 20703# As "finish_cmds", except a single script fragment to be evaled but 20704# not shown. 20705finish_eval=$lt_finish_eval 20706 20707# Whether we should hardcode library paths into libraries. 20708hardcode_into_libs=$hardcode_into_libs 20709 20710# Compile-time system search path for libraries. 20711sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20712 20713# Run-time system search path for libraries. 20714sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20715 20716# Whether dlopen is supported. 20717dlopen_support=$enable_dlopen 20718 20719# Whether dlopen of programs is supported. 20720dlopen_self=$enable_dlopen_self 20721 20722# Whether dlopen of statically linked programs is supported. 20723dlopen_self_static=$enable_dlopen_self_static 20724 20725# Commands to strip libraries. 20726old_striplib=$lt_old_striplib 20727striplib=$lt_striplib 20728 20729 20730# The linker used to build libraries. 20731LD=$lt_LD 20732 20733# How to create reloadable object files. 20734reload_flag=$lt_reload_flag 20735reload_cmds=$lt_reload_cmds 20736 20737# Commands used to build an old-style archive. 20738old_archive_cmds=$lt_old_archive_cmds 20739 20740# A language specific compiler. 20741CC=$lt_compiler 20742 20743# Is the compiler the GNU compiler? 20744with_gcc=$GCC 20745 20746# Compiler flag to turn off builtin functions. 20747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20748 20749# Additional compiler flags for building library objects. 20750pic_flag=$lt_lt_prog_compiler_pic 20751 20752# How to pass a linker flag through the compiler. 20753wl=$lt_lt_prog_compiler_wl 20754 20755# Compiler flag to prevent dynamic linking. 20756link_static_flag=$lt_lt_prog_compiler_static 20757 20758# Does compiler simultaneously support -c and -o options? 20759compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20760 20761# Whether or not to add -lc for building shared libraries. 20762build_libtool_need_lc=$archive_cmds_need_lc 20763 20764# Whether or not to disallow shared libs when runtime libs are static. 20765allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20766 20767# Compiler flag to allow reflexive dlopens. 20768export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20769 20770# Compiler flag to generate shared objects directly from archives. 20771whole_archive_flag_spec=$lt_whole_archive_flag_spec 20772 20773# Whether the compiler copes with passing no objects directly. 20774compiler_needs_object=$lt_compiler_needs_object 20775 20776# Create an old-style archive from a shared archive. 20777old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20778 20779# Create a temporary old-style archive to link instead of a shared archive. 20780old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20781 20782# Commands used to build a shared archive. 20783archive_cmds=$lt_archive_cmds 20784archive_expsym_cmds=$lt_archive_expsym_cmds 20785 20786# Commands used to build a loadable module if different from building 20787# a shared archive. 20788module_cmds=$lt_module_cmds 20789module_expsym_cmds=$lt_module_expsym_cmds 20790 20791# Whether we are building with GNU ld or not. 20792with_gnu_ld=$lt_with_gnu_ld 20793 20794# Flag that allows shared libraries with undefined symbols to be built. 20795allow_undefined_flag=$lt_allow_undefined_flag 20796 20797# Flag that enforces no undefined symbols. 20798no_undefined_flag=$lt_no_undefined_flag 20799 20800# Flag to hardcode \$libdir into a binary during linking. 20801# This must work even if \$libdir does not exist 20802hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20803 20804# Whether we need a single "-rpath" flag with a separated argument. 20805hardcode_libdir_separator=$lt_hardcode_libdir_separator 20806 20807# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20808# DIR into the resulting binary. 20809hardcode_direct=$hardcode_direct 20810 20811# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20812# DIR into the resulting binary and the resulting library dependency is 20813# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20814# library is relocated. 20815hardcode_direct_absolute=$hardcode_direct_absolute 20816 20817# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20818# into the resulting binary. 20819hardcode_minus_L=$hardcode_minus_L 20820 20821# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20822# into the resulting binary. 20823hardcode_shlibpath_var=$hardcode_shlibpath_var 20824 20825# Set to "yes" if building a shared library automatically hardcodes DIR 20826# into the library and all subsequent libraries and executables linked 20827# against it. 20828hardcode_automatic=$hardcode_automatic 20829 20830# Set to yes if linker adds runtime paths of dependent libraries 20831# to runtime path list. 20832inherit_rpath=$inherit_rpath 20833 20834# Whether libtool must link a program against all its dependency libraries. 20835link_all_deplibs=$link_all_deplibs 20836 20837# Set to "yes" if exported symbols are required. 20838always_export_symbols=$always_export_symbols 20839 20840# The commands to list exported symbols. 20841export_symbols_cmds=$lt_export_symbols_cmds 20842 20843# Symbols that should not be listed in the preloaded symbols. 20844exclude_expsyms=$lt_exclude_expsyms 20845 20846# Symbols that must always be exported. 20847include_expsyms=$lt_include_expsyms 20848 20849# Commands necessary for linking programs (against libraries) with templates. 20850prelink_cmds=$lt_prelink_cmds 20851 20852# Commands necessary for finishing linking programs. 20853postlink_cmds=$lt_postlink_cmds 20854 20855# Specify filename containing input files. 20856file_list_spec=$lt_file_list_spec 20857 20858# How to hardcode a shared library path into an executable. 20859hardcode_action=$hardcode_action 20860 20861# ### END LIBTOOL CONFIG 20862 20863_LT_EOF 20864 20865 case $host_os in 20866 aix3*) 20867 cat <<\_LT_EOF >> "$cfgfile" 20868# AIX sometimes has problems with the GCC collect2 program. For some 20869# reason, if we set the COLLECT_NAMES environment variable, the problems 20870# vanish in a puff of smoke. 20871if test "X${COLLECT_NAMES+set}" != Xset; then 20872 COLLECT_NAMES= 20873 export COLLECT_NAMES 20874fi 20875_LT_EOF 20876 ;; 20877 esac 20878 20879 20880ltmain="$ac_aux_dir/ltmain.sh" 20881 20882 20883 # We use sed instead of cat because bash on DJGPP gets confused if 20884 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20885 # text mode, it properly converts lines to CR/LF. This bash problem 20886 # is reportedly fixed, but why not run on old versions too? 20887 sed '$q' "$ltmain" >> "$cfgfile" \ 20888 || (rm -f "$cfgfile"; exit 1) 20889 20890 if test x"$xsi_shell" = xyes; then 20891 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20892func_dirname ()\ 20893{\ 20894\ case ${1} in\ 20895\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20896\ * ) func_dirname_result="${3}" ;;\ 20897\ esac\ 20898} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20899 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20901test 0 -eq $? || _lt_function_replace_fail=: 20902 20903 20904 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20905func_basename ()\ 20906{\ 20907\ func_basename_result="${1##*/}"\ 20908} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20909 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20911test 0 -eq $? || _lt_function_replace_fail=: 20912 20913 20914 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20915func_dirname_and_basename ()\ 20916{\ 20917\ case ${1} in\ 20918\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20919\ * ) func_dirname_result="${3}" ;;\ 20920\ esac\ 20921\ func_basename_result="${1##*/}"\ 20922} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20923 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20925test 0 -eq $? || _lt_function_replace_fail=: 20926 20927 20928 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20929func_stripname ()\ 20930{\ 20931\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20932\ # positional parameters, so assign one to ordinary parameter first.\ 20933\ func_stripname_result=${3}\ 20934\ func_stripname_result=${func_stripname_result#"${1}"}\ 20935\ func_stripname_result=${func_stripname_result%"${2}"}\ 20936} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20937 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20939test 0 -eq $? || _lt_function_replace_fail=: 20940 20941 20942 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20943func_split_long_opt ()\ 20944{\ 20945\ func_split_long_opt_name=${1%%=*}\ 20946\ func_split_long_opt_arg=${1#*=}\ 20947} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20948 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20950test 0 -eq $? || _lt_function_replace_fail=: 20951 20952 20953 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20954func_split_short_opt ()\ 20955{\ 20956\ func_split_short_opt_arg=${1#??}\ 20957\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20958} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20959 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20961test 0 -eq $? || _lt_function_replace_fail=: 20962 20963 20964 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20965func_lo2o ()\ 20966{\ 20967\ case ${1} in\ 20968\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20969\ *) func_lo2o_result=${1} ;;\ 20970\ esac\ 20971} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20972 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20974test 0 -eq $? || _lt_function_replace_fail=: 20975 20976 20977 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20978func_xform ()\ 20979{\ 20980 func_xform_result=${1%.*}.lo\ 20981} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20982 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20984test 0 -eq $? || _lt_function_replace_fail=: 20985 20986 20987 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20988func_arith ()\ 20989{\ 20990 func_arith_result=$(( $* ))\ 20991} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20992 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20994test 0 -eq $? || _lt_function_replace_fail=: 20995 20996 20997 sed -e '/^func_len ()$/,/^} # func_len /c\ 20998func_len ()\ 20999{\ 21000 func_len_result=${#1}\ 21001} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21002 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21004test 0 -eq $? || _lt_function_replace_fail=: 21005 21006fi 21007 21008if test x"$lt_shell_append" = xyes; then 21009 sed -e '/^func_append ()$/,/^} # func_append /c\ 21010func_append ()\ 21011{\ 21012 eval "${1}+=\\${2}"\ 21013} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21014 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21016test 0 -eq $? || _lt_function_replace_fail=: 21017 21018 21019 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21020func_append_quoted ()\ 21021{\ 21022\ func_quote_for_eval "${2}"\ 21023\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21024} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21025 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21027test 0 -eq $? || _lt_function_replace_fail=: 21028 21029 21030 # Save a `func_append' function call where possible by direct use of '+=' 21031 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21032 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21034 test 0 -eq $? || _lt_function_replace_fail=: 21035else 21036 # Save a `func_append' function call even when '+=' is not available 21037 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21038 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21039 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21040 test 0 -eq $? || _lt_function_replace_fail=: 21041fi 21042 21043if test x"$_lt_function_replace_fail" = x":"; then 21044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21045$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21046fi 21047 21048 21049 mv -f "$cfgfile" "$ofile" || 21050 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21051 chmod +x "$ofile" 21052 21053 ;; 21054 21055 esac 21056done # for ac_tag 21057 21058 21059as_fn_exit 0 21060_ACEOF 21061ac_clean_files=$ac_clean_files_save 21062 21063test $ac_write_fail = 0 || 21064 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21065 21066 21067# configure is writing to config.log, and then calls config.status. 21068# config.status does its own redirection, appending to config.log. 21069# Unfortunately, on DOS this fails, as config.log is still kept open 21070# by configure, so config.status won't be able to write to it; its 21071# output is simply discarded. So we exec the FD to /dev/null, 21072# effectively closing config.log, so it can be properly (re)opened and 21073# appended to by config.status. When coming back to configure, we 21074# need to make the FD available again. 21075if test "$no_create" != yes; then 21076 ac_cs_success=: 21077 ac_config_status_args= 21078 test "$silent" = yes && 21079 ac_config_status_args="$ac_config_status_args --quiet" 21080 exec 5>/dev/null 21081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21082 exec 5>>config.log 21083 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21084 # would make configure fail if this is the last instruction. 21085 $ac_cs_success || as_fn_exit 1 21086fi 21087if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21089$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21090fi 21091 21092