configure revision 34a0776d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-vmware 13.2.1. 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-vmware' 593PACKAGE_TARNAME='xf86-video-vmware' 594PACKAGE_VERSION='13.2.1' 595PACKAGE_STRING='xf86-video-vmware 13.2.1' 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 640BUILD_VMWGFX_FALSE 641BUILD_VMWGFX_TRUE 642LIBUDEV_LIBS 643LIBUDEV_CFLAGS 644DRIVER_NAME 645XATRACKER_LIBS 646XATRACKER_CFLAGS 647LIBDRM_LIBS 648LIBDRM_CFLAGS 649moduledir 650XSERVER_LIBPCIACCESS_FALSE 651XSERVER_LIBPCIACCESS_TRUE 652PCIACCESS_LIBS 653PCIACCESS_CFLAGS 654X11_LIBS 655X11_CFLAGS 656XORG_LIBS 657XORG_CFLAGS 658BUILD_VMWARECTRL_FALSE 659BUILD_VMWARECTRL_TRUE 660OTOOL64 661OTOOL 662LIPO 663NMEDIT 664DSYMUTIL 665MANIFEST_TOOL 666RANLIB 667ac_ct_AR 668AR 669DLLTOOL 670OBJDUMP 671LN_S 672NM 673ac_ct_DUMPBIN 674DUMPBIN 675LD 676FGREP 677LIBTOOL 678MAN_SUBSTS 679XORG_MAN_PAGE 680ADMIN_MAN_DIR 681DRIVER_MAN_DIR 682MISC_MAN_DIR 683FILE_MAN_DIR 684LIB_MAN_DIR 685APP_MAN_DIR 686ADMIN_MAN_SUFFIX 687DRIVER_MAN_SUFFIX 688MISC_MAN_SUFFIX 689FILE_MAN_SUFFIX 690LIB_MAN_SUFFIX 691APP_MAN_SUFFIX 692SED 693host_os 694host_vendor 695host_cpu 696host 697build_os 698build_vendor 699build_cpu 700build 701INSTALL_CMD 702PKG_CONFIG_LIBDIR 703PKG_CONFIG_PATH 704PKG_CONFIG 705CHANGELOG_CMD 706STRICT_CFLAGS 707CWARNFLAGS 708BASE_CFLAGS 709EGREP 710GREP 711CPP 712MAINT 713MAINTAINER_MODE_FALSE 714MAINTAINER_MODE_TRUE 715AM_BACKSLASH 716AM_DEFAULT_VERBOSITY 717AM_DEFAULT_V 718AM_V 719am__fastdepCC_FALSE 720am__fastdepCC_TRUE 721CCDEPMODE 722am__nodep 723AMDEPBACKSLASH 724AMDEP_FALSE 725AMDEP_TRUE 726am__quote 727am__include 728DEPDIR 729am__untar 730am__tar 731AMTAR 732am__leading_dot 733SET_MAKE 734AWK 735mkdir_p 736MKDIR_P 737INSTALL_STRIP_PROGRAM 738STRIP 739install_sh 740MAKEINFO 741AUTOHEADER 742AUTOMAKE 743AUTOCONF 744ACLOCAL 745VERSION 746PACKAGE 747CYGPATH_W 748am__isrc 749INSTALL_DATA 750INSTALL_SCRIPT 751INSTALL_PROGRAM 752OBJEXT 753EXEEXT 754ac_ct_CC 755CPPFLAGS 756LDFLAGS 757CFLAGS 758CC 759target_alias 760host_alias 761build_alias 762LIBS 763ECHO_T 764ECHO_N 765ECHO_C 766DEFS 767mandir 768localedir 769libdir 770psdir 771pdfdir 772dvidir 773htmldir 774infodir 775docdir 776oldincludedir 777includedir 778localstatedir 779sharedstatedir 780sysconfdir 781datadir 782datarootdir 783libexecdir 784sbindir 785bindir 786program_transform_name 787prefix 788exec_prefix 789PACKAGE_URL 790PACKAGE_BUGREPORT 791PACKAGE_STRING 792PACKAGE_VERSION 793PACKAGE_TARNAME 794PACKAGE_NAME 795PATH_SEPARATOR 796SHELL' 797ac_subst_files='' 798ac_user_opts=' 799enable_option_checking 800enable_largefile 801enable_dependency_tracking 802enable_silent_rules 803enable_maintainer_mode 804enable_selective_werror 805enable_strict_compilation 806enable_static 807enable_shared 808with_pic 809enable_fast_install 810with_gnu_ld 811with_sysroot 812enable_libtool_lock 813with_xorg_module_dir 814enable_vmwarectrl_client 815with_libudev 816' 817 ac_precious_vars='build_alias 818host_alias 819target_alias 820CC 821CFLAGS 822LDFLAGS 823LIBS 824CPPFLAGS 825CPP 826PKG_CONFIG 827PKG_CONFIG_PATH 828PKG_CONFIG_LIBDIR 829XORG_CFLAGS 830XORG_LIBS 831X11_CFLAGS 832X11_LIBS 833PCIACCESS_CFLAGS 834PCIACCESS_LIBS 835LIBDRM_CFLAGS 836LIBDRM_LIBS 837XATRACKER_CFLAGS 838XATRACKER_LIBS 839LIBUDEV_CFLAGS 840LIBUDEV_LIBS' 841 842 843# Initialize some variables set by options. 844ac_init_help= 845ac_init_version=false 846ac_unrecognized_opts= 847ac_unrecognized_sep= 848# The variables have the same names as the options, with 849# dashes changed to underlines. 850cache_file=/dev/null 851exec_prefix=NONE 852no_create= 853no_recursion= 854prefix=NONE 855program_prefix=NONE 856program_suffix=NONE 857program_transform_name=s,x,x, 858silent= 859site= 860srcdir= 861verbose= 862x_includes=NONE 863x_libraries=NONE 864 865# Installation directory options. 866# These are left unexpanded so users can "make install exec_prefix=/foo" 867# and all the variables that are supposed to be based on exec_prefix 868# by default will actually change. 869# Use braces instead of parens because sh, perl, etc. also accept them. 870# (The list follows the same order as the GNU Coding Standards.) 871bindir='${exec_prefix}/bin' 872sbindir='${exec_prefix}/sbin' 873libexecdir='${exec_prefix}/libexec' 874datarootdir='${prefix}/share' 875datadir='${datarootdir}' 876sysconfdir='${prefix}/etc' 877sharedstatedir='${prefix}/com' 878localstatedir='${prefix}/var' 879includedir='${prefix}/include' 880oldincludedir='/usr/include' 881docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 882infodir='${datarootdir}/info' 883htmldir='${docdir}' 884dvidir='${docdir}' 885pdfdir='${docdir}' 886psdir='${docdir}' 887libdir='${exec_prefix}/lib' 888localedir='${datarootdir}/locale' 889mandir='${datarootdir}/man' 890 891ac_prev= 892ac_dashdash= 893for ac_option 894do 895 # If the previous option needs an argument, assign it. 896 if test -n "$ac_prev"; then 897 eval $ac_prev=\$ac_option 898 ac_prev= 899 continue 900 fi 901 902 case $ac_option in 903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 904 *=) ac_optarg= ;; 905 *) ac_optarg=yes ;; 906 esac 907 908 # Accept the important Cygnus configure options, so we can diagnose typos. 909 910 case $ac_dashdash$ac_option in 911 --) 912 ac_dashdash=yes ;; 913 914 -bindir | --bindir | --bindi | --bind | --bin | --bi) 915 ac_prev=bindir ;; 916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 917 bindir=$ac_optarg ;; 918 919 -build | --build | --buil | --bui | --bu) 920 ac_prev=build_alias ;; 921 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 922 build_alias=$ac_optarg ;; 923 924 -cache-file | --cache-file | --cache-fil | --cache-fi \ 925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 926 ac_prev=cache_file ;; 927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 929 cache_file=$ac_optarg ;; 930 931 --config-cache | -C) 932 cache_file=config.cache ;; 933 934 -datadir | --datadir | --datadi | --datad) 935 ac_prev=datadir ;; 936 -datadir=* | --datadir=* | --datadi=* | --datad=*) 937 datadir=$ac_optarg ;; 938 939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 940 | --dataroo | --dataro | --datar) 941 ac_prev=datarootdir ;; 942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 944 datarootdir=$ac_optarg ;; 945 946 -disable-* | --disable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955"enable_$ac_useropt" 956"*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=no ;; 961 962 -docdir | --docdir | --docdi | --doc | --do) 963 ac_prev=docdir ;; 964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 965 docdir=$ac_optarg ;; 966 967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 968 ac_prev=dvidir ;; 969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 970 dvidir=$ac_optarg ;; 971 972 -enable-* | --enable-*) 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 976 as_fn_error $? "invalid feature name: $ac_useropt" 977 ac_useropt_orig=$ac_useropt 978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 979 case $ac_user_opts in 980 *" 981"enable_$ac_useropt" 982"*) ;; 983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 984 ac_unrecognized_sep=', ';; 985 esac 986 eval enable_$ac_useropt=\$ac_optarg ;; 987 988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 990 | --exec | --exe | --ex) 991 ac_prev=exec_prefix ;; 992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 994 | --exec=* | --exe=* | --ex=*) 995 exec_prefix=$ac_optarg ;; 996 997 -gas | --gas | --ga | --g) 998 # Obsolete; use --with-gas. 999 with_gas=yes ;; 1000 1001 -help | --help | --hel | --he | -h) 1002 ac_init_help=long ;; 1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1004 ac_init_help=recursive ;; 1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1006 ac_init_help=short ;; 1007 1008 -host | --host | --hos | --ho) 1009 ac_prev=host_alias ;; 1010 -host=* | --host=* | --hos=* | --ho=*) 1011 host_alias=$ac_optarg ;; 1012 1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1014 ac_prev=htmldir ;; 1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1016 | --ht=*) 1017 htmldir=$ac_optarg ;; 1018 1019 -includedir | --includedir | --includedi | --included | --include \ 1020 | --includ | --inclu | --incl | --inc) 1021 ac_prev=includedir ;; 1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1023 | --includ=* | --inclu=* | --incl=* | --inc=*) 1024 includedir=$ac_optarg ;; 1025 1026 -infodir | --infodir | --infodi | --infod | --info | --inf) 1027 ac_prev=infodir ;; 1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1029 infodir=$ac_optarg ;; 1030 1031 -libdir | --libdir | --libdi | --libd) 1032 ac_prev=libdir ;; 1033 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1034 libdir=$ac_optarg ;; 1035 1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1037 | --libexe | --libex | --libe) 1038 ac_prev=libexecdir ;; 1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1040 | --libexe=* | --libex=* | --libe=*) 1041 libexecdir=$ac_optarg ;; 1042 1043 -localedir | --localedir | --localedi | --localed | --locale) 1044 ac_prev=localedir ;; 1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1046 localedir=$ac_optarg ;; 1047 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1049 | --localstate | --localstat | --localsta | --localst | --locals) 1050 ac_prev=localstatedir ;; 1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1053 localstatedir=$ac_optarg ;; 1054 1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1056 ac_prev=mandir ;; 1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1058 mandir=$ac_optarg ;; 1059 1060 -nfp | --nfp | --nf) 1061 # Obsolete; use --without-fp. 1062 with_fp=no ;; 1063 1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1065 | --no-cr | --no-c | -n) 1066 no_create=yes ;; 1067 1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1070 no_recursion=yes ;; 1071 1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1074 | --oldin | --oldi | --old | --ol | --o) 1075 ac_prev=oldincludedir ;; 1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1079 oldincludedir=$ac_optarg ;; 1080 1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1082 ac_prev=prefix ;; 1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1084 prefix=$ac_optarg ;; 1085 1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1087 | --program-pre | --program-pr | --program-p) 1088 ac_prev=program_prefix ;; 1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1091 program_prefix=$ac_optarg ;; 1092 1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1094 | --program-suf | --program-su | --program-s) 1095 ac_prev=program_suffix ;; 1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1098 program_suffix=$ac_optarg ;; 1099 1100 -program-transform-name | --program-transform-name \ 1101 | --program-transform-nam | --program-transform-na \ 1102 | --program-transform-n | --program-transform- \ 1103 | --program-transform | --program-transfor \ 1104 | --program-transfo | --program-transf \ 1105 | --program-trans | --program-tran \ 1106 | --progr-tra | --program-tr | --program-t) 1107 ac_prev=program_transform_name ;; 1108 -program-transform-name=* | --program-transform-name=* \ 1109 | --program-transform-nam=* | --program-transform-na=* \ 1110 | --program-transform-n=* | --program-transform-=* \ 1111 | --program-transform=* | --program-transfor=* \ 1112 | --program-transfo=* | --program-transf=* \ 1113 | --program-trans=* | --program-tran=* \ 1114 | --progr-tra=* | --program-tr=* | --program-t=*) 1115 program_transform_name=$ac_optarg ;; 1116 1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1118 ac_prev=pdfdir ;; 1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1120 pdfdir=$ac_optarg ;; 1121 1122 -psdir | --psdir | --psdi | --psd | --ps) 1123 ac_prev=psdir ;; 1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1125 psdir=$ac_optarg ;; 1126 1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1128 | -silent | --silent | --silen | --sile | --sil) 1129 silent=yes ;; 1130 1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1132 ac_prev=sbindir ;; 1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1134 | --sbi=* | --sb=*) 1135 sbindir=$ac_optarg ;; 1136 1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1139 | --sharedst | --shareds | --shared | --share | --shar \ 1140 | --sha | --sh) 1141 ac_prev=sharedstatedir ;; 1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1145 | --sha=* | --sh=*) 1146 sharedstatedir=$ac_optarg ;; 1147 1148 -site | --site | --sit) 1149 ac_prev=site ;; 1150 -site=* | --site=* | --sit=*) 1151 site=$ac_optarg ;; 1152 1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1154 ac_prev=srcdir ;; 1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1156 srcdir=$ac_optarg ;; 1157 1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1159 | --syscon | --sysco | --sysc | --sys | --sy) 1160 ac_prev=sysconfdir ;; 1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1163 sysconfdir=$ac_optarg ;; 1164 1165 -target | --target | --targe | --targ | --tar | --ta | --t) 1166 ac_prev=target_alias ;; 1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1168 target_alias=$ac_optarg ;; 1169 1170 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1171 verbose=yes ;; 1172 1173 -version | --version | --versio | --versi | --vers | -V) 1174 ac_init_version=: ;; 1175 1176 -with-* | --with-*) 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1180 as_fn_error $? "invalid package name: $ac_useropt" 1181 ac_useropt_orig=$ac_useropt 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1183 case $ac_user_opts in 1184 *" 1185"with_$ac_useropt" 1186"*) ;; 1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1188 ac_unrecognized_sep=', ';; 1189 esac 1190 eval with_$ac_useropt=\$ac_optarg ;; 1191 1192 -without-* | --without-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid package name: $ac_useropt" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201"with_$ac_useropt" 1202"*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval with_$ac_useropt=no ;; 1207 1208 --x) 1209 # Obsolete; use --with-x. 1210 with_x=yes ;; 1211 1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1213 | --x-incl | --x-inc | --x-in | --x-i) 1214 ac_prev=x_includes ;; 1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1217 x_includes=$ac_optarg ;; 1218 1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1221 ac_prev=x_libraries ;; 1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1224 x_libraries=$ac_optarg ;; 1225 1226 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1227Try \`$0 --help' for more information" 1228 ;; 1229 1230 *=*) 1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1232 # Reject names that are not valid shell variable names. 1233 case $ac_envvar in #( 1234 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1236 esac 1237 eval $ac_envvar=\$ac_optarg 1238 export $ac_envvar ;; 1239 1240 *) 1241 # FIXME: should be removed in autoconf 3.0. 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1246 ;; 1247 1248 esac 1249done 1250 1251if test -n "$ac_prev"; then 1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1253 as_fn_error $? "missing argument to $ac_option" 1254fi 1255 1256if test -n "$ac_unrecognized_opts"; then 1257 case $enable_option_checking in 1258 no) ;; 1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1261 esac 1262fi 1263 1264# Check all directory arguments for consistency. 1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1266 datadir sysconfdir sharedstatedir localstatedir includedir \ 1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1268 libdir localedir mandir 1269do 1270 eval ac_val=\$$ac_var 1271 # Remove trailing slashes. 1272 case $ac_val in 1273 */ ) 1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1275 eval $ac_var=\$ac_val;; 1276 esac 1277 # Be sure to have absolute directory names. 1278 case $ac_val in 1279 [\\/$]* | ?:[\\/]* ) continue;; 1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1281 esac 1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1283done 1284 1285# There might be people who depend on the old broken behavior: `$host' 1286# used to hold the argument of --host etc. 1287# FIXME: To remove some day. 1288build=$build_alias 1289host=$host_alias 1290target=$target_alias 1291 1292# FIXME: To remove some day. 1293if test "x$host_alias" != x; then 1294 if test "x$build_alias" = x; then 1295 cross_compiling=maybe 1296 elif test "x$build_alias" != "x$host_alias"; then 1297 cross_compiling=yes 1298 fi 1299fi 1300 1301ac_tool_prefix= 1302test -n "$host_alias" && ac_tool_prefix=$host_alias- 1303 1304test "$silent" = yes && exec 6>/dev/null 1305 1306 1307ac_pwd=`pwd` && test -n "$ac_pwd" && 1308ac_ls_di=`ls -di .` && 1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1310 as_fn_error $? "working directory cannot be determined" 1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1312 as_fn_error $? "pwd does not report name of working directory" 1313 1314 1315# Find the source files, if location was not specified. 1316if test -z "$srcdir"; then 1317 ac_srcdir_defaulted=yes 1318 # Try the directory containing this script, then the parent directory. 1319 ac_confdir=`$as_dirname -- "$as_myself" || 1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1321 X"$as_myself" : 'X\(//\)[^/]' \| \ 1322 X"$as_myself" : 'X\(//\)$' \| \ 1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1324$as_echo X"$as_myself" | 1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)[^/].*/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\/\)$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\).*/{ 1338 s//\1/ 1339 q 1340 } 1341 s/.*/./; q'` 1342 srcdir=$ac_confdir 1343 if test ! -r "$srcdir/$ac_unique_file"; then 1344 srcdir=.. 1345 fi 1346else 1347 ac_srcdir_defaulted=no 1348fi 1349if test ! -r "$srcdir/$ac_unique_file"; then 1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1352fi 1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1354ac_abs_confdir=`( 1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1356 pwd)` 1357# When building in place, set srcdir=. 1358if test "$ac_abs_confdir" = "$ac_pwd"; then 1359 srcdir=. 1360fi 1361# Remove unnecessary trailing slashes from srcdir. 1362# Double slashes in file names in object file debugging info 1363# mess up M-x gdb in Emacs. 1364case $srcdir in 1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1366esac 1367for ac_var in $ac_precious_vars; do 1368 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_env_${ac_var}_value=\$${ac_var} 1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1371 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1372done 1373 1374# 1375# Report the --help message. 1376# 1377if test "$ac_init_help" = "long"; then 1378 # Omit some internal or obsolete options to make the list less imposing. 1379 # This message is too long to be a string in the A/UX 3.1 sh. 1380 cat <<_ACEOF 1381\`configure' configures xf86-video-vmware 13.2.1 to adapt to many kinds of systems. 1382 1383Usage: $0 [OPTION]... [VAR=VALUE]... 1384 1385To assign environment variables (e.g., CC, CFLAGS...), specify them as 1386VAR=VALUE. See below for descriptions of some of the useful variables. 1387 1388Defaults for the options are specified in brackets. 1389 1390Configuration: 1391 -h, --help display this help and exit 1392 --help=short display options specific to this package 1393 --help=recursive display the short help of all the included packages 1394 -V, --version display version information and exit 1395 -q, --quiet, --silent do not print \`checking ...' messages 1396 --cache-file=FILE cache test results in FILE [disabled] 1397 -C, --config-cache alias for \`--cache-file=config.cache' 1398 -n, --no-create do not create output files 1399 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1400 1401Installation directories: 1402 --prefix=PREFIX install architecture-independent files in PREFIX 1403 [$ac_default_prefix] 1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1405 [PREFIX] 1406 1407By default, \`make install' will install all the files in 1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1409an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1410for instance \`--prefix=\$HOME'. 1411 1412For better control, use the options below. 1413 1414Fine tuning of the installation directories: 1415 --bindir=DIR user executables [EPREFIX/bin] 1416 --sbindir=DIR system admin executables [EPREFIX/sbin] 1417 --libexecdir=DIR program executables [EPREFIX/libexec] 1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1421 --libdir=DIR object code libraries [EPREFIX/lib] 1422 --includedir=DIR C header files [PREFIX/include] 1423 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1426 --infodir=DIR info documentation [DATAROOTDIR/info] 1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1428 --mandir=DIR man documentation [DATAROOTDIR/man] 1429 --docdir=DIR documentation root 1430 [DATAROOTDIR/doc/xf86-video-vmware] 1431 --htmldir=DIR html documentation [DOCDIR] 1432 --dvidir=DIR dvi documentation [DOCDIR] 1433 --pdfdir=DIR pdf documentation [DOCDIR] 1434 --psdir=DIR ps documentation [DOCDIR] 1435_ACEOF 1436 1437 cat <<\_ACEOF 1438 1439Program names: 1440 --program-prefix=PREFIX prepend PREFIX to installed program names 1441 --program-suffix=SUFFIX append SUFFIX to installed program names 1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1443 1444System types: 1445 --build=BUILD configure for building on BUILD [guessed] 1446 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1447_ACEOF 1448fi 1449 1450if test -n "$ac_init_help"; then 1451 case $ac_init_help in 1452 short | recursive ) echo "Configuration of xf86-video-vmware 13.2.1:";; 1453 esac 1454 cat <<\_ACEOF 1455 1456Optional Features: 1457 --disable-option-checking ignore unrecognized --enable/--with options 1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1460 --disable-largefile omit support for large files 1461 --enable-dependency-tracking 1462 do not reject slow dependency extractors 1463 --disable-dependency-tracking 1464 speeds up one-time build 1465 --enable-silent-rules less verbose build output (undo: "make V=1") 1466 --disable-silent-rules verbose build output (undo: "make V=0") 1467 --enable-maintainer-mode 1468 enable make rules and dependencies not useful (and 1469 sometimes confusing) to the casual installer 1470 --disable-selective-werror 1471 Turn off selective compiler errors. (default: 1472 enabled) 1473 --enable-strict-compilation 1474 Enable all warnings from compiler and make them 1475 errors (default: disabled) 1476 --enable-static[=PKGS] build static libraries [default=no] 1477 --enable-shared[=PKGS] build shared libraries [default=yes] 1478 --enable-fast-install[=PKGS] 1479 optimize for fast installation [default=yes] 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 --enable-vmwarectrl-client 1482 Enable vmwarectrl client (default: disabled) 1483 1484Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1490 --with-sysroot=DIR Search for dependent libraries within DIR 1491 (or the compiler's sysroot if not specified). 1492 --with-xorg-module-dir=DIR 1493 Default xorg module directory 1494 [[default=$libdir/xorg/modules]] 1495 --without-libudev Use to build without libudev on linux 1496 1497Some influential environment variables: 1498 CC C compiler command 1499 CFLAGS C compiler flags 1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1501 nonstandard directory <lib dir> 1502 LIBS libraries to pass to the linker, e.g. -l<library> 1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1504 you have headers in a nonstandard directory <include dir> 1505 CPP C preprocessor 1506 PKG_CONFIG path to pkg-config utility 1507 PKG_CONFIG_PATH 1508 directories to add to pkg-config's search path 1509 PKG_CONFIG_LIBDIR 1510 path overriding pkg-config's built-in search path 1511 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1512 XORG_LIBS linker flags for XORG, overriding pkg-config 1513 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1514 X11_LIBS linker flags for X11, overriding pkg-config 1515 PCIACCESS_CFLAGS 1516 C compiler flags for PCIACCESS, overriding pkg-config 1517 PCIACCESS_LIBS 1518 linker flags for PCIACCESS, overriding pkg-config 1519 LIBDRM_CFLAGS 1520 C compiler flags for LIBDRM, overriding pkg-config 1521 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1522 XATRACKER_CFLAGS 1523 C compiler flags for XATRACKER, overriding pkg-config 1524 XATRACKER_LIBS 1525 linker flags for XATRACKER, overriding pkg-config 1526 LIBUDEV_CFLAGS 1527 C compiler flags for LIBUDEV, overriding pkg-config 1528 LIBUDEV_LIBS 1529 linker flags for LIBUDEV, overriding pkg-config 1530 1531Use these variables to override the choices made by `configure' or to help 1532it to find libraries and programs with nonstandard names/locations. 1533 1534Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1535_ACEOF 1536ac_status=$? 1537fi 1538 1539if test "$ac_init_help" = "recursive"; then 1540 # If there are subdirs, report their specific --help. 1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1542 test -d "$ac_dir" || 1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1544 continue 1545 ac_builddir=. 1546 1547case "$ac_dir" in 1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549*) 1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1551 # A ".." for each directory in $ac_dir_suffix. 1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1553 case $ac_top_builddir_sub in 1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1556 esac ;; 1557esac 1558ac_abs_top_builddir=$ac_pwd 1559ac_abs_builddir=$ac_pwd$ac_dir_suffix 1560# for backward compatibility: 1561ac_top_builddir=$ac_top_build_prefix 1562 1563case $srcdir in 1564 .) # We are building in place. 1565 ac_srcdir=. 1566 ac_top_srcdir=$ac_top_builddir_sub 1567 ac_abs_top_srcdir=$ac_pwd ;; 1568 [\\/]* | ?:[\\/]* ) # Absolute name. 1569 ac_srcdir=$srcdir$ac_dir_suffix; 1570 ac_top_srcdir=$srcdir 1571 ac_abs_top_srcdir=$srcdir ;; 1572 *) # Relative name. 1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1574 ac_top_srcdir=$ac_top_build_prefix$srcdir 1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1576esac 1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1578 1579 cd "$ac_dir" || { ac_status=$?; continue; } 1580 # Check for guested configure. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592fi 1593 1594test -n "$ac_init_help" && exit $ac_status 1595if $ac_init_version; then 1596 cat <<\_ACEOF 1597xf86-video-vmware configure 13.2.1 1598generated by GNU Autoconf 2.69 1599 1600Copyright (C) 2012 Free Software Foundation, Inc. 1601This configure script is free software; the Free Software Foundation 1602gives unlimited permission to copy, distribute and modify it. 1603_ACEOF 1604 exit 1605fi 1606 1607## ------------------------ ## 1608## Autoconf initialization. ## 1609## ------------------------ ## 1610 1611# ac_fn_c_try_compile LINENO 1612# -------------------------- 1613# Try to compile conftest.$ac_ext, and return whether this succeeded. 1614ac_fn_c_try_compile () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext 1618 if { { ac_try="$ac_compile" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624$as_echo "$ac_try_echo"; } >&5 1625 (eval "$ac_compile") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest.$ac_objext; then : 1637 ac_retval=0 1638else 1639 $as_echo "$as_me: failed program was:" >&5 1640sed 's/^/| /' conftest.$ac_ext >&5 1641 1642 ac_retval=1 1643fi 1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1645 as_fn_set_status $ac_retval 1646 1647} # ac_fn_c_try_compile 1648 1649# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1650# --------------------------------------------- 1651# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1652# accordingly. 1653ac_fn_c_check_decl () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 as_decl_name=`echo $2|sed 's/ *(.*//'` 1657 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1659$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1660if eval \${$3+:} false; then : 1661 $as_echo_n "(cached) " >&6 1662else 1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1664/* end confdefs.h. */ 1665$4 1666int 1667main () 1668{ 1669#ifndef $as_decl_name 1670#ifdef __cplusplus 1671 (void) $as_decl_use; 1672#else 1673 (void) $as_decl_name; 1674#endif 1675#endif 1676 1677 ; 1678 return 0; 1679} 1680_ACEOF 1681if ac_fn_c_try_compile "$LINENO"; then : 1682 eval "$3=yes" 1683else 1684 eval "$3=no" 1685fi 1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1687fi 1688eval ac_res=\$$3 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1690$as_echo "$ac_res" >&6; } 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 1693} # ac_fn_c_check_decl 1694 1695# ac_fn_c_try_cpp LINENO 1696# ---------------------- 1697# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1698ac_fn_c_try_cpp () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 if { { ac_try="$ac_cpp conftest.$ac_ext" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1709 ac_status=$? 1710 if test -s conftest.err; then 1711 grep -v '^ *+' conftest.err >conftest.er1 1712 cat conftest.er1 >&5 1713 mv -f conftest.er1 conftest.err 1714 fi 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } > conftest.i && { 1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1718 test ! -s conftest.err 1719 }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=1 1726fi 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_cpp 1731 1732# ac_fn_c_try_run LINENO 1733# ---------------------- 1734# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1735# that executables *can* be run. 1736ac_fn_c_try_run () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 if { { ac_try="$ac_link" 1740case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_link") 2>&5 1747 ac_status=$? 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1750 { { case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_try") 2>&5 1757 ac_status=$? 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; }; }; then : 1760 ac_retval=0 1761else 1762 $as_echo "$as_me: program exited with status $ac_status" >&5 1763 $as_echo "$as_me: failed program was:" >&5 1764sed 's/^/| /' conftest.$ac_ext >&5 1765 1766 ac_retval=$ac_status 1767fi 1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1770 as_fn_set_status $ac_retval 1771 1772} # ac_fn_c_try_run 1773 1774# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1775# ------------------------------------------------------- 1776# Tests whether HEADER exists and can be compiled using the include files in 1777# INCLUDES, setting the cache variable VAR accordingly. 1778ac_fn_c_check_header_compile () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1782$as_echo_n "checking for $2... " >&6; } 1783if eval \${$3+:} false; then : 1784 $as_echo_n "(cached) " >&6 1785else 1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1787/* end confdefs.h. */ 1788$4 1789#include <$2> 1790_ACEOF 1791if ac_fn_c_try_compile "$LINENO"; then : 1792 eval "$3=yes" 1793else 1794 eval "$3=no" 1795fi 1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_header_compile 1804 1805# ac_fn_c_try_link LINENO 1806# ----------------------- 1807# Try to link conftest.$ac_ext, and return whether this succeeded. 1808ac_fn_c_try_link () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 rm -f conftest.$ac_objext conftest$ac_exeext 1812 if { { ac_try="$ac_link" 1813case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816esac 1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818$as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_link") 2>conftest.err 1820 ac_status=$? 1821 if test -s conftest.err; then 1822 grep -v '^ *+' conftest.err >conftest.er1 1823 cat conftest.er1 >&5 1824 mv -f conftest.er1 conftest.err 1825 fi 1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1827 test $ac_status = 0; } && { 1828 test -z "$ac_c_werror_flag" || 1829 test ! -s conftest.err 1830 } && test -s conftest$ac_exeext && { 1831 test "$cross_compiling" = yes || 1832 test -x conftest$ac_exeext 1833 }; then : 1834 ac_retval=0 1835else 1836 $as_echo "$as_me: failed program was:" >&5 1837sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=1 1840fi 1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1843 # interfere with the next link command; also delete a directory that is 1844 # left behind by Apple's compiler. We do this before executing the actions. 1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 as_fn_set_status $ac_retval 1848 1849} # ac_fn_c_try_link 1850 1851# ac_fn_c_check_func LINENO FUNC VAR 1852# ---------------------------------- 1853# Tests whether FUNC exists, setting the cache variable VAR accordingly 1854ac_fn_c_check_func () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1858$as_echo_n "checking for $2... " >&6; } 1859if eval \${$3+:} false; then : 1860 $as_echo_n "(cached) " >&6 1861else 1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1863/* end confdefs.h. */ 1864/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1866#define $2 innocuous_$2 1867 1868/* System header to define __stub macros and hopefully few prototypes, 1869 which can conflict with char $2 (); below. 1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1871 <limits.h> exists even on freestanding compilers. */ 1872 1873#ifdef __STDC__ 1874# include <limits.h> 1875#else 1876# include <assert.h> 1877#endif 1878 1879#undef $2 1880 1881/* Override any GCC internal prototype to avoid an error. 1882 Use char because int might match the return type of a GCC 1883 builtin and then its argument prototype would still apply. */ 1884#ifdef __cplusplus 1885extern "C" 1886#endif 1887char $2 (); 1888/* The GNU C library defines this for functions which it implements 1889 to always fail with ENOSYS. Some functions are actually named 1890 something starting with __ and the normal name is an alias. */ 1891#if defined __stub_$2 || defined __stub___$2 1892choke me 1893#endif 1894 1895int 1896main () 1897{ 1898return $2 (); 1899 ; 1900 return 0; 1901} 1902_ACEOF 1903if ac_fn_c_try_link "$LINENO"; then : 1904 eval "$3=yes" 1905else 1906 eval "$3=no" 1907fi 1908rm -f core conftest.err conftest.$ac_objext \ 1909 conftest$ac_exeext conftest.$ac_ext 1910fi 1911eval ac_res=\$$3 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1913$as_echo "$ac_res" >&6; } 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 1916} # ac_fn_c_check_func 1917cat >config.log <<_ACEOF 1918This file contains any messages produced by compilers while 1919running configure, to aid debugging if configure makes a mistake. 1920 1921It was created by xf86-video-vmware $as_me 13.2.1, which was 1922generated by GNU Autoconf 2.69. Invocation command line was 1923 1924 $ $0 $@ 1925 1926_ACEOF 1927exec 5>>config.log 1928{ 1929cat <<_ASUNAME 1930## --------- ## 1931## Platform. ## 1932## --------- ## 1933 1934hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1935uname -m = `(uname -m) 2>/dev/null || echo unknown` 1936uname -r = `(uname -r) 2>/dev/null || echo unknown` 1937uname -s = `(uname -s) 2>/dev/null || echo unknown` 1938uname -v = `(uname -v) 2>/dev/null || echo unknown` 1939 1940/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1941/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1942 1943/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1944/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1945/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1946/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1947/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1948/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1949/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1950 1951_ASUNAME 1952 1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1954for as_dir in $PATH 1955do 1956 IFS=$as_save_IFS 1957 test -z "$as_dir" && as_dir=. 1958 $as_echo "PATH: $as_dir" 1959 done 1960IFS=$as_save_IFS 1961 1962} >&5 1963 1964cat >&5 <<_ACEOF 1965 1966 1967## ----------- ## 1968## Core tests. ## 1969## ----------- ## 1970 1971_ACEOF 1972 1973 1974# Keep a trace of the command line. 1975# Strip out --no-create and --no-recursion so they do not pile up. 1976# Strip out --silent because we don't want to record it for future runs. 1977# Also quote any args containing shell meta-characters. 1978# Make two passes to allow for proper duplicate-argument suppression. 1979ac_configure_args= 1980ac_configure_args0= 1981ac_configure_args1= 1982ac_must_keep_next=false 1983for ac_pass in 1 2 1984do 1985 for ac_arg 1986 do 1987 case $ac_arg in 1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1990 | -silent | --silent | --silen | --sile | --sil) 1991 continue ;; 1992 *\'*) 1993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1994 esac 1995 case $ac_pass in 1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1997 2) 1998 as_fn_append ac_configure_args1 " '$ac_arg'" 1999 if test $ac_must_keep_next = true; then 2000 ac_must_keep_next=false # Got value, back to normal. 2001 else 2002 case $ac_arg in 2003 *=* | --config-cache | -C | -disable-* | --disable-* \ 2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2006 | -with-* | --with-* | -without-* | --without-* | --x) 2007 case "$ac_configure_args0 " in 2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2009 esac 2010 ;; 2011 -* ) ac_must_keep_next=true ;; 2012 esac 2013 fi 2014 as_fn_append ac_configure_args " '$ac_arg'" 2015 ;; 2016 esac 2017 done 2018done 2019{ ac_configure_args0=; unset ac_configure_args0;} 2020{ ac_configure_args1=; unset ac_configure_args1;} 2021 2022# When interrupted or exit'd, cleanup temporary files, and complete 2023# config.log. We remove comments because anyway the quotes in there 2024# would cause problems or look ugly. 2025# WARNING: Use '\'' to represent an apostrophe within the trap. 2026# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2027trap 'exit_status=$? 2028 # Save into config.log some information that might help in debugging. 2029 { 2030 echo 2031 2032 $as_echo "## ---------------- ## 2033## Cache variables. ## 2034## ---------------- ##" 2035 echo 2036 # The following way of writing the cache mishandles newlines in values, 2037( 2038 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2039 eval ac_val=\$$ac_var 2040 case $ac_val in #( 2041 *${as_nl}*) 2042 case $ac_var in #( 2043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2044$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2045 esac 2046 case $ac_var in #( 2047 _ | IFS | as_nl) ;; #( 2048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2049 *) { eval $ac_var=; unset $ac_var;} ;; 2050 esac ;; 2051 esac 2052 done 2053 (set) 2>&1 | 2054 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2055 *${as_nl}ac_space=\ *) 2056 sed -n \ 2057 "s/'\''/'\''\\\\'\'''\''/g; 2058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2059 ;; #( 2060 *) 2061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2062 ;; 2063 esac | 2064 sort 2065) 2066 echo 2067 2068 $as_echo "## ----------------- ## 2069## Output variables. ## 2070## ----------------- ##" 2071 echo 2072 for ac_var in $ac_subst_vars 2073 do 2074 eval ac_val=\$$ac_var 2075 case $ac_val in 2076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2077 esac 2078 $as_echo "$ac_var='\''$ac_val'\''" 2079 done | sort 2080 echo 2081 2082 if test -n "$ac_subst_files"; then 2083 $as_echo "## ------------------- ## 2084## File substitutions. ## 2085## ------------------- ##" 2086 echo 2087 for ac_var in $ac_subst_files 2088 do 2089 eval ac_val=\$$ac_var 2090 case $ac_val in 2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2092 esac 2093 $as_echo "$ac_var='\''$ac_val'\''" 2094 done | sort 2095 echo 2096 fi 2097 2098 if test -s confdefs.h; then 2099 $as_echo "## ----------- ## 2100## confdefs.h. ## 2101## ----------- ##" 2102 echo 2103 cat confdefs.h 2104 echo 2105 fi 2106 test "$ac_signal" != 0 && 2107 $as_echo "$as_me: caught signal $ac_signal" 2108 $as_echo "$as_me: exit $exit_status" 2109 } >&5 2110 rm -f core *.core core.conftest.* && 2111 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2112 exit $exit_status 2113' 0 2114for ac_signal in 1 2 13 15; do 2115 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2116done 2117ac_signal=0 2118 2119# confdefs.h avoids OS command line length limits that DEFS can exceed. 2120rm -f -r conftest* confdefs.h 2121 2122$as_echo "/* confdefs.h */" > confdefs.h 2123 2124# Predefined preprocessor variables. 2125 2126cat >>confdefs.h <<_ACEOF 2127#define PACKAGE_NAME "$PACKAGE_NAME" 2128_ACEOF 2129 2130cat >>confdefs.h <<_ACEOF 2131#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2132_ACEOF 2133 2134cat >>confdefs.h <<_ACEOF 2135#define PACKAGE_VERSION "$PACKAGE_VERSION" 2136_ACEOF 2137 2138cat >>confdefs.h <<_ACEOF 2139#define PACKAGE_STRING "$PACKAGE_STRING" 2140_ACEOF 2141 2142cat >>confdefs.h <<_ACEOF 2143#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2144_ACEOF 2145 2146cat >>confdefs.h <<_ACEOF 2147#define PACKAGE_URL "$PACKAGE_URL" 2148_ACEOF 2149 2150 2151# Let the site file select an alternate cache file if it wants to. 2152# Prefer an explicitly selected file to automatically selected ones. 2153ac_site_file1=NONE 2154ac_site_file2=NONE 2155if test -n "$CONFIG_SITE"; then 2156 # We do not want a PATH search for config.site. 2157 case $CONFIG_SITE in #(( 2158 -*) ac_site_file1=./$CONFIG_SITE;; 2159 */*) ac_site_file1=$CONFIG_SITE;; 2160 *) ac_site_file1=./$CONFIG_SITE;; 2161 esac 2162elif test "x$prefix" != xNONE; then 2163 ac_site_file1=$prefix/share/config.site 2164 ac_site_file2=$prefix/etc/config.site 2165else 2166 ac_site_file1=$ac_default_prefix/share/config.site 2167 ac_site_file2=$ac_default_prefix/etc/config.site 2168fi 2169for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2170do 2171 test "x$ac_site_file" = xNONE && continue 2172 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2174$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2175 sed 's/^/| /' "$ac_site_file" >&5 2176 . "$ac_site_file" \ 2177 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2179as_fn_error $? "failed to load site script $ac_site_file 2180See \`config.log' for more details" "$LINENO" 5; } 2181 fi 2182done 2183 2184if test -r "$cache_file"; then 2185 # Some versions of bash will fail to source /dev/null (special files 2186 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2187 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2189$as_echo "$as_me: loading cache $cache_file" >&6;} 2190 case $cache_file in 2191 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2192 *) . "./$cache_file";; 2193 esac 2194 fi 2195else 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2197$as_echo "$as_me: creating cache $cache_file" >&6;} 2198 >$cache_file 2199fi 2200 2201# Check that the precious variables saved in the cache have kept the same 2202# value. 2203ac_cache_corrupted=false 2204for ac_var in $ac_precious_vars; do 2205 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2206 eval ac_new_set=\$ac_env_${ac_var}_set 2207 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2208 eval ac_new_val=\$ac_env_${ac_var}_value 2209 case $ac_old_set,$ac_new_set in 2210 set,) 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2212$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2213 ac_cache_corrupted=: ;; 2214 ,set) 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2216$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2217 ac_cache_corrupted=: ;; 2218 ,);; 2219 *) 2220 if test "x$ac_old_val" != "x$ac_new_val"; then 2221 # differences in whitespace do not lead to failure. 2222 ac_old_val_w=`echo x $ac_old_val` 2223 ac_new_val_w=`echo x $ac_new_val` 2224 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2226$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2227 ac_cache_corrupted=: 2228 else 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2230$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2231 eval $ac_var=\$ac_old_val 2232 fi 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2234$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2236$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2237 fi;; 2238 esac 2239 # Pass precious variables to config.status. 2240 if test "$ac_new_set" = set; then 2241 case $ac_new_val in 2242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2243 *) ac_arg=$ac_var=$ac_new_val ;; 2244 esac 2245 case " $ac_configure_args " in 2246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2247 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2248 esac 2249 fi 2250done 2251if $ac_cache_corrupted; then 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2255$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2256 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2257fi 2258## -------------------- ## 2259## Main body of script. ## 2260## -------------------- ## 2261 2262ac_ext=c 2263ac_cpp='$CPP $CPPFLAGS' 2264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2266ac_compiler_gnu=$ac_cv_c_compiler_gnu 2267 2268 2269 2270ac_config_headers="$ac_config_headers config.h" 2271 2272ac_aux_dir= 2273for ac_dir in . "$srcdir"/.; do 2274 if test -f "$ac_dir/install-sh"; then 2275 ac_aux_dir=$ac_dir 2276 ac_install_sh="$ac_aux_dir/install-sh -c" 2277 break 2278 elif test -f "$ac_dir/install.sh"; then 2279 ac_aux_dir=$ac_dir 2280 ac_install_sh="$ac_aux_dir/install.sh -c" 2281 break 2282 elif test -f "$ac_dir/shtool"; then 2283 ac_aux_dir=$ac_dir 2284 ac_install_sh="$ac_aux_dir/shtool install -c" 2285 break 2286 fi 2287done 2288if test -z "$ac_aux_dir"; then 2289 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2290fi 2291 2292# These three variables are undocumented and unsupported, 2293# and are intended to be withdrawn in a future Autoconf release. 2294# They can cause serious problems if a builder's source tree is in a directory 2295# whose full name contains unusual characters. 2296ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2297ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2298ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2299 2300 2301# Expand $ac_aux_dir to an absolute path. 2302am_aux_dir=`cd "$ac_aux_dir" && pwd` 2303 2304ac_ext=c 2305ac_cpp='$CPP $CPPFLAGS' 2306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2308ac_compiler_gnu=$ac_cv_c_compiler_gnu 2309if test -n "$ac_tool_prefix"; then 2310 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2311set dummy ${ac_tool_prefix}gcc; ac_word=$2 2312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2313$as_echo_n "checking for $ac_word... " >&6; } 2314if ${ac_cv_prog_CC+:} false; then : 2315 $as_echo_n "(cached) " >&6 2316else 2317 if test -n "$CC"; then 2318 ac_cv_prog_CC="$CC" # Let the user override the test. 2319else 2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321for as_dir in $PATH 2322do 2323 IFS=$as_save_IFS 2324 test -z "$as_dir" && as_dir=. 2325 for ac_exec_ext in '' $ac_executable_extensions; do 2326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2327 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2329 break 2 2330 fi 2331done 2332 done 2333IFS=$as_save_IFS 2334 2335fi 2336fi 2337CC=$ac_cv_prog_CC 2338if test -n "$CC"; then 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2340$as_echo "$CC" >&6; } 2341else 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2343$as_echo "no" >&6; } 2344fi 2345 2346 2347fi 2348if test -z "$ac_cv_prog_CC"; then 2349 ac_ct_CC=$CC 2350 # Extract the first word of "gcc", so it can be a program name with args. 2351set dummy gcc; ac_word=$2 2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2353$as_echo_n "checking for $ac_word... " >&6; } 2354if ${ac_cv_prog_ac_ct_CC+:} false; then : 2355 $as_echo_n "(cached) " >&6 2356else 2357 if test -n "$ac_ct_CC"; then 2358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2359else 2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361for as_dir in $PATH 2362do 2363 IFS=$as_save_IFS 2364 test -z "$as_dir" && as_dir=. 2365 for ac_exec_ext in '' $ac_executable_extensions; do 2366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2367 ac_cv_prog_ac_ct_CC="gcc" 2368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2369 break 2 2370 fi 2371done 2372 done 2373IFS=$as_save_IFS 2374 2375fi 2376fi 2377ac_ct_CC=$ac_cv_prog_ac_ct_CC 2378if test -n "$ac_ct_CC"; then 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2380$as_echo "$ac_ct_CC" >&6; } 2381else 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2383$as_echo "no" >&6; } 2384fi 2385 2386 if test "x$ac_ct_CC" = x; then 2387 CC="" 2388 else 2389 case $cross_compiling:$ac_tool_warned in 2390yes:) 2391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2393ac_tool_warned=yes ;; 2394esac 2395 CC=$ac_ct_CC 2396 fi 2397else 2398 CC="$ac_cv_prog_CC" 2399fi 2400 2401if test -z "$CC"; then 2402 if test -n "$ac_tool_prefix"; then 2403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2404set dummy ${ac_tool_prefix}cc; ac_word=$2 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2406$as_echo_n "checking for $ac_word... " >&6; } 2407if ${ac_cv_prog_CC+:} false; then : 2408 $as_echo_n "(cached) " >&6 2409else 2410 if test -n "$CC"; then 2411 ac_cv_prog_CC="$CC" # Let the user override the test. 2412else 2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2414for as_dir in $PATH 2415do 2416 IFS=$as_save_IFS 2417 test -z "$as_dir" && as_dir=. 2418 for ac_exec_ext in '' $ac_executable_extensions; do 2419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2420 ac_cv_prog_CC="${ac_tool_prefix}cc" 2421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2422 break 2 2423 fi 2424done 2425 done 2426IFS=$as_save_IFS 2427 2428fi 2429fi 2430CC=$ac_cv_prog_CC 2431if test -n "$CC"; then 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2433$as_echo "$CC" >&6; } 2434else 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2436$as_echo "no" >&6; } 2437fi 2438 2439 2440 fi 2441fi 2442if test -z "$CC"; then 2443 # Extract the first word of "cc", so it can be a program name with args. 2444set dummy cc; ac_word=$2 2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2446$as_echo_n "checking for $ac_word... " >&6; } 2447if ${ac_cv_prog_CC+:} false; then : 2448 $as_echo_n "(cached) " >&6 2449else 2450 if test -n "$CC"; then 2451 ac_cv_prog_CC="$CC" # Let the user override the test. 2452else 2453 ac_prog_rejected=no 2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2455for as_dir in $PATH 2456do 2457 IFS=$as_save_IFS 2458 test -z "$as_dir" && as_dir=. 2459 for ac_exec_ext in '' $ac_executable_extensions; do 2460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2461 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2462 ac_prog_rejected=yes 2463 continue 2464 fi 2465 ac_cv_prog_CC="cc" 2466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2467 break 2 2468 fi 2469done 2470 done 2471IFS=$as_save_IFS 2472 2473if test $ac_prog_rejected = yes; then 2474 # We found a bogon in the path, so make sure we never use it. 2475 set dummy $ac_cv_prog_CC 2476 shift 2477 if test $# != 0; then 2478 # We chose a different compiler from the bogus one. 2479 # However, it has the same basename, so the bogon will be chosen 2480 # first if we set CC to just the basename; use the full file name. 2481 shift 2482 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2483 fi 2484fi 2485fi 2486fi 2487CC=$ac_cv_prog_CC 2488if test -n "$CC"; then 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2490$as_echo "$CC" >&6; } 2491else 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2493$as_echo "no" >&6; } 2494fi 2495 2496 2497fi 2498if test -z "$CC"; then 2499 if test -n "$ac_tool_prefix"; then 2500 for ac_prog in cl.exe 2501 do 2502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2503set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2505$as_echo_n "checking for $ac_word... " >&6; } 2506if ${ac_cv_prog_CC+:} false; then : 2507 $as_echo_n "(cached) " >&6 2508else 2509 if test -n "$CC"; then 2510 ac_cv_prog_CC="$CC" # Let the user override the test. 2511else 2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2513for as_dir in $PATH 2514do 2515 IFS=$as_save_IFS 2516 test -z "$as_dir" && as_dir=. 2517 for ac_exec_ext in '' $ac_executable_extensions; do 2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2519 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2521 break 2 2522 fi 2523done 2524 done 2525IFS=$as_save_IFS 2526 2527fi 2528fi 2529CC=$ac_cv_prog_CC 2530if test -n "$CC"; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2532$as_echo "$CC" >&6; } 2533else 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2535$as_echo "no" >&6; } 2536fi 2537 2538 2539 test -n "$CC" && break 2540 done 2541fi 2542if test -z "$CC"; then 2543 ac_ct_CC=$CC 2544 for ac_prog in cl.exe 2545do 2546 # Extract the first word of "$ac_prog", so it can be a program name with args. 2547set dummy $ac_prog; ac_word=$2 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2549$as_echo_n "checking for $ac_word... " >&6; } 2550if ${ac_cv_prog_ac_ct_CC+:} false; then : 2551 $as_echo_n "(cached) " >&6 2552else 2553 if test -n "$ac_ct_CC"; then 2554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2555else 2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2557for as_dir in $PATH 2558do 2559 IFS=$as_save_IFS 2560 test -z "$as_dir" && as_dir=. 2561 for ac_exec_ext in '' $ac_executable_extensions; do 2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2563 ac_cv_prog_ac_ct_CC="$ac_prog" 2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2565 break 2 2566 fi 2567done 2568 done 2569IFS=$as_save_IFS 2570 2571fi 2572fi 2573ac_ct_CC=$ac_cv_prog_ac_ct_CC 2574if test -n "$ac_ct_CC"; then 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2576$as_echo "$ac_ct_CC" >&6; } 2577else 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2579$as_echo "no" >&6; } 2580fi 2581 2582 2583 test -n "$ac_ct_CC" && break 2584done 2585 2586 if test "x$ac_ct_CC" = x; then 2587 CC="" 2588 else 2589 case $cross_compiling:$ac_tool_warned in 2590yes:) 2591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2593ac_tool_warned=yes ;; 2594esac 2595 CC=$ac_ct_CC 2596 fi 2597fi 2598 2599fi 2600 2601 2602test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2604as_fn_error $? "no acceptable C compiler found in \$PATH 2605See \`config.log' for more details" "$LINENO" 5; } 2606 2607# Provide some information about the compiler. 2608$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2609set X $ac_compile 2610ac_compiler=$2 2611for ac_option in --version -v -V -qversion; do 2612 { { ac_try="$ac_compiler $ac_option >&5" 2613case "(($ac_try" in 2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2615 *) ac_try_echo=$ac_try;; 2616esac 2617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2618$as_echo "$ac_try_echo"; } >&5 2619 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2620 ac_status=$? 2621 if test -s conftest.err; then 2622 sed '10a\ 2623... rest of stderr output deleted ... 2624 10q' conftest.err >conftest.er1 2625 cat conftest.er1 >&5 2626 fi 2627 rm -f conftest.er1 conftest.err 2628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2629 test $ac_status = 0; } 2630done 2631 2632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2633/* end confdefs.h. */ 2634 2635int 2636main () 2637{ 2638 2639 ; 2640 return 0; 2641} 2642_ACEOF 2643ac_clean_files_save=$ac_clean_files 2644ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2645# Try to create an executable without -o first, disregard a.out. 2646# It will help us diagnose broken compilers, and finding out an intuition 2647# of exeext. 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2649$as_echo_n "checking whether the C compiler works... " >&6; } 2650ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2651 2652# The possible output files: 2653ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2654 2655ac_rmfiles= 2656for ac_file in $ac_files 2657do 2658 case $ac_file in 2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2660 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2661 esac 2662done 2663rm -f $ac_rmfiles 2664 2665if { { ac_try="$ac_link_default" 2666case "(($ac_try" in 2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2668 *) ac_try_echo=$ac_try;; 2669esac 2670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2671$as_echo "$ac_try_echo"; } >&5 2672 (eval "$ac_link_default") 2>&5 2673 ac_status=$? 2674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2675 test $ac_status = 0; }; then : 2676 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2677# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2678# in a Makefile. We should not override ac_cv_exeext if it was cached, 2679# so that the user can short-circuit this test for compilers unknown to 2680# Autoconf. 2681for ac_file in $ac_files '' 2682do 2683 test -f "$ac_file" || continue 2684 case $ac_file in 2685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2686 ;; 2687 [ab].out ) 2688 # We found the default executable, but exeext='' is most 2689 # certainly right. 2690 break;; 2691 *.* ) 2692 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2693 then :; else 2694 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2695 fi 2696 # We set ac_cv_exeext here because the later test for it is not 2697 # safe: cross compilers may not add the suffix if given an `-o' 2698 # argument, so we may need to know it at that point already. 2699 # Even if this section looks crufty: it has the advantage of 2700 # actually working. 2701 break;; 2702 * ) 2703 break;; 2704 esac 2705done 2706test "$ac_cv_exeext" = no && ac_cv_exeext= 2707 2708else 2709 ac_file='' 2710fi 2711if test -z "$ac_file"; then : 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2713$as_echo "no" >&6; } 2714$as_echo "$as_me: failed program was:" >&5 2715sed 's/^/| /' conftest.$ac_ext >&5 2716 2717{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2719as_fn_error 77 "C compiler cannot create executables 2720See \`config.log' for more details" "$LINENO" 5; } 2721else 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2723$as_echo "yes" >&6; } 2724fi 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2726$as_echo_n "checking for C compiler default output file name... " >&6; } 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2728$as_echo "$ac_file" >&6; } 2729ac_exeext=$ac_cv_exeext 2730 2731rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2732ac_clean_files=$ac_clean_files_save 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2734$as_echo_n "checking for suffix of executables... " >&6; } 2735if { { ac_try="$ac_link" 2736case "(($ac_try" in 2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2738 *) ac_try_echo=$ac_try;; 2739esac 2740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2741$as_echo "$ac_try_echo"; } >&5 2742 (eval "$ac_link") 2>&5 2743 ac_status=$? 2744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2745 test $ac_status = 0; }; then : 2746 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2747# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2748# work properly (i.e., refer to `conftest.exe'), while it won't with 2749# `rm'. 2750for ac_file in conftest.exe conftest conftest.*; do 2751 test -f "$ac_file" || continue 2752 case $ac_file in 2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2754 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2755 break;; 2756 * ) break;; 2757 esac 2758done 2759else 2760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2762as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2763See \`config.log' for more details" "$LINENO" 5; } 2764fi 2765rm -f conftest conftest$ac_cv_exeext 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2767$as_echo "$ac_cv_exeext" >&6; } 2768 2769rm -f conftest.$ac_ext 2770EXEEXT=$ac_cv_exeext 2771ac_exeext=$EXEEXT 2772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2773/* end confdefs.h. */ 2774#include <stdio.h> 2775int 2776main () 2777{ 2778FILE *f = fopen ("conftest.out", "w"); 2779 return ferror (f) || fclose (f) != 0; 2780 2781 ; 2782 return 0; 2783} 2784_ACEOF 2785ac_clean_files="$ac_clean_files conftest.out" 2786# Check that the compiler produces executables we can run. If not, either 2787# the compiler is broken, or we cross compile. 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2789$as_echo_n "checking whether we are cross compiling... " >&6; } 2790if test "$cross_compiling" != yes; then 2791 { { ac_try="$ac_link" 2792case "(($ac_try" in 2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2794 *) ac_try_echo=$ac_try;; 2795esac 2796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2797$as_echo "$ac_try_echo"; } >&5 2798 (eval "$ac_link") 2>&5 2799 ac_status=$? 2800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2801 test $ac_status = 0; } 2802 if { ac_try='./conftest$ac_cv_exeext' 2803 { { case "(($ac_try" in 2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2805 *) ac_try_echo=$ac_try;; 2806esac 2807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2808$as_echo "$ac_try_echo"; } >&5 2809 (eval "$ac_try") 2>&5 2810 ac_status=$? 2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2812 test $ac_status = 0; }; }; then 2813 cross_compiling=no 2814 else 2815 if test "$cross_compiling" = maybe; then 2816 cross_compiling=yes 2817 else 2818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2820as_fn_error $? "cannot run C compiled programs. 2821If you meant to cross compile, use \`--host'. 2822See \`config.log' for more details" "$LINENO" 5; } 2823 fi 2824 fi 2825fi 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2827$as_echo "$cross_compiling" >&6; } 2828 2829rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2830ac_clean_files=$ac_clean_files_save 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2832$as_echo_n "checking for suffix of object files... " >&6; } 2833if ${ac_cv_objext+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2837/* end confdefs.h. */ 2838 2839int 2840main () 2841{ 2842 2843 ; 2844 return 0; 2845} 2846_ACEOF 2847rm -f conftest.o conftest.obj 2848if { { ac_try="$ac_compile" 2849case "(($ac_try" in 2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2851 *) ac_try_echo=$ac_try;; 2852esac 2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2854$as_echo "$ac_try_echo"; } >&5 2855 (eval "$ac_compile") 2>&5 2856 ac_status=$? 2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2858 test $ac_status = 0; }; then : 2859 for ac_file in conftest.o conftest.obj conftest.*; do 2860 test -f "$ac_file" || continue; 2861 case $ac_file in 2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2864 break;; 2865 esac 2866done 2867else 2868 $as_echo "$as_me: failed program was:" >&5 2869sed 's/^/| /' conftest.$ac_ext >&5 2870 2871{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2873as_fn_error $? "cannot compute suffix of object files: cannot compile 2874See \`config.log' for more details" "$LINENO" 5; } 2875fi 2876rm -f conftest.$ac_cv_objext conftest.$ac_ext 2877fi 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2879$as_echo "$ac_cv_objext" >&6; } 2880OBJEXT=$ac_cv_objext 2881ac_objext=$OBJEXT 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2883$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2884if ${ac_cv_c_compiler_gnu+:} false; then : 2885 $as_echo_n "(cached) " >&6 2886else 2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2888/* end confdefs.h. */ 2889 2890int 2891main () 2892{ 2893#ifndef __GNUC__ 2894 choke me 2895#endif 2896 2897 ; 2898 return 0; 2899} 2900_ACEOF 2901if ac_fn_c_try_compile "$LINENO"; then : 2902 ac_compiler_gnu=yes 2903else 2904 ac_compiler_gnu=no 2905fi 2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2907ac_cv_c_compiler_gnu=$ac_compiler_gnu 2908 2909fi 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2911$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2912if test $ac_compiler_gnu = yes; then 2913 GCC=yes 2914else 2915 GCC= 2916fi 2917ac_test_CFLAGS=${CFLAGS+set} 2918ac_save_CFLAGS=$CFLAGS 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2920$as_echo_n "checking whether $CC accepts -g... " >&6; } 2921if ${ac_cv_prog_cc_g+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 ac_save_c_werror_flag=$ac_c_werror_flag 2925 ac_c_werror_flag=yes 2926 ac_cv_prog_cc_g=no 2927 CFLAGS="-g" 2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2929/* end confdefs.h. */ 2930 2931int 2932main () 2933{ 2934 2935 ; 2936 return 0; 2937} 2938_ACEOF 2939if ac_fn_c_try_compile "$LINENO"; then : 2940 ac_cv_prog_cc_g=yes 2941else 2942 CFLAGS="" 2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2944/* end confdefs.h. */ 2945 2946int 2947main () 2948{ 2949 2950 ; 2951 return 0; 2952} 2953_ACEOF 2954if ac_fn_c_try_compile "$LINENO"; then : 2955 2956else 2957 ac_c_werror_flag=$ac_save_c_werror_flag 2958 CFLAGS="-g" 2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2960/* end confdefs.h. */ 2961 2962int 2963main () 2964{ 2965 2966 ; 2967 return 0; 2968} 2969_ACEOF 2970if ac_fn_c_try_compile "$LINENO"; then : 2971 ac_cv_prog_cc_g=yes 2972fi 2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2974fi 2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2976fi 2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2978 ac_c_werror_flag=$ac_save_c_werror_flag 2979fi 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2981$as_echo "$ac_cv_prog_cc_g" >&6; } 2982if test "$ac_test_CFLAGS" = set; then 2983 CFLAGS=$ac_save_CFLAGS 2984elif test $ac_cv_prog_cc_g = yes; then 2985 if test "$GCC" = yes; then 2986 CFLAGS="-g -O2" 2987 else 2988 CFLAGS="-g" 2989 fi 2990else 2991 if test "$GCC" = yes; then 2992 CFLAGS="-O2" 2993 else 2994 CFLAGS= 2995 fi 2996fi 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2998$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2999if ${ac_cv_prog_cc_c89+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001else 3002 ac_cv_prog_cc_c89=no 3003ac_save_CC=$CC 3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3005/* end confdefs.h. */ 3006#include <stdarg.h> 3007#include <stdio.h> 3008struct stat; 3009/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3010struct buf { int x; }; 3011FILE * (*rcsopen) (struct buf *, struct stat *, int); 3012static char *e (p, i) 3013 char **p; 3014 int i; 3015{ 3016 return p[i]; 3017} 3018static char *f (char * (*g) (char **, int), char **p, ...) 3019{ 3020 char *s; 3021 va_list v; 3022 va_start (v,p); 3023 s = g (p, va_arg (v,int)); 3024 va_end (v); 3025 return s; 3026} 3027 3028/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3029 function prototypes and stuff, but not '\xHH' hex character constants. 3030 These don't provoke an error unfortunately, instead are silently treated 3031 as 'x'. The following induces an error, until -std is added to get 3032 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3033 array size at least. It's necessary to write '\x00'==0 to get something 3034 that's true only with -std. */ 3035int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3036 3037/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3038 inside strings and character constants. */ 3039#define FOO(x) 'x' 3040int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3041 3042int test (int i, double x); 3043struct s1 {int (*f) (int a);}; 3044struct s2 {int (*f) (double a);}; 3045int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3046int argc; 3047char **argv; 3048int 3049main () 3050{ 3051return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3052 ; 3053 return 0; 3054} 3055_ACEOF 3056for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3057 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3058do 3059 CC="$ac_save_CC $ac_arg" 3060 if ac_fn_c_try_compile "$LINENO"; then : 3061 ac_cv_prog_cc_c89=$ac_arg 3062fi 3063rm -f core conftest.err conftest.$ac_objext 3064 test "x$ac_cv_prog_cc_c89" != "xno" && break 3065done 3066rm -f conftest.$ac_ext 3067CC=$ac_save_CC 3068 3069fi 3070# AC_CACHE_VAL 3071case "x$ac_cv_prog_cc_c89" in 3072 x) 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3074$as_echo "none needed" >&6; } ;; 3075 xno) 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3077$as_echo "unsupported" >&6; } ;; 3078 *) 3079 CC="$CC $ac_cv_prog_cc_c89" 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3081$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3082esac 3083if test "x$ac_cv_prog_cc_c89" != xno; then : 3084 3085fi 3086 3087ac_ext=c 3088ac_cpp='$CPP $CPPFLAGS' 3089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3091ac_compiler_gnu=$ac_cv_c_compiler_gnu 3092 3093ac_ext=c 3094ac_cpp='$CPP $CPPFLAGS' 3095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3097ac_compiler_gnu=$ac_cv_c_compiler_gnu 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3099$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3100if ${am_cv_prog_cc_c_o+:} false; then : 3101 $as_echo_n "(cached) " >&6 3102else 3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3104/* end confdefs.h. */ 3105 3106int 3107main () 3108{ 3109 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114 # Make sure it works both with $CC and with simple cc. 3115 # Following AC_PROG_CC_C_O, we do the test twice because some 3116 # compilers refuse to overwrite an existing .o file with -o, 3117 # though they will create one. 3118 am_cv_prog_cc_c_o=yes 3119 for am_i in 1 2; do 3120 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3121 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3122 ac_status=$? 3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3124 (exit $ac_status); } \ 3125 && test -f conftest2.$ac_objext; then 3126 : OK 3127 else 3128 am_cv_prog_cc_c_o=no 3129 break 3130 fi 3131 done 3132 rm -f core conftest* 3133 unset am_i 3134fi 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3136$as_echo "$am_cv_prog_cc_c_o" >&6; } 3137if test "$am_cv_prog_cc_c_o" != yes; then 3138 # Losing compiler, so override with the script. 3139 # FIXME: It is wrong to rewrite CC. 3140 # But if we don't then we get into trouble of one sort or another. 3141 # A longer-term fix would be to have automake use am__CC in this case, 3142 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3143 CC="$am_aux_dir/compile $CC" 3144fi 3145ac_ext=c 3146ac_cpp='$CPP $CPPFLAGS' 3147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3149ac_compiler_gnu=$ac_cv_c_compiler_gnu 3150 3151 3152 3153# Check whether --enable-largefile was given. 3154if test "${enable_largefile+set}" = set; then : 3155 enableval=$enable_largefile; 3156fi 3157 3158if test "$enable_largefile" != no; then 3159 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 3161$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 3162if ${ac_cv_sys_largefile_CC+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 ac_cv_sys_largefile_CC=no 3166 if test "$GCC" != yes; then 3167 ac_save_CC=$CC 3168 while :; do 3169 # IRIX 6.2 and later do not support large files by default, 3170 # so use the C compiler's -n32 option if that helps. 3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3172/* end confdefs.h. */ 3173#include <sys/types.h> 3174 /* Check that off_t can represent 2**63 - 1 correctly. 3175 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3176 since some C++ compilers masquerading as C compilers 3177 incorrectly reject 9223372036854775807. */ 3178#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3180 && LARGE_OFF_T % 2147483647 == 1) 3181 ? 1 : -1]; 3182int 3183main () 3184{ 3185 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190 if ac_fn_c_try_compile "$LINENO"; then : 3191 break 3192fi 3193rm -f core conftest.err conftest.$ac_objext 3194 CC="$CC -n32" 3195 if ac_fn_c_try_compile "$LINENO"; then : 3196 ac_cv_sys_largefile_CC=' -n32'; break 3197fi 3198rm -f core conftest.err conftest.$ac_objext 3199 break 3200 done 3201 CC=$ac_save_CC 3202 rm -f conftest.$ac_ext 3203 fi 3204fi 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 3206$as_echo "$ac_cv_sys_largefile_CC" >&6; } 3207 if test "$ac_cv_sys_largefile_CC" != no; then 3208 CC=$CC$ac_cv_sys_largefile_CC 3209 fi 3210 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3212$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 3213if ${ac_cv_sys_file_offset_bits+:} false; then : 3214 $as_echo_n "(cached) " >&6 3215else 3216 while :; do 3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3218/* end confdefs.h. */ 3219#include <sys/types.h> 3220 /* Check that off_t can represent 2**63 - 1 correctly. 3221 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3222 since some C++ compilers masquerading as C compilers 3223 incorrectly reject 9223372036854775807. */ 3224#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3226 && LARGE_OFF_T % 2147483647 == 1) 3227 ? 1 : -1]; 3228int 3229main () 3230{ 3231 3232 ; 3233 return 0; 3234} 3235_ACEOF 3236if ac_fn_c_try_compile "$LINENO"; then : 3237 ac_cv_sys_file_offset_bits=no; break 3238fi 3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3241/* end confdefs.h. */ 3242#define _FILE_OFFSET_BITS 64 3243#include <sys/types.h> 3244 /* Check that off_t can represent 2**63 - 1 correctly. 3245 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3246 since some C++ compilers masquerading as C compilers 3247 incorrectly reject 9223372036854775807. */ 3248#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3250 && LARGE_OFF_T % 2147483647 == 1) 3251 ? 1 : -1]; 3252int 3253main () 3254{ 3255 3256 ; 3257 return 0; 3258} 3259_ACEOF 3260if ac_fn_c_try_compile "$LINENO"; then : 3261 ac_cv_sys_file_offset_bits=64; break 3262fi 3263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3264 ac_cv_sys_file_offset_bits=unknown 3265 break 3266done 3267fi 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 3269$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 3270case $ac_cv_sys_file_offset_bits in #( 3271 no | unknown) ;; 3272 *) 3273cat >>confdefs.h <<_ACEOF 3274#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3275_ACEOF 3276;; 3277esac 3278rm -rf conftest* 3279 if test $ac_cv_sys_file_offset_bits = unknown; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 3281$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 3282if ${ac_cv_sys_large_files+:} false; then : 3283 $as_echo_n "(cached) " >&6 3284else 3285 while :; do 3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3287/* end confdefs.h. */ 3288#include <sys/types.h> 3289 /* Check that off_t can represent 2**63 - 1 correctly. 3290 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3291 since some C++ compilers masquerading as C compilers 3292 incorrectly reject 9223372036854775807. */ 3293#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3295 && LARGE_OFF_T % 2147483647 == 1) 3296 ? 1 : -1]; 3297int 3298main () 3299{ 3300 3301 ; 3302 return 0; 3303} 3304_ACEOF 3305if ac_fn_c_try_compile "$LINENO"; then : 3306 ac_cv_sys_large_files=no; break 3307fi 3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3310/* end confdefs.h. */ 3311#define _LARGE_FILES 1 3312#include <sys/types.h> 3313 /* Check that off_t can represent 2**63 - 1 correctly. 3314 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3315 since some C++ compilers masquerading as C compilers 3316 incorrectly reject 9223372036854775807. */ 3317#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3319 && LARGE_OFF_T % 2147483647 == 1) 3320 ? 1 : -1]; 3321int 3322main () 3323{ 3324 3325 ; 3326 return 0; 3327} 3328_ACEOF 3329if ac_fn_c_try_compile "$LINENO"; then : 3330 ac_cv_sys_large_files=1; break 3331fi 3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3333 ac_cv_sys_large_files=unknown 3334 break 3335done 3336fi 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 3338$as_echo "$ac_cv_sys_large_files" >&6; } 3339case $ac_cv_sys_large_files in #( 3340 no | unknown) ;; 3341 *) 3342cat >>confdefs.h <<_ACEOF 3343#define _LARGE_FILES $ac_cv_sys_large_files 3344_ACEOF 3345;; 3346esac 3347rm -rf conftest* 3348 fi 3349 3350 3351fi 3352 3353 3354# Initialize Automake 3355am__api_version='1.15' 3356 3357# Find a good install program. We prefer a C program (faster), 3358# so one script is as good as another. But avoid the broken or 3359# incompatible versions: 3360# SysV /etc/install, /usr/sbin/install 3361# SunOS /usr/etc/install 3362# IRIX /sbin/install 3363# AIX /bin/install 3364# AmigaOS /C/install, which installs bootblocks on floppy discs 3365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3366# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3368# OS/2's system install, which has a completely different semantic 3369# ./install, which can be erroneously created by make from ./install.sh. 3370# Reject install programs that cannot install multiple files. 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3372$as_echo_n "checking for a BSD-compatible install... " >&6; } 3373if test -z "$INSTALL"; then 3374if ${ac_cv_path_install+:} false; then : 3375 $as_echo_n "(cached) " >&6 3376else 3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3378for as_dir in $PATH 3379do 3380 IFS=$as_save_IFS 3381 test -z "$as_dir" && as_dir=. 3382 # Account for people who put trailing slashes in PATH elements. 3383case $as_dir/ in #(( 3384 ./ | .// | /[cC]/* | \ 3385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3387 /usr/ucb/* ) ;; 3388 *) 3389 # OSF1 and SCO ODT 3.0 have their own names for install. 3390 # Don't use installbsd from OSF since it installs stuff as root 3391 # by default. 3392 for ac_prog in ginstall scoinst install; do 3393 for ac_exec_ext in '' $ac_executable_extensions; do 3394 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3395 if test $ac_prog = install && 3396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3397 # AIX install. It has an incompatible calling convention. 3398 : 3399 elif test $ac_prog = install && 3400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3401 # program-specific install script used by HP pwplus--don't use. 3402 : 3403 else 3404 rm -rf conftest.one conftest.two conftest.dir 3405 echo one > conftest.one 3406 echo two > conftest.two 3407 mkdir conftest.dir 3408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3409 test -s conftest.one && test -s conftest.two && 3410 test -s conftest.dir/conftest.one && 3411 test -s conftest.dir/conftest.two 3412 then 3413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3414 break 3 3415 fi 3416 fi 3417 fi 3418 done 3419 done 3420 ;; 3421esac 3422 3423 done 3424IFS=$as_save_IFS 3425 3426rm -rf conftest.one conftest.two conftest.dir 3427 3428fi 3429 if test "${ac_cv_path_install+set}" = set; then 3430 INSTALL=$ac_cv_path_install 3431 else 3432 # As a last resort, use the slow shell script. Don't cache a 3433 # value for INSTALL within a source directory, because that will 3434 # break other packages using the cache if that directory is 3435 # removed, or if the value is a relative name. 3436 INSTALL=$ac_install_sh 3437 fi 3438fi 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3440$as_echo "$INSTALL" >&6; } 3441 3442# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3443# It thinks the first close brace ends the variable substitution. 3444test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3445 3446test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3447 3448test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3449 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3451$as_echo_n "checking whether build environment is sane... " >&6; } 3452# Reject unsafe characters in $srcdir or the absolute working directory 3453# name. Accept space and tab only in the latter. 3454am_lf=' 3455' 3456case `pwd` in 3457 *[\\\"\#\$\&\'\`$am_lf]*) 3458 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3459esac 3460case $srcdir in 3461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3462 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3463esac 3464 3465# Do 'set' in a subshell so we don't clobber the current shell's 3466# arguments. Must try -L first in case configure is actually a 3467# symlink; some systems play weird games with the mod time of symlinks 3468# (eg FreeBSD returns the mod time of the symlink's containing 3469# directory). 3470if ( 3471 am_has_slept=no 3472 for am_try in 1 2; do 3473 echo "timestamp, slept: $am_has_slept" > conftest.file 3474 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3475 if test "$*" = "X"; then 3476 # -L didn't work. 3477 set X `ls -t "$srcdir/configure" conftest.file` 3478 fi 3479 if test "$*" != "X $srcdir/configure conftest.file" \ 3480 && test "$*" != "X conftest.file $srcdir/configure"; then 3481 3482 # If neither matched, then we have a broken ls. This can happen 3483 # if, for instance, CONFIG_SHELL is bash and it inherits a 3484 # broken ls alias from the environment. This has actually 3485 # happened. Such a system could not be considered "sane". 3486 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3487 alias in your environment" "$LINENO" 5 3488 fi 3489 if test "$2" = conftest.file || test $am_try -eq 2; then 3490 break 3491 fi 3492 # Just in case. 3493 sleep 1 3494 am_has_slept=yes 3495 done 3496 test "$2" = conftest.file 3497 ) 3498then 3499 # Ok. 3500 : 3501else 3502 as_fn_error $? "newly created file is older than distributed files! 3503Check your system clock" "$LINENO" 5 3504fi 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3506$as_echo "yes" >&6; } 3507# If we didn't sleep, we still need to ensure time stamps of config.status and 3508# generated files are strictly newer. 3509am_sleep_pid= 3510if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3511 ( sleep 1 ) & 3512 am_sleep_pid=$! 3513fi 3514 3515rm -f conftest.file 3516 3517test "$program_prefix" != NONE && 3518 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3519# Use a double $ so make ignores it. 3520test "$program_suffix" != NONE && 3521 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3522# Double any \ or $. 3523# By default was `s,x,x', remove it if useless. 3524ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3525program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3526 3527if test x"${MISSING+set}" != xset; then 3528 case $am_aux_dir in 3529 *\ * | *\ *) 3530 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3531 *) 3532 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3533 esac 3534fi 3535# Use eval to expand $SHELL 3536if eval "$MISSING --is-lightweight"; then 3537 am_missing_run="$MISSING " 3538else 3539 am_missing_run= 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3541$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3542fi 3543 3544if test x"${install_sh+set}" != xset; then 3545 case $am_aux_dir in 3546 *\ * | *\ *) 3547 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3548 *) 3549 install_sh="\${SHELL} $am_aux_dir/install-sh" 3550 esac 3551fi 3552 3553# Installed binaries are usually stripped using 'strip' when the user 3554# run "make install-strip". However 'strip' might not be the right 3555# tool to use in cross-compilation environments, therefore Automake 3556# will honor the 'STRIP' environment variable to overrule this program. 3557if test "$cross_compiling" != no; then 3558 if test -n "$ac_tool_prefix"; then 3559 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3560set dummy ${ac_tool_prefix}strip; ac_word=$2 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3562$as_echo_n "checking for $ac_word... " >&6; } 3563if ${ac_cv_prog_STRIP+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 if test -n "$STRIP"; then 3567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3568else 3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3570for as_dir in $PATH 3571do 3572 IFS=$as_save_IFS 3573 test -z "$as_dir" && as_dir=. 3574 for ac_exec_ext in '' $ac_executable_extensions; do 3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3576 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3578 break 2 3579 fi 3580done 3581 done 3582IFS=$as_save_IFS 3583 3584fi 3585fi 3586STRIP=$ac_cv_prog_STRIP 3587if test -n "$STRIP"; then 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3589$as_echo "$STRIP" >&6; } 3590else 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3592$as_echo "no" >&6; } 3593fi 3594 3595 3596fi 3597if test -z "$ac_cv_prog_STRIP"; then 3598 ac_ct_STRIP=$STRIP 3599 # Extract the first word of "strip", so it can be a program name with args. 3600set dummy strip; ac_word=$2 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3602$as_echo_n "checking for $ac_word... " >&6; } 3603if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3604 $as_echo_n "(cached) " >&6 3605else 3606 if test -n "$ac_ct_STRIP"; then 3607 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3608else 3609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3610for as_dir in $PATH 3611do 3612 IFS=$as_save_IFS 3613 test -z "$as_dir" && as_dir=. 3614 for ac_exec_ext in '' $ac_executable_extensions; do 3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3616 ac_cv_prog_ac_ct_STRIP="strip" 3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3618 break 2 3619 fi 3620done 3621 done 3622IFS=$as_save_IFS 3623 3624fi 3625fi 3626ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3627if test -n "$ac_ct_STRIP"; then 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3629$as_echo "$ac_ct_STRIP" >&6; } 3630else 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3632$as_echo "no" >&6; } 3633fi 3634 3635 if test "x$ac_ct_STRIP" = x; then 3636 STRIP=":" 3637 else 3638 case $cross_compiling:$ac_tool_warned in 3639yes:) 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3642ac_tool_warned=yes ;; 3643esac 3644 STRIP=$ac_ct_STRIP 3645 fi 3646else 3647 STRIP="$ac_cv_prog_STRIP" 3648fi 3649 3650fi 3651INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3652 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3654$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3655if test -z "$MKDIR_P"; then 3656 if ${ac_cv_path_mkdir+:} false; then : 3657 $as_echo_n "(cached) " >&6 3658else 3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3660for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3661do 3662 IFS=$as_save_IFS 3663 test -z "$as_dir" && as_dir=. 3664 for ac_prog in mkdir gmkdir; do 3665 for ac_exec_ext in '' $ac_executable_extensions; do 3666 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3667 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3668 'mkdir (GNU coreutils) '* | \ 3669 'mkdir (coreutils) '* | \ 3670 'mkdir (fileutils) '4.1*) 3671 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3672 break 3;; 3673 esac 3674 done 3675 done 3676 done 3677IFS=$as_save_IFS 3678 3679fi 3680 3681 test -d ./--version && rmdir ./--version 3682 if test "${ac_cv_path_mkdir+set}" = set; then 3683 MKDIR_P="$ac_cv_path_mkdir -p" 3684 else 3685 # As a last resort, use the slow shell script. Don't cache a 3686 # value for MKDIR_P within a source directory, because that will 3687 # break other packages using the cache if that directory is 3688 # removed, or if the value is a relative name. 3689 MKDIR_P="$ac_install_sh -d" 3690 fi 3691fi 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3693$as_echo "$MKDIR_P" >&6; } 3694 3695for ac_prog in gawk mawk nawk awk 3696do 3697 # Extract the first word of "$ac_prog", so it can be a program name with args. 3698set dummy $ac_prog; ac_word=$2 3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3700$as_echo_n "checking for $ac_word... " >&6; } 3701if ${ac_cv_prog_AWK+:} false; then : 3702 $as_echo_n "(cached) " >&6 3703else 3704 if test -n "$AWK"; then 3705 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3706else 3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3708for as_dir in $PATH 3709do 3710 IFS=$as_save_IFS 3711 test -z "$as_dir" && as_dir=. 3712 for ac_exec_ext in '' $ac_executable_extensions; do 3713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3714 ac_cv_prog_AWK="$ac_prog" 3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3716 break 2 3717 fi 3718done 3719 done 3720IFS=$as_save_IFS 3721 3722fi 3723fi 3724AWK=$ac_cv_prog_AWK 3725if test -n "$AWK"; then 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3727$as_echo "$AWK" >&6; } 3728else 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3730$as_echo "no" >&6; } 3731fi 3732 3733 3734 test -n "$AWK" && break 3735done 3736 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3738$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3739set x ${MAKE-make} 3740ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3741if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 cat >conftest.make <<\_ACEOF 3745SHELL = /bin/sh 3746all: 3747 @echo '@@@%%%=$(MAKE)=@@@%%%' 3748_ACEOF 3749# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3750case `${MAKE-make} -f conftest.make 2>/dev/null` in 3751 *@@@%%%=?*=@@@%%%*) 3752 eval ac_cv_prog_make_${ac_make}_set=yes;; 3753 *) 3754 eval ac_cv_prog_make_${ac_make}_set=no;; 3755esac 3756rm -f conftest.make 3757fi 3758if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3760$as_echo "yes" >&6; } 3761 SET_MAKE= 3762else 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3764$as_echo "no" >&6; } 3765 SET_MAKE="MAKE=${MAKE-make}" 3766fi 3767 3768rm -rf .tst 2>/dev/null 3769mkdir .tst 2>/dev/null 3770if test -d .tst; then 3771 am__leading_dot=. 3772else 3773 am__leading_dot=_ 3774fi 3775rmdir .tst 2>/dev/null 3776 3777DEPDIR="${am__leading_dot}deps" 3778 3779ac_config_commands="$ac_config_commands depfiles" 3780 3781 3782am_make=${MAKE-make} 3783cat > confinc << 'END' 3784am__doit: 3785 @echo this is the am__doit target 3786.PHONY: am__doit 3787END 3788# If we don't find an include directive, just comment out the code. 3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3790$as_echo_n "checking for style of include used by $am_make... " >&6; } 3791am__include="#" 3792am__quote= 3793_am_result=none 3794# First try GNU make style include. 3795echo "include confinc" > confmf 3796# Ignore all kinds of additional output from 'make'. 3797case `$am_make -s -f confmf 2> /dev/null` in #( 3798*the\ am__doit\ target*) 3799 am__include=include 3800 am__quote= 3801 _am_result=GNU 3802 ;; 3803esac 3804# Now try BSD make style include. 3805if test "$am__include" = "#"; then 3806 echo '.include "confinc"' > confmf 3807 case `$am_make -s -f confmf 2> /dev/null` in #( 3808 *the\ am__doit\ target*) 3809 am__include=.include 3810 am__quote="\"" 3811 _am_result=BSD 3812 ;; 3813 esac 3814fi 3815 3816 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3818$as_echo "$_am_result" >&6; } 3819rm -f confinc confmf 3820 3821# Check whether --enable-dependency-tracking was given. 3822if test "${enable_dependency_tracking+set}" = set; then : 3823 enableval=$enable_dependency_tracking; 3824fi 3825 3826if test "x$enable_dependency_tracking" != xno; then 3827 am_depcomp="$ac_aux_dir/depcomp" 3828 AMDEPBACKSLASH='\' 3829 am__nodep='_no' 3830fi 3831 if test "x$enable_dependency_tracking" != xno; then 3832 AMDEP_TRUE= 3833 AMDEP_FALSE='#' 3834else 3835 AMDEP_TRUE='#' 3836 AMDEP_FALSE= 3837fi 3838 3839 3840# Check whether --enable-silent-rules was given. 3841if test "${enable_silent_rules+set}" = set; then : 3842 enableval=$enable_silent_rules; 3843fi 3844 3845case $enable_silent_rules in # ((( 3846 yes) AM_DEFAULT_VERBOSITY=0;; 3847 no) AM_DEFAULT_VERBOSITY=1;; 3848 *) AM_DEFAULT_VERBOSITY=1;; 3849esac 3850am_make=${MAKE-make} 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3852$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3853if ${am_cv_make_support_nested_variables+:} false; then : 3854 $as_echo_n "(cached) " >&6 3855else 3856 if $as_echo 'TRUE=$(BAR$(V)) 3857BAR0=false 3858BAR1=true 3859V=1 3860am__doit: 3861 @$(TRUE) 3862.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3863 am_cv_make_support_nested_variables=yes 3864else 3865 am_cv_make_support_nested_variables=no 3866fi 3867fi 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3869$as_echo "$am_cv_make_support_nested_variables" >&6; } 3870if test $am_cv_make_support_nested_variables = yes; then 3871 AM_V='$(V)' 3872 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3873else 3874 AM_V=$AM_DEFAULT_VERBOSITY 3875 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3876fi 3877AM_BACKSLASH='\' 3878 3879if test "`cd $srcdir && pwd`" != "`pwd`"; then 3880 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3881 # is not polluted with repeated "-I." 3882 am__isrc=' -I$(srcdir)' 3883 # test to see if srcdir already configured 3884 if test -f $srcdir/config.status; then 3885 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3886 fi 3887fi 3888 3889# test whether we have cygpath 3890if test -z "$CYGPATH_W"; then 3891 if (cygpath --version) >/dev/null 2>/dev/null; then 3892 CYGPATH_W='cygpath -w' 3893 else 3894 CYGPATH_W=echo 3895 fi 3896fi 3897 3898 3899# Define the identity of the package. 3900 PACKAGE='xf86-video-vmware' 3901 VERSION='13.2.1' 3902 3903 3904cat >>confdefs.h <<_ACEOF 3905#define PACKAGE "$PACKAGE" 3906_ACEOF 3907 3908 3909cat >>confdefs.h <<_ACEOF 3910#define VERSION "$VERSION" 3911_ACEOF 3912 3913# Some tools Automake needs. 3914 3915ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3916 3917 3918AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3919 3920 3921AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3922 3923 3924AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3925 3926 3927MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3928 3929# For better backward compatibility. To be removed once Automake 1.9.x 3930# dies out for good. For more background, see: 3931# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3932# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3933mkdir_p='$(MKDIR_P)' 3934 3935# We need awk for the "check" target (and possibly the TAP driver). The 3936# system "awk" is bad on some platforms. 3937# Always define AMTAR for backward compatibility. Yes, it's still used 3938# in the wild :-( We should find a proper way to deprecate it ... 3939AMTAR='$${TAR-tar}' 3940 3941 3942# We'll loop over all known methods to create a tar archive until one works. 3943_am_tools='gnutar pax cpio none' 3944 3945am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3946 3947 3948 3949 3950 3951depcc="$CC" am_compiler_list= 3952 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3954$as_echo_n "checking dependency style of $depcc... " >&6; } 3955if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3959 # We make a subdir and do the tests there. Otherwise we can end up 3960 # making bogus files that we don't know about and never remove. For 3961 # instance it was reported that on HP-UX the gcc test will end up 3962 # making a dummy file named 'D' -- because '-MD' means "put the output 3963 # in D". 3964 rm -rf conftest.dir 3965 mkdir conftest.dir 3966 # Copy depcomp to subdir because otherwise we won't find it if we're 3967 # using a relative directory. 3968 cp "$am_depcomp" conftest.dir 3969 cd conftest.dir 3970 # We will build objects and dependencies in a subdirectory because 3971 # it helps to detect inapplicable dependency modes. For instance 3972 # both Tru64's cc and ICC support -MD to output dependencies as a 3973 # side effect of compilation, but ICC will put the dependencies in 3974 # the current directory while Tru64 will put them in the object 3975 # directory. 3976 mkdir sub 3977 3978 am_cv_CC_dependencies_compiler_type=none 3979 if test "$am_compiler_list" = ""; then 3980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3981 fi 3982 am__universal=false 3983 case " $depcc " in #( 3984 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3985 esac 3986 3987 for depmode in $am_compiler_list; do 3988 # Setup a source with many dependencies, because some compilers 3989 # like to wrap large dependency lists on column 80 (with \), and 3990 # we should not choose a depcomp mode which is confused by this. 3991 # 3992 # We need to recreate these files for each test, as the compiler may 3993 # overwrite some of them when testing with obscure command lines. 3994 # This happens at least with the AIX C compiler. 3995 : > sub/conftest.c 3996 for i in 1 2 3 4 5 6; do 3997 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3998 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3999 # Solaris 10 /bin/sh. 4000 echo '/* dummy */' > sub/conftst$i.h 4001 done 4002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4003 4004 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4005 # mode. It turns out that the SunPro C++ compiler does not properly 4006 # handle '-M -o', and we need to detect this. Also, some Intel 4007 # versions had trouble with output in subdirs. 4008 am__obj=sub/conftest.${OBJEXT-o} 4009 am__minus_obj="-o $am__obj" 4010 case $depmode in 4011 gcc) 4012 # This depmode causes a compiler race in universal mode. 4013 test "$am__universal" = false || continue 4014 ;; 4015 nosideeffect) 4016 # After this tag, mechanisms are not by side-effect, so they'll 4017 # only be used when explicitly requested. 4018 if test "x$enable_dependency_tracking" = xyes; then 4019 continue 4020 else 4021 break 4022 fi 4023 ;; 4024 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4025 # This compiler won't grok '-c -o', but also, the minuso test has 4026 # not run yet. These depmodes are late enough in the game, and 4027 # so weak that their functioning should not be impacted. 4028 am__obj=conftest.${OBJEXT-o} 4029 am__minus_obj= 4030 ;; 4031 none) break ;; 4032 esac 4033 if depmode=$depmode \ 4034 source=sub/conftest.c object=$am__obj \ 4035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4037 >/dev/null 2>conftest.err && 4038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4042 # icc doesn't choke on unknown options, it will just issue warnings 4043 # or remarks (even with -Werror). So we grep stderr for any message 4044 # that says an option was ignored or not supported. 4045 # When given -MP, icc 7.0 and 7.1 complain thusly: 4046 # icc: Command line warning: ignoring option '-M'; no argument required 4047 # The diagnosis changed in icc 8.0: 4048 # icc: Command line remark: option '-MP' not supported 4049 if (grep 'ignoring option' conftest.err || 4050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4051 am_cv_CC_dependencies_compiler_type=$depmode 4052 break 4053 fi 4054 fi 4055 done 4056 4057 cd .. 4058 rm -rf conftest.dir 4059else 4060 am_cv_CC_dependencies_compiler_type=none 4061fi 4062 4063fi 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4065$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4066CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4067 4068 if 4069 test "x$enable_dependency_tracking" != xno \ 4070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4071 am__fastdepCC_TRUE= 4072 am__fastdepCC_FALSE='#' 4073else 4074 am__fastdepCC_TRUE='#' 4075 am__fastdepCC_FALSE= 4076fi 4077 4078 4079 4080# POSIX will say in a future version that running "rm -f" with no argument 4081# is OK; and we want to be able to make that assumption in our Makefile 4082# recipes. So use an aggressive probe to check that the usage we want is 4083# actually supported "in the wild" to an acceptable degree. 4084# See automake bug#10828. 4085# To make any issue more visible, cause the running configure to be aborted 4086# by default if the 'rm' program in use doesn't match our expectations; the 4087# user can still override this though. 4088if rm -f && rm -fr && rm -rf; then : OK; else 4089 cat >&2 <<'END' 4090Oops! 4091 4092Your 'rm' program seems unable to run without file operands specified 4093on the command line, even when the '-f' option is present. This is contrary 4094to the behaviour of most rm programs out there, and not conforming with 4095the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4096 4097Please tell bug-automake@gnu.org about your system, including the value 4098of your $PATH and any error possibly output before this message. This 4099can help us improve future automake versions. 4100 4101END 4102 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4103 echo 'Configuration will proceed anyway, since you have set the' >&2 4104 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4105 echo >&2 4106 else 4107 cat >&2 <<'END' 4108Aborting the configuration process, to ensure you take notice of the issue. 4109 4110You can download and install GNU coreutils to get an 'rm' implementation 4111that behaves properly: <http://www.gnu.org/software/coreutils/>. 4112 4113If you want to complete the configuration process using your problematic 4114'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4115to "yes", and re-run configure. 4116 4117END 4118 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4119 fi 4120fi 4121 4122 4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4124$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4125 # Check whether --enable-maintainer-mode was given. 4126if test "${enable_maintainer_mode+set}" = set; then : 4127 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4128else 4129 USE_MAINTAINER_MODE=no 4130fi 4131 4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4133$as_echo "$USE_MAINTAINER_MODE" >&6; } 4134 if test $USE_MAINTAINER_MODE = yes; then 4135 MAINTAINER_MODE_TRUE= 4136 MAINTAINER_MODE_FALSE='#' 4137else 4138 MAINTAINER_MODE_TRUE='#' 4139 MAINTAINER_MODE_FALSE= 4140fi 4141 4142 MAINT=$MAINTAINER_MODE_TRUE 4143 4144 4145 4146# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4159$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4160if ${ac_cv_prog_cc_c99+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 ac_cv_prog_cc_c99=no 4164ac_save_CC=$CC 4165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166/* end confdefs.h. */ 4167#include <stdarg.h> 4168#include <stdbool.h> 4169#include <stdlib.h> 4170#include <wchar.h> 4171#include <stdio.h> 4172 4173// Check varargs macros. These examples are taken from C99 6.10.3.5. 4174#define debug(...) fprintf (stderr, __VA_ARGS__) 4175#define showlist(...) puts (#__VA_ARGS__) 4176#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4177static void 4178test_varargs_macros (void) 4179{ 4180 int x = 1234; 4181 int y = 5678; 4182 debug ("Flag"); 4183 debug ("X = %d\n", x); 4184 showlist (The first, second, and third items.); 4185 report (x>y, "x is %d but y is %d", x, y); 4186} 4187 4188// Check long long types. 4189#define BIG64 18446744073709551615ull 4190#define BIG32 4294967295ul 4191#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4192#if !BIG_OK 4193 your preprocessor is broken; 4194#endif 4195#if BIG_OK 4196#else 4197 your preprocessor is broken; 4198#endif 4199static long long int bignum = -9223372036854775807LL; 4200static unsigned long long int ubignum = BIG64; 4201 4202struct incomplete_array 4203{ 4204 int datasize; 4205 double data[]; 4206}; 4207 4208struct named_init { 4209 int number; 4210 const wchar_t *name; 4211 double average; 4212}; 4213 4214typedef const char *ccp; 4215 4216static inline int 4217test_restrict (ccp restrict text) 4218{ 4219 // See if C++-style comments work. 4220 // Iterate through items via the restricted pointer. 4221 // Also check for declarations in for loops. 4222 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4223 continue; 4224 return 0; 4225} 4226 4227// Check varargs and va_copy. 4228static void 4229test_varargs (const char *format, ...) 4230{ 4231 va_list args; 4232 va_start (args, format); 4233 va_list args_copy; 4234 va_copy (args_copy, args); 4235 4236 const char *str; 4237 int number; 4238 float fnumber; 4239 4240 while (*format) 4241 { 4242 switch (*format++) 4243 { 4244 case 's': // string 4245 str = va_arg (args_copy, const char *); 4246 break; 4247 case 'd': // int 4248 number = va_arg (args_copy, int); 4249 break; 4250 case 'f': // float 4251 fnumber = va_arg (args_copy, double); 4252 break; 4253 default: 4254 break; 4255 } 4256 } 4257 va_end (args_copy); 4258 va_end (args); 4259} 4260 4261int 4262main () 4263{ 4264 4265 // Check bool. 4266 _Bool success = false; 4267 4268 // Check restrict. 4269 if (test_restrict ("String literal") == 0) 4270 success = true; 4271 char *restrict newvar = "Another string"; 4272 4273 // Check varargs. 4274 test_varargs ("s, d' f .", "string", 65, 34.234); 4275 test_varargs_macros (); 4276 4277 // Check flexible array members. 4278 struct incomplete_array *ia = 4279 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4280 ia->datasize = 10; 4281 for (int i = 0; i < ia->datasize; ++i) 4282 ia->data[i] = i * 1.234; 4283 4284 // Check named initializers. 4285 struct named_init ni = { 4286 .number = 34, 4287 .name = L"Test wide string", 4288 .average = 543.34343, 4289 }; 4290 4291 ni.number = 58; 4292 4293 int dynamic_array[ni.number]; 4294 dynamic_array[ni.number - 1] = 543; 4295 4296 // work around unused variable warnings 4297 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4298 || dynamic_array[ni.number - 1] != 543); 4299 4300 ; 4301 return 0; 4302} 4303_ACEOF 4304for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4305do 4306 CC="$ac_save_CC $ac_arg" 4307 if ac_fn_c_try_compile "$LINENO"; then : 4308 ac_cv_prog_cc_c99=$ac_arg 4309fi 4310rm -f core conftest.err conftest.$ac_objext 4311 test "x$ac_cv_prog_cc_c99" != "xno" && break 4312done 4313rm -f conftest.$ac_ext 4314CC=$ac_save_CC 4315 4316fi 4317# AC_CACHE_VAL 4318case "x$ac_cv_prog_cc_c99" in 4319 x) 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4321$as_echo "none needed" >&6; } ;; 4322 xno) 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4324$as_echo "unsupported" >&6; } ;; 4325 *) 4326 CC="$CC $ac_cv_prog_cc_c99" 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4328$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4329esac 4330if test "x$ac_cv_prog_cc_c99" != xno; then : 4331 4332fi 4333 4334 4335ac_ext=c 4336ac_cpp='$CPP $CPPFLAGS' 4337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4339ac_compiler_gnu=$ac_cv_c_compiler_gnu 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4341$as_echo_n "checking how to run the C preprocessor... " >&6; } 4342# On Suns, sometimes $CPP names a directory. 4343if test -n "$CPP" && test -d "$CPP"; then 4344 CPP= 4345fi 4346if test -z "$CPP"; then 4347 if ${ac_cv_prog_CPP+:} false; then : 4348 $as_echo_n "(cached) " >&6 4349else 4350 # Double quotes because CPP needs to be expanded 4351 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4352 do 4353 ac_preproc_ok=false 4354for ac_c_preproc_warn_flag in '' yes 4355do 4356 # Use a header file that comes with gcc, so configuring glibc 4357 # with a fresh cross-compiler works. 4358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4359 # <limits.h> exists even on freestanding compilers. 4360 # On the NeXT, cc -E runs the code through the compiler's parser, 4361 # not just through cpp. "Syntax error" is here to catch this case. 4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4363/* end confdefs.h. */ 4364#ifdef __STDC__ 4365# include <limits.h> 4366#else 4367# include <assert.h> 4368#endif 4369 Syntax error 4370_ACEOF 4371if ac_fn_c_try_cpp "$LINENO"; then : 4372 4373else 4374 # Broken: fails on valid input. 4375continue 4376fi 4377rm -f conftest.err conftest.i conftest.$ac_ext 4378 4379 # OK, works on sane cases. Now check whether nonexistent headers 4380 # can be detected and how. 4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4382/* end confdefs.h. */ 4383#include <ac_nonexistent.h> 4384_ACEOF 4385if ac_fn_c_try_cpp "$LINENO"; then : 4386 # Broken: success on invalid input. 4387continue 4388else 4389 # Passes both tests. 4390ac_preproc_ok=: 4391break 4392fi 4393rm -f conftest.err conftest.i conftest.$ac_ext 4394 4395done 4396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4397rm -f conftest.i conftest.err conftest.$ac_ext 4398if $ac_preproc_ok; then : 4399 break 4400fi 4401 4402 done 4403 ac_cv_prog_CPP=$CPP 4404 4405fi 4406 CPP=$ac_cv_prog_CPP 4407else 4408 ac_cv_prog_CPP=$CPP 4409fi 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4411$as_echo "$CPP" >&6; } 4412ac_preproc_ok=false 4413for ac_c_preproc_warn_flag in '' yes 4414do 4415 # Use a header file that comes with gcc, so configuring glibc 4416 # with a fresh cross-compiler works. 4417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4418 # <limits.h> exists even on freestanding compilers. 4419 # On the NeXT, cc -E runs the code through the compiler's parser, 4420 # not just through cpp. "Syntax error" is here to catch this case. 4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4422/* end confdefs.h. */ 4423#ifdef __STDC__ 4424# include <limits.h> 4425#else 4426# include <assert.h> 4427#endif 4428 Syntax error 4429_ACEOF 4430if ac_fn_c_try_cpp "$LINENO"; then : 4431 4432else 4433 # Broken: fails on valid input. 4434continue 4435fi 4436rm -f conftest.err conftest.i conftest.$ac_ext 4437 4438 # OK, works on sane cases. Now check whether nonexistent headers 4439 # can be detected and how. 4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441/* end confdefs.h. */ 4442#include <ac_nonexistent.h> 4443_ACEOF 4444if ac_fn_c_try_cpp "$LINENO"; then : 4445 # Broken: success on invalid input. 4446continue 4447else 4448 # Passes both tests. 4449ac_preproc_ok=: 4450break 4451fi 4452rm -f conftest.err conftest.i conftest.$ac_ext 4453 4454done 4455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4456rm -f conftest.i conftest.err conftest.$ac_ext 4457if $ac_preproc_ok; then : 4458 4459else 4460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4462as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4463See \`config.log' for more details" "$LINENO" 5; } 4464fi 4465 4466ac_ext=c 4467ac_cpp='$CPP $CPPFLAGS' 4468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4470ac_compiler_gnu=$ac_cv_c_compiler_gnu 4471 4472 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4474$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4475if ${ac_cv_path_GREP+:} false; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 if test -z "$GREP"; then 4479 ac_path_GREP_found=false 4480 # Loop through the user's path and test for each of PROGNAME-LIST 4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4482for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4483do 4484 IFS=$as_save_IFS 4485 test -z "$as_dir" && as_dir=. 4486 for ac_prog in grep ggrep; do 4487 for ac_exec_ext in '' $ac_executable_extensions; do 4488 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4489 as_fn_executable_p "$ac_path_GREP" || continue 4490# Check for GNU ac_path_GREP and select it if it is found. 4491 # Check for GNU $ac_path_GREP 4492case `"$ac_path_GREP" --version 2>&1` in 4493*GNU*) 4494 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4495*) 4496 ac_count=0 4497 $as_echo_n 0123456789 >"conftest.in" 4498 while : 4499 do 4500 cat "conftest.in" "conftest.in" >"conftest.tmp" 4501 mv "conftest.tmp" "conftest.in" 4502 cp "conftest.in" "conftest.nl" 4503 $as_echo 'GREP' >> "conftest.nl" 4504 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4506 as_fn_arith $ac_count + 1 && ac_count=$as_val 4507 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4508 # Best one so far, save it but keep looking for a better one 4509 ac_cv_path_GREP="$ac_path_GREP" 4510 ac_path_GREP_max=$ac_count 4511 fi 4512 # 10*(2^10) chars as input seems more than enough 4513 test $ac_count -gt 10 && break 4514 done 4515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4516esac 4517 4518 $ac_path_GREP_found && break 3 4519 done 4520 done 4521 done 4522IFS=$as_save_IFS 4523 if test -z "$ac_cv_path_GREP"; then 4524 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4525 fi 4526else 4527 ac_cv_path_GREP=$GREP 4528fi 4529 4530fi 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4532$as_echo "$ac_cv_path_GREP" >&6; } 4533 GREP="$ac_cv_path_GREP" 4534 4535 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4537$as_echo_n "checking for egrep... " >&6; } 4538if ${ac_cv_path_EGREP+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4542 then ac_cv_path_EGREP="$GREP -E" 4543 else 4544 if test -z "$EGREP"; then 4545 ac_path_EGREP_found=false 4546 # Loop through the user's path and test for each of PROGNAME-LIST 4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4548for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4549do 4550 IFS=$as_save_IFS 4551 test -z "$as_dir" && as_dir=. 4552 for ac_prog in egrep; do 4553 for ac_exec_ext in '' $ac_executable_extensions; do 4554 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4555 as_fn_executable_p "$ac_path_EGREP" || continue 4556# Check for GNU ac_path_EGREP and select it if it is found. 4557 # Check for GNU $ac_path_EGREP 4558case `"$ac_path_EGREP" --version 2>&1` in 4559*GNU*) 4560 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4561*) 4562 ac_count=0 4563 $as_echo_n 0123456789 >"conftest.in" 4564 while : 4565 do 4566 cat "conftest.in" "conftest.in" >"conftest.tmp" 4567 mv "conftest.tmp" "conftest.in" 4568 cp "conftest.in" "conftest.nl" 4569 $as_echo 'EGREP' >> "conftest.nl" 4570 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4572 as_fn_arith $ac_count + 1 && ac_count=$as_val 4573 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4574 # Best one so far, save it but keep looking for a better one 4575 ac_cv_path_EGREP="$ac_path_EGREP" 4576 ac_path_EGREP_max=$ac_count 4577 fi 4578 # 10*(2^10) chars as input seems more than enough 4579 test $ac_count -gt 10 && break 4580 done 4581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4582esac 4583 4584 $ac_path_EGREP_found && break 3 4585 done 4586 done 4587 done 4588IFS=$as_save_IFS 4589 if test -z "$ac_cv_path_EGREP"; then 4590 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4591 fi 4592else 4593 ac_cv_path_EGREP=$EGREP 4594fi 4595 4596 fi 4597fi 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4599$as_echo "$ac_cv_path_EGREP" >&6; } 4600 EGREP="$ac_cv_path_EGREP" 4601 4602 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4604$as_echo_n "checking for ANSI C header files... " >&6; } 4605if ${ac_cv_header_stdc+:} false; then : 4606 $as_echo_n "(cached) " >&6 4607else 4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4609/* end confdefs.h. */ 4610#include <stdlib.h> 4611#include <stdarg.h> 4612#include <string.h> 4613#include <float.h> 4614 4615int 4616main () 4617{ 4618 4619 ; 4620 return 0; 4621} 4622_ACEOF 4623if ac_fn_c_try_compile "$LINENO"; then : 4624 ac_cv_header_stdc=yes 4625else 4626 ac_cv_header_stdc=no 4627fi 4628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4629 4630if test $ac_cv_header_stdc = yes; then 4631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4633/* end confdefs.h. */ 4634#include <string.h> 4635 4636_ACEOF 4637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4638 $EGREP "memchr" >/dev/null 2>&1; then : 4639 4640else 4641 ac_cv_header_stdc=no 4642fi 4643rm -f conftest* 4644 4645fi 4646 4647if test $ac_cv_header_stdc = yes; then 4648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4650/* end confdefs.h. */ 4651#include <stdlib.h> 4652 4653_ACEOF 4654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4655 $EGREP "free" >/dev/null 2>&1; then : 4656 4657else 4658 ac_cv_header_stdc=no 4659fi 4660rm -f conftest* 4661 4662fi 4663 4664if test $ac_cv_header_stdc = yes; then 4665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4666 if test "$cross_compiling" = yes; then : 4667 : 4668else 4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4670/* end confdefs.h. */ 4671#include <ctype.h> 4672#include <stdlib.h> 4673#if ((' ' & 0x0FF) == 0x020) 4674# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4675# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4676#else 4677# define ISLOWER(c) \ 4678 (('a' <= (c) && (c) <= 'i') \ 4679 || ('j' <= (c) && (c) <= 'r') \ 4680 || ('s' <= (c) && (c) <= 'z')) 4681# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4682#endif 4683 4684#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4685int 4686main () 4687{ 4688 int i; 4689 for (i = 0; i < 256; i++) 4690 if (XOR (islower (i), ISLOWER (i)) 4691 || toupper (i) != TOUPPER (i)) 4692 return 2; 4693 return 0; 4694} 4695_ACEOF 4696if ac_fn_c_try_run "$LINENO"; then : 4697 4698else 4699 ac_cv_header_stdc=no 4700fi 4701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4702 conftest.$ac_objext conftest.beam conftest.$ac_ext 4703fi 4704 4705fi 4706fi 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4708$as_echo "$ac_cv_header_stdc" >&6; } 4709if test $ac_cv_header_stdc = yes; then 4710 4711$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4712 4713fi 4714 4715# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4716for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4717 inttypes.h stdint.h unistd.h 4718do : 4719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4720ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4721" 4722if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4723 cat >>confdefs.h <<_ACEOF 4724#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4725_ACEOF 4726 4727fi 4728 4729done 4730 4731 4732 4733 4734 4735 4736ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4737if test "x$ac_cv_have_decl___clang__" = xyes; then : 4738 CLANGCC="yes" 4739else 4740 CLANGCC="no" 4741fi 4742 4743ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4744if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4745 INTELCC="yes" 4746else 4747 INTELCC="no" 4748fi 4749 4750ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4751if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4752 SUNCC="yes" 4753else 4754 SUNCC="no" 4755fi 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4766 if test -n "$ac_tool_prefix"; then 4767 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4768set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4770$as_echo_n "checking for $ac_word... " >&6; } 4771if ${ac_cv_path_PKG_CONFIG+:} false; then : 4772 $as_echo_n "(cached) " >&6 4773else 4774 case $PKG_CONFIG in 4775 [\\/]* | ?:[\\/]*) 4776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4777 ;; 4778 *) 4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4780for as_dir in $PATH 4781do 4782 IFS=$as_save_IFS 4783 test -z "$as_dir" && as_dir=. 4784 for ac_exec_ext in '' $ac_executable_extensions; do 4785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4786 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4788 break 2 4789 fi 4790done 4791 done 4792IFS=$as_save_IFS 4793 4794 ;; 4795esac 4796fi 4797PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4798if test -n "$PKG_CONFIG"; then 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4800$as_echo "$PKG_CONFIG" >&6; } 4801else 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4803$as_echo "no" >&6; } 4804fi 4805 4806 4807fi 4808if test -z "$ac_cv_path_PKG_CONFIG"; then 4809 ac_pt_PKG_CONFIG=$PKG_CONFIG 4810 # Extract the first word of "pkg-config", so it can be a program name with args. 4811set dummy pkg-config; ac_word=$2 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4813$as_echo_n "checking for $ac_word... " >&6; } 4814if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816else 4817 case $ac_pt_PKG_CONFIG in 4818 [\\/]* | ?:[\\/]*) 4819 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4820 ;; 4821 *) 4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4823for as_dir in $PATH 4824do 4825 IFS=$as_save_IFS 4826 test -z "$as_dir" && as_dir=. 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4829 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4831 break 2 4832 fi 4833done 4834 done 4835IFS=$as_save_IFS 4836 4837 ;; 4838esac 4839fi 4840ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4841if test -n "$ac_pt_PKG_CONFIG"; then 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4843$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4844else 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846$as_echo "no" >&6; } 4847fi 4848 4849 if test "x$ac_pt_PKG_CONFIG" = x; then 4850 PKG_CONFIG="" 4851 else 4852 case $cross_compiling:$ac_tool_warned in 4853yes:) 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4856ac_tool_warned=yes ;; 4857esac 4858 PKG_CONFIG=$ac_pt_PKG_CONFIG 4859 fi 4860else 4861 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4862fi 4863 4864fi 4865if test -n "$PKG_CONFIG"; then 4866 _pkg_min_version=0.9.0 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4868$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4869 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4871$as_echo "yes" >&6; } 4872 else 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4874$as_echo "no" >&6; } 4875 PKG_CONFIG="" 4876 fi 4877fi 4878# Make sure we can run config.sub. 4879$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4880 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4881 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4883$as_echo_n "checking build system type... " >&6; } 4884if ${ac_cv_build+:} false; then : 4885 $as_echo_n "(cached) " >&6 4886else 4887 ac_build_alias=$build_alias 4888test "x$ac_build_alias" = x && 4889 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4890test "x$ac_build_alias" = x && 4891 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4892ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4893 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4894 4895fi 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4897$as_echo "$ac_cv_build" >&6; } 4898case $ac_cv_build in 4899*-*-*) ;; 4900*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4901esac 4902build=$ac_cv_build 4903ac_save_IFS=$IFS; IFS='-' 4904set x $ac_cv_build 4905shift 4906build_cpu=$1 4907build_vendor=$2 4908shift; shift 4909# Remember, the first character of IFS is used to create $*, 4910# except with old shells: 4911build_os=$* 4912IFS=$ac_save_IFS 4913case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4914 4915 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4917$as_echo_n "checking host system type... " >&6; } 4918if ${ac_cv_host+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 if test "x$host_alias" = x; then 4922 ac_cv_host=$ac_cv_build 4923else 4924 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4926fi 4927 4928fi 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4930$as_echo "$ac_cv_host" >&6; } 4931case $ac_cv_host in 4932*-*-*) ;; 4933*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4934esac 4935host=$ac_cv_host 4936ac_save_IFS=$IFS; IFS='-' 4937set x $ac_cv_host 4938shift 4939host_cpu=$1 4940host_vendor=$2 4941shift; shift 4942# Remember, the first character of IFS is used to create $*, 4943# except with old shells: 4944host_os=$* 4945IFS=$ac_save_IFS 4946case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4947 4948 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4950$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4951if ${ac_cv_path_SED+:} false; then : 4952 $as_echo_n "(cached) " >&6 4953else 4954 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4955 for ac_i in 1 2 3 4 5 6 7; do 4956 ac_script="$ac_script$as_nl$ac_script" 4957 done 4958 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4959 { ac_script=; unset ac_script;} 4960 if test -z "$SED"; then 4961 ac_path_SED_found=false 4962 # Loop through the user's path and test for each of PROGNAME-LIST 4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4964for as_dir in $PATH 4965do 4966 IFS=$as_save_IFS 4967 test -z "$as_dir" && as_dir=. 4968 for ac_prog in sed gsed; do 4969 for ac_exec_ext in '' $ac_executable_extensions; do 4970 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4971 as_fn_executable_p "$ac_path_SED" || continue 4972# Check for GNU ac_path_SED and select it if it is found. 4973 # Check for GNU $ac_path_SED 4974case `"$ac_path_SED" --version 2>&1` in 4975*GNU*) 4976 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4977*) 4978 ac_count=0 4979 $as_echo_n 0123456789 >"conftest.in" 4980 while : 4981 do 4982 cat "conftest.in" "conftest.in" >"conftest.tmp" 4983 mv "conftest.tmp" "conftest.in" 4984 cp "conftest.in" "conftest.nl" 4985 $as_echo '' >> "conftest.nl" 4986 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4988 as_fn_arith $ac_count + 1 && ac_count=$as_val 4989 if test $ac_count -gt ${ac_path_SED_max-0}; then 4990 # Best one so far, save it but keep looking for a better one 4991 ac_cv_path_SED="$ac_path_SED" 4992 ac_path_SED_max=$ac_count 4993 fi 4994 # 10*(2^10) chars as input seems more than enough 4995 test $ac_count -gt 10 && break 4996 done 4997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4998esac 4999 5000 $ac_path_SED_found && break 3 5001 done 5002 done 5003 done 5004IFS=$as_save_IFS 5005 if test -z "$ac_cv_path_SED"; then 5006 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5007 fi 5008else 5009 ac_cv_path_SED=$SED 5010fi 5011 5012fi 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5014$as_echo "$ac_cv_path_SED" >&6; } 5015 SED="$ac_cv_path_SED" 5016 rm -f conftest.sed 5017 5018 5019 5020 5021 5022 5023# Check whether --enable-selective-werror was given. 5024if test "${enable_selective_werror+set}" = set; then : 5025 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5026else 5027 SELECTIVE_WERROR=yes 5028fi 5029 5030 5031 5032 5033 5034# -v is too short to test reliably with XORG_TESTSET_CFLAG 5035if test "x$SUNCC" = "xyes"; then 5036 BASE_CFLAGS="-v" 5037else 5038 BASE_CFLAGS="" 5039fi 5040 5041# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055xorg_testset_save_CFLAGS="$CFLAGS" 5056 5057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5062 $as_echo_n "(cached) " >&6 5063else 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066int i; 5067_ACEOF 5068if ac_fn_c_try_compile "$LINENO"; then : 5069 xorg_cv_cc_flag_unknown_warning_option=yes 5070else 5071 xorg_cv_cc_flag_unknown_warning_option=no 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5078 CFLAGS="$xorg_testset_save_CFLAGS" 5079fi 5080 5081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5084 fi 5085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5092/* end confdefs.h. */ 5093int i; 5094_ACEOF 5095if ac_fn_c_try_compile "$LINENO"; then : 5096 xorg_cv_cc_flag_unused_command_line_argument=yes 5097else 5098 xorg_cv_cc_flag_unused_command_line_argument=no 5099fi 5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5101fi 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5105 CFLAGS="$xorg_testset_save_CFLAGS" 5106fi 5107 5108found="no" 5109 5110 if test $found = "no" ; then 5111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5113 fi 5114 5115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5117 fi 5118 5119 CFLAGS="$CFLAGS -Wall" 5120 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5122$as_echo_n "checking if $CC supports -Wall... " >&6; } 5123 cacheid=xorg_cv_cc_flag__Wall 5124 if eval \${$cacheid+:} false; then : 5125 $as_echo_n "(cached) " >&6 5126else 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128/* end confdefs.h. */ 5129int i; 5130int 5131main () 5132{ 5133 5134 ; 5135 return 0; 5136} 5137_ACEOF 5138if ac_fn_c_try_link "$LINENO"; then : 5139 eval $cacheid=yes 5140else 5141 eval $cacheid=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext \ 5144 conftest$ac_exeext conftest.$ac_ext 5145fi 5146 5147 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149 5150 eval supported=\$$cacheid 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5152$as_echo "$supported" >&6; } 5153 if test "$supported" = "yes" ; then 5154 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5155 found="yes" 5156 fi 5157 fi 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173xorg_testset_save_CFLAGS="$CFLAGS" 5174 5175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185_ACEOF 5186if ac_fn_c_try_compile "$LINENO"; then : 5187 xorg_cv_cc_flag_unknown_warning_option=yes 5188else 5189 xorg_cv_cc_flag_unknown_warning_option=no 5190fi 5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5192fi 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5196 CFLAGS="$xorg_testset_save_CFLAGS" 5197fi 5198 5199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5202 fi 5203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5207 $as_echo_n "(cached) " >&6 5208else 5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210/* end confdefs.h. */ 5211int i; 5212_ACEOF 5213if ac_fn_c_try_compile "$LINENO"; then : 5214 xorg_cv_cc_flag_unused_command_line_argument=yes 5215else 5216 xorg_cv_cc_flag_unused_command_line_argument=no 5217fi 5218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5219fi 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5223 CFLAGS="$xorg_testset_save_CFLAGS" 5224fi 5225 5226found="no" 5227 5228 if test $found = "no" ; then 5229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5231 fi 5232 5233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5235 fi 5236 5237 CFLAGS="$CFLAGS -Wpointer-arith" 5238 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5240$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5241 cacheid=xorg_cv_cc_flag__Wpointer_arith 5242 if eval \${$cacheid+:} false; then : 5243 $as_echo_n "(cached) " >&6 5244else 5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5246/* end confdefs.h. */ 5247int i; 5248int 5249main () 5250{ 5251 5252 ; 5253 return 0; 5254} 5255_ACEOF 5256if ac_fn_c_try_link "$LINENO"; then : 5257 eval $cacheid=yes 5258else 5259 eval $cacheid=no 5260fi 5261rm -f core conftest.err conftest.$ac_objext \ 5262 conftest$ac_exeext conftest.$ac_ext 5263fi 5264 5265 5266 CFLAGS="$xorg_testset_save_CFLAGS" 5267 5268 eval supported=\$$cacheid 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5270$as_echo "$supported" >&6; } 5271 if test "$supported" = "yes" ; then 5272 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5273 found="yes" 5274 fi 5275 fi 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291xorg_testset_save_CFLAGS="$CFLAGS" 5292 5293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301/* end confdefs.h. */ 5302int i; 5303_ACEOF 5304if ac_fn_c_try_compile "$LINENO"; then : 5305 xorg_cv_cc_flag_unknown_warning_option=yes 5306else 5307 xorg_cv_cc_flag_unknown_warning_option=no 5308fi 5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5310fi 5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5314 CFLAGS="$xorg_testset_save_CFLAGS" 5315fi 5316 5317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5320 fi 5321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5325 $as_echo_n "(cached) " >&6 5326else 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5328/* end confdefs.h. */ 5329int i; 5330_ACEOF 5331if ac_fn_c_try_compile "$LINENO"; then : 5332 xorg_cv_cc_flag_unused_command_line_argument=yes 5333else 5334 xorg_cv_cc_flag_unused_command_line_argument=no 5335fi 5336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5337fi 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5341 CFLAGS="$xorg_testset_save_CFLAGS" 5342fi 5343 5344found="no" 5345 5346 if test $found = "no" ; then 5347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5349 fi 5350 5351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5353 fi 5354 5355 CFLAGS="$CFLAGS -Wmissing-declarations" 5356 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5358$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5359 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5360 if eval \${$cacheid+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364/* end confdefs.h. */ 5365int i; 5366int 5367main () 5368{ 5369 5370 ; 5371 return 0; 5372} 5373_ACEOF 5374if ac_fn_c_try_link "$LINENO"; then : 5375 eval $cacheid=yes 5376else 5377 eval $cacheid=no 5378fi 5379rm -f core conftest.err conftest.$ac_objext \ 5380 conftest$ac_exeext conftest.$ac_ext 5381fi 5382 5383 5384 CFLAGS="$xorg_testset_save_CFLAGS" 5385 5386 eval supported=\$$cacheid 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5388$as_echo "$supported" >&6; } 5389 if test "$supported" = "yes" ; then 5390 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5391 found="yes" 5392 fi 5393 fi 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409xorg_testset_save_CFLAGS="$CFLAGS" 5410 5411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420int i; 5421_ACEOF 5422if ac_fn_c_try_compile "$LINENO"; then : 5423 xorg_cv_cc_flag_unknown_warning_option=yes 5424else 5425 xorg_cv_cc_flag_unknown_warning_option=no 5426fi 5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5428fi 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5432 CFLAGS="$xorg_testset_save_CFLAGS" 5433fi 5434 5435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5438 fi 5439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447int i; 5448_ACEOF 5449if ac_fn_c_try_compile "$LINENO"; then : 5450 xorg_cv_cc_flag_unused_command_line_argument=yes 5451else 5452 xorg_cv_cc_flag_unused_command_line_argument=no 5453fi 5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5459 CFLAGS="$xorg_testset_save_CFLAGS" 5460fi 5461 5462found="no" 5463 5464 if test $found = "no" ; then 5465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5467 fi 5468 5469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5471 fi 5472 5473 CFLAGS="$CFLAGS -Wformat=2" 5474 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5476$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5477 cacheid=xorg_cv_cc_flag__Wformat_2 5478 if eval \${$cacheid+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483int i; 5484int 5485main () 5486{ 5487 5488 ; 5489 return 0; 5490} 5491_ACEOF 5492if ac_fn_c_try_link "$LINENO"; then : 5493 eval $cacheid=yes 5494else 5495 eval $cacheid=no 5496fi 5497rm -f core conftest.err conftest.$ac_objext \ 5498 conftest$ac_exeext conftest.$ac_ext 5499fi 5500 5501 5502 CFLAGS="$xorg_testset_save_CFLAGS" 5503 5504 eval supported=\$$cacheid 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5506$as_echo "$supported" >&6; } 5507 if test "$supported" = "yes" ; then 5508 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5509 found="yes" 5510 fi 5511 fi 5512 5513 if test $found = "no" ; then 5514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5516 fi 5517 5518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5520 fi 5521 5522 CFLAGS="$CFLAGS -Wformat" 5523 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5525$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5526 cacheid=xorg_cv_cc_flag__Wformat 5527 if eval \${$cacheid+:} false; then : 5528 $as_echo_n "(cached) " >&6 5529else 5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532int i; 5533int 5534main () 5535{ 5536 5537 ; 5538 return 0; 5539} 5540_ACEOF 5541if ac_fn_c_try_link "$LINENO"; then : 5542 eval $cacheid=yes 5543else 5544 eval $cacheid=no 5545fi 5546rm -f core conftest.err conftest.$ac_objext \ 5547 conftest$ac_exeext conftest.$ac_ext 5548fi 5549 5550 5551 CFLAGS="$xorg_testset_save_CFLAGS" 5552 5553 eval supported=\$$cacheid 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5555$as_echo "$supported" >&6; } 5556 if test "$supported" = "yes" ; then 5557 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5558 found="yes" 5559 fi 5560 fi 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578xorg_testset_save_CFLAGS="$CFLAGS" 5579 5580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588/* end confdefs.h. */ 5589int i; 5590_ACEOF 5591if ac_fn_c_try_compile "$LINENO"; then : 5592 xorg_cv_cc_flag_unknown_warning_option=yes 5593else 5594 xorg_cv_cc_flag_unknown_warning_option=no 5595fi 5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602fi 5603 5604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5607 fi 5608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5612 $as_echo_n "(cached) " >&6 5613else 5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5615/* end confdefs.h. */ 5616int i; 5617_ACEOF 5618if ac_fn_c_try_compile "$LINENO"; then : 5619 xorg_cv_cc_flag_unused_command_line_argument=yes 5620else 5621 xorg_cv_cc_flag_unused_command_line_argument=no 5622fi 5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5624fi 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5628 CFLAGS="$xorg_testset_save_CFLAGS" 5629fi 5630 5631found="no" 5632 5633 if test $found = "no" ; then 5634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5636 fi 5637 5638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5640 fi 5641 5642 CFLAGS="$CFLAGS -Wstrict-prototypes" 5643 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5645$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5646 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5647 if eval \${$cacheid+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5651/* end confdefs.h. */ 5652int i; 5653int 5654main () 5655{ 5656 5657 ; 5658 return 0; 5659} 5660_ACEOF 5661if ac_fn_c_try_link "$LINENO"; then : 5662 eval $cacheid=yes 5663else 5664 eval $cacheid=no 5665fi 5666rm -f core conftest.err conftest.$ac_objext \ 5667 conftest$ac_exeext conftest.$ac_ext 5668fi 5669 5670 5671 CFLAGS="$xorg_testset_save_CFLAGS" 5672 5673 eval supported=\$$cacheid 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5675$as_echo "$supported" >&6; } 5676 if test "$supported" = "yes" ; then 5677 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5678 found="yes" 5679 fi 5680 fi 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696xorg_testset_save_CFLAGS="$CFLAGS" 5697 5698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5703 $as_echo_n "(cached) " >&6 5704else 5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707int i; 5708_ACEOF 5709if ac_fn_c_try_compile "$LINENO"; then : 5710 xorg_cv_cc_flag_unknown_warning_option=yes 5711else 5712 xorg_cv_cc_flag_unknown_warning_option=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715fi 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5719 CFLAGS="$xorg_testset_save_CFLAGS" 5720fi 5721 5722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5725 fi 5726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5730 $as_echo_n "(cached) " >&6 5731else 5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5733/* end confdefs.h. */ 5734int i; 5735_ACEOF 5736if ac_fn_c_try_compile "$LINENO"; then : 5737 xorg_cv_cc_flag_unused_command_line_argument=yes 5738else 5739 xorg_cv_cc_flag_unused_command_line_argument=no 5740fi 5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5742fi 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5746 CFLAGS="$xorg_testset_save_CFLAGS" 5747fi 5748 5749found="no" 5750 5751 if test $found = "no" ; then 5752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 fi 5755 5756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5758 fi 5759 5760 CFLAGS="$CFLAGS -Wmissing-prototypes" 5761 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5763$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5764 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5765 if eval \${$cacheid+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769/* end confdefs.h. */ 5770int i; 5771int 5772main () 5773{ 5774 5775 ; 5776 return 0; 5777} 5778_ACEOF 5779if ac_fn_c_try_link "$LINENO"; then : 5780 eval $cacheid=yes 5781else 5782 eval $cacheid=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext \ 5785 conftest$ac_exeext conftest.$ac_ext 5786fi 5787 5788 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790 5791 eval supported=\$$cacheid 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5793$as_echo "$supported" >&6; } 5794 if test "$supported" = "yes" ; then 5795 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5796 found="yes" 5797 fi 5798 fi 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814xorg_testset_save_CFLAGS="$CFLAGS" 5815 5816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825int i; 5826_ACEOF 5827if ac_fn_c_try_compile "$LINENO"; then : 5828 xorg_cv_cc_flag_unknown_warning_option=yes 5829else 5830 xorg_cv_cc_flag_unknown_warning_option=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5837 CFLAGS="$xorg_testset_save_CFLAGS" 5838fi 5839 5840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5843 fi 5844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5851/* end confdefs.h. */ 5852int i; 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO"; then : 5855 xorg_cv_cc_flag_unused_command_line_argument=yes 5856else 5857 xorg_cv_cc_flag_unused_command_line_argument=no 5858fi 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860fi 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865fi 5866 5867found="no" 5868 5869 if test $found = "no" ; then 5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 fi 5873 5874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5876 fi 5877 5878 CFLAGS="$CFLAGS -Wnested-externs" 5879 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5881$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5882 cacheid=xorg_cv_cc_flag__Wnested_externs 5883 if eval \${$cacheid+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5887/* end confdefs.h. */ 5888int i; 5889int 5890main () 5891{ 5892 5893 ; 5894 return 0; 5895} 5896_ACEOF 5897if ac_fn_c_try_link "$LINENO"; then : 5898 eval $cacheid=yes 5899else 5900 eval $cacheid=no 5901fi 5902rm -f core conftest.err conftest.$ac_objext \ 5903 conftest$ac_exeext conftest.$ac_ext 5904fi 5905 5906 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5908 5909 eval supported=\$$cacheid 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5911$as_echo "$supported" >&6; } 5912 if test "$supported" = "yes" ; then 5913 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5914 found="yes" 5915 fi 5916 fi 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932xorg_testset_save_CFLAGS="$CFLAGS" 5933 5934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5939 $as_echo_n "(cached) " >&6 5940else 5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5942/* end confdefs.h. */ 5943int i; 5944_ACEOF 5945if ac_fn_c_try_compile "$LINENO"; then : 5946 xorg_cv_cc_flag_unknown_warning_option=yes 5947else 5948 xorg_cv_cc_flag_unknown_warning_option=no 5949fi 5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5951fi 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5955 CFLAGS="$xorg_testset_save_CFLAGS" 5956fi 5957 5958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5961 fi 5962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967else 5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5969/* end confdefs.h. */ 5970int i; 5971_ACEOF 5972if ac_fn_c_try_compile "$LINENO"; then : 5973 xorg_cv_cc_flag_unused_command_line_argument=yes 5974else 5975 xorg_cv_cc_flag_unused_command_line_argument=no 5976fi 5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5978fi 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983fi 5984 5985found="no" 5986 5987 if test $found = "no" ; then 5988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5990 fi 5991 5992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5994 fi 5995 5996 CFLAGS="$CFLAGS -Wbad-function-cast" 5997 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5999$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6000 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6001 if eval \${$cacheid+:} false; then : 6002 $as_echo_n "(cached) " >&6 6003else 6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005/* end confdefs.h. */ 6006int i; 6007int 6008main () 6009{ 6010 6011 ; 6012 return 0; 6013} 6014_ACEOF 6015if ac_fn_c_try_link "$LINENO"; then : 6016 eval $cacheid=yes 6017else 6018 eval $cacheid=no 6019fi 6020rm -f core conftest.err conftest.$ac_objext \ 6021 conftest$ac_exeext conftest.$ac_ext 6022fi 6023 6024 6025 CFLAGS="$xorg_testset_save_CFLAGS" 6026 6027 eval supported=\$$cacheid 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6029$as_echo "$supported" >&6; } 6030 if test "$supported" = "yes" ; then 6031 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6032 found="yes" 6033 fi 6034 fi 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050xorg_testset_save_CFLAGS="$CFLAGS" 6051 6052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061int i; 6062_ACEOF 6063if ac_fn_c_try_compile "$LINENO"; then : 6064 xorg_cv_cc_flag_unknown_warning_option=yes 6065else 6066 xorg_cv_cc_flag_unknown_warning_option=no 6067fi 6068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6069fi 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074fi 6075 6076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079 fi 6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6087/* end confdefs.h. */ 6088int i; 6089_ACEOF 6090if ac_fn_c_try_compile "$LINENO"; then : 6091 xorg_cv_cc_flag_unused_command_line_argument=yes 6092else 6093 xorg_cv_cc_flag_unused_command_line_argument=no 6094fi 6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6096fi 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6100 CFLAGS="$xorg_testset_save_CFLAGS" 6101fi 6102 6103found="no" 6104 6105 if test $found = "no" ; then 6106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6108 fi 6109 6110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6112 fi 6113 6114 CFLAGS="$CFLAGS -Wold-style-definition" 6115 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6117$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6118 cacheid=xorg_cv_cc_flag__Wold_style_definition 6119 if eval \${$cacheid+:} false; then : 6120 $as_echo_n "(cached) " >&6 6121else 6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6123/* end confdefs.h. */ 6124int i; 6125int 6126main () 6127{ 6128 6129 ; 6130 return 0; 6131} 6132_ACEOF 6133if ac_fn_c_try_link "$LINENO"; then : 6134 eval $cacheid=yes 6135else 6136 eval $cacheid=no 6137fi 6138rm -f core conftest.err conftest.$ac_objext \ 6139 conftest$ac_exeext conftest.$ac_ext 6140fi 6141 6142 6143 CFLAGS="$xorg_testset_save_CFLAGS" 6144 6145 eval supported=\$$cacheid 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6147$as_echo "$supported" >&6; } 6148 if test "$supported" = "yes" ; then 6149 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6150 found="yes" 6151 fi 6152 fi 6153 6154 if test $found = "no" ; then 6155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6157 fi 6158 6159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6161 fi 6162 6163 CFLAGS="$CFLAGS -fd" 6164 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6166$as_echo_n "checking if $CC supports -fd... " >&6; } 6167 cacheid=xorg_cv_cc_flag__fd 6168 if eval \${$cacheid+:} false; then : 6169 $as_echo_n "(cached) " >&6 6170else 6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6172/* end confdefs.h. */ 6173int i; 6174int 6175main () 6176{ 6177 6178 ; 6179 return 0; 6180} 6181_ACEOF 6182if ac_fn_c_try_link "$LINENO"; then : 6183 eval $cacheid=yes 6184else 6185 eval $cacheid=no 6186fi 6187rm -f core conftest.err conftest.$ac_objext \ 6188 conftest$ac_exeext conftest.$ac_ext 6189fi 6190 6191 6192 CFLAGS="$xorg_testset_save_CFLAGS" 6193 6194 eval supported=\$$cacheid 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6196$as_echo "$supported" >&6; } 6197 if test "$supported" = "yes" ; then 6198 BASE_CFLAGS="$BASE_CFLAGS -fd" 6199 found="yes" 6200 fi 6201 fi 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217xorg_testset_save_CFLAGS="$CFLAGS" 6218 6219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227/* end confdefs.h. */ 6228int i; 6229_ACEOF 6230if ac_fn_c_try_compile "$LINENO"; then : 6231 xorg_cv_cc_flag_unknown_warning_option=yes 6232else 6233 xorg_cv_cc_flag_unknown_warning_option=no 6234fi 6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6236fi 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6240 CFLAGS="$xorg_testset_save_CFLAGS" 6241fi 6242 6243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6246 fi 6247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6251 $as_echo_n "(cached) " >&6 6252else 6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6254/* end confdefs.h. */ 6255int i; 6256_ACEOF 6257if ac_fn_c_try_compile "$LINENO"; then : 6258 xorg_cv_cc_flag_unused_command_line_argument=yes 6259else 6260 xorg_cv_cc_flag_unused_command_line_argument=no 6261fi 6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6263fi 6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6267 CFLAGS="$xorg_testset_save_CFLAGS" 6268fi 6269 6270found="no" 6271 6272 if test $found = "no" ; then 6273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6275 fi 6276 6277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6279 fi 6280 6281 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6282 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6284$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6285 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6286 if eval \${$cacheid+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288else 6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6290/* end confdefs.h. */ 6291int i; 6292int 6293main () 6294{ 6295 6296 ; 6297 return 0; 6298} 6299_ACEOF 6300if ac_fn_c_try_link "$LINENO"; then : 6301 eval $cacheid=yes 6302else 6303 eval $cacheid=no 6304fi 6305rm -f core conftest.err conftest.$ac_objext \ 6306 conftest$ac_exeext conftest.$ac_ext 6307fi 6308 6309 6310 CFLAGS="$xorg_testset_save_CFLAGS" 6311 6312 eval supported=\$$cacheid 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6314$as_echo "$supported" >&6; } 6315 if test "$supported" = "yes" ; then 6316 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6317 found="yes" 6318 fi 6319 fi 6320 6321 6322 6323 6324 6325# This chunk adds additional warnings that could catch undesired effects. 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339xorg_testset_save_CFLAGS="$CFLAGS" 6340 6341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6349/* end confdefs.h. */ 6350int i; 6351_ACEOF 6352if ac_fn_c_try_compile "$LINENO"; then : 6353 xorg_cv_cc_flag_unknown_warning_option=yes 6354else 6355 xorg_cv_cc_flag_unknown_warning_option=no 6356fi 6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6358fi 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6362 CFLAGS="$xorg_testset_save_CFLAGS" 6363fi 6364 6365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6368 fi 6369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6376/* end confdefs.h. */ 6377int i; 6378_ACEOF 6379if ac_fn_c_try_compile "$LINENO"; then : 6380 xorg_cv_cc_flag_unused_command_line_argument=yes 6381else 6382 xorg_cv_cc_flag_unused_command_line_argument=no 6383fi 6384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6385fi 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6389 CFLAGS="$xorg_testset_save_CFLAGS" 6390fi 6391 6392found="no" 6393 6394 if test $found = "no" ; then 6395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6397 fi 6398 6399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6401 fi 6402 6403 CFLAGS="$CFLAGS -Wunused" 6404 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6406$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6407 cacheid=xorg_cv_cc_flag__Wunused 6408 if eval \${$cacheid+:} false; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6412/* end confdefs.h. */ 6413int i; 6414int 6415main () 6416{ 6417 6418 ; 6419 return 0; 6420} 6421_ACEOF 6422if ac_fn_c_try_link "$LINENO"; then : 6423 eval $cacheid=yes 6424else 6425 eval $cacheid=no 6426fi 6427rm -f core conftest.err conftest.$ac_objext \ 6428 conftest$ac_exeext conftest.$ac_ext 6429fi 6430 6431 6432 CFLAGS="$xorg_testset_save_CFLAGS" 6433 6434 eval supported=\$$cacheid 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6436$as_echo "$supported" >&6; } 6437 if test "$supported" = "yes" ; then 6438 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6439 found="yes" 6440 fi 6441 fi 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457xorg_testset_save_CFLAGS="$CFLAGS" 6458 6459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6462$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6463if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6467/* end confdefs.h. */ 6468int i; 6469_ACEOF 6470if ac_fn_c_try_compile "$LINENO"; then : 6471 xorg_cv_cc_flag_unknown_warning_option=yes 6472else 6473 xorg_cv_cc_flag_unknown_warning_option=no 6474fi 6475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6476fi 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6478$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6480 CFLAGS="$xorg_testset_save_CFLAGS" 6481fi 6482 6483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6486 fi 6487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6489$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6490if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6491 $as_echo_n "(cached) " >&6 6492else 6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6494/* end confdefs.h. */ 6495int i; 6496_ACEOF 6497if ac_fn_c_try_compile "$LINENO"; then : 6498 xorg_cv_cc_flag_unused_command_line_argument=yes 6499else 6500 xorg_cv_cc_flag_unused_command_line_argument=no 6501fi 6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6503fi 6504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6505$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6507 CFLAGS="$xorg_testset_save_CFLAGS" 6508fi 6509 6510found="no" 6511 6512 if test $found = "no" ; then 6513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6515 fi 6516 6517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6519 fi 6520 6521 CFLAGS="$CFLAGS -Wuninitialized" 6522 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6524$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6525 cacheid=xorg_cv_cc_flag__Wuninitialized 6526 if eval \${$cacheid+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6530/* end confdefs.h. */ 6531int i; 6532int 6533main () 6534{ 6535 6536 ; 6537 return 0; 6538} 6539_ACEOF 6540if ac_fn_c_try_link "$LINENO"; then : 6541 eval $cacheid=yes 6542else 6543 eval $cacheid=no 6544fi 6545rm -f core conftest.err conftest.$ac_objext \ 6546 conftest$ac_exeext conftest.$ac_ext 6547fi 6548 6549 6550 CFLAGS="$xorg_testset_save_CFLAGS" 6551 6552 eval supported=\$$cacheid 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6554$as_echo "$supported" >&6; } 6555 if test "$supported" = "yes" ; then 6556 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6557 found="yes" 6558 fi 6559 fi 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575xorg_testset_save_CFLAGS="$CFLAGS" 6576 6577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6585/* end confdefs.h. */ 6586int i; 6587_ACEOF 6588if ac_fn_c_try_compile "$LINENO"; then : 6589 xorg_cv_cc_flag_unknown_warning_option=yes 6590else 6591 xorg_cv_cc_flag_unknown_warning_option=no 6592fi 6593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6594fi 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599fi 6600 6601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6604 fi 6605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6609 $as_echo_n "(cached) " >&6 6610else 6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613int i; 6614_ACEOF 6615if ac_fn_c_try_compile "$LINENO"; then : 6616 xorg_cv_cc_flag_unused_command_line_argument=yes 6617else 6618 xorg_cv_cc_flag_unused_command_line_argument=no 6619fi 6620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6621fi 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6625 CFLAGS="$xorg_testset_save_CFLAGS" 6626fi 6627 6628found="no" 6629 6630 if test $found = "no" ; then 6631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6633 fi 6634 6635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6637 fi 6638 6639 CFLAGS="$CFLAGS -Wshadow" 6640 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6642$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6643 cacheid=xorg_cv_cc_flag__Wshadow 6644 if eval \${$cacheid+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6648/* end confdefs.h. */ 6649int i; 6650int 6651main () 6652{ 6653 6654 ; 6655 return 0; 6656} 6657_ACEOF 6658if ac_fn_c_try_link "$LINENO"; then : 6659 eval $cacheid=yes 6660else 6661 eval $cacheid=no 6662fi 6663rm -f core conftest.err conftest.$ac_objext \ 6664 conftest$ac_exeext conftest.$ac_ext 6665fi 6666 6667 6668 CFLAGS="$xorg_testset_save_CFLAGS" 6669 6670 eval supported=\$$cacheid 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6672$as_echo "$supported" >&6; } 6673 if test "$supported" = "yes" ; then 6674 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6675 found="yes" 6676 fi 6677 fi 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693xorg_testset_save_CFLAGS="$CFLAGS" 6694 6695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6698$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6699if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704int i; 6705_ACEOF 6706if ac_fn_c_try_compile "$LINENO"; then : 6707 xorg_cv_cc_flag_unknown_warning_option=yes 6708else 6709 xorg_cv_cc_flag_unknown_warning_option=no 6710fi 6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6712fi 6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6714$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717fi 6718 6719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6722 fi 6723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6725$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6726if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6730/* end confdefs.h. */ 6731int i; 6732_ACEOF 6733if ac_fn_c_try_compile "$LINENO"; then : 6734 xorg_cv_cc_flag_unused_command_line_argument=yes 6735else 6736 xorg_cv_cc_flag_unused_command_line_argument=no 6737fi 6738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6739fi 6740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6741$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6743 CFLAGS="$xorg_testset_save_CFLAGS" 6744fi 6745 6746found="no" 6747 6748 if test $found = "no" ; then 6749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6751 fi 6752 6753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6755 fi 6756 6757 CFLAGS="$CFLAGS -Wmissing-noreturn" 6758 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6760$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6761 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6762 if eval \${$cacheid+:} false; then : 6763 $as_echo_n "(cached) " >&6 6764else 6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6766/* end confdefs.h. */ 6767int i; 6768int 6769main () 6770{ 6771 6772 ; 6773 return 0; 6774} 6775_ACEOF 6776if ac_fn_c_try_link "$LINENO"; then : 6777 eval $cacheid=yes 6778else 6779 eval $cacheid=no 6780fi 6781rm -f core conftest.err conftest.$ac_objext \ 6782 conftest$ac_exeext conftest.$ac_ext 6783fi 6784 6785 6786 CFLAGS="$xorg_testset_save_CFLAGS" 6787 6788 eval supported=\$$cacheid 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6790$as_echo "$supported" >&6; } 6791 if test "$supported" = "yes" ; then 6792 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6793 found="yes" 6794 fi 6795 fi 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811xorg_testset_save_CFLAGS="$CFLAGS" 6812 6813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6818 $as_echo_n "(cached) " >&6 6819else 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821/* end confdefs.h. */ 6822int i; 6823_ACEOF 6824if ac_fn_c_try_compile "$LINENO"; then : 6825 xorg_cv_cc_flag_unknown_warning_option=yes 6826else 6827 xorg_cv_cc_flag_unknown_warning_option=no 6828fi 6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6830fi 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6834 CFLAGS="$xorg_testset_save_CFLAGS" 6835fi 6836 6837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6840 fi 6841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6845 $as_echo_n "(cached) " >&6 6846else 6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6848/* end confdefs.h. */ 6849int i; 6850_ACEOF 6851if ac_fn_c_try_compile "$LINENO"; then : 6852 xorg_cv_cc_flag_unused_command_line_argument=yes 6853else 6854 xorg_cv_cc_flag_unused_command_line_argument=no 6855fi 6856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6857fi 6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6861 CFLAGS="$xorg_testset_save_CFLAGS" 6862fi 6863 6864found="no" 6865 6866 if test $found = "no" ; then 6867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6869 fi 6870 6871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6873 fi 6874 6875 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6876 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6878$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6879 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6880 if eval \${$cacheid+:} false; then : 6881 $as_echo_n "(cached) " >&6 6882else 6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6884/* end confdefs.h. */ 6885int i; 6886int 6887main () 6888{ 6889 6890 ; 6891 return 0; 6892} 6893_ACEOF 6894if ac_fn_c_try_link "$LINENO"; then : 6895 eval $cacheid=yes 6896else 6897 eval $cacheid=no 6898fi 6899rm -f core conftest.err conftest.$ac_objext \ 6900 conftest$ac_exeext conftest.$ac_ext 6901fi 6902 6903 6904 CFLAGS="$xorg_testset_save_CFLAGS" 6905 6906 eval supported=\$$cacheid 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6908$as_echo "$supported" >&6; } 6909 if test "$supported" = "yes" ; then 6910 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6911 found="yes" 6912 fi 6913 fi 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929xorg_testset_save_CFLAGS="$CFLAGS" 6930 6931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6936 $as_echo_n "(cached) " >&6 6937else 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939/* end confdefs.h. */ 6940int i; 6941_ACEOF 6942if ac_fn_c_try_compile "$LINENO"; then : 6943 xorg_cv_cc_flag_unknown_warning_option=yes 6944else 6945 xorg_cv_cc_flag_unknown_warning_option=no 6946fi 6947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6948fi 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6952 CFLAGS="$xorg_testset_save_CFLAGS" 6953fi 6954 6955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6958 fi 6959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6963 $as_echo_n "(cached) " >&6 6964else 6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6966/* end confdefs.h. */ 6967int i; 6968_ACEOF 6969if ac_fn_c_try_compile "$LINENO"; then : 6970 xorg_cv_cc_flag_unused_command_line_argument=yes 6971else 6972 xorg_cv_cc_flag_unused_command_line_argument=no 6973fi 6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6975fi 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6979 CFLAGS="$xorg_testset_save_CFLAGS" 6980fi 6981 6982found="no" 6983 6984 if test $found = "no" ; then 6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6987 fi 6988 6989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6991 fi 6992 6993 CFLAGS="$CFLAGS -Wredundant-decls" 6994 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6996$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6997 cacheid=xorg_cv_cc_flag__Wredundant_decls 6998 if eval \${$cacheid+:} false; then : 6999 $as_echo_n "(cached) " >&6 7000else 7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7002/* end confdefs.h. */ 7003int i; 7004int 7005main () 7006{ 7007 7008 ; 7009 return 0; 7010} 7011_ACEOF 7012if ac_fn_c_try_link "$LINENO"; then : 7013 eval $cacheid=yes 7014else 7015 eval $cacheid=no 7016fi 7017rm -f core conftest.err conftest.$ac_objext \ 7018 conftest$ac_exeext conftest.$ac_ext 7019fi 7020 7021 7022 CFLAGS="$xorg_testset_save_CFLAGS" 7023 7024 eval supported=\$$cacheid 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7026$as_echo "$supported" >&6; } 7027 if test "$supported" = "yes" ; then 7028 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7029 found="yes" 7030 fi 7031 fi 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047xorg_testset_save_CFLAGS="$CFLAGS" 7048 7049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058int i; 7059_ACEOF 7060if ac_fn_c_try_compile "$LINENO"; then : 7061 xorg_cv_cc_flag_unknown_warning_option=yes 7062else 7063 xorg_cv_cc_flag_unknown_warning_option=no 7064fi 7065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7066fi 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7070 CFLAGS="$xorg_testset_save_CFLAGS" 7071fi 7072 7073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7076 fi 7077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7084/* end confdefs.h. */ 7085int i; 7086_ACEOF 7087if ac_fn_c_try_compile "$LINENO"; then : 7088 xorg_cv_cc_flag_unused_command_line_argument=yes 7089else 7090 xorg_cv_cc_flag_unused_command_line_argument=no 7091fi 7092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7093fi 7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7097 CFLAGS="$xorg_testset_save_CFLAGS" 7098fi 7099 7100found="no" 7101 7102 if test $found = "no" ; then 7103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7105 fi 7106 7107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7109 fi 7110 7111 CFLAGS="$CFLAGS -Wlogical-op" 7112 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7114$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7115 cacheid=xorg_cv_cc_flag__Wlogical_op 7116 if eval \${$cacheid+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120/* end confdefs.h. */ 7121int i; 7122int 7123main () 7124{ 7125 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130if ac_fn_c_try_link "$LINENO"; then : 7131 eval $cacheid=yes 7132else 7133 eval $cacheid=no 7134fi 7135rm -f core conftest.err conftest.$ac_objext \ 7136 conftest$ac_exeext conftest.$ac_ext 7137fi 7138 7139 7140 CFLAGS="$xorg_testset_save_CFLAGS" 7141 7142 eval supported=\$$cacheid 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7144$as_echo "$supported" >&6; } 7145 if test "$supported" = "yes" ; then 7146 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7147 found="yes" 7148 fi 7149 fi 7150 7151 7152 7153# These are currently disabled because they are noisy. They will be enabled 7154# in the future once the codebase is sufficiently modernized to silence 7155# them. For now, I don't want them to drown out the other warnings. 7156# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7157# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7158# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7159 7160# Turn some warnings into errors, so we don't accidently get successful builds 7161# when there are problems that should be fixed. 7162 7163if test "x$SELECTIVE_WERROR" = "xyes" ; then 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177xorg_testset_save_CFLAGS="$CFLAGS" 7178 7179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188int i; 7189_ACEOF 7190if ac_fn_c_try_compile "$LINENO"; then : 7191 xorg_cv_cc_flag_unknown_warning_option=yes 7192else 7193 xorg_cv_cc_flag_unknown_warning_option=no 7194fi 7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7196fi 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7200 CFLAGS="$xorg_testset_save_CFLAGS" 7201fi 7202 7203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7206 fi 7207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7214/* end confdefs.h. */ 7215int i; 7216_ACEOF 7217if ac_fn_c_try_compile "$LINENO"; then : 7218 xorg_cv_cc_flag_unused_command_line_argument=yes 7219else 7220 xorg_cv_cc_flag_unused_command_line_argument=no 7221fi 7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7223fi 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7227 CFLAGS="$xorg_testset_save_CFLAGS" 7228fi 7229 7230found="no" 7231 7232 if test $found = "no" ; then 7233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7235 fi 7236 7237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7239 fi 7240 7241 CFLAGS="$CFLAGS -Werror=implicit" 7242 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7244$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7245 cacheid=xorg_cv_cc_flag__Werror_implicit 7246 if eval \${$cacheid+:} false; then : 7247 $as_echo_n "(cached) " >&6 7248else 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251int i; 7252int 7253main () 7254{ 7255 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260if ac_fn_c_try_link "$LINENO"; then : 7261 eval $cacheid=yes 7262else 7263 eval $cacheid=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext \ 7266 conftest$ac_exeext conftest.$ac_ext 7267fi 7268 7269 7270 CFLAGS="$xorg_testset_save_CFLAGS" 7271 7272 eval supported=\$$cacheid 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7274$as_echo "$supported" >&6; } 7275 if test "$supported" = "yes" ; then 7276 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7277 found="yes" 7278 fi 7279 fi 7280 7281 if test $found = "no" ; then 7282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7284 fi 7285 7286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7288 fi 7289 7290 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7291 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7293$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7294 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7295 if eval \${$cacheid+:} false; then : 7296 $as_echo_n "(cached) " >&6 7297else 7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7299/* end confdefs.h. */ 7300int i; 7301int 7302main () 7303{ 7304 7305 ; 7306 return 0; 7307} 7308_ACEOF 7309if ac_fn_c_try_link "$LINENO"; then : 7310 eval $cacheid=yes 7311else 7312 eval $cacheid=no 7313fi 7314rm -f core conftest.err conftest.$ac_objext \ 7315 conftest$ac_exeext conftest.$ac_ext 7316fi 7317 7318 7319 CFLAGS="$xorg_testset_save_CFLAGS" 7320 7321 eval supported=\$$cacheid 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7323$as_echo "$supported" >&6; } 7324 if test "$supported" = "yes" ; then 7325 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7326 found="yes" 7327 fi 7328 fi 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344xorg_testset_save_CFLAGS="$CFLAGS" 7345 7346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7349$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7350if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352else 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354/* end confdefs.h. */ 7355int i; 7356_ACEOF 7357if ac_fn_c_try_compile "$LINENO"; then : 7358 xorg_cv_cc_flag_unknown_warning_option=yes 7359else 7360 xorg_cv_cc_flag_unknown_warning_option=no 7361fi 7362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7363fi 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7365$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7367 CFLAGS="$xorg_testset_save_CFLAGS" 7368fi 7369 7370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7373 fi 7374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7376$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7377if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7378 $as_echo_n "(cached) " >&6 7379else 7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7381/* end confdefs.h. */ 7382int i; 7383_ACEOF 7384if ac_fn_c_try_compile "$LINENO"; then : 7385 xorg_cv_cc_flag_unused_command_line_argument=yes 7386else 7387 xorg_cv_cc_flag_unused_command_line_argument=no 7388fi 7389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7390fi 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7392$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7394 CFLAGS="$xorg_testset_save_CFLAGS" 7395fi 7396 7397found="no" 7398 7399 if test $found = "no" ; then 7400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7402 fi 7403 7404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7406 fi 7407 7408 CFLAGS="$CFLAGS -Werror=nonnull" 7409 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7411$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7412 cacheid=xorg_cv_cc_flag__Werror_nonnull 7413 if eval \${$cacheid+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417/* end confdefs.h. */ 7418int i; 7419int 7420main () 7421{ 7422 7423 ; 7424 return 0; 7425} 7426_ACEOF 7427if ac_fn_c_try_link "$LINENO"; then : 7428 eval $cacheid=yes 7429else 7430 eval $cacheid=no 7431fi 7432rm -f core conftest.err conftest.$ac_objext \ 7433 conftest$ac_exeext conftest.$ac_ext 7434fi 7435 7436 7437 CFLAGS="$xorg_testset_save_CFLAGS" 7438 7439 eval supported=\$$cacheid 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7441$as_echo "$supported" >&6; } 7442 if test "$supported" = "yes" ; then 7443 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7444 found="yes" 7445 fi 7446 fi 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462xorg_testset_save_CFLAGS="$CFLAGS" 7463 7464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7467$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7468if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7469 $as_echo_n "(cached) " >&6 7470else 7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7472/* end confdefs.h. */ 7473int i; 7474_ACEOF 7475if ac_fn_c_try_compile "$LINENO"; then : 7476 xorg_cv_cc_flag_unknown_warning_option=yes 7477else 7478 xorg_cv_cc_flag_unknown_warning_option=no 7479fi 7480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7481fi 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7483$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7485 CFLAGS="$xorg_testset_save_CFLAGS" 7486fi 7487 7488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7491 fi 7492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7494$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7495if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7496 $as_echo_n "(cached) " >&6 7497else 7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499/* end confdefs.h. */ 7500int i; 7501_ACEOF 7502if ac_fn_c_try_compile "$LINENO"; then : 7503 xorg_cv_cc_flag_unused_command_line_argument=yes 7504else 7505 xorg_cv_cc_flag_unused_command_line_argument=no 7506fi 7507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7508fi 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7510$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7512 CFLAGS="$xorg_testset_save_CFLAGS" 7513fi 7514 7515found="no" 7516 7517 if test $found = "no" ; then 7518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7520 fi 7521 7522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7524 fi 7525 7526 CFLAGS="$CFLAGS -Werror=init-self" 7527 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7529$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7530 cacheid=xorg_cv_cc_flag__Werror_init_self 7531 if eval \${$cacheid+:} false; then : 7532 $as_echo_n "(cached) " >&6 7533else 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535/* end confdefs.h. */ 7536int i; 7537int 7538main () 7539{ 7540 7541 ; 7542 return 0; 7543} 7544_ACEOF 7545if ac_fn_c_try_link "$LINENO"; then : 7546 eval $cacheid=yes 7547else 7548 eval $cacheid=no 7549fi 7550rm -f core conftest.err conftest.$ac_objext \ 7551 conftest$ac_exeext conftest.$ac_ext 7552fi 7553 7554 7555 CFLAGS="$xorg_testset_save_CFLAGS" 7556 7557 eval supported=\$$cacheid 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7559$as_echo "$supported" >&6; } 7560 if test "$supported" = "yes" ; then 7561 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7562 found="yes" 7563 fi 7564 fi 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580xorg_testset_save_CFLAGS="$CFLAGS" 7581 7582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7585$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7586if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7587 $as_echo_n "(cached) " >&6 7588else 7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7590/* end confdefs.h. */ 7591int i; 7592_ACEOF 7593if ac_fn_c_try_compile "$LINENO"; then : 7594 xorg_cv_cc_flag_unknown_warning_option=yes 7595else 7596 xorg_cv_cc_flag_unknown_warning_option=no 7597fi 7598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7599fi 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7601$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7603 CFLAGS="$xorg_testset_save_CFLAGS" 7604fi 7605 7606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7609 fi 7610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7612$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7613if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7614 $as_echo_n "(cached) " >&6 7615else 7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7617/* end confdefs.h. */ 7618int i; 7619_ACEOF 7620if ac_fn_c_try_compile "$LINENO"; then : 7621 xorg_cv_cc_flag_unused_command_line_argument=yes 7622else 7623 xorg_cv_cc_flag_unused_command_line_argument=no 7624fi 7625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7626fi 7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7628$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7630 CFLAGS="$xorg_testset_save_CFLAGS" 7631fi 7632 7633found="no" 7634 7635 if test $found = "no" ; then 7636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7638 fi 7639 7640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7642 fi 7643 7644 CFLAGS="$CFLAGS -Werror=main" 7645 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7647$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7648 cacheid=xorg_cv_cc_flag__Werror_main 7649 if eval \${$cacheid+:} false; then : 7650 $as_echo_n "(cached) " >&6 7651else 7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653/* end confdefs.h. */ 7654int i; 7655int 7656main () 7657{ 7658 7659 ; 7660 return 0; 7661} 7662_ACEOF 7663if ac_fn_c_try_link "$LINENO"; then : 7664 eval $cacheid=yes 7665else 7666 eval $cacheid=no 7667fi 7668rm -f core conftest.err conftest.$ac_objext \ 7669 conftest$ac_exeext conftest.$ac_ext 7670fi 7671 7672 7673 CFLAGS="$xorg_testset_save_CFLAGS" 7674 7675 eval supported=\$$cacheid 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7677$as_echo "$supported" >&6; } 7678 if test "$supported" = "yes" ; then 7679 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7680 found="yes" 7681 fi 7682 fi 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698xorg_testset_save_CFLAGS="$CFLAGS" 7699 7700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706else 7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708/* end confdefs.h. */ 7709int i; 7710_ACEOF 7711if ac_fn_c_try_compile "$LINENO"; then : 7712 xorg_cv_cc_flag_unknown_warning_option=yes 7713else 7714 xorg_cv_cc_flag_unknown_warning_option=no 7715fi 7716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7717fi 7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7721 CFLAGS="$xorg_testset_save_CFLAGS" 7722fi 7723 7724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7727 fi 7728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7732 $as_echo_n "(cached) " >&6 7733else 7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7735/* end confdefs.h. */ 7736int i; 7737_ACEOF 7738if ac_fn_c_try_compile "$LINENO"; then : 7739 xorg_cv_cc_flag_unused_command_line_argument=yes 7740else 7741 xorg_cv_cc_flag_unused_command_line_argument=no 7742fi 7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7744fi 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7748 CFLAGS="$xorg_testset_save_CFLAGS" 7749fi 7750 7751found="no" 7752 7753 if test $found = "no" ; then 7754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7756 fi 7757 7758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7760 fi 7761 7762 CFLAGS="$CFLAGS -Werror=missing-braces" 7763 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7765$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7766 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7767 if eval \${$cacheid+:} false; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771/* end confdefs.h. */ 7772int i; 7773int 7774main () 7775{ 7776 7777 ; 7778 return 0; 7779} 7780_ACEOF 7781if ac_fn_c_try_link "$LINENO"; then : 7782 eval $cacheid=yes 7783else 7784 eval $cacheid=no 7785fi 7786rm -f core conftest.err conftest.$ac_objext \ 7787 conftest$ac_exeext conftest.$ac_ext 7788fi 7789 7790 7791 CFLAGS="$xorg_testset_save_CFLAGS" 7792 7793 eval supported=\$$cacheid 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7795$as_echo "$supported" >&6; } 7796 if test "$supported" = "yes" ; then 7797 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7798 found="yes" 7799 fi 7800 fi 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816xorg_testset_save_CFLAGS="$CFLAGS" 7817 7818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824else 7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7826/* end confdefs.h. */ 7827int i; 7828_ACEOF 7829if ac_fn_c_try_compile "$LINENO"; then : 7830 xorg_cv_cc_flag_unknown_warning_option=yes 7831else 7832 xorg_cv_cc_flag_unknown_warning_option=no 7833fi 7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7835fi 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7839 CFLAGS="$xorg_testset_save_CFLAGS" 7840fi 7841 7842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7845 fi 7846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7850 $as_echo_n "(cached) " >&6 7851else 7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7853/* end confdefs.h. */ 7854int i; 7855_ACEOF 7856if ac_fn_c_try_compile "$LINENO"; then : 7857 xorg_cv_cc_flag_unused_command_line_argument=yes 7858else 7859 xorg_cv_cc_flag_unused_command_line_argument=no 7860fi 7861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7862fi 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7866 CFLAGS="$xorg_testset_save_CFLAGS" 7867fi 7868 7869found="no" 7870 7871 if test $found = "no" ; then 7872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7874 fi 7875 7876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7878 fi 7879 7880 CFLAGS="$CFLAGS -Werror=sequence-point" 7881 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7883$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7884 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7885 if eval \${$cacheid+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891int 7892main () 7893{ 7894 7895 ; 7896 return 0; 7897} 7898_ACEOF 7899if ac_fn_c_try_link "$LINENO"; then : 7900 eval $cacheid=yes 7901else 7902 eval $cacheid=no 7903fi 7904rm -f core conftest.err conftest.$ac_objext \ 7905 conftest$ac_exeext conftest.$ac_ext 7906fi 7907 7908 7909 CFLAGS="$xorg_testset_save_CFLAGS" 7910 7911 eval supported=\$$cacheid 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7913$as_echo "$supported" >&6; } 7914 if test "$supported" = "yes" ; then 7915 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7916 found="yes" 7917 fi 7918 fi 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934xorg_testset_save_CFLAGS="$CFLAGS" 7935 7936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7941 $as_echo_n "(cached) " >&6 7942else 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946_ACEOF 7947if ac_fn_c_try_compile "$LINENO"; then : 7948 xorg_cv_cc_flag_unknown_warning_option=yes 7949else 7950 xorg_cv_cc_flag_unknown_warning_option=no 7951fi 7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7953fi 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7957 CFLAGS="$xorg_testset_save_CFLAGS" 7958fi 7959 7960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7963 fi 7964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972int i; 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO"; then : 7975 xorg_cv_cc_flag_unused_command_line_argument=yes 7976else 7977 xorg_cv_cc_flag_unused_command_line_argument=no 7978fi 7979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7980fi 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7984 CFLAGS="$xorg_testset_save_CFLAGS" 7985fi 7986 7987found="no" 7988 7989 if test $found = "no" ; then 7990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7992 fi 7993 7994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7996 fi 7997 7998 CFLAGS="$CFLAGS -Werror=return-type" 7999 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8001$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8002 cacheid=xorg_cv_cc_flag__Werror_return_type 8003 if eval \${$cacheid+:} false; then : 8004 $as_echo_n "(cached) " >&6 8005else 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008int i; 8009int 8010main () 8011{ 8012 8013 ; 8014 return 0; 8015} 8016_ACEOF 8017if ac_fn_c_try_link "$LINENO"; then : 8018 eval $cacheid=yes 8019else 8020 eval $cacheid=no 8021fi 8022rm -f core conftest.err conftest.$ac_objext \ 8023 conftest$ac_exeext conftest.$ac_ext 8024fi 8025 8026 8027 CFLAGS="$xorg_testset_save_CFLAGS" 8028 8029 eval supported=\$$cacheid 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8031$as_echo "$supported" >&6; } 8032 if test "$supported" = "yes" ; then 8033 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8034 found="yes" 8035 fi 8036 fi 8037 8038 if test $found = "no" ; then 8039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8041 fi 8042 8043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8045 fi 8046 8047 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8048 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8050$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8051 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8052 if eval \${$cacheid+:} false; then : 8053 $as_echo_n "(cached) " >&6 8054else 8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8056/* end confdefs.h. */ 8057int i; 8058int 8059main () 8060{ 8061 8062 ; 8063 return 0; 8064} 8065_ACEOF 8066if ac_fn_c_try_link "$LINENO"; then : 8067 eval $cacheid=yes 8068else 8069 eval $cacheid=no 8070fi 8071rm -f core conftest.err conftest.$ac_objext \ 8072 conftest$ac_exeext conftest.$ac_ext 8073fi 8074 8075 8076 CFLAGS="$xorg_testset_save_CFLAGS" 8077 8078 eval supported=\$$cacheid 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8080$as_echo "$supported" >&6; } 8081 if test "$supported" = "yes" ; then 8082 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8083 found="yes" 8084 fi 8085 fi 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101xorg_testset_save_CFLAGS="$CFLAGS" 8102 8103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111/* end confdefs.h. */ 8112int i; 8113_ACEOF 8114if ac_fn_c_try_compile "$LINENO"; then : 8115 xorg_cv_cc_flag_unknown_warning_option=yes 8116else 8117 xorg_cv_cc_flag_unknown_warning_option=no 8118fi 8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8120fi 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8124 CFLAGS="$xorg_testset_save_CFLAGS" 8125fi 8126 8127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8130 fi 8131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8135 $as_echo_n "(cached) " >&6 8136else 8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8138/* end confdefs.h. */ 8139int i; 8140_ACEOF 8141if ac_fn_c_try_compile "$LINENO"; then : 8142 xorg_cv_cc_flag_unused_command_line_argument=yes 8143else 8144 xorg_cv_cc_flag_unused_command_line_argument=no 8145fi 8146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8147fi 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8151 CFLAGS="$xorg_testset_save_CFLAGS" 8152fi 8153 8154found="no" 8155 8156 if test $found = "no" ; then 8157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8159 fi 8160 8161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8163 fi 8164 8165 CFLAGS="$CFLAGS -Werror=trigraphs" 8166 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8168$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8169 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8170 if eval \${$cacheid+:} false; then : 8171 $as_echo_n "(cached) " >&6 8172else 8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8174/* end confdefs.h. */ 8175int i; 8176int 8177main () 8178{ 8179 8180 ; 8181 return 0; 8182} 8183_ACEOF 8184if ac_fn_c_try_link "$LINENO"; then : 8185 eval $cacheid=yes 8186else 8187 eval $cacheid=no 8188fi 8189rm -f core conftest.err conftest.$ac_objext \ 8190 conftest$ac_exeext conftest.$ac_ext 8191fi 8192 8193 8194 CFLAGS="$xorg_testset_save_CFLAGS" 8195 8196 eval supported=\$$cacheid 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8198$as_echo "$supported" >&6; } 8199 if test "$supported" = "yes" ; then 8200 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8201 found="yes" 8202 fi 8203 fi 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219xorg_testset_save_CFLAGS="$CFLAGS" 8220 8221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227else 8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229/* end confdefs.h. */ 8230int i; 8231_ACEOF 8232if ac_fn_c_try_compile "$LINENO"; then : 8233 xorg_cv_cc_flag_unknown_warning_option=yes 8234else 8235 xorg_cv_cc_flag_unknown_warning_option=no 8236fi 8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8238fi 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8242 CFLAGS="$xorg_testset_save_CFLAGS" 8243fi 8244 8245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8248 fi 8249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8253 $as_echo_n "(cached) " >&6 8254else 8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8256/* end confdefs.h. */ 8257int i; 8258_ACEOF 8259if ac_fn_c_try_compile "$LINENO"; then : 8260 xorg_cv_cc_flag_unused_command_line_argument=yes 8261else 8262 xorg_cv_cc_flag_unused_command_line_argument=no 8263fi 8264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8265fi 8266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8269 CFLAGS="$xorg_testset_save_CFLAGS" 8270fi 8271 8272found="no" 8273 8274 if test $found = "no" ; then 8275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8277 fi 8278 8279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8281 fi 8282 8283 CFLAGS="$CFLAGS -Werror=array-bounds" 8284 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8286$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8287 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8288 if eval \${$cacheid+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290else 8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8292/* end confdefs.h. */ 8293int i; 8294int 8295main () 8296{ 8297 8298 ; 8299 return 0; 8300} 8301_ACEOF 8302if ac_fn_c_try_link "$LINENO"; then : 8303 eval $cacheid=yes 8304else 8305 eval $cacheid=no 8306fi 8307rm -f core conftest.err conftest.$ac_objext \ 8308 conftest$ac_exeext conftest.$ac_ext 8309fi 8310 8311 8312 CFLAGS="$xorg_testset_save_CFLAGS" 8313 8314 eval supported=\$$cacheid 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8316$as_echo "$supported" >&6; } 8317 if test "$supported" = "yes" ; then 8318 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8319 found="yes" 8320 fi 8321 fi 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337xorg_testset_save_CFLAGS="$CFLAGS" 8338 8339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8344 $as_echo_n "(cached) " >&6 8345else 8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347/* end confdefs.h. */ 8348int i; 8349_ACEOF 8350if ac_fn_c_try_compile "$LINENO"; then : 8351 xorg_cv_cc_flag_unknown_warning_option=yes 8352else 8353 xorg_cv_cc_flag_unknown_warning_option=no 8354fi 8355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8356fi 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8360 CFLAGS="$xorg_testset_save_CFLAGS" 8361fi 8362 8363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8366 fi 8367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8374/* end confdefs.h. */ 8375int i; 8376_ACEOF 8377if ac_fn_c_try_compile "$LINENO"; then : 8378 xorg_cv_cc_flag_unused_command_line_argument=yes 8379else 8380 xorg_cv_cc_flag_unused_command_line_argument=no 8381fi 8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8383fi 8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8387 CFLAGS="$xorg_testset_save_CFLAGS" 8388fi 8389 8390found="no" 8391 8392 if test $found = "no" ; then 8393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8395 fi 8396 8397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8399 fi 8400 8401 CFLAGS="$CFLAGS -Werror=write-strings" 8402 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8404$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8405 cacheid=xorg_cv_cc_flag__Werror_write_strings 8406 if eval \${$cacheid+:} false; then : 8407 $as_echo_n "(cached) " >&6 8408else 8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411int i; 8412int 8413main () 8414{ 8415 8416 ; 8417 return 0; 8418} 8419_ACEOF 8420if ac_fn_c_try_link "$LINENO"; then : 8421 eval $cacheid=yes 8422else 8423 eval $cacheid=no 8424fi 8425rm -f core conftest.err conftest.$ac_objext \ 8426 conftest$ac_exeext conftest.$ac_ext 8427fi 8428 8429 8430 CFLAGS="$xorg_testset_save_CFLAGS" 8431 8432 eval supported=\$$cacheid 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8434$as_echo "$supported" >&6; } 8435 if test "$supported" = "yes" ; then 8436 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8437 found="yes" 8438 fi 8439 fi 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455xorg_testset_save_CFLAGS="$CFLAGS" 8456 8457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8460$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8461if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8462 $as_echo_n "(cached) " >&6 8463else 8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8465/* end confdefs.h. */ 8466int i; 8467_ACEOF 8468if ac_fn_c_try_compile "$LINENO"; then : 8469 xorg_cv_cc_flag_unknown_warning_option=yes 8470else 8471 xorg_cv_cc_flag_unknown_warning_option=no 8472fi 8473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8474fi 8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8476$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8478 CFLAGS="$xorg_testset_save_CFLAGS" 8479fi 8480 8481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8484 fi 8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8487$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8488if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8489 $as_echo_n "(cached) " >&6 8490else 8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8492/* end confdefs.h. */ 8493int i; 8494_ACEOF 8495if ac_fn_c_try_compile "$LINENO"; then : 8496 xorg_cv_cc_flag_unused_command_line_argument=yes 8497else 8498 xorg_cv_cc_flag_unused_command_line_argument=no 8499fi 8500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8501fi 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8503$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8505 CFLAGS="$xorg_testset_save_CFLAGS" 8506fi 8507 8508found="no" 8509 8510 if test $found = "no" ; then 8511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8513 fi 8514 8515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8517 fi 8518 8519 CFLAGS="$CFLAGS -Werror=address" 8520 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8522$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8523 cacheid=xorg_cv_cc_flag__Werror_address 8524 if eval \${$cacheid+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8528/* end confdefs.h. */ 8529int i; 8530int 8531main () 8532{ 8533 8534 ; 8535 return 0; 8536} 8537_ACEOF 8538if ac_fn_c_try_link "$LINENO"; then : 8539 eval $cacheid=yes 8540else 8541 eval $cacheid=no 8542fi 8543rm -f core conftest.err conftest.$ac_objext \ 8544 conftest$ac_exeext conftest.$ac_ext 8545fi 8546 8547 8548 CFLAGS="$xorg_testset_save_CFLAGS" 8549 8550 eval supported=\$$cacheid 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8552$as_echo "$supported" >&6; } 8553 if test "$supported" = "yes" ; then 8554 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8555 found="yes" 8556 fi 8557 fi 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573xorg_testset_save_CFLAGS="$CFLAGS" 8574 8575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8578$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8579if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8580 $as_echo_n "(cached) " >&6 8581else 8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8583/* end confdefs.h. */ 8584int i; 8585_ACEOF 8586if ac_fn_c_try_compile "$LINENO"; then : 8587 xorg_cv_cc_flag_unknown_warning_option=yes 8588else 8589 xorg_cv_cc_flag_unknown_warning_option=no 8590fi 8591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8592fi 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8594$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8596 CFLAGS="$xorg_testset_save_CFLAGS" 8597fi 8598 8599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8602 fi 8603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8605$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8606if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8607 $as_echo_n "(cached) " >&6 8608else 8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8610/* end confdefs.h. */ 8611int i; 8612_ACEOF 8613if ac_fn_c_try_compile "$LINENO"; then : 8614 xorg_cv_cc_flag_unused_command_line_argument=yes 8615else 8616 xorg_cv_cc_flag_unused_command_line_argument=no 8617fi 8618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8619fi 8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8621$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8623 CFLAGS="$xorg_testset_save_CFLAGS" 8624fi 8625 8626found="no" 8627 8628 if test $found = "no" ; then 8629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8631 fi 8632 8633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635 fi 8636 8637 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8638 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8640$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8641 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8642 if eval \${$cacheid+:} false; then : 8643 $as_echo_n "(cached) " >&6 8644else 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646/* end confdefs.h. */ 8647int i; 8648int 8649main () 8650{ 8651 8652 ; 8653 return 0; 8654} 8655_ACEOF 8656if ac_fn_c_try_link "$LINENO"; then : 8657 eval $cacheid=yes 8658else 8659 eval $cacheid=no 8660fi 8661rm -f core conftest.err conftest.$ac_objext \ 8662 conftest$ac_exeext conftest.$ac_ext 8663fi 8664 8665 8666 CFLAGS="$xorg_testset_save_CFLAGS" 8667 8668 eval supported=\$$cacheid 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8670$as_echo "$supported" >&6; } 8671 if test "$supported" = "yes" ; then 8672 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8673 found="yes" 8674 fi 8675 fi 8676 8677 if test $found = "no" ; then 8678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8680 fi 8681 8682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8684 fi 8685 8686 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8687 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8689$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8690 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8691 if eval \${$cacheid+:} false; then : 8692 $as_echo_n "(cached) " >&6 8693else 8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8695/* end confdefs.h. */ 8696int i; 8697int 8698main () 8699{ 8700 8701 ; 8702 return 0; 8703} 8704_ACEOF 8705if ac_fn_c_try_link "$LINENO"; then : 8706 eval $cacheid=yes 8707else 8708 eval $cacheid=no 8709fi 8710rm -f core conftest.err conftest.$ac_objext \ 8711 conftest$ac_exeext conftest.$ac_ext 8712fi 8713 8714 8715 CFLAGS="$xorg_testset_save_CFLAGS" 8716 8717 eval supported=\$$cacheid 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8719$as_echo "$supported" >&6; } 8720 if test "$supported" = "yes" ; then 8721 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8722 found="yes" 8723 fi 8724 fi 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740xorg_testset_save_CFLAGS="$CFLAGS" 8741 8742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8747 $as_echo_n "(cached) " >&6 8748else 8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8750/* end confdefs.h. */ 8751int i; 8752_ACEOF 8753if ac_fn_c_try_compile "$LINENO"; then : 8754 xorg_cv_cc_flag_unknown_warning_option=yes 8755else 8756 xorg_cv_cc_flag_unknown_warning_option=no 8757fi 8758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8759fi 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8763 CFLAGS="$xorg_testset_save_CFLAGS" 8764fi 8765 8766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8769 fi 8770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8777/* end confdefs.h. */ 8778int i; 8779_ACEOF 8780if ac_fn_c_try_compile "$LINENO"; then : 8781 xorg_cv_cc_flag_unused_command_line_argument=yes 8782else 8783 xorg_cv_cc_flag_unused_command_line_argument=no 8784fi 8785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8786fi 8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8790 CFLAGS="$xorg_testset_save_CFLAGS" 8791fi 8792 8793found="no" 8794 8795 if test $found = "no" ; then 8796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8798 fi 8799 8800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8802 fi 8803 8804 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8805 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8807$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8808 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8809 if eval \${$cacheid+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811else 8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813/* end confdefs.h. */ 8814int i; 8815int 8816main () 8817{ 8818 8819 ; 8820 return 0; 8821} 8822_ACEOF 8823if ac_fn_c_try_link "$LINENO"; then : 8824 eval $cacheid=yes 8825else 8826 eval $cacheid=no 8827fi 8828rm -f core conftest.err conftest.$ac_objext \ 8829 conftest$ac_exeext conftest.$ac_ext 8830fi 8831 8832 8833 CFLAGS="$xorg_testset_save_CFLAGS" 8834 8835 eval supported=\$$cacheid 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8837$as_echo "$supported" >&6; } 8838 if test "$supported" = "yes" ; then 8839 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8840 found="yes" 8841 fi 8842 fi 8843 8844 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8845else 8846{ $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 8847$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;} 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861xorg_testset_save_CFLAGS="$CFLAGS" 8862 8863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869else 8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871/* end confdefs.h. */ 8872int i; 8873_ACEOF 8874if ac_fn_c_try_compile "$LINENO"; then : 8875 xorg_cv_cc_flag_unknown_warning_option=yes 8876else 8877 xorg_cv_cc_flag_unknown_warning_option=no 8878fi 8879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8880fi 8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8884 CFLAGS="$xorg_testset_save_CFLAGS" 8885fi 8886 8887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8890 fi 8891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8895 $as_echo_n "(cached) " >&6 8896else 8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898/* end confdefs.h. */ 8899int i; 8900_ACEOF 8901if ac_fn_c_try_compile "$LINENO"; then : 8902 xorg_cv_cc_flag_unused_command_line_argument=yes 8903else 8904 xorg_cv_cc_flag_unused_command_line_argument=no 8905fi 8906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8907fi 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8911 CFLAGS="$xorg_testset_save_CFLAGS" 8912fi 8913 8914found="no" 8915 8916 if test $found = "no" ; then 8917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8919 fi 8920 8921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8923 fi 8924 8925 CFLAGS="$CFLAGS -Wimplicit" 8926 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8928$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8929 cacheid=xorg_cv_cc_flag__Wimplicit 8930 if eval \${$cacheid+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932else 8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8934/* end confdefs.h. */ 8935int i; 8936int 8937main () 8938{ 8939 8940 ; 8941 return 0; 8942} 8943_ACEOF 8944if ac_fn_c_try_link "$LINENO"; then : 8945 eval $cacheid=yes 8946else 8947 eval $cacheid=no 8948fi 8949rm -f core conftest.err conftest.$ac_objext \ 8950 conftest$ac_exeext conftest.$ac_ext 8951fi 8952 8953 8954 CFLAGS="$xorg_testset_save_CFLAGS" 8955 8956 eval supported=\$$cacheid 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8958$as_echo "$supported" >&6; } 8959 if test "$supported" = "yes" ; then 8960 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8961 found="yes" 8962 fi 8963 fi 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979xorg_testset_save_CFLAGS="$CFLAGS" 8980 8981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8986 $as_echo_n "(cached) " >&6 8987else 8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990int i; 8991_ACEOF 8992if ac_fn_c_try_compile "$LINENO"; then : 8993 xorg_cv_cc_flag_unknown_warning_option=yes 8994else 8995 xorg_cv_cc_flag_unknown_warning_option=no 8996fi 8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8998fi 8999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9002 CFLAGS="$xorg_testset_save_CFLAGS" 9003fi 9004 9005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9008 fi 9009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9013 $as_echo_n "(cached) " >&6 9014else 9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9016/* end confdefs.h. */ 9017int i; 9018_ACEOF 9019if ac_fn_c_try_compile "$LINENO"; then : 9020 xorg_cv_cc_flag_unused_command_line_argument=yes 9021else 9022 xorg_cv_cc_flag_unused_command_line_argument=no 9023fi 9024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9025fi 9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9029 CFLAGS="$xorg_testset_save_CFLAGS" 9030fi 9031 9032found="no" 9033 9034 if test $found = "no" ; then 9035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9037 fi 9038 9039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9041 fi 9042 9043 CFLAGS="$CFLAGS -Wnonnull" 9044 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9046$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9047 cacheid=xorg_cv_cc_flag__Wnonnull 9048 if eval \${$cacheid+:} false; then : 9049 $as_echo_n "(cached) " >&6 9050else 9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9052/* end confdefs.h. */ 9053int i; 9054int 9055main () 9056{ 9057 9058 ; 9059 return 0; 9060} 9061_ACEOF 9062if ac_fn_c_try_link "$LINENO"; then : 9063 eval $cacheid=yes 9064else 9065 eval $cacheid=no 9066fi 9067rm -f core conftest.err conftest.$ac_objext \ 9068 conftest$ac_exeext conftest.$ac_ext 9069fi 9070 9071 9072 CFLAGS="$xorg_testset_save_CFLAGS" 9073 9074 eval supported=\$$cacheid 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9076$as_echo "$supported" >&6; } 9077 if test "$supported" = "yes" ; then 9078 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9079 found="yes" 9080 fi 9081 fi 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097xorg_testset_save_CFLAGS="$CFLAGS" 9098 9099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9104 $as_echo_n "(cached) " >&6 9105else 9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9107/* end confdefs.h. */ 9108int i; 9109_ACEOF 9110if ac_fn_c_try_compile "$LINENO"; then : 9111 xorg_cv_cc_flag_unknown_warning_option=yes 9112else 9113 xorg_cv_cc_flag_unknown_warning_option=no 9114fi 9115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9116fi 9117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9120 CFLAGS="$xorg_testset_save_CFLAGS" 9121fi 9122 9123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9126 fi 9127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9131 $as_echo_n "(cached) " >&6 9132else 9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9134/* end confdefs.h. */ 9135int i; 9136_ACEOF 9137if ac_fn_c_try_compile "$LINENO"; then : 9138 xorg_cv_cc_flag_unused_command_line_argument=yes 9139else 9140 xorg_cv_cc_flag_unused_command_line_argument=no 9141fi 9142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9143fi 9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9147 CFLAGS="$xorg_testset_save_CFLAGS" 9148fi 9149 9150found="no" 9151 9152 if test $found = "no" ; then 9153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9155 fi 9156 9157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9159 fi 9160 9161 CFLAGS="$CFLAGS -Winit-self" 9162 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9164$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9165 cacheid=xorg_cv_cc_flag__Winit_self 9166 if eval \${$cacheid+:} false; then : 9167 $as_echo_n "(cached) " >&6 9168else 9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9170/* end confdefs.h. */ 9171int i; 9172int 9173main () 9174{ 9175 9176 ; 9177 return 0; 9178} 9179_ACEOF 9180if ac_fn_c_try_link "$LINENO"; then : 9181 eval $cacheid=yes 9182else 9183 eval $cacheid=no 9184fi 9185rm -f core conftest.err conftest.$ac_objext \ 9186 conftest$ac_exeext conftest.$ac_ext 9187fi 9188 9189 9190 CFLAGS="$xorg_testset_save_CFLAGS" 9191 9192 eval supported=\$$cacheid 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9194$as_echo "$supported" >&6; } 9195 if test "$supported" = "yes" ; then 9196 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9197 found="yes" 9198 fi 9199 fi 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215xorg_testset_save_CFLAGS="$CFLAGS" 9216 9217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9222 $as_echo_n "(cached) " >&6 9223else 9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225/* end confdefs.h. */ 9226int i; 9227_ACEOF 9228if ac_fn_c_try_compile "$LINENO"; then : 9229 xorg_cv_cc_flag_unknown_warning_option=yes 9230else 9231 xorg_cv_cc_flag_unknown_warning_option=no 9232fi 9233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9234fi 9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9238 CFLAGS="$xorg_testset_save_CFLAGS" 9239fi 9240 9241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9244 fi 9245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9249 $as_echo_n "(cached) " >&6 9250else 9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9252/* end confdefs.h. */ 9253int i; 9254_ACEOF 9255if ac_fn_c_try_compile "$LINENO"; then : 9256 xorg_cv_cc_flag_unused_command_line_argument=yes 9257else 9258 xorg_cv_cc_flag_unused_command_line_argument=no 9259fi 9260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9261fi 9262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9265 CFLAGS="$xorg_testset_save_CFLAGS" 9266fi 9267 9268found="no" 9269 9270 if test $found = "no" ; then 9271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9273 fi 9274 9275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9277 fi 9278 9279 CFLAGS="$CFLAGS -Wmain" 9280 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9282$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9283 cacheid=xorg_cv_cc_flag__Wmain 9284 if eval \${$cacheid+:} false; then : 9285 $as_echo_n "(cached) " >&6 9286else 9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9288/* end confdefs.h. */ 9289int i; 9290int 9291main () 9292{ 9293 9294 ; 9295 return 0; 9296} 9297_ACEOF 9298if ac_fn_c_try_link "$LINENO"; then : 9299 eval $cacheid=yes 9300else 9301 eval $cacheid=no 9302fi 9303rm -f core conftest.err conftest.$ac_objext \ 9304 conftest$ac_exeext conftest.$ac_ext 9305fi 9306 9307 9308 CFLAGS="$xorg_testset_save_CFLAGS" 9309 9310 eval supported=\$$cacheid 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9312$as_echo "$supported" >&6; } 9313 if test "$supported" = "yes" ; then 9314 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9315 found="yes" 9316 fi 9317 fi 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333xorg_testset_save_CFLAGS="$CFLAGS" 9334 9335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343/* end confdefs.h. */ 9344int i; 9345_ACEOF 9346if ac_fn_c_try_compile "$LINENO"; then : 9347 xorg_cv_cc_flag_unknown_warning_option=yes 9348else 9349 xorg_cv_cc_flag_unknown_warning_option=no 9350fi 9351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9352fi 9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9356 CFLAGS="$xorg_testset_save_CFLAGS" 9357fi 9358 9359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 fi 9363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9367 $as_echo_n "(cached) " >&6 9368else 9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9370/* end confdefs.h. */ 9371int i; 9372_ACEOF 9373if ac_fn_c_try_compile "$LINENO"; then : 9374 xorg_cv_cc_flag_unused_command_line_argument=yes 9375else 9376 xorg_cv_cc_flag_unused_command_line_argument=no 9377fi 9378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9379fi 9380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9383 CFLAGS="$xorg_testset_save_CFLAGS" 9384fi 9385 9386found="no" 9387 9388 if test $found = "no" ; then 9389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9391 fi 9392 9393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9395 fi 9396 9397 CFLAGS="$CFLAGS -Wmissing-braces" 9398 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9400$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9401 cacheid=xorg_cv_cc_flag__Wmissing_braces 9402 if eval \${$cacheid+:} false; then : 9403 $as_echo_n "(cached) " >&6 9404else 9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9406/* end confdefs.h. */ 9407int i; 9408int 9409main () 9410{ 9411 9412 ; 9413 return 0; 9414} 9415_ACEOF 9416if ac_fn_c_try_link "$LINENO"; then : 9417 eval $cacheid=yes 9418else 9419 eval $cacheid=no 9420fi 9421rm -f core conftest.err conftest.$ac_objext \ 9422 conftest$ac_exeext conftest.$ac_ext 9423fi 9424 9425 9426 CFLAGS="$xorg_testset_save_CFLAGS" 9427 9428 eval supported=\$$cacheid 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9430$as_echo "$supported" >&6; } 9431 if test "$supported" = "yes" ; then 9432 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9433 found="yes" 9434 fi 9435 fi 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451xorg_testset_save_CFLAGS="$CFLAGS" 9452 9453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9458 $as_echo_n "(cached) " >&6 9459else 9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9461/* end confdefs.h. */ 9462int i; 9463_ACEOF 9464if ac_fn_c_try_compile "$LINENO"; then : 9465 xorg_cv_cc_flag_unknown_warning_option=yes 9466else 9467 xorg_cv_cc_flag_unknown_warning_option=no 9468fi 9469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9470fi 9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9474 CFLAGS="$xorg_testset_save_CFLAGS" 9475fi 9476 9477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9480 fi 9481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9485 $as_echo_n "(cached) " >&6 9486else 9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9488/* end confdefs.h. */ 9489int i; 9490_ACEOF 9491if ac_fn_c_try_compile "$LINENO"; then : 9492 xorg_cv_cc_flag_unused_command_line_argument=yes 9493else 9494 xorg_cv_cc_flag_unused_command_line_argument=no 9495fi 9496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9497fi 9498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9501 CFLAGS="$xorg_testset_save_CFLAGS" 9502fi 9503 9504found="no" 9505 9506 if test $found = "no" ; then 9507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9509 fi 9510 9511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9513 fi 9514 9515 CFLAGS="$CFLAGS -Wsequence-point" 9516 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9518$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9519 cacheid=xorg_cv_cc_flag__Wsequence_point 9520 if eval \${$cacheid+:} false; then : 9521 $as_echo_n "(cached) " >&6 9522else 9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9524/* end confdefs.h. */ 9525int i; 9526int 9527main () 9528{ 9529 9530 ; 9531 return 0; 9532} 9533_ACEOF 9534if ac_fn_c_try_link "$LINENO"; then : 9535 eval $cacheid=yes 9536else 9537 eval $cacheid=no 9538fi 9539rm -f core conftest.err conftest.$ac_objext \ 9540 conftest$ac_exeext conftest.$ac_ext 9541fi 9542 9543 9544 CFLAGS="$xorg_testset_save_CFLAGS" 9545 9546 eval supported=\$$cacheid 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9548$as_echo "$supported" >&6; } 9549 if test "$supported" = "yes" ; then 9550 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9551 found="yes" 9552 fi 9553 fi 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569xorg_testset_save_CFLAGS="$CFLAGS" 9570 9571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9576 $as_echo_n "(cached) " >&6 9577else 9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579/* end confdefs.h. */ 9580int i; 9581_ACEOF 9582if ac_fn_c_try_compile "$LINENO"; then : 9583 xorg_cv_cc_flag_unknown_warning_option=yes 9584else 9585 xorg_cv_cc_flag_unknown_warning_option=no 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9588fi 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9592 CFLAGS="$xorg_testset_save_CFLAGS" 9593fi 9594 9595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9598 fi 9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9603 $as_echo_n "(cached) " >&6 9604else 9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9606/* end confdefs.h. */ 9607int i; 9608_ACEOF 9609if ac_fn_c_try_compile "$LINENO"; then : 9610 xorg_cv_cc_flag_unused_command_line_argument=yes 9611else 9612 xorg_cv_cc_flag_unused_command_line_argument=no 9613fi 9614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9615fi 9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9619 CFLAGS="$xorg_testset_save_CFLAGS" 9620fi 9621 9622found="no" 9623 9624 if test $found = "no" ; then 9625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9627 fi 9628 9629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9631 fi 9632 9633 CFLAGS="$CFLAGS -Wreturn-type" 9634 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9636$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9637 cacheid=xorg_cv_cc_flag__Wreturn_type 9638 if eval \${$cacheid+:} false; then : 9639 $as_echo_n "(cached) " >&6 9640else 9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9642/* end confdefs.h. */ 9643int i; 9644int 9645main () 9646{ 9647 9648 ; 9649 return 0; 9650} 9651_ACEOF 9652if ac_fn_c_try_link "$LINENO"; then : 9653 eval $cacheid=yes 9654else 9655 eval $cacheid=no 9656fi 9657rm -f core conftest.err conftest.$ac_objext \ 9658 conftest$ac_exeext conftest.$ac_ext 9659fi 9660 9661 9662 CFLAGS="$xorg_testset_save_CFLAGS" 9663 9664 eval supported=\$$cacheid 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9666$as_echo "$supported" >&6; } 9667 if test "$supported" = "yes" ; then 9668 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9669 found="yes" 9670 fi 9671 fi 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687xorg_testset_save_CFLAGS="$CFLAGS" 9688 9689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9692$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9693if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9694 $as_echo_n "(cached) " >&6 9695else 9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9697/* end confdefs.h. */ 9698int i; 9699_ACEOF 9700if ac_fn_c_try_compile "$LINENO"; then : 9701 xorg_cv_cc_flag_unknown_warning_option=yes 9702else 9703 xorg_cv_cc_flag_unknown_warning_option=no 9704fi 9705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9706fi 9707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9708$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9710 CFLAGS="$xorg_testset_save_CFLAGS" 9711fi 9712 9713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9716 fi 9717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9719$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9720if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9721 $as_echo_n "(cached) " >&6 9722else 9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9724/* end confdefs.h. */ 9725int i; 9726_ACEOF 9727if ac_fn_c_try_compile "$LINENO"; then : 9728 xorg_cv_cc_flag_unused_command_line_argument=yes 9729else 9730 xorg_cv_cc_flag_unused_command_line_argument=no 9731fi 9732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9733fi 9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9735$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9737 CFLAGS="$xorg_testset_save_CFLAGS" 9738fi 9739 9740found="no" 9741 9742 if test $found = "no" ; then 9743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9745 fi 9746 9747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9749 fi 9750 9751 CFLAGS="$CFLAGS -Wtrigraphs" 9752 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9754$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9755 cacheid=xorg_cv_cc_flag__Wtrigraphs 9756 if eval \${$cacheid+:} false; then : 9757 $as_echo_n "(cached) " >&6 9758else 9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9760/* end confdefs.h. */ 9761int i; 9762int 9763main () 9764{ 9765 9766 ; 9767 return 0; 9768} 9769_ACEOF 9770if ac_fn_c_try_link "$LINENO"; then : 9771 eval $cacheid=yes 9772else 9773 eval $cacheid=no 9774fi 9775rm -f core conftest.err conftest.$ac_objext \ 9776 conftest$ac_exeext conftest.$ac_ext 9777fi 9778 9779 9780 CFLAGS="$xorg_testset_save_CFLAGS" 9781 9782 eval supported=\$$cacheid 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9784$as_echo "$supported" >&6; } 9785 if test "$supported" = "yes" ; then 9786 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9787 found="yes" 9788 fi 9789 fi 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805xorg_testset_save_CFLAGS="$CFLAGS" 9806 9807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9810$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9811if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9815/* end confdefs.h. */ 9816int i; 9817_ACEOF 9818if ac_fn_c_try_compile "$LINENO"; then : 9819 xorg_cv_cc_flag_unknown_warning_option=yes 9820else 9821 xorg_cv_cc_flag_unknown_warning_option=no 9822fi 9823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9824fi 9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9826$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9828 CFLAGS="$xorg_testset_save_CFLAGS" 9829fi 9830 9831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9834 fi 9835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9837$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9838if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9839 $as_echo_n "(cached) " >&6 9840else 9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9842/* end confdefs.h. */ 9843int i; 9844_ACEOF 9845if ac_fn_c_try_compile "$LINENO"; then : 9846 xorg_cv_cc_flag_unused_command_line_argument=yes 9847else 9848 xorg_cv_cc_flag_unused_command_line_argument=no 9849fi 9850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9851fi 9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9853$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9855 CFLAGS="$xorg_testset_save_CFLAGS" 9856fi 9857 9858found="no" 9859 9860 if test $found = "no" ; then 9861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9863 fi 9864 9865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9867 fi 9868 9869 CFLAGS="$CFLAGS -Warray-bounds" 9870 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9872$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9873 cacheid=xorg_cv_cc_flag__Warray_bounds 9874 if eval \${$cacheid+:} false; then : 9875 $as_echo_n "(cached) " >&6 9876else 9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9878/* end confdefs.h. */ 9879int i; 9880int 9881main () 9882{ 9883 9884 ; 9885 return 0; 9886} 9887_ACEOF 9888if ac_fn_c_try_link "$LINENO"; then : 9889 eval $cacheid=yes 9890else 9891 eval $cacheid=no 9892fi 9893rm -f core conftest.err conftest.$ac_objext \ 9894 conftest$ac_exeext conftest.$ac_ext 9895fi 9896 9897 9898 CFLAGS="$xorg_testset_save_CFLAGS" 9899 9900 eval supported=\$$cacheid 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9902$as_echo "$supported" >&6; } 9903 if test "$supported" = "yes" ; then 9904 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9905 found="yes" 9906 fi 9907 fi 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923xorg_testset_save_CFLAGS="$CFLAGS" 9924 9925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9930 $as_echo_n "(cached) " >&6 9931else 9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9933/* end confdefs.h. */ 9934int i; 9935_ACEOF 9936if ac_fn_c_try_compile "$LINENO"; then : 9937 xorg_cv_cc_flag_unknown_warning_option=yes 9938else 9939 xorg_cv_cc_flag_unknown_warning_option=no 9940fi 9941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9942fi 9943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9946 CFLAGS="$xorg_testset_save_CFLAGS" 9947fi 9948 9949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9952 fi 9953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9957 $as_echo_n "(cached) " >&6 9958else 9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9960/* end confdefs.h. */ 9961int i; 9962_ACEOF 9963if ac_fn_c_try_compile "$LINENO"; then : 9964 xorg_cv_cc_flag_unused_command_line_argument=yes 9965else 9966 xorg_cv_cc_flag_unused_command_line_argument=no 9967fi 9968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9969fi 9970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9973 CFLAGS="$xorg_testset_save_CFLAGS" 9974fi 9975 9976found="no" 9977 9978 if test $found = "no" ; then 9979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9981 fi 9982 9983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9985 fi 9986 9987 CFLAGS="$CFLAGS -Wwrite-strings" 9988 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9990$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9991 cacheid=xorg_cv_cc_flag__Wwrite_strings 9992 if eval \${$cacheid+:} false; then : 9993 $as_echo_n "(cached) " >&6 9994else 9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9996/* end confdefs.h. */ 9997int i; 9998int 9999main () 10000{ 10001 10002 ; 10003 return 0; 10004} 10005_ACEOF 10006if ac_fn_c_try_link "$LINENO"; then : 10007 eval $cacheid=yes 10008else 10009 eval $cacheid=no 10010fi 10011rm -f core conftest.err conftest.$ac_objext \ 10012 conftest$ac_exeext conftest.$ac_ext 10013fi 10014 10015 10016 CFLAGS="$xorg_testset_save_CFLAGS" 10017 10018 eval supported=\$$cacheid 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10020$as_echo "$supported" >&6; } 10021 if test "$supported" = "yes" ; then 10022 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10023 found="yes" 10024 fi 10025 fi 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041xorg_testset_save_CFLAGS="$CFLAGS" 10042 10043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10048 $as_echo_n "(cached) " >&6 10049else 10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10051/* end confdefs.h. */ 10052int i; 10053_ACEOF 10054if ac_fn_c_try_compile "$LINENO"; then : 10055 xorg_cv_cc_flag_unknown_warning_option=yes 10056else 10057 xorg_cv_cc_flag_unknown_warning_option=no 10058fi 10059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10060fi 10061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10064 CFLAGS="$xorg_testset_save_CFLAGS" 10065fi 10066 10067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10070 fi 10071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10075 $as_echo_n "(cached) " >&6 10076else 10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10078/* end confdefs.h. */ 10079int i; 10080_ACEOF 10081if ac_fn_c_try_compile "$LINENO"; then : 10082 xorg_cv_cc_flag_unused_command_line_argument=yes 10083else 10084 xorg_cv_cc_flag_unused_command_line_argument=no 10085fi 10086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10087fi 10088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10091 CFLAGS="$xorg_testset_save_CFLAGS" 10092fi 10093 10094found="no" 10095 10096 if test $found = "no" ; then 10097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10099 fi 10100 10101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10103 fi 10104 10105 CFLAGS="$CFLAGS -Waddress" 10106 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10108$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10109 cacheid=xorg_cv_cc_flag__Waddress 10110 if eval \${$cacheid+:} false; then : 10111 $as_echo_n "(cached) " >&6 10112else 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115int i; 10116int 10117main () 10118{ 10119 10120 ; 10121 return 0; 10122} 10123_ACEOF 10124if ac_fn_c_try_link "$LINENO"; then : 10125 eval $cacheid=yes 10126else 10127 eval $cacheid=no 10128fi 10129rm -f core conftest.err conftest.$ac_objext \ 10130 conftest$ac_exeext conftest.$ac_ext 10131fi 10132 10133 10134 CFLAGS="$xorg_testset_save_CFLAGS" 10135 10136 eval supported=\$$cacheid 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10138$as_echo "$supported" >&6; } 10139 if test "$supported" = "yes" ; then 10140 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10141 found="yes" 10142 fi 10143 fi 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159xorg_testset_save_CFLAGS="$CFLAGS" 10160 10161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10166 $as_echo_n "(cached) " >&6 10167else 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169/* end confdefs.h. */ 10170int i; 10171_ACEOF 10172if ac_fn_c_try_compile "$LINENO"; then : 10173 xorg_cv_cc_flag_unknown_warning_option=yes 10174else 10175 xorg_cv_cc_flag_unknown_warning_option=no 10176fi 10177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10178fi 10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10182 CFLAGS="$xorg_testset_save_CFLAGS" 10183fi 10184 10185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10188 fi 10189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10193 $as_echo_n "(cached) " >&6 10194else 10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10196/* end confdefs.h. */ 10197int i; 10198_ACEOF 10199if ac_fn_c_try_compile "$LINENO"; then : 10200 xorg_cv_cc_flag_unused_command_line_argument=yes 10201else 10202 xorg_cv_cc_flag_unused_command_line_argument=no 10203fi 10204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10205fi 10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10209 CFLAGS="$xorg_testset_save_CFLAGS" 10210fi 10211 10212found="no" 10213 10214 if test $found = "no" ; then 10215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10217 fi 10218 10219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10221 fi 10222 10223 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10224 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10226$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10227 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10228 if eval \${$cacheid+:} false; then : 10229 $as_echo_n "(cached) " >&6 10230else 10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10232/* end confdefs.h. */ 10233int i; 10234int 10235main () 10236{ 10237 10238 ; 10239 return 0; 10240} 10241_ACEOF 10242if ac_fn_c_try_link "$LINENO"; then : 10243 eval $cacheid=yes 10244else 10245 eval $cacheid=no 10246fi 10247rm -f core conftest.err conftest.$ac_objext \ 10248 conftest$ac_exeext conftest.$ac_ext 10249fi 10250 10251 10252 CFLAGS="$xorg_testset_save_CFLAGS" 10253 10254 eval supported=\$$cacheid 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10256$as_echo "$supported" >&6; } 10257 if test "$supported" = "yes" ; then 10258 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10259 found="yes" 10260 fi 10261 fi 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277xorg_testset_save_CFLAGS="$CFLAGS" 10278 10279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10284 $as_echo_n "(cached) " >&6 10285else 10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288int i; 10289_ACEOF 10290if ac_fn_c_try_compile "$LINENO"; then : 10291 xorg_cv_cc_flag_unknown_warning_option=yes 10292else 10293 xorg_cv_cc_flag_unknown_warning_option=no 10294fi 10295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10296fi 10297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10300 CFLAGS="$xorg_testset_save_CFLAGS" 10301fi 10302 10303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10306 fi 10307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10311 $as_echo_n "(cached) " >&6 10312else 10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314/* end confdefs.h. */ 10315int i; 10316_ACEOF 10317if ac_fn_c_try_compile "$LINENO"; then : 10318 xorg_cv_cc_flag_unused_command_line_argument=yes 10319else 10320 xorg_cv_cc_flag_unused_command_line_argument=no 10321fi 10322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10323fi 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10327 CFLAGS="$xorg_testset_save_CFLAGS" 10328fi 10329 10330found="no" 10331 10332 if test $found = "no" ; then 10333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10335 fi 10336 10337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10339 fi 10340 10341 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10342 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10344$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10345 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10346 if eval \${$cacheid+:} false; then : 10347 $as_echo_n "(cached) " >&6 10348else 10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350/* end confdefs.h. */ 10351int i; 10352int 10353main () 10354{ 10355 10356 ; 10357 return 0; 10358} 10359_ACEOF 10360if ac_fn_c_try_link "$LINENO"; then : 10361 eval $cacheid=yes 10362else 10363 eval $cacheid=no 10364fi 10365rm -f core conftest.err conftest.$ac_objext \ 10366 conftest$ac_exeext conftest.$ac_ext 10367fi 10368 10369 10370 CFLAGS="$xorg_testset_save_CFLAGS" 10371 10372 eval supported=\$$cacheid 10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10374$as_echo "$supported" >&6; } 10375 if test "$supported" = "yes" ; then 10376 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10377 found="yes" 10378 fi 10379 fi 10380 10381 10382fi 10383 10384 10385 10386 10387 10388 10389 10390 CWARNFLAGS="$BASE_CFLAGS" 10391 if test "x$GCC" = xyes ; then 10392 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10393 fi 10394 10395 10396 10397 10398 10399 10400 10401 10402# Check whether --enable-strict-compilation was given. 10403if test "${enable_strict_compilation+set}" = set; then : 10404 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10405else 10406 STRICT_COMPILE=no 10407fi 10408 10409 10410 10411 10412 10413 10414STRICT_CFLAGS="" 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428xorg_testset_save_CFLAGS="$CFLAGS" 10429 10430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10435 $as_echo_n "(cached) " >&6 10436else 10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10438/* end confdefs.h. */ 10439int i; 10440_ACEOF 10441if ac_fn_c_try_compile "$LINENO"; then : 10442 xorg_cv_cc_flag_unknown_warning_option=yes 10443else 10444 xorg_cv_cc_flag_unknown_warning_option=no 10445fi 10446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10447fi 10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10451 CFLAGS="$xorg_testset_save_CFLAGS" 10452fi 10453 10454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10457 fi 10458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10462 $as_echo_n "(cached) " >&6 10463else 10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10465/* end confdefs.h. */ 10466int i; 10467_ACEOF 10468if ac_fn_c_try_compile "$LINENO"; then : 10469 xorg_cv_cc_flag_unused_command_line_argument=yes 10470else 10471 xorg_cv_cc_flag_unused_command_line_argument=no 10472fi 10473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10474fi 10475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10478 CFLAGS="$xorg_testset_save_CFLAGS" 10479fi 10480 10481found="no" 10482 10483 if test $found = "no" ; then 10484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10486 fi 10487 10488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10490 fi 10491 10492 CFLAGS="$CFLAGS -pedantic" 10493 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10495$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10496 cacheid=xorg_cv_cc_flag__pedantic 10497 if eval \${$cacheid+:} false; then : 10498 $as_echo_n "(cached) " >&6 10499else 10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10501/* end confdefs.h. */ 10502int i; 10503int 10504main () 10505{ 10506 10507 ; 10508 return 0; 10509} 10510_ACEOF 10511if ac_fn_c_try_link "$LINENO"; then : 10512 eval $cacheid=yes 10513else 10514 eval $cacheid=no 10515fi 10516rm -f core conftest.err conftest.$ac_objext \ 10517 conftest$ac_exeext conftest.$ac_ext 10518fi 10519 10520 10521 CFLAGS="$xorg_testset_save_CFLAGS" 10522 10523 eval supported=\$$cacheid 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10525$as_echo "$supported" >&6; } 10526 if test "$supported" = "yes" ; then 10527 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10528 found="yes" 10529 fi 10530 fi 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546xorg_testset_save_CFLAGS="$CFLAGS" 10547 10548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10553 $as_echo_n "(cached) " >&6 10554else 10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10556/* end confdefs.h. */ 10557int i; 10558_ACEOF 10559if ac_fn_c_try_compile "$LINENO"; then : 10560 xorg_cv_cc_flag_unknown_warning_option=yes 10561else 10562 xorg_cv_cc_flag_unknown_warning_option=no 10563fi 10564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10565fi 10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10569 CFLAGS="$xorg_testset_save_CFLAGS" 10570fi 10571 10572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10575 fi 10576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10580 $as_echo_n "(cached) " >&6 10581else 10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10583/* end confdefs.h. */ 10584int i; 10585_ACEOF 10586if ac_fn_c_try_compile "$LINENO"; then : 10587 xorg_cv_cc_flag_unused_command_line_argument=yes 10588else 10589 xorg_cv_cc_flag_unused_command_line_argument=no 10590fi 10591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10592fi 10593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10596 CFLAGS="$xorg_testset_save_CFLAGS" 10597fi 10598 10599found="no" 10600 10601 if test $found = "no" ; then 10602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10604 fi 10605 10606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10608 fi 10609 10610 CFLAGS="$CFLAGS -Werror" 10611 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10613$as_echo_n "checking if $CC supports -Werror... " >&6; } 10614 cacheid=xorg_cv_cc_flag__Werror 10615 if eval \${$cacheid+:} false; then : 10616 $as_echo_n "(cached) " >&6 10617else 10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10619/* end confdefs.h. */ 10620int i; 10621int 10622main () 10623{ 10624 10625 ; 10626 return 0; 10627} 10628_ACEOF 10629if ac_fn_c_try_link "$LINENO"; then : 10630 eval $cacheid=yes 10631else 10632 eval $cacheid=no 10633fi 10634rm -f core conftest.err conftest.$ac_objext \ 10635 conftest$ac_exeext conftest.$ac_ext 10636fi 10637 10638 10639 CFLAGS="$xorg_testset_save_CFLAGS" 10640 10641 eval supported=\$$cacheid 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10643$as_echo "$supported" >&6; } 10644 if test "$supported" = "yes" ; then 10645 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10646 found="yes" 10647 fi 10648 fi 10649 10650 if test $found = "no" ; then 10651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10653 fi 10654 10655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10657 fi 10658 10659 CFLAGS="$CFLAGS -errwarn" 10660 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10662$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10663 cacheid=xorg_cv_cc_flag__errwarn 10664 if eval \${$cacheid+:} false; then : 10665 $as_echo_n "(cached) " >&6 10666else 10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10668/* end confdefs.h. */ 10669int i; 10670int 10671main () 10672{ 10673 10674 ; 10675 return 0; 10676} 10677_ACEOF 10678if ac_fn_c_try_link "$LINENO"; then : 10679 eval $cacheid=yes 10680else 10681 eval $cacheid=no 10682fi 10683rm -f core conftest.err conftest.$ac_objext \ 10684 conftest$ac_exeext conftest.$ac_ext 10685fi 10686 10687 10688 CFLAGS="$xorg_testset_save_CFLAGS" 10689 10690 eval supported=\$$cacheid 10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10692$as_echo "$supported" >&6; } 10693 if test "$supported" = "yes" ; then 10694 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10695 found="yes" 10696 fi 10697 fi 10698 10699 10700 10701# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10702# activate it with -Werror, so we add it here explicitly. 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716xorg_testset_save_CFLAGS="$CFLAGS" 10717 10718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10723 $as_echo_n "(cached) " >&6 10724else 10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10726/* end confdefs.h. */ 10727int i; 10728_ACEOF 10729if ac_fn_c_try_compile "$LINENO"; then : 10730 xorg_cv_cc_flag_unknown_warning_option=yes 10731else 10732 xorg_cv_cc_flag_unknown_warning_option=no 10733fi 10734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10735fi 10736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10739 CFLAGS="$xorg_testset_save_CFLAGS" 10740fi 10741 10742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10745 fi 10746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10750 $as_echo_n "(cached) " >&6 10751else 10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10753/* end confdefs.h. */ 10754int i; 10755_ACEOF 10756if ac_fn_c_try_compile "$LINENO"; then : 10757 xorg_cv_cc_flag_unused_command_line_argument=yes 10758else 10759 xorg_cv_cc_flag_unused_command_line_argument=no 10760fi 10761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10762fi 10763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10766 CFLAGS="$xorg_testset_save_CFLAGS" 10767fi 10768 10769found="no" 10770 10771 if test $found = "no" ; then 10772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10774 fi 10775 10776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10778 fi 10779 10780 CFLAGS="$CFLAGS -Werror=attributes" 10781 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10783$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10784 cacheid=xorg_cv_cc_flag__Werror_attributes 10785 if eval \${$cacheid+:} false; then : 10786 $as_echo_n "(cached) " >&6 10787else 10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10789/* end confdefs.h. */ 10790int i; 10791int 10792main () 10793{ 10794 10795 ; 10796 return 0; 10797} 10798_ACEOF 10799if ac_fn_c_try_link "$LINENO"; then : 10800 eval $cacheid=yes 10801else 10802 eval $cacheid=no 10803fi 10804rm -f core conftest.err conftest.$ac_objext \ 10805 conftest$ac_exeext conftest.$ac_ext 10806fi 10807 10808 10809 CFLAGS="$xorg_testset_save_CFLAGS" 10810 10811 eval supported=\$$cacheid 10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10813$as_echo "$supported" >&6; } 10814 if test "$supported" = "yes" ; then 10815 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10816 found="yes" 10817 fi 10818 fi 10819 10820 10821 10822if test "x$STRICT_COMPILE" = "xyes"; then 10823 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10824 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10825fi 10826 10827 10828 10829 10830 10831 10832cat >>confdefs.h <<_ACEOF 10833#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10834_ACEOF 10835 10836 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10837 if test "x$PVM" = "x"; then 10838 PVM="0" 10839 fi 10840 10841cat >>confdefs.h <<_ACEOF 10842#define PACKAGE_VERSION_MINOR $PVM 10843_ACEOF 10844 10845 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10846 if test "x$PVP" = "x"; then 10847 PVP="0" 10848 fi 10849 10850cat >>confdefs.h <<_ACEOF 10851#define PACKAGE_VERSION_PATCHLEVEL $PVP 10852_ACEOF 10853 10854 10855 10856CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10857mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10858|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10859echo 'git directory not found: installing possibly empty changelog.' >&2)" 10860 10861 10862 10863 10864macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10865INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10866mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10867|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10868echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10869 10870 10871 10872 10873 10874 10875if test x$APP_MAN_SUFFIX = x ; then 10876 APP_MAN_SUFFIX=1 10877fi 10878if test x$APP_MAN_DIR = x ; then 10879 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10880fi 10881 10882if test x$LIB_MAN_SUFFIX = x ; then 10883 LIB_MAN_SUFFIX=3 10884fi 10885if test x$LIB_MAN_DIR = x ; then 10886 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10887fi 10888 10889if test x$FILE_MAN_SUFFIX = x ; then 10890 case $host_os in 10891 solaris*) FILE_MAN_SUFFIX=4 ;; 10892 *) FILE_MAN_SUFFIX=5 ;; 10893 esac 10894fi 10895if test x$FILE_MAN_DIR = x ; then 10896 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10897fi 10898 10899if test x$MISC_MAN_SUFFIX = x ; then 10900 case $host_os in 10901 solaris*) MISC_MAN_SUFFIX=5 ;; 10902 *) MISC_MAN_SUFFIX=7 ;; 10903 esac 10904fi 10905if test x$MISC_MAN_DIR = x ; then 10906 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10907fi 10908 10909if test x$DRIVER_MAN_SUFFIX = x ; then 10910 case $host_os in 10911 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10912 *) DRIVER_MAN_SUFFIX=4 ;; 10913 esac 10914fi 10915if test x$DRIVER_MAN_DIR = x ; then 10916 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10917fi 10918 10919if test x$ADMIN_MAN_SUFFIX = x ; then 10920 case $host_os in 10921 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10922 *) ADMIN_MAN_SUFFIX=8 ;; 10923 esac 10924fi 10925if test x$ADMIN_MAN_DIR = x ; then 10926 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10927fi 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943XORG_MAN_PAGE="X Version 11" 10944 10945MAN_SUBSTS="\ 10946 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10947 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10948 -e 's|__xservername__|Xorg|g' \ 10949 -e 's|__xconfigfile__|xorg.conf|g' \ 10950 -e 's|__projectroot__|\$(prefix)|g' \ 10951 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10952 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10953 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10954 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10955 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10956 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10957 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10958 10959 10960 10961# Check whether --enable-silent-rules was given. 10962if test "${enable_silent_rules+set}" = set; then : 10963 enableval=$enable_silent_rules; 10964fi 10965 10966case $enable_silent_rules in # ((( 10967 yes) AM_DEFAULT_VERBOSITY=0;; 10968 no) AM_DEFAULT_VERBOSITY=1;; 10969 *) AM_DEFAULT_VERBOSITY=0;; 10970esac 10971am_make=${MAKE-make} 10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10973$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10974if ${am_cv_make_support_nested_variables+:} false; then : 10975 $as_echo_n "(cached) " >&6 10976else 10977 if $as_echo 'TRUE=$(BAR$(V)) 10978BAR0=false 10979BAR1=true 10980V=1 10981am__doit: 10982 @$(TRUE) 10983.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10984 am_cv_make_support_nested_variables=yes 10985else 10986 am_cv_make_support_nested_variables=no 10987fi 10988fi 10989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10990$as_echo "$am_cv_make_support_nested_variables" >&6; } 10991if test $am_cv_make_support_nested_variables = yes; then 10992 AM_V='$(V)' 10993 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10994else 10995 AM_V=$AM_DEFAULT_VERBOSITY 10996 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10997fi 10998AM_BACKSLASH='\' 10999 11000 11001 11002# Initialize libtool 11003# Check whether --enable-static was given. 11004if test "${enable_static+set}" = set; then : 11005 enableval=$enable_static; p=${PACKAGE-default} 11006 case $enableval in 11007 yes) enable_static=yes ;; 11008 no) enable_static=no ;; 11009 *) 11010 enable_static=no 11011 # Look at the argument we got. We use all the common list separators. 11012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11013 for pkg in $enableval; do 11014 IFS="$lt_save_ifs" 11015 if test "X$pkg" = "X$p"; then 11016 enable_static=yes 11017 fi 11018 done 11019 IFS="$lt_save_ifs" 11020 ;; 11021 esac 11022else 11023 enable_static=no 11024fi 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034case `pwd` in 11035 *\ * | *\ *) 11036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11037$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11038esac 11039 11040 11041 11042macro_version='2.4.2' 11043macro_revision='1.3337' 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057ltmain="$ac_aux_dir/ltmain.sh" 11058 11059# Backslashify metacharacters that are still active within 11060# double-quoted strings. 11061sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11062 11063# Same as above, but do not quote variable references. 11064double_quote_subst='s/\(["`\\]\)/\\\1/g' 11065 11066# Sed substitution to delay expansion of an escaped shell variable in a 11067# double_quote_subst'ed string. 11068delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11069 11070# Sed substitution to delay expansion of an escaped single quote. 11071delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11072 11073# Sed substitution to avoid accidental globbing in evaled expressions 11074no_glob_subst='s/\*/\\\*/g' 11075 11076ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11077ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11078ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11079 11080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11081$as_echo_n "checking how to print strings... " >&6; } 11082# Test print first, because it will be a builtin if present. 11083if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11084 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11085 ECHO='print -r --' 11086elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11087 ECHO='printf %s\n' 11088else 11089 # Use this function as a fallback that always works. 11090 func_fallback_echo () 11091 { 11092 eval 'cat <<_LTECHO_EOF 11093$1 11094_LTECHO_EOF' 11095 } 11096 ECHO='func_fallback_echo' 11097fi 11098 11099# func_echo_all arg... 11100# Invoke $ECHO with all args, space-separated. 11101func_echo_all () 11102{ 11103 $ECHO "" 11104} 11105 11106case "$ECHO" in 11107 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11108$as_echo "printf" >&6; } ;; 11109 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11110$as_echo "print -r" >&6; } ;; 11111 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11112$as_echo "cat" >&6; } ;; 11113esac 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11129$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11130if ${ac_cv_path_SED+:} false; then : 11131 $as_echo_n "(cached) " >&6 11132else 11133 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11134 for ac_i in 1 2 3 4 5 6 7; do 11135 ac_script="$ac_script$as_nl$ac_script" 11136 done 11137 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11138 { ac_script=; unset ac_script;} 11139 if test -z "$SED"; then 11140 ac_path_SED_found=false 11141 # Loop through the user's path and test for each of PROGNAME-LIST 11142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11143for as_dir in $PATH 11144do 11145 IFS=$as_save_IFS 11146 test -z "$as_dir" && as_dir=. 11147 for ac_prog in sed gsed; do 11148 for ac_exec_ext in '' $ac_executable_extensions; do 11149 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11150 as_fn_executable_p "$ac_path_SED" || continue 11151# Check for GNU ac_path_SED and select it if it is found. 11152 # Check for GNU $ac_path_SED 11153case `"$ac_path_SED" --version 2>&1` in 11154*GNU*) 11155 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11156*) 11157 ac_count=0 11158 $as_echo_n 0123456789 >"conftest.in" 11159 while : 11160 do 11161 cat "conftest.in" "conftest.in" >"conftest.tmp" 11162 mv "conftest.tmp" "conftest.in" 11163 cp "conftest.in" "conftest.nl" 11164 $as_echo '' >> "conftest.nl" 11165 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11167 as_fn_arith $ac_count + 1 && ac_count=$as_val 11168 if test $ac_count -gt ${ac_path_SED_max-0}; then 11169 # Best one so far, save it but keep looking for a better one 11170 ac_cv_path_SED="$ac_path_SED" 11171 ac_path_SED_max=$ac_count 11172 fi 11173 # 10*(2^10) chars as input seems more than enough 11174 test $ac_count -gt 10 && break 11175 done 11176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11177esac 11178 11179 $ac_path_SED_found && break 3 11180 done 11181 done 11182 done 11183IFS=$as_save_IFS 11184 if test -z "$ac_cv_path_SED"; then 11185 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11186 fi 11187else 11188 ac_cv_path_SED=$SED 11189fi 11190 11191fi 11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11193$as_echo "$ac_cv_path_SED" >&6; } 11194 SED="$ac_cv_path_SED" 11195 rm -f conftest.sed 11196 11197test -z "$SED" && SED=sed 11198Xsed="$SED -e 1s/^X//" 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11211$as_echo_n "checking for fgrep... " >&6; } 11212if ${ac_cv_path_FGREP+:} false; then : 11213 $as_echo_n "(cached) " >&6 11214else 11215 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11216 then ac_cv_path_FGREP="$GREP -F" 11217 else 11218 if test -z "$FGREP"; then 11219 ac_path_FGREP_found=false 11220 # Loop through the user's path and test for each of PROGNAME-LIST 11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11223do 11224 IFS=$as_save_IFS 11225 test -z "$as_dir" && as_dir=. 11226 for ac_prog in fgrep; do 11227 for ac_exec_ext in '' $ac_executable_extensions; do 11228 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11229 as_fn_executable_p "$ac_path_FGREP" || continue 11230# Check for GNU ac_path_FGREP and select it if it is found. 11231 # Check for GNU $ac_path_FGREP 11232case `"$ac_path_FGREP" --version 2>&1` in 11233*GNU*) 11234 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11235*) 11236 ac_count=0 11237 $as_echo_n 0123456789 >"conftest.in" 11238 while : 11239 do 11240 cat "conftest.in" "conftest.in" >"conftest.tmp" 11241 mv "conftest.tmp" "conftest.in" 11242 cp "conftest.in" "conftest.nl" 11243 $as_echo 'FGREP' >> "conftest.nl" 11244 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11246 as_fn_arith $ac_count + 1 && ac_count=$as_val 11247 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11248 # Best one so far, save it but keep looking for a better one 11249 ac_cv_path_FGREP="$ac_path_FGREP" 11250 ac_path_FGREP_max=$ac_count 11251 fi 11252 # 10*(2^10) chars as input seems more than enough 11253 test $ac_count -gt 10 && break 11254 done 11255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11256esac 11257 11258 $ac_path_FGREP_found && break 3 11259 done 11260 done 11261 done 11262IFS=$as_save_IFS 11263 if test -z "$ac_cv_path_FGREP"; then 11264 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11265 fi 11266else 11267 ac_cv_path_FGREP=$FGREP 11268fi 11269 11270 fi 11271fi 11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11273$as_echo "$ac_cv_path_FGREP" >&6; } 11274 FGREP="$ac_cv_path_FGREP" 11275 11276 11277test -z "$GREP" && GREP=grep 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297# Check whether --with-gnu-ld was given. 11298if test "${with_gnu_ld+set}" = set; then : 11299 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11300else 11301 with_gnu_ld=no 11302fi 11303 11304ac_prog=ld 11305if test "$GCC" = yes; then 11306 # Check if gcc -print-prog-name=ld gives a path. 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11308$as_echo_n "checking for ld used by $CC... " >&6; } 11309 case $host in 11310 *-*-mingw*) 11311 # gcc leaves a trailing carriage return which upsets mingw 11312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11313 *) 11314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11315 esac 11316 case $ac_prog in 11317 # Accept absolute paths. 11318 [\\/]* | ?:[\\/]*) 11319 re_direlt='/[^/][^/]*/\.\./' 11320 # Canonicalize the pathname of ld 11321 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11322 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11323 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11324 done 11325 test -z "$LD" && LD="$ac_prog" 11326 ;; 11327 "") 11328 # If it fails, then pretend we aren't using GCC. 11329 ac_prog=ld 11330 ;; 11331 *) 11332 # If it is relative, then search for the first ld in PATH. 11333 with_gnu_ld=unknown 11334 ;; 11335 esac 11336elif test "$with_gnu_ld" = yes; then 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11338$as_echo_n "checking for GNU ld... " >&6; } 11339else 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11341$as_echo_n "checking for non-GNU ld... " >&6; } 11342fi 11343if ${lt_cv_path_LD+:} false; then : 11344 $as_echo_n "(cached) " >&6 11345else 11346 if test -z "$LD"; then 11347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11348 for ac_dir in $PATH; do 11349 IFS="$lt_save_ifs" 11350 test -z "$ac_dir" && ac_dir=. 11351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11352 lt_cv_path_LD="$ac_dir/$ac_prog" 11353 # Check to see if the program is GNU ld. I'd rather use --version, 11354 # but apparently some variants of GNU ld only accept -v. 11355 # Break only if it was the GNU/non-GNU ld that we prefer. 11356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11357 *GNU* | *'with BFD'*) 11358 test "$with_gnu_ld" != no && break 11359 ;; 11360 *) 11361 test "$with_gnu_ld" != yes && break 11362 ;; 11363 esac 11364 fi 11365 done 11366 IFS="$lt_save_ifs" 11367else 11368 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11369fi 11370fi 11371 11372LD="$lt_cv_path_LD" 11373if test -n "$LD"; then 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11375$as_echo "$LD" >&6; } 11376else 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11378$as_echo "no" >&6; } 11379fi 11380test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11382$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11383if ${lt_cv_prog_gnu_ld+:} false; then : 11384 $as_echo_n "(cached) " >&6 11385else 11386 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11387case `$LD -v 2>&1 </dev/null` in 11388*GNU* | *'with BFD'*) 11389 lt_cv_prog_gnu_ld=yes 11390 ;; 11391*) 11392 lt_cv_prog_gnu_ld=no 11393 ;; 11394esac 11395fi 11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11397$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11398with_gnu_ld=$lt_cv_prog_gnu_ld 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11409$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11410if ${lt_cv_path_NM+:} false; then : 11411 $as_echo_n "(cached) " >&6 11412else 11413 if test -n "$NM"; then 11414 # Let the user override the test. 11415 lt_cv_path_NM="$NM" 11416else 11417 lt_nm_to_check="${ac_tool_prefix}nm" 11418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11419 lt_nm_to_check="$lt_nm_to_check nm" 11420 fi 11421 for lt_tmp_nm in $lt_nm_to_check; do 11422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11424 IFS="$lt_save_ifs" 11425 test -z "$ac_dir" && ac_dir=. 11426 tmp_nm="$ac_dir/$lt_tmp_nm" 11427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11428 # Check to see if the nm accepts a BSD-compat flag. 11429 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11430 # nm: unknown option "B" ignored 11431 # Tru64's nm complains that /dev/null is an invalid object file 11432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11433 */dev/null* | *'Invalid file or object type'*) 11434 lt_cv_path_NM="$tmp_nm -B" 11435 break 11436 ;; 11437 *) 11438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11439 */dev/null*) 11440 lt_cv_path_NM="$tmp_nm -p" 11441 break 11442 ;; 11443 *) 11444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11445 continue # so that we can try to find one that supports BSD flags 11446 ;; 11447 esac 11448 ;; 11449 esac 11450 fi 11451 done 11452 IFS="$lt_save_ifs" 11453 done 11454 : ${lt_cv_path_NM=no} 11455fi 11456fi 11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11458$as_echo "$lt_cv_path_NM" >&6; } 11459if test "$lt_cv_path_NM" != "no"; then 11460 NM="$lt_cv_path_NM" 11461else 11462 # Didn't find any BSD compatible name lister, look for dumpbin. 11463 if test -n "$DUMPBIN"; then : 11464 # Let the user override the test. 11465 else 11466 if test -n "$ac_tool_prefix"; then 11467 for ac_prog in dumpbin "link -dump" 11468 do 11469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11470set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11472$as_echo_n "checking for $ac_word... " >&6; } 11473if ${ac_cv_prog_DUMPBIN+:} false; then : 11474 $as_echo_n "(cached) " >&6 11475else 11476 if test -n "$DUMPBIN"; then 11477 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11478else 11479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11480for as_dir in $PATH 11481do 11482 IFS=$as_save_IFS 11483 test -z "$as_dir" && as_dir=. 11484 for ac_exec_ext in '' $ac_executable_extensions; do 11485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11486 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11488 break 2 11489 fi 11490done 11491 done 11492IFS=$as_save_IFS 11493 11494fi 11495fi 11496DUMPBIN=$ac_cv_prog_DUMPBIN 11497if test -n "$DUMPBIN"; then 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11499$as_echo "$DUMPBIN" >&6; } 11500else 11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11502$as_echo "no" >&6; } 11503fi 11504 11505 11506 test -n "$DUMPBIN" && break 11507 done 11508fi 11509if test -z "$DUMPBIN"; then 11510 ac_ct_DUMPBIN=$DUMPBIN 11511 for ac_prog in dumpbin "link -dump" 11512do 11513 # Extract the first word of "$ac_prog", so it can be a program name with args. 11514set dummy $ac_prog; ac_word=$2 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11516$as_echo_n "checking for $ac_word... " >&6; } 11517if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11518 $as_echo_n "(cached) " >&6 11519else 11520 if test -n "$ac_ct_DUMPBIN"; then 11521 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11522else 11523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11524for as_dir in $PATH 11525do 11526 IFS=$as_save_IFS 11527 test -z "$as_dir" && as_dir=. 11528 for ac_exec_ext in '' $ac_executable_extensions; do 11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11530 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11532 break 2 11533 fi 11534done 11535 done 11536IFS=$as_save_IFS 11537 11538fi 11539fi 11540ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11541if test -n "$ac_ct_DUMPBIN"; then 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11543$as_echo "$ac_ct_DUMPBIN" >&6; } 11544else 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11546$as_echo "no" >&6; } 11547fi 11548 11549 11550 test -n "$ac_ct_DUMPBIN" && break 11551done 11552 11553 if test "x$ac_ct_DUMPBIN" = x; then 11554 DUMPBIN=":" 11555 else 11556 case $cross_compiling:$ac_tool_warned in 11557yes:) 11558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11560ac_tool_warned=yes ;; 11561esac 11562 DUMPBIN=$ac_ct_DUMPBIN 11563 fi 11564fi 11565 11566 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11567 *COFF*) 11568 DUMPBIN="$DUMPBIN -symbols" 11569 ;; 11570 *) 11571 DUMPBIN=: 11572 ;; 11573 esac 11574 fi 11575 11576 if test "$DUMPBIN" != ":"; then 11577 NM="$DUMPBIN" 11578 fi 11579fi 11580test -z "$NM" && NM=nm 11581 11582 11583 11584 11585 11586 11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11588$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11589if ${lt_cv_nm_interface+:} false; then : 11590 $as_echo_n "(cached) " >&6 11591else 11592 lt_cv_nm_interface="BSD nm" 11593 echo "int some_variable = 0;" > conftest.$ac_ext 11594 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11595 (eval "$ac_compile" 2>conftest.err) 11596 cat conftest.err >&5 11597 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11598 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11599 cat conftest.err >&5 11600 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11601 cat conftest.out >&5 11602 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11603 lt_cv_nm_interface="MS dumpbin" 11604 fi 11605 rm -f conftest* 11606fi 11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11608$as_echo "$lt_cv_nm_interface" >&6; } 11609 11610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11611$as_echo_n "checking whether ln -s works... " >&6; } 11612LN_S=$as_ln_s 11613if test "$LN_S" = "ln -s"; then 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11615$as_echo "yes" >&6; } 11616else 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11618$as_echo "no, using $LN_S" >&6; } 11619fi 11620 11621# find the maximum length of command line arguments 11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11623$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11624if ${lt_cv_sys_max_cmd_len+:} false; then : 11625 $as_echo_n "(cached) " >&6 11626else 11627 i=0 11628 teststring="ABCD" 11629 11630 case $build_os in 11631 msdosdjgpp*) 11632 # On DJGPP, this test can blow up pretty badly due to problems in libc 11633 # (any single argument exceeding 2000 bytes causes a buffer overrun 11634 # during glob expansion). Even if it were fixed, the result of this 11635 # check would be larger than it should be. 11636 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11637 ;; 11638 11639 gnu*) 11640 # Under GNU Hurd, this test is not required because there is 11641 # no limit to the length of command line arguments. 11642 # Libtool will interpret -1 as no limit whatsoever 11643 lt_cv_sys_max_cmd_len=-1; 11644 ;; 11645 11646 cygwin* | mingw* | cegcc*) 11647 # On Win9x/ME, this test blows up -- it succeeds, but takes 11648 # about 5 minutes as the teststring grows exponentially. 11649 # Worse, since 9x/ME are not pre-emptively multitasking, 11650 # you end up with a "frozen" computer, even though with patience 11651 # the test eventually succeeds (with a max line length of 256k). 11652 # Instead, let's just punt: use the minimum linelength reported by 11653 # all of the supported platforms: 8192 (on NT/2K/XP). 11654 lt_cv_sys_max_cmd_len=8192; 11655 ;; 11656 11657 mint*) 11658 # On MiNT this can take a long time and run out of memory. 11659 lt_cv_sys_max_cmd_len=8192; 11660 ;; 11661 11662 amigaos*) 11663 # On AmigaOS with pdksh, this test takes hours, literally. 11664 # So we just punt and use a minimum line length of 8192. 11665 lt_cv_sys_max_cmd_len=8192; 11666 ;; 11667 11668 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11669 # This has been around since 386BSD, at least. Likely further. 11670 if test -x /sbin/sysctl; then 11671 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11672 elif test -x /usr/sbin/sysctl; then 11673 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11674 else 11675 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11676 fi 11677 # And add a safety zone 11678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11680 ;; 11681 11682 interix*) 11683 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11684 lt_cv_sys_max_cmd_len=196608 11685 ;; 11686 11687 os2*) 11688 # The test takes a long time on OS/2. 11689 lt_cv_sys_max_cmd_len=8192 11690 ;; 11691 11692 osf*) 11693 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11694 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11695 # nice to cause kernel panics so lets avoid the loop below. 11696 # First set a reasonable default. 11697 lt_cv_sys_max_cmd_len=16384 11698 # 11699 if test -x /sbin/sysconfig; then 11700 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11701 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11702 esac 11703 fi 11704 ;; 11705 sco3.2v5*) 11706 lt_cv_sys_max_cmd_len=102400 11707 ;; 11708 sysv5* | sco5v6* | sysv4.2uw2*) 11709 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11710 if test -n "$kargmax"; then 11711 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11712 else 11713 lt_cv_sys_max_cmd_len=32768 11714 fi 11715 ;; 11716 *) 11717 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11718 if test -n "$lt_cv_sys_max_cmd_len"; then 11719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11721 else 11722 # Make teststring a little bigger before we do anything with it. 11723 # a 1K string should be a reasonable start. 11724 for i in 1 2 3 4 5 6 7 8 ; do 11725 teststring=$teststring$teststring 11726 done 11727 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11728 # If test is not a shell built-in, we'll probably end up computing a 11729 # maximum length that is only half of the actual maximum length, but 11730 # we can't tell. 11731 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11732 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11733 test $i != 17 # 1/2 MB should be enough 11734 do 11735 i=`expr $i + 1` 11736 teststring=$teststring$teststring 11737 done 11738 # Only check the string length outside the loop. 11739 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11740 teststring= 11741 # Add a significant safety factor because C++ compilers can tack on 11742 # massive amounts of additional arguments before passing them to the 11743 # linker. It appears as though 1/2 is a usable value. 11744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11745 fi 11746 ;; 11747 esac 11748 11749fi 11750 11751if test -n $lt_cv_sys_max_cmd_len ; then 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11753$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11754else 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11756$as_echo "none" >&6; } 11757fi 11758max_cmd_len=$lt_cv_sys_max_cmd_len 11759 11760 11761 11762 11763 11764 11765: ${CP="cp -f"} 11766: ${MV="mv -f"} 11767: ${RM="rm -f"} 11768 11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11770$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11771# Try some XSI features 11772xsi_shell=no 11773( _lt_dummy="a/b/c" 11774 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11775 = c,a/b,b/c, \ 11776 && eval 'test $(( 1 + 1 )) -eq 2 \ 11777 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11778 && xsi_shell=yes 11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11780$as_echo "$xsi_shell" >&6; } 11781 11782 11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11784$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11785lt_shell_append=no 11786( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11787 >/dev/null 2>&1 \ 11788 && lt_shell_append=yes 11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11790$as_echo "$lt_shell_append" >&6; } 11791 11792 11793if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11794 lt_unset=unset 11795else 11796 lt_unset=false 11797fi 11798 11799 11800 11801 11802 11803# test EBCDIC or ASCII 11804case `echo X|tr X '\101'` in 11805 A) # ASCII based system 11806 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11807 lt_SP2NL='tr \040 \012' 11808 lt_NL2SP='tr \015\012 \040\040' 11809 ;; 11810 *) # EBCDIC based system 11811 lt_SP2NL='tr \100 \n' 11812 lt_NL2SP='tr \r\n \100\100' 11813 ;; 11814esac 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11825$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11826if ${lt_cv_to_host_file_cmd+:} false; then : 11827 $as_echo_n "(cached) " >&6 11828else 11829 case $host in 11830 *-*-mingw* ) 11831 case $build in 11832 *-*-mingw* ) # actually msys 11833 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11834 ;; 11835 *-*-cygwin* ) 11836 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11837 ;; 11838 * ) # otherwise, assume *nix 11839 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11840 ;; 11841 esac 11842 ;; 11843 *-*-cygwin* ) 11844 case $build in 11845 *-*-mingw* ) # actually msys 11846 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11847 ;; 11848 *-*-cygwin* ) 11849 lt_cv_to_host_file_cmd=func_convert_file_noop 11850 ;; 11851 * ) # otherwise, assume *nix 11852 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11853 ;; 11854 esac 11855 ;; 11856 * ) # unhandled hosts (and "normal" native builds) 11857 lt_cv_to_host_file_cmd=func_convert_file_noop 11858 ;; 11859esac 11860 11861fi 11862 11863to_host_file_cmd=$lt_cv_to_host_file_cmd 11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11865$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11866 11867 11868 11869 11870 11871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11872$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11873if ${lt_cv_to_tool_file_cmd+:} false; then : 11874 $as_echo_n "(cached) " >&6 11875else 11876 #assume ordinary cross tools, or native build. 11877lt_cv_to_tool_file_cmd=func_convert_file_noop 11878case $host in 11879 *-*-mingw* ) 11880 case $build in 11881 *-*-mingw* ) # actually msys 11882 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11883 ;; 11884 esac 11885 ;; 11886esac 11887 11888fi 11889 11890to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11892$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11893 11894 11895 11896 11897 11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11899$as_echo_n "checking for $LD option to reload object files... " >&6; } 11900if ${lt_cv_ld_reload_flag+:} false; then : 11901 $as_echo_n "(cached) " >&6 11902else 11903 lt_cv_ld_reload_flag='-r' 11904fi 11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11906$as_echo "$lt_cv_ld_reload_flag" >&6; } 11907reload_flag=$lt_cv_ld_reload_flag 11908case $reload_flag in 11909"" | " "*) ;; 11910*) reload_flag=" $reload_flag" ;; 11911esac 11912reload_cmds='$LD$reload_flag -o $output$reload_objs' 11913case $host_os in 11914 cygwin* | mingw* | pw32* | cegcc*) 11915 if test "$GCC" != yes; then 11916 reload_cmds=false 11917 fi 11918 ;; 11919 darwin*) 11920 if test "$GCC" = yes; then 11921 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11922 else 11923 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11924 fi 11925 ;; 11926esac 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936if test -n "$ac_tool_prefix"; then 11937 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11938set dummy ${ac_tool_prefix}objdump; ac_word=$2 11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11940$as_echo_n "checking for $ac_word... " >&6; } 11941if ${ac_cv_prog_OBJDUMP+:} false; then : 11942 $as_echo_n "(cached) " >&6 11943else 11944 if test -n "$OBJDUMP"; then 11945 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11946else 11947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11948for as_dir in $PATH 11949do 11950 IFS=$as_save_IFS 11951 test -z "$as_dir" && as_dir=. 11952 for ac_exec_ext in '' $ac_executable_extensions; do 11953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11954 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11956 break 2 11957 fi 11958done 11959 done 11960IFS=$as_save_IFS 11961 11962fi 11963fi 11964OBJDUMP=$ac_cv_prog_OBJDUMP 11965if test -n "$OBJDUMP"; then 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11967$as_echo "$OBJDUMP" >&6; } 11968else 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11970$as_echo "no" >&6; } 11971fi 11972 11973 11974fi 11975if test -z "$ac_cv_prog_OBJDUMP"; then 11976 ac_ct_OBJDUMP=$OBJDUMP 11977 # Extract the first word of "objdump", so it can be a program name with args. 11978set dummy objdump; ac_word=$2 11979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11980$as_echo_n "checking for $ac_word... " >&6; } 11981if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11982 $as_echo_n "(cached) " >&6 11983else 11984 if test -n "$ac_ct_OBJDUMP"; then 11985 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11986else 11987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11988for as_dir in $PATH 11989do 11990 IFS=$as_save_IFS 11991 test -z "$as_dir" && as_dir=. 11992 for ac_exec_ext in '' $ac_executable_extensions; do 11993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11994 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11996 break 2 11997 fi 11998done 11999 done 12000IFS=$as_save_IFS 12001 12002fi 12003fi 12004ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12005if test -n "$ac_ct_OBJDUMP"; then 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12007$as_echo "$ac_ct_OBJDUMP" >&6; } 12008else 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12010$as_echo "no" >&6; } 12011fi 12012 12013 if test "x$ac_ct_OBJDUMP" = x; then 12014 OBJDUMP="false" 12015 else 12016 case $cross_compiling:$ac_tool_warned in 12017yes:) 12018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12020ac_tool_warned=yes ;; 12021esac 12022 OBJDUMP=$ac_ct_OBJDUMP 12023 fi 12024else 12025 OBJDUMP="$ac_cv_prog_OBJDUMP" 12026fi 12027 12028test -z "$OBJDUMP" && OBJDUMP=objdump 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12039$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12040if ${lt_cv_deplibs_check_method+:} false; then : 12041 $as_echo_n "(cached) " >&6 12042else 12043 lt_cv_file_magic_cmd='$MAGIC_CMD' 12044lt_cv_file_magic_test_file= 12045lt_cv_deplibs_check_method='unknown' 12046# Need to set the preceding variable on all platforms that support 12047# interlibrary dependencies. 12048# 'none' -- dependencies not supported. 12049# `unknown' -- same as none, but documents that we really don't know. 12050# 'pass_all' -- all dependencies passed with no checks. 12051# 'test_compile' -- check by making test program. 12052# 'file_magic [[regex]]' -- check by looking for files in library path 12053# which responds to the $file_magic_cmd with a given extended regex. 12054# If you have `file' or equivalent on your system and you're not sure 12055# whether `pass_all' will *always* work, you probably want this one. 12056 12057case $host_os in 12058aix[4-9]*) 12059 lt_cv_deplibs_check_method=pass_all 12060 ;; 12061 12062beos*) 12063 lt_cv_deplibs_check_method=pass_all 12064 ;; 12065 12066bsdi[45]*) 12067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12068 lt_cv_file_magic_cmd='/usr/bin/file -L' 12069 lt_cv_file_magic_test_file=/shlib/libc.so 12070 ;; 12071 12072cygwin*) 12073 # func_win32_libid is a shell function defined in ltmain.sh 12074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12075 lt_cv_file_magic_cmd='func_win32_libid' 12076 ;; 12077 12078mingw* | pw32*) 12079 # Base MSYS/MinGW do not provide the 'file' command needed by 12080 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12081 # unless we find 'file', for example because we are cross-compiling. 12082 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 12083 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 12084 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12085 lt_cv_file_magic_cmd='func_win32_libid' 12086 else 12087 # Keep this pattern in sync with the one in func_win32_libid. 12088 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12089 lt_cv_file_magic_cmd='$OBJDUMP -f' 12090 fi 12091 ;; 12092 12093cegcc*) 12094 # use the weaker test based on 'objdump'. See mingw*. 12095 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12096 lt_cv_file_magic_cmd='$OBJDUMP -f' 12097 ;; 12098 12099darwin* | rhapsody*) 12100 lt_cv_deplibs_check_method=pass_all 12101 ;; 12102 12103freebsd* | dragonfly*) 12104 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12105 case $host_cpu in 12106 i*86 ) 12107 # Not sure whether the presence of OpenBSD here was a mistake. 12108 # Let's accept both of them until this is cleared up. 12109 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12110 lt_cv_file_magic_cmd=/usr/bin/file 12111 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12112 ;; 12113 esac 12114 else 12115 lt_cv_deplibs_check_method=pass_all 12116 fi 12117 ;; 12118 12119gnu*) 12120 lt_cv_deplibs_check_method=pass_all 12121 ;; 12122 12123haiku*) 12124 lt_cv_deplibs_check_method=pass_all 12125 ;; 12126 12127hpux10.20* | hpux11*) 12128 lt_cv_file_magic_cmd=/usr/bin/file 12129 case $host_cpu in 12130 ia64*) 12131 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12132 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12133 ;; 12134 hppa*64*) 12135 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]' 12136 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12137 ;; 12138 *) 12139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12140 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12141 ;; 12142 esac 12143 ;; 12144 12145interix[3-9]*) 12146 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12148 ;; 12149 12150irix5* | irix6* | nonstopux*) 12151 case $LD in 12152 *-32|*"-32 ") libmagic=32-bit;; 12153 *-n32|*"-n32 ") libmagic=N32;; 12154 *-64|*"-64 ") libmagic=64-bit;; 12155 *) libmagic=never-match;; 12156 esac 12157 lt_cv_deplibs_check_method=pass_all 12158 ;; 12159 12160# This must be glibc/ELF. 12161linux* | k*bsd*-gnu | kopensolaris*-gnu) 12162 lt_cv_deplibs_check_method=pass_all 12163 ;; 12164 12165netbsd*) 12166 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12168 else 12169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12170 fi 12171 ;; 12172 12173newos6*) 12174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12175 lt_cv_file_magic_cmd=/usr/bin/file 12176 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12177 ;; 12178 12179*nto* | *qnx*) 12180 lt_cv_deplibs_check_method=pass_all 12181 ;; 12182 12183openbsd*) 12184 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12186 else 12187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12188 fi 12189 ;; 12190 12191osf3* | osf4* | osf5*) 12192 lt_cv_deplibs_check_method=pass_all 12193 ;; 12194 12195rdos*) 12196 lt_cv_deplibs_check_method=pass_all 12197 ;; 12198 12199solaris*) 12200 lt_cv_deplibs_check_method=pass_all 12201 ;; 12202 12203sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12204 lt_cv_deplibs_check_method=pass_all 12205 ;; 12206 12207sysv4 | sysv4.3*) 12208 case $host_vendor in 12209 motorola) 12210 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]' 12211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12212 ;; 12213 ncr) 12214 lt_cv_deplibs_check_method=pass_all 12215 ;; 12216 sequent) 12217 lt_cv_file_magic_cmd='/bin/file' 12218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12219 ;; 12220 sni) 12221 lt_cv_file_magic_cmd='/bin/file' 12222 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12223 lt_cv_file_magic_test_file=/lib/libc.so 12224 ;; 12225 siemens) 12226 lt_cv_deplibs_check_method=pass_all 12227 ;; 12228 pc) 12229 lt_cv_deplibs_check_method=pass_all 12230 ;; 12231 esac 12232 ;; 12233 12234tpf*) 12235 lt_cv_deplibs_check_method=pass_all 12236 ;; 12237esac 12238 12239fi 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12241$as_echo "$lt_cv_deplibs_check_method" >&6; } 12242 12243file_magic_glob= 12244want_nocaseglob=no 12245if test "$build" = "$host"; then 12246 case $host_os in 12247 mingw* | pw32*) 12248 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12249 want_nocaseglob=yes 12250 else 12251 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12252 fi 12253 ;; 12254 esac 12255fi 12256 12257file_magic_cmd=$lt_cv_file_magic_cmd 12258deplibs_check_method=$lt_cv_deplibs_check_method 12259test -z "$deplibs_check_method" && deplibs_check_method=unknown 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282if test -n "$ac_tool_prefix"; then 12283 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12284set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12286$as_echo_n "checking for $ac_word... " >&6; } 12287if ${ac_cv_prog_DLLTOOL+:} false; then : 12288 $as_echo_n "(cached) " >&6 12289else 12290 if test -n "$DLLTOOL"; then 12291 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12292else 12293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12294for as_dir in $PATH 12295do 12296 IFS=$as_save_IFS 12297 test -z "$as_dir" && as_dir=. 12298 for ac_exec_ext in '' $ac_executable_extensions; do 12299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12300 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12302 break 2 12303 fi 12304done 12305 done 12306IFS=$as_save_IFS 12307 12308fi 12309fi 12310DLLTOOL=$ac_cv_prog_DLLTOOL 12311if test -n "$DLLTOOL"; then 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12313$as_echo "$DLLTOOL" >&6; } 12314else 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12316$as_echo "no" >&6; } 12317fi 12318 12319 12320fi 12321if test -z "$ac_cv_prog_DLLTOOL"; then 12322 ac_ct_DLLTOOL=$DLLTOOL 12323 # Extract the first word of "dlltool", so it can be a program name with args. 12324set dummy dlltool; ac_word=$2 12325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12326$as_echo_n "checking for $ac_word... " >&6; } 12327if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12328 $as_echo_n "(cached) " >&6 12329else 12330 if test -n "$ac_ct_DLLTOOL"; then 12331 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12332else 12333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12334for as_dir in $PATH 12335do 12336 IFS=$as_save_IFS 12337 test -z "$as_dir" && as_dir=. 12338 for ac_exec_ext in '' $ac_executable_extensions; do 12339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12340 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12342 break 2 12343 fi 12344done 12345 done 12346IFS=$as_save_IFS 12347 12348fi 12349fi 12350ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12351if test -n "$ac_ct_DLLTOOL"; then 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12353$as_echo "$ac_ct_DLLTOOL" >&6; } 12354else 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12356$as_echo "no" >&6; } 12357fi 12358 12359 if test "x$ac_ct_DLLTOOL" = x; then 12360 DLLTOOL="false" 12361 else 12362 case $cross_compiling:$ac_tool_warned in 12363yes:) 12364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12366ac_tool_warned=yes ;; 12367esac 12368 DLLTOOL=$ac_ct_DLLTOOL 12369 fi 12370else 12371 DLLTOOL="$ac_cv_prog_DLLTOOL" 12372fi 12373 12374test -z "$DLLTOOL" && DLLTOOL=dlltool 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12386$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12387if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12388 $as_echo_n "(cached) " >&6 12389else 12390 lt_cv_sharedlib_from_linklib_cmd='unknown' 12391 12392case $host_os in 12393cygwin* | mingw* | pw32* | cegcc*) 12394 # two different shell functions defined in ltmain.sh 12395 # decide which to use based on capabilities of $DLLTOOL 12396 case `$DLLTOOL --help 2>&1` in 12397 *--identify-strict*) 12398 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12399 ;; 12400 *) 12401 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12402 ;; 12403 esac 12404 ;; 12405*) 12406 # fallback: assume linklib IS sharedlib 12407 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12408 ;; 12409esac 12410 12411fi 12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12413$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12414sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12415test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12416 12417 12418 12419 12420 12421 12422 12423if test -n "$ac_tool_prefix"; then 12424 for ac_prog in ar 12425 do 12426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12427set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12429$as_echo_n "checking for $ac_word... " >&6; } 12430if ${ac_cv_prog_AR+:} false; then : 12431 $as_echo_n "(cached) " >&6 12432else 12433 if test -n "$AR"; then 12434 ac_cv_prog_AR="$AR" # Let the user override the test. 12435else 12436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12437for as_dir in $PATH 12438do 12439 IFS=$as_save_IFS 12440 test -z "$as_dir" && as_dir=. 12441 for ac_exec_ext in '' $ac_executable_extensions; do 12442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12443 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12445 break 2 12446 fi 12447done 12448 done 12449IFS=$as_save_IFS 12450 12451fi 12452fi 12453AR=$ac_cv_prog_AR 12454if test -n "$AR"; then 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12456$as_echo "$AR" >&6; } 12457else 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12459$as_echo "no" >&6; } 12460fi 12461 12462 12463 test -n "$AR" && break 12464 done 12465fi 12466if test -z "$AR"; then 12467 ac_ct_AR=$AR 12468 for ac_prog in ar 12469do 12470 # Extract the first word of "$ac_prog", so it can be a program name with args. 12471set dummy $ac_prog; ac_word=$2 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12473$as_echo_n "checking for $ac_word... " >&6; } 12474if ${ac_cv_prog_ac_ct_AR+:} false; then : 12475 $as_echo_n "(cached) " >&6 12476else 12477 if test -n "$ac_ct_AR"; then 12478 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12479else 12480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12481for as_dir in $PATH 12482do 12483 IFS=$as_save_IFS 12484 test -z "$as_dir" && as_dir=. 12485 for ac_exec_ext in '' $ac_executable_extensions; do 12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12487 ac_cv_prog_ac_ct_AR="$ac_prog" 12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12489 break 2 12490 fi 12491done 12492 done 12493IFS=$as_save_IFS 12494 12495fi 12496fi 12497ac_ct_AR=$ac_cv_prog_ac_ct_AR 12498if test -n "$ac_ct_AR"; then 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12500$as_echo "$ac_ct_AR" >&6; } 12501else 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12503$as_echo "no" >&6; } 12504fi 12505 12506 12507 test -n "$ac_ct_AR" && break 12508done 12509 12510 if test "x$ac_ct_AR" = x; then 12511 AR="false" 12512 else 12513 case $cross_compiling:$ac_tool_warned in 12514yes:) 12515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12517ac_tool_warned=yes ;; 12518esac 12519 AR=$ac_ct_AR 12520 fi 12521fi 12522 12523: ${AR=ar} 12524: ${AR_FLAGS=cru} 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12537$as_echo_n "checking for archiver @FILE support... " >&6; } 12538if ${lt_cv_ar_at_file+:} false; then : 12539 $as_echo_n "(cached) " >&6 12540else 12541 lt_cv_ar_at_file=no 12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12543/* end confdefs.h. */ 12544 12545int 12546main () 12547{ 12548 12549 ; 12550 return 0; 12551} 12552_ACEOF 12553if ac_fn_c_try_compile "$LINENO"; then : 12554 echo conftest.$ac_objext > conftest.lst 12555 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12557 (eval $lt_ar_try) 2>&5 12558 ac_status=$? 12559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12560 test $ac_status = 0; } 12561 if test "$ac_status" -eq 0; then 12562 # Ensure the archiver fails upon bogus file names. 12563 rm -f conftest.$ac_objext libconftest.a 12564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12565 (eval $lt_ar_try) 2>&5 12566 ac_status=$? 12567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12568 test $ac_status = 0; } 12569 if test "$ac_status" -ne 0; then 12570 lt_cv_ar_at_file=@ 12571 fi 12572 fi 12573 rm -f conftest.* libconftest.a 12574 12575fi 12576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12577 12578fi 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12580$as_echo "$lt_cv_ar_at_file" >&6; } 12581 12582if test "x$lt_cv_ar_at_file" = xno; then 12583 archiver_list_spec= 12584else 12585 archiver_list_spec=$lt_cv_ar_at_file 12586fi 12587 12588 12589 12590 12591 12592 12593 12594if test -n "$ac_tool_prefix"; then 12595 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12596set dummy ${ac_tool_prefix}strip; ac_word=$2 12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12598$as_echo_n "checking for $ac_word... " >&6; } 12599if ${ac_cv_prog_STRIP+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 if test -n "$STRIP"; then 12603 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12604else 12605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12606for as_dir in $PATH 12607do 12608 IFS=$as_save_IFS 12609 test -z "$as_dir" && as_dir=. 12610 for ac_exec_ext in '' $ac_executable_extensions; do 12611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12612 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12614 break 2 12615 fi 12616done 12617 done 12618IFS=$as_save_IFS 12619 12620fi 12621fi 12622STRIP=$ac_cv_prog_STRIP 12623if test -n "$STRIP"; then 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12625$as_echo "$STRIP" >&6; } 12626else 12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12628$as_echo "no" >&6; } 12629fi 12630 12631 12632fi 12633if test -z "$ac_cv_prog_STRIP"; then 12634 ac_ct_STRIP=$STRIP 12635 # Extract the first word of "strip", so it can be a program name with args. 12636set dummy strip; ac_word=$2 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12638$as_echo_n "checking for $ac_word... " >&6; } 12639if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12640 $as_echo_n "(cached) " >&6 12641else 12642 if test -n "$ac_ct_STRIP"; then 12643 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12644else 12645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12646for as_dir in $PATH 12647do 12648 IFS=$as_save_IFS 12649 test -z "$as_dir" && as_dir=. 12650 for ac_exec_ext in '' $ac_executable_extensions; do 12651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12652 ac_cv_prog_ac_ct_STRIP="strip" 12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12654 break 2 12655 fi 12656done 12657 done 12658IFS=$as_save_IFS 12659 12660fi 12661fi 12662ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12663if test -n "$ac_ct_STRIP"; then 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12665$as_echo "$ac_ct_STRIP" >&6; } 12666else 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12668$as_echo "no" >&6; } 12669fi 12670 12671 if test "x$ac_ct_STRIP" = x; then 12672 STRIP=":" 12673 else 12674 case $cross_compiling:$ac_tool_warned in 12675yes:) 12676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12678ac_tool_warned=yes ;; 12679esac 12680 STRIP=$ac_ct_STRIP 12681 fi 12682else 12683 STRIP="$ac_cv_prog_STRIP" 12684fi 12685 12686test -z "$STRIP" && STRIP=: 12687 12688 12689 12690 12691 12692 12693if test -n "$ac_tool_prefix"; then 12694 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12695set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12697$as_echo_n "checking for $ac_word... " >&6; } 12698if ${ac_cv_prog_RANLIB+:} false; then : 12699 $as_echo_n "(cached) " >&6 12700else 12701 if test -n "$RANLIB"; then 12702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12703else 12704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12705for as_dir in $PATH 12706do 12707 IFS=$as_save_IFS 12708 test -z "$as_dir" && as_dir=. 12709 for ac_exec_ext in '' $ac_executable_extensions; do 12710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12711 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12713 break 2 12714 fi 12715done 12716 done 12717IFS=$as_save_IFS 12718 12719fi 12720fi 12721RANLIB=$ac_cv_prog_RANLIB 12722if test -n "$RANLIB"; then 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12724$as_echo "$RANLIB" >&6; } 12725else 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12727$as_echo "no" >&6; } 12728fi 12729 12730 12731fi 12732if test -z "$ac_cv_prog_RANLIB"; then 12733 ac_ct_RANLIB=$RANLIB 12734 # Extract the first word of "ranlib", so it can be a program name with args. 12735set dummy ranlib; ac_word=$2 12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12737$as_echo_n "checking for $ac_word... " >&6; } 12738if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 if test -n "$ac_ct_RANLIB"; then 12742 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12743else 12744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12745for as_dir in $PATH 12746do 12747 IFS=$as_save_IFS 12748 test -z "$as_dir" && as_dir=. 12749 for ac_exec_ext in '' $ac_executable_extensions; do 12750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12751 ac_cv_prog_ac_ct_RANLIB="ranlib" 12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12753 break 2 12754 fi 12755done 12756 done 12757IFS=$as_save_IFS 12758 12759fi 12760fi 12761ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12762if test -n "$ac_ct_RANLIB"; then 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12764$as_echo "$ac_ct_RANLIB" >&6; } 12765else 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12767$as_echo "no" >&6; } 12768fi 12769 12770 if test "x$ac_ct_RANLIB" = x; then 12771 RANLIB=":" 12772 else 12773 case $cross_compiling:$ac_tool_warned in 12774yes:) 12775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12777ac_tool_warned=yes ;; 12778esac 12779 RANLIB=$ac_ct_RANLIB 12780 fi 12781else 12782 RANLIB="$ac_cv_prog_RANLIB" 12783fi 12784 12785test -z "$RANLIB" && RANLIB=: 12786 12787 12788 12789 12790 12791 12792# Determine commands to create old-style static archives. 12793old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12794old_postinstall_cmds='chmod 644 $oldlib' 12795old_postuninstall_cmds= 12796 12797if test -n "$RANLIB"; then 12798 case $host_os in 12799 openbsd*) 12800 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12801 ;; 12802 *) 12803 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12804 ;; 12805 esac 12806 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12807fi 12808 12809case $host_os in 12810 darwin*) 12811 lock_old_archive_extraction=yes ;; 12812 *) 12813 lock_old_archive_extraction=no ;; 12814esac 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854# If no C compiler was specified, use CC. 12855LTCC=${LTCC-"$CC"} 12856 12857# If no C compiler flags were specified, use CFLAGS. 12858LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12859 12860# Allow CC to be a program name with arguments. 12861compiler=$CC 12862 12863 12864# Check for command to grab the raw symbol name followed by C symbol from nm. 12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12866$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12867if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12868 $as_echo_n "(cached) " >&6 12869else 12870 12871# These are sane defaults that work on at least a few old systems. 12872# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12873 12874# Character class describing NM global symbol codes. 12875symcode='[BCDEGRST]' 12876 12877# Regexp to match symbols that can be accessed directly from C. 12878sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12879 12880# Define system-specific variables. 12881case $host_os in 12882aix*) 12883 symcode='[BCDT]' 12884 ;; 12885cygwin* | mingw* | pw32* | cegcc*) 12886 symcode='[ABCDGISTW]' 12887 ;; 12888hpux*) 12889 if test "$host_cpu" = ia64; then 12890 symcode='[ABCDEGRST]' 12891 fi 12892 ;; 12893irix* | nonstopux*) 12894 symcode='[BCDEGRST]' 12895 ;; 12896osf*) 12897 symcode='[BCDEGQRST]' 12898 ;; 12899solaris*) 12900 symcode='[BDRT]' 12901 ;; 12902sco3.2v5*) 12903 symcode='[DT]' 12904 ;; 12905sysv4.2uw2*) 12906 symcode='[DT]' 12907 ;; 12908sysv5* | sco5v6* | unixware* | OpenUNIX*) 12909 symcode='[ABDT]' 12910 ;; 12911sysv4) 12912 symcode='[DFNSTU]' 12913 ;; 12914esac 12915 12916# If we're using GNU nm, then use its standard symbol codes. 12917case `$NM -V 2>&1` in 12918*GNU* | *'with BFD'*) 12919 symcode='[ABCDGIRSTW]' ;; 12920esac 12921 12922# Transform an extracted symbol line into a proper C declaration. 12923# Some systems (esp. on ia64) link data and code symbols differently, 12924# so use this general approach. 12925lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12926 12927# Transform an extracted symbol line into symbol name and symbol address 12928lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12929lt_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'" 12930 12931# Handle CRLF in mingw tool chain 12932opt_cr= 12933case $build_os in 12934mingw*) 12935 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12936 ;; 12937esac 12938 12939# Try without a prefix underscore, then with it. 12940for ac_symprfx in "" "_"; do 12941 12942 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12943 symxfrm="\\1 $ac_symprfx\\2 \\2" 12944 12945 # Write the raw and C identifiers. 12946 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12947 # Fake it for dumpbin and say T for any non-static function 12948 # and D for any global variable. 12949 # Also find C++ and __fastcall symbols from MSVC++, 12950 # which start with @ or ?. 12951 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12952" {last_section=section; section=\$ 3};"\ 12953" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12954" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12955" \$ 0!~/External *\|/{next};"\ 12956" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12957" {if(hide[section]) next};"\ 12958" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12959" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12960" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12961" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12962" ' prfx=^$ac_symprfx" 12963 else 12964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12965 fi 12966 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12967 12968 # Check to see that the pipe works correctly. 12969 pipe_works=no 12970 12971 rm -f conftest* 12972 cat > conftest.$ac_ext <<_LT_EOF 12973#ifdef __cplusplus 12974extern "C" { 12975#endif 12976char nm_test_var; 12977void nm_test_func(void); 12978void nm_test_func(void){} 12979#ifdef __cplusplus 12980} 12981#endif 12982int main(){nm_test_var='a';nm_test_func();return(0);} 12983_LT_EOF 12984 12985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12986 (eval $ac_compile) 2>&5 12987 ac_status=$? 12988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12989 test $ac_status = 0; }; then 12990 # Now try to grab the symbols. 12991 nlist=conftest.nm 12992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12993 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12994 ac_status=$? 12995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12996 test $ac_status = 0; } && test -s "$nlist"; then 12997 # Try sorting and uniquifying the output. 12998 if sort "$nlist" | uniq > "$nlist"T; then 12999 mv -f "$nlist"T "$nlist" 13000 else 13001 rm -f "$nlist"T 13002 fi 13003 13004 # Make sure that we snagged all the symbols we need. 13005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13007 cat <<_LT_EOF > conftest.$ac_ext 13008/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13009#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 13010/* DATA imports from DLLs on WIN32 con't be const, because runtime 13011 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13012# define LT_DLSYM_CONST 13013#elif defined(__osf__) 13014/* This system does not cope well with relocations in const data. */ 13015# define LT_DLSYM_CONST 13016#else 13017# define LT_DLSYM_CONST const 13018#endif 13019 13020#ifdef __cplusplus 13021extern "C" { 13022#endif 13023 13024_LT_EOF 13025 # Now generate the symbol file. 13026 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13027 13028 cat <<_LT_EOF >> conftest.$ac_ext 13029 13030/* The mapping between symbol names and symbols. */ 13031LT_DLSYM_CONST struct { 13032 const char *name; 13033 void *address; 13034} 13035lt__PROGRAM__LTX_preloaded_symbols[] = 13036{ 13037 { "@PROGRAM@", (void *) 0 }, 13038_LT_EOF 13039 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13040 cat <<\_LT_EOF >> conftest.$ac_ext 13041 {0, (void *) 0} 13042}; 13043 13044/* This works around a problem in FreeBSD linker */ 13045#ifdef FREEBSD_WORKAROUND 13046static const void *lt_preloaded_setup() { 13047 return lt__PROGRAM__LTX_preloaded_symbols; 13048} 13049#endif 13050 13051#ifdef __cplusplus 13052} 13053#endif 13054_LT_EOF 13055 # Now try linking the two files. 13056 mv conftest.$ac_objext conftstm.$ac_objext 13057 lt_globsym_save_LIBS=$LIBS 13058 lt_globsym_save_CFLAGS=$CFLAGS 13059 LIBS="conftstm.$ac_objext" 13060 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13062 (eval $ac_link) 2>&5 13063 ac_status=$? 13064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13065 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 13066 pipe_works=yes 13067 fi 13068 LIBS=$lt_globsym_save_LIBS 13069 CFLAGS=$lt_globsym_save_CFLAGS 13070 else 13071 echo "cannot find nm_test_func in $nlist" >&5 13072 fi 13073 else 13074 echo "cannot find nm_test_var in $nlist" >&5 13075 fi 13076 else 13077 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13078 fi 13079 else 13080 echo "$progname: failed program was:" >&5 13081 cat conftest.$ac_ext >&5 13082 fi 13083 rm -rf conftest* conftst* 13084 13085 # Do not use the global_symbol_pipe unless it works. 13086 if test "$pipe_works" = yes; then 13087 break 13088 else 13089 lt_cv_sys_global_symbol_pipe= 13090 fi 13091done 13092 13093fi 13094 13095if test -z "$lt_cv_sys_global_symbol_pipe"; then 13096 lt_cv_sys_global_symbol_to_cdecl= 13097fi 13098if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13100$as_echo "failed" >&6; } 13101else 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13103$as_echo "ok" >&6; } 13104fi 13105 13106# Response file support. 13107if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13108 nm_file_list_spec='@' 13109elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13110 nm_file_list_spec='@' 13111fi 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13140$as_echo_n "checking for sysroot... " >&6; } 13141 13142# Check whether --with-sysroot was given. 13143if test "${with_sysroot+set}" = set; then : 13144 withval=$with_sysroot; 13145else 13146 with_sysroot=no 13147fi 13148 13149 13150lt_sysroot= 13151case ${with_sysroot} in #( 13152 yes) 13153 if test "$GCC" = yes; then 13154 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13155 fi 13156 ;; #( 13157 /*) 13158 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13159 ;; #( 13160 no|'') 13161 ;; #( 13162 *) 13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 13164$as_echo "${with_sysroot}" >&6; } 13165 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13166 ;; 13167esac 13168 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13170$as_echo "${lt_sysroot:-no}" >&6; } 13171 13172 13173 13174 13175 13176# Check whether --enable-libtool-lock was given. 13177if test "${enable_libtool_lock+set}" = set; then : 13178 enableval=$enable_libtool_lock; 13179fi 13180 13181test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 13182 13183# Some flags need to be propagated to the compiler or linker for good 13184# libtool support. 13185case $host in 13186ia64-*-hpux*) 13187 # Find out which ABI we are using. 13188 echo 'int i;' > conftest.$ac_ext 13189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13190 (eval $ac_compile) 2>&5 13191 ac_status=$? 13192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13193 test $ac_status = 0; }; then 13194 case `/usr/bin/file conftest.$ac_objext` in 13195 *ELF-32*) 13196 HPUX_IA64_MODE="32" 13197 ;; 13198 *ELF-64*) 13199 HPUX_IA64_MODE="64" 13200 ;; 13201 esac 13202 fi 13203 rm -rf conftest* 13204 ;; 13205*-*-irix6*) 13206 # Find out which ABI we are using. 13207 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13209 (eval $ac_compile) 2>&5 13210 ac_status=$? 13211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13212 test $ac_status = 0; }; then 13213 if test "$lt_cv_prog_gnu_ld" = yes; then 13214 case `/usr/bin/file conftest.$ac_objext` in 13215 *32-bit*) 13216 LD="${LD-ld} -melf32bsmip" 13217 ;; 13218 *N32*) 13219 LD="${LD-ld} -melf32bmipn32" 13220 ;; 13221 *64-bit*) 13222 LD="${LD-ld} -melf64bmip" 13223 ;; 13224 esac 13225 else 13226 case `/usr/bin/file conftest.$ac_objext` in 13227 *32-bit*) 13228 LD="${LD-ld} -32" 13229 ;; 13230 *N32*) 13231 LD="${LD-ld} -n32" 13232 ;; 13233 *64-bit*) 13234 LD="${LD-ld} -64" 13235 ;; 13236 esac 13237 fi 13238 fi 13239 rm -rf conftest* 13240 ;; 13241 13242x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13243s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13244 # Find out which ABI we are using. 13245 echo 'int i;' > conftest.$ac_ext 13246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13247 (eval $ac_compile) 2>&5 13248 ac_status=$? 13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13250 test $ac_status = 0; }; then 13251 case `/usr/bin/file conftest.o` in 13252 *32-bit*) 13253 case $host in 13254 x86_64-*kfreebsd*-gnu) 13255 LD="${LD-ld} -m elf_i386_fbsd" 13256 ;; 13257 x86_64-*linux*) 13258 LD="${LD-ld} -m elf_i386" 13259 ;; 13260 powerpc64le-*linux*) 13261 LD="${LD-ld} -m elf32lppclinux" 13262 ;; 13263 powerpc64-*linux*) 13264 LD="${LD-ld} -m elf32ppclinux" 13265 ;; 13266 s390x-*linux*) 13267 LD="${LD-ld} -m elf_s390" 13268 ;; 13269 sparc64-*linux*) 13270 LD="${LD-ld} -m elf32_sparc" 13271 ;; 13272 esac 13273 ;; 13274 *64-bit*) 13275 case $host in 13276 x86_64-*kfreebsd*-gnu) 13277 LD="${LD-ld} -m elf_x86_64_fbsd" 13278 ;; 13279 x86_64-*linux*) 13280 LD="${LD-ld} -m elf_x86_64" 13281 ;; 13282 powerpcle-*linux*) 13283 LD="${LD-ld} -m elf64lppc" 13284 ;; 13285 powerpc-*linux*) 13286 LD="${LD-ld} -m elf64ppc" 13287 ;; 13288 s390*-*linux*|s390*-*tpf*) 13289 LD="${LD-ld} -m elf64_s390" 13290 ;; 13291 sparc*-*linux*) 13292 LD="${LD-ld} -m elf64_sparc" 13293 ;; 13294 esac 13295 ;; 13296 esac 13297 fi 13298 rm -rf conftest* 13299 ;; 13300 13301*-*-sco3.2v5*) 13302 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13303 SAVE_CFLAGS="$CFLAGS" 13304 CFLAGS="$CFLAGS -belf" 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13306$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13307if ${lt_cv_cc_needs_belf+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309else 13310 ac_ext=c 13311ac_cpp='$CPP $CPPFLAGS' 13312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13314ac_compiler_gnu=$ac_cv_c_compiler_gnu 13315 13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13317/* end confdefs.h. */ 13318 13319int 13320main () 13321{ 13322 13323 ; 13324 return 0; 13325} 13326_ACEOF 13327if ac_fn_c_try_link "$LINENO"; then : 13328 lt_cv_cc_needs_belf=yes 13329else 13330 lt_cv_cc_needs_belf=no 13331fi 13332rm -f core conftest.err conftest.$ac_objext \ 13333 conftest$ac_exeext conftest.$ac_ext 13334 ac_ext=c 13335ac_cpp='$CPP $CPPFLAGS' 13336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13338ac_compiler_gnu=$ac_cv_c_compiler_gnu 13339 13340fi 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13342$as_echo "$lt_cv_cc_needs_belf" >&6; } 13343 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13344 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13345 CFLAGS="$SAVE_CFLAGS" 13346 fi 13347 ;; 13348*-*solaris*) 13349 # Find out which ABI we are using. 13350 echo 'int i;' > conftest.$ac_ext 13351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13352 (eval $ac_compile) 2>&5 13353 ac_status=$? 13354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13355 test $ac_status = 0; }; then 13356 case `/usr/bin/file conftest.o` in 13357 *64-bit*) 13358 case $lt_cv_prog_gnu_ld in 13359 yes*) 13360 case $host in 13361 i?86-*-solaris*) 13362 LD="${LD-ld} -m elf_x86_64" 13363 ;; 13364 sparc*-*-solaris*) 13365 LD="${LD-ld} -m elf64_sparc" 13366 ;; 13367 esac 13368 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13369 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13370 LD="${LD-ld}_sol2" 13371 fi 13372 ;; 13373 *) 13374 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13375 LD="${LD-ld} -64" 13376 fi 13377 ;; 13378 esac 13379 ;; 13380 esac 13381 fi 13382 rm -rf conftest* 13383 ;; 13384esac 13385 13386need_locks="$enable_libtool_lock" 13387 13388if test -n "$ac_tool_prefix"; then 13389 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13390set dummy ${ac_tool_prefix}mt; ac_word=$2 13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13392$as_echo_n "checking for $ac_word... " >&6; } 13393if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13394 $as_echo_n "(cached) " >&6 13395else 13396 if test -n "$MANIFEST_TOOL"; then 13397 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13398else 13399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13400for as_dir in $PATH 13401do 13402 IFS=$as_save_IFS 13403 test -z "$as_dir" && as_dir=. 13404 for ac_exec_ext in '' $ac_executable_extensions; do 13405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13406 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13408 break 2 13409 fi 13410done 13411 done 13412IFS=$as_save_IFS 13413 13414fi 13415fi 13416MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13417if test -n "$MANIFEST_TOOL"; then 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13419$as_echo "$MANIFEST_TOOL" >&6; } 13420else 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13422$as_echo "no" >&6; } 13423fi 13424 13425 13426fi 13427if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13428 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13429 # Extract the first word of "mt", so it can be a program name with args. 13430set dummy mt; ac_word=$2 13431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13432$as_echo_n "checking for $ac_word... " >&6; } 13433if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13434 $as_echo_n "(cached) " >&6 13435else 13436 if test -n "$ac_ct_MANIFEST_TOOL"; then 13437 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13438else 13439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13440for as_dir in $PATH 13441do 13442 IFS=$as_save_IFS 13443 test -z "$as_dir" && as_dir=. 13444 for ac_exec_ext in '' $ac_executable_extensions; do 13445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13446 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13448 break 2 13449 fi 13450done 13451 done 13452IFS=$as_save_IFS 13453 13454fi 13455fi 13456ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13457if test -n "$ac_ct_MANIFEST_TOOL"; then 13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13459$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13460else 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13462$as_echo "no" >&6; } 13463fi 13464 13465 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13466 MANIFEST_TOOL=":" 13467 else 13468 case $cross_compiling:$ac_tool_warned in 13469yes:) 13470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13472ac_tool_warned=yes ;; 13473esac 13474 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13475 fi 13476else 13477 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13478fi 13479 13480test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13482$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13483if ${lt_cv_path_mainfest_tool+:} false; then : 13484 $as_echo_n "(cached) " >&6 13485else 13486 lt_cv_path_mainfest_tool=no 13487 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13488 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13489 cat conftest.err >&5 13490 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13491 lt_cv_path_mainfest_tool=yes 13492 fi 13493 rm -f conftest* 13494fi 13495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13496$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13497if test "x$lt_cv_path_mainfest_tool" != xyes; then 13498 MANIFEST_TOOL=: 13499fi 13500 13501 13502 13503 13504 13505 13506 case $host_os in 13507 rhapsody* | darwin*) 13508 if test -n "$ac_tool_prefix"; then 13509 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13510set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13512$as_echo_n "checking for $ac_word... " >&6; } 13513if ${ac_cv_prog_DSYMUTIL+:} false; then : 13514 $as_echo_n "(cached) " >&6 13515else 13516 if test -n "$DSYMUTIL"; then 13517 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13518else 13519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13520for as_dir in $PATH 13521do 13522 IFS=$as_save_IFS 13523 test -z "$as_dir" && as_dir=. 13524 for ac_exec_ext in '' $ac_executable_extensions; do 13525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13526 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13528 break 2 13529 fi 13530done 13531 done 13532IFS=$as_save_IFS 13533 13534fi 13535fi 13536DSYMUTIL=$ac_cv_prog_DSYMUTIL 13537if test -n "$DSYMUTIL"; then 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13539$as_echo "$DSYMUTIL" >&6; } 13540else 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13542$as_echo "no" >&6; } 13543fi 13544 13545 13546fi 13547if test -z "$ac_cv_prog_DSYMUTIL"; then 13548 ac_ct_DSYMUTIL=$DSYMUTIL 13549 # Extract the first word of "dsymutil", so it can be a program name with args. 13550set dummy dsymutil; ac_word=$2 13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13552$as_echo_n "checking for $ac_word... " >&6; } 13553if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13554 $as_echo_n "(cached) " >&6 13555else 13556 if test -n "$ac_ct_DSYMUTIL"; then 13557 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13558else 13559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13560for as_dir in $PATH 13561do 13562 IFS=$as_save_IFS 13563 test -z "$as_dir" && as_dir=. 13564 for ac_exec_ext in '' $ac_executable_extensions; do 13565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13566 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13568 break 2 13569 fi 13570done 13571 done 13572IFS=$as_save_IFS 13573 13574fi 13575fi 13576ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13577if test -n "$ac_ct_DSYMUTIL"; then 13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13579$as_echo "$ac_ct_DSYMUTIL" >&6; } 13580else 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13582$as_echo "no" >&6; } 13583fi 13584 13585 if test "x$ac_ct_DSYMUTIL" = x; then 13586 DSYMUTIL=":" 13587 else 13588 case $cross_compiling:$ac_tool_warned in 13589yes:) 13590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13592ac_tool_warned=yes ;; 13593esac 13594 DSYMUTIL=$ac_ct_DSYMUTIL 13595 fi 13596else 13597 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13598fi 13599 13600 if test -n "$ac_tool_prefix"; then 13601 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13602set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13604$as_echo_n "checking for $ac_word... " >&6; } 13605if ${ac_cv_prog_NMEDIT+:} false; then : 13606 $as_echo_n "(cached) " >&6 13607else 13608 if test -n "$NMEDIT"; then 13609 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13610else 13611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13612for as_dir in $PATH 13613do 13614 IFS=$as_save_IFS 13615 test -z "$as_dir" && as_dir=. 13616 for ac_exec_ext in '' $ac_executable_extensions; do 13617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13618 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13620 break 2 13621 fi 13622done 13623 done 13624IFS=$as_save_IFS 13625 13626fi 13627fi 13628NMEDIT=$ac_cv_prog_NMEDIT 13629if test -n "$NMEDIT"; then 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13631$as_echo "$NMEDIT" >&6; } 13632else 13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13634$as_echo "no" >&6; } 13635fi 13636 13637 13638fi 13639if test -z "$ac_cv_prog_NMEDIT"; then 13640 ac_ct_NMEDIT=$NMEDIT 13641 # Extract the first word of "nmedit", so it can be a program name with args. 13642set dummy nmedit; ac_word=$2 13643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13644$as_echo_n "checking for $ac_word... " >&6; } 13645if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13646 $as_echo_n "(cached) " >&6 13647else 13648 if test -n "$ac_ct_NMEDIT"; then 13649 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13650else 13651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13652for as_dir in $PATH 13653do 13654 IFS=$as_save_IFS 13655 test -z "$as_dir" && as_dir=. 13656 for ac_exec_ext in '' $ac_executable_extensions; do 13657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13658 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13660 break 2 13661 fi 13662done 13663 done 13664IFS=$as_save_IFS 13665 13666fi 13667fi 13668ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13669if test -n "$ac_ct_NMEDIT"; then 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13671$as_echo "$ac_ct_NMEDIT" >&6; } 13672else 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13674$as_echo "no" >&6; } 13675fi 13676 13677 if test "x$ac_ct_NMEDIT" = x; then 13678 NMEDIT=":" 13679 else 13680 case $cross_compiling:$ac_tool_warned in 13681yes:) 13682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13684ac_tool_warned=yes ;; 13685esac 13686 NMEDIT=$ac_ct_NMEDIT 13687 fi 13688else 13689 NMEDIT="$ac_cv_prog_NMEDIT" 13690fi 13691 13692 if test -n "$ac_tool_prefix"; then 13693 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13694set dummy ${ac_tool_prefix}lipo; ac_word=$2 13695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13696$as_echo_n "checking for $ac_word... " >&6; } 13697if ${ac_cv_prog_LIPO+:} false; then : 13698 $as_echo_n "(cached) " >&6 13699else 13700 if test -n "$LIPO"; then 13701 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13702else 13703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13704for as_dir in $PATH 13705do 13706 IFS=$as_save_IFS 13707 test -z "$as_dir" && as_dir=. 13708 for ac_exec_ext in '' $ac_executable_extensions; do 13709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13710 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13712 break 2 13713 fi 13714done 13715 done 13716IFS=$as_save_IFS 13717 13718fi 13719fi 13720LIPO=$ac_cv_prog_LIPO 13721if test -n "$LIPO"; then 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13723$as_echo "$LIPO" >&6; } 13724else 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13726$as_echo "no" >&6; } 13727fi 13728 13729 13730fi 13731if test -z "$ac_cv_prog_LIPO"; then 13732 ac_ct_LIPO=$LIPO 13733 # Extract the first word of "lipo", so it can be a program name with args. 13734set dummy lipo; ac_word=$2 13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13736$as_echo_n "checking for $ac_word... " >&6; } 13737if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13738 $as_echo_n "(cached) " >&6 13739else 13740 if test -n "$ac_ct_LIPO"; then 13741 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13742else 13743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13744for as_dir in $PATH 13745do 13746 IFS=$as_save_IFS 13747 test -z "$as_dir" && as_dir=. 13748 for ac_exec_ext in '' $ac_executable_extensions; do 13749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13750 ac_cv_prog_ac_ct_LIPO="lipo" 13751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13752 break 2 13753 fi 13754done 13755 done 13756IFS=$as_save_IFS 13757 13758fi 13759fi 13760ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13761if test -n "$ac_ct_LIPO"; then 13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13763$as_echo "$ac_ct_LIPO" >&6; } 13764else 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13766$as_echo "no" >&6; } 13767fi 13768 13769 if test "x$ac_ct_LIPO" = x; then 13770 LIPO=":" 13771 else 13772 case $cross_compiling:$ac_tool_warned in 13773yes:) 13774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13776ac_tool_warned=yes ;; 13777esac 13778 LIPO=$ac_ct_LIPO 13779 fi 13780else 13781 LIPO="$ac_cv_prog_LIPO" 13782fi 13783 13784 if test -n "$ac_tool_prefix"; then 13785 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13786set dummy ${ac_tool_prefix}otool; ac_word=$2 13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13788$as_echo_n "checking for $ac_word... " >&6; } 13789if ${ac_cv_prog_OTOOL+:} false; then : 13790 $as_echo_n "(cached) " >&6 13791else 13792 if test -n "$OTOOL"; then 13793 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13794else 13795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13796for as_dir in $PATH 13797do 13798 IFS=$as_save_IFS 13799 test -z "$as_dir" && as_dir=. 13800 for ac_exec_ext in '' $ac_executable_extensions; do 13801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13802 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13804 break 2 13805 fi 13806done 13807 done 13808IFS=$as_save_IFS 13809 13810fi 13811fi 13812OTOOL=$ac_cv_prog_OTOOL 13813if test -n "$OTOOL"; then 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13815$as_echo "$OTOOL" >&6; } 13816else 13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13818$as_echo "no" >&6; } 13819fi 13820 13821 13822fi 13823if test -z "$ac_cv_prog_OTOOL"; then 13824 ac_ct_OTOOL=$OTOOL 13825 # Extract the first word of "otool", so it can be a program name with args. 13826set dummy otool; ac_word=$2 13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13828$as_echo_n "checking for $ac_word... " >&6; } 13829if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13830 $as_echo_n "(cached) " >&6 13831else 13832 if test -n "$ac_ct_OTOOL"; then 13833 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13834else 13835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13836for as_dir in $PATH 13837do 13838 IFS=$as_save_IFS 13839 test -z "$as_dir" && as_dir=. 13840 for ac_exec_ext in '' $ac_executable_extensions; do 13841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13842 ac_cv_prog_ac_ct_OTOOL="otool" 13843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13844 break 2 13845 fi 13846done 13847 done 13848IFS=$as_save_IFS 13849 13850fi 13851fi 13852ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13853if test -n "$ac_ct_OTOOL"; then 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13855$as_echo "$ac_ct_OTOOL" >&6; } 13856else 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13858$as_echo "no" >&6; } 13859fi 13860 13861 if test "x$ac_ct_OTOOL" = x; then 13862 OTOOL=":" 13863 else 13864 case $cross_compiling:$ac_tool_warned in 13865yes:) 13866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13868ac_tool_warned=yes ;; 13869esac 13870 OTOOL=$ac_ct_OTOOL 13871 fi 13872else 13873 OTOOL="$ac_cv_prog_OTOOL" 13874fi 13875 13876 if test -n "$ac_tool_prefix"; then 13877 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13878set dummy ${ac_tool_prefix}otool64; ac_word=$2 13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13880$as_echo_n "checking for $ac_word... " >&6; } 13881if ${ac_cv_prog_OTOOL64+:} false; then : 13882 $as_echo_n "(cached) " >&6 13883else 13884 if test -n "$OTOOL64"; then 13885 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13886else 13887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13888for as_dir in $PATH 13889do 13890 IFS=$as_save_IFS 13891 test -z "$as_dir" && as_dir=. 13892 for ac_exec_ext in '' $ac_executable_extensions; do 13893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13894 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13896 break 2 13897 fi 13898done 13899 done 13900IFS=$as_save_IFS 13901 13902fi 13903fi 13904OTOOL64=$ac_cv_prog_OTOOL64 13905if test -n "$OTOOL64"; then 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13907$as_echo "$OTOOL64" >&6; } 13908else 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13910$as_echo "no" >&6; } 13911fi 13912 13913 13914fi 13915if test -z "$ac_cv_prog_OTOOL64"; then 13916 ac_ct_OTOOL64=$OTOOL64 13917 # Extract the first word of "otool64", so it can be a program name with args. 13918set dummy otool64; ac_word=$2 13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13920$as_echo_n "checking for $ac_word... " >&6; } 13921if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 if test -n "$ac_ct_OTOOL64"; then 13925 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13926else 13927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13928for as_dir in $PATH 13929do 13930 IFS=$as_save_IFS 13931 test -z "$as_dir" && as_dir=. 13932 for ac_exec_ext in '' $ac_executable_extensions; do 13933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13934 ac_cv_prog_ac_ct_OTOOL64="otool64" 13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13936 break 2 13937 fi 13938done 13939 done 13940IFS=$as_save_IFS 13941 13942fi 13943fi 13944ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13945if test -n "$ac_ct_OTOOL64"; then 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13947$as_echo "$ac_ct_OTOOL64" >&6; } 13948else 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13950$as_echo "no" >&6; } 13951fi 13952 13953 if test "x$ac_ct_OTOOL64" = x; then 13954 OTOOL64=":" 13955 else 13956 case $cross_compiling:$ac_tool_warned in 13957yes:) 13958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13960ac_tool_warned=yes ;; 13961esac 13962 OTOOL64=$ac_ct_OTOOL64 13963 fi 13964else 13965 OTOOL64="$ac_cv_prog_OTOOL64" 13966fi 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13995$as_echo_n "checking for -single_module linker flag... " >&6; } 13996if ${lt_cv_apple_cc_single_mod+:} false; then : 13997 $as_echo_n "(cached) " >&6 13998else 13999 lt_cv_apple_cc_single_mod=no 14000 if test -z "${LT_MULTI_MODULE}"; then 14001 # By default we will add the -single_module flag. You can override 14002 # by either setting the environment variable LT_MULTI_MODULE 14003 # non-empty at configure time, or by adding -multi_module to the 14004 # link flags. 14005 rm -rf libconftest.dylib* 14006 echo "int foo(void){return 1;}" > conftest.c 14007 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14008-dynamiclib -Wl,-single_module conftest.c" >&5 14009 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14010 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14011 _lt_result=$? 14012 # If there is a non-empty error log, and "single_module" 14013 # appears in it, assume the flag caused a linker warning 14014 if test -s conftest.err && $GREP single_module conftest.err; then 14015 cat conftest.err >&5 14016 # Otherwise, if the output was created with a 0 exit code from 14017 # the compiler, it worked. 14018 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 14019 lt_cv_apple_cc_single_mod=yes 14020 else 14021 cat conftest.err >&5 14022 fi 14023 rm -rf libconftest.dylib* 14024 rm -f conftest.* 14025 fi 14026fi 14027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14028$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14029 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14031$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14032if ${lt_cv_ld_exported_symbols_list+:} false; then : 14033 $as_echo_n "(cached) " >&6 14034else 14035 lt_cv_ld_exported_symbols_list=no 14036 save_LDFLAGS=$LDFLAGS 14037 echo "_main" > conftest.sym 14038 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14040/* end confdefs.h. */ 14041 14042int 14043main () 14044{ 14045 14046 ; 14047 return 0; 14048} 14049_ACEOF 14050if ac_fn_c_try_link "$LINENO"; then : 14051 lt_cv_ld_exported_symbols_list=yes 14052else 14053 lt_cv_ld_exported_symbols_list=no 14054fi 14055rm -f core conftest.err conftest.$ac_objext \ 14056 conftest$ac_exeext conftest.$ac_ext 14057 LDFLAGS="$save_LDFLAGS" 14058 14059fi 14060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14061$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14062 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14064$as_echo_n "checking for -force_load linker flag... " >&6; } 14065if ${lt_cv_ld_force_load+:} false; then : 14066 $as_echo_n "(cached) " >&6 14067else 14068 lt_cv_ld_force_load=no 14069 cat > conftest.c << _LT_EOF 14070int forced_loaded() { return 2;} 14071_LT_EOF 14072 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14073 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14074 echo "$AR cru libconftest.a conftest.o" >&5 14075 $AR cru libconftest.a conftest.o 2>&5 14076 echo "$RANLIB libconftest.a" >&5 14077 $RANLIB libconftest.a 2>&5 14078 cat > conftest.c << _LT_EOF 14079int main() { return 0;} 14080_LT_EOF 14081 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14082 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14083 _lt_result=$? 14084 if test -s conftest.err && $GREP force_load conftest.err; then 14085 cat conftest.err >&5 14086 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 14087 lt_cv_ld_force_load=yes 14088 else 14089 cat conftest.err >&5 14090 fi 14091 rm -f conftest.err libconftest.a conftest conftest.c 14092 rm -rf conftest.dSYM 14093 14094fi 14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14096$as_echo "$lt_cv_ld_force_load" >&6; } 14097 case $host_os in 14098 rhapsody* | darwin1.[012]) 14099 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 14100 darwin1.*) 14101 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14102 darwin*) # darwin 5.x on 14103 # if running on 10.5 or later, the deployment target defaults 14104 # to the OS version, if on x86, and 10.4, the deployment 14105 # target defaults to 10.4. Don't you love it? 14106 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14107 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14108 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14109 10.[012]*) 14110 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14111 10.*) 14112 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14113 esac 14114 ;; 14115 esac 14116 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 14117 _lt_dar_single_mod='$single_module' 14118 fi 14119 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 14120 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 14121 else 14122 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 14123 fi 14124 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 14125 _lt_dsymutil='~$DSYMUTIL $lib || :' 14126 else 14127 _lt_dsymutil= 14128 fi 14129 ;; 14130 esac 14131 14132for ac_header in dlfcn.h 14133do : 14134 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14135" 14136if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14137 cat >>confdefs.h <<_ACEOF 14138#define HAVE_DLFCN_H 1 14139_ACEOF 14140 14141fi 14142 14143done 14144 14145 14146 14147 14148 14149# Set options 14150 14151 14152 14153 enable_dlopen=no 14154 14155 14156 enable_win32_dll=no 14157 14158 14159 # Check whether --enable-shared was given. 14160if test "${enable_shared+set}" = set; then : 14161 enableval=$enable_shared; p=${PACKAGE-default} 14162 case $enableval in 14163 yes) enable_shared=yes ;; 14164 no) enable_shared=no ;; 14165 *) 14166 enable_shared=no 14167 # Look at the argument we got. We use all the common list separators. 14168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14169 for pkg in $enableval; do 14170 IFS="$lt_save_ifs" 14171 if test "X$pkg" = "X$p"; then 14172 enable_shared=yes 14173 fi 14174 done 14175 IFS="$lt_save_ifs" 14176 ;; 14177 esac 14178else 14179 enable_shared=yes 14180fi 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192# Check whether --with-pic was given. 14193if test "${with_pic+set}" = set; then : 14194 withval=$with_pic; lt_p=${PACKAGE-default} 14195 case $withval in 14196 yes|no) pic_mode=$withval ;; 14197 *) 14198 pic_mode=default 14199 # Look at the argument we got. We use all the common list separators. 14200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14201 for lt_pkg in $withval; do 14202 IFS="$lt_save_ifs" 14203 if test "X$lt_pkg" = "X$lt_p"; then 14204 pic_mode=yes 14205 fi 14206 done 14207 IFS="$lt_save_ifs" 14208 ;; 14209 esac 14210else 14211 pic_mode=default 14212fi 14213 14214 14215test -z "$pic_mode" && pic_mode=default 14216 14217 14218 14219 14220 14221 14222 14223 # Check whether --enable-fast-install was given. 14224if test "${enable_fast_install+set}" = set; then : 14225 enableval=$enable_fast_install; p=${PACKAGE-default} 14226 case $enableval in 14227 yes) enable_fast_install=yes ;; 14228 no) enable_fast_install=no ;; 14229 *) 14230 enable_fast_install=no 14231 # Look at the argument we got. We use all the common list separators. 14232 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14233 for pkg in $enableval; do 14234 IFS="$lt_save_ifs" 14235 if test "X$pkg" = "X$p"; then 14236 enable_fast_install=yes 14237 fi 14238 done 14239 IFS="$lt_save_ifs" 14240 ;; 14241 esac 14242else 14243 enable_fast_install=yes 14244fi 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256# This can be used to rebuild libtool when needed 14257LIBTOOL_DEPS="$ltmain" 14258 14259# Always use our own libtool. 14260LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291test -z "$LN_S" && LN_S="ln -s" 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306if test -n "${ZSH_VERSION+set}" ; then 14307 setopt NO_GLOB_SUBST 14308fi 14309 14310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14311$as_echo_n "checking for objdir... " >&6; } 14312if ${lt_cv_objdir+:} false; then : 14313 $as_echo_n "(cached) " >&6 14314else 14315 rm -f .libs 2>/dev/null 14316mkdir .libs 2>/dev/null 14317if test -d .libs; then 14318 lt_cv_objdir=.libs 14319else 14320 # MS-DOS does not allow filenames that begin with a dot. 14321 lt_cv_objdir=_libs 14322fi 14323rmdir .libs 2>/dev/null 14324fi 14325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14326$as_echo "$lt_cv_objdir" >&6; } 14327objdir=$lt_cv_objdir 14328 14329 14330 14331 14332 14333cat >>confdefs.h <<_ACEOF 14334#define LT_OBJDIR "$lt_cv_objdir/" 14335_ACEOF 14336 14337 14338 14339 14340case $host_os in 14341aix3*) 14342 # AIX sometimes has problems with the GCC collect2 program. For some 14343 # reason, if we set the COLLECT_NAMES environment variable, the problems 14344 # vanish in a puff of smoke. 14345 if test "X${COLLECT_NAMES+set}" != Xset; then 14346 COLLECT_NAMES= 14347 export COLLECT_NAMES 14348 fi 14349 ;; 14350esac 14351 14352# Global variables: 14353ofile=libtool 14354can_build_shared=yes 14355 14356# All known linkers require a `.a' archive for static linking (except MSVC, 14357# which needs '.lib'). 14358libext=a 14359 14360with_gnu_ld="$lt_cv_prog_gnu_ld" 14361 14362old_CC="$CC" 14363old_CFLAGS="$CFLAGS" 14364 14365# Set sane defaults for various variables 14366test -z "$CC" && CC=cc 14367test -z "$LTCC" && LTCC=$CC 14368test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14369test -z "$LD" && LD=ld 14370test -z "$ac_objext" && ac_objext=o 14371 14372for cc_temp in $compiler""; do 14373 case $cc_temp in 14374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14376 \-*) ;; 14377 *) break;; 14378 esac 14379done 14380cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14381 14382 14383# Only perform the check for file, if the check method requires it 14384test -z "$MAGIC_CMD" && MAGIC_CMD=file 14385case $deplibs_check_method in 14386file_magic*) 14387 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14389$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14390if ${lt_cv_path_MAGIC_CMD+:} false; then : 14391 $as_echo_n "(cached) " >&6 14392else 14393 case $MAGIC_CMD in 14394[\\/*] | ?:[\\/]*) 14395 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14396 ;; 14397*) 14398 lt_save_MAGIC_CMD="$MAGIC_CMD" 14399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14400 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14401 for ac_dir in $ac_dummy; do 14402 IFS="$lt_save_ifs" 14403 test -z "$ac_dir" && ac_dir=. 14404 if test -f $ac_dir/${ac_tool_prefix}file; then 14405 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14406 if test -n "$file_magic_test_file"; then 14407 case $deplibs_check_method in 14408 "file_magic "*) 14409 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14411 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14412 $EGREP "$file_magic_regex" > /dev/null; then 14413 : 14414 else 14415 cat <<_LT_EOF 1>&2 14416 14417*** Warning: the command libtool uses to detect shared libraries, 14418*** $file_magic_cmd, produces output that libtool cannot recognize. 14419*** The result is that libtool may fail to recognize shared libraries 14420*** as such. This will affect the creation of libtool libraries that 14421*** depend on shared libraries, but programs linked with such libtool 14422*** libraries will work regardless of this problem. Nevertheless, you 14423*** may want to report the problem to your system manager and/or to 14424*** bug-libtool@gnu.org 14425 14426_LT_EOF 14427 fi ;; 14428 esac 14429 fi 14430 break 14431 fi 14432 done 14433 IFS="$lt_save_ifs" 14434 MAGIC_CMD="$lt_save_MAGIC_CMD" 14435 ;; 14436esac 14437fi 14438 14439MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14440if test -n "$MAGIC_CMD"; then 14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14442$as_echo "$MAGIC_CMD" >&6; } 14443else 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14445$as_echo "no" >&6; } 14446fi 14447 14448 14449 14450 14451 14452if test -z "$lt_cv_path_MAGIC_CMD"; then 14453 if test -n "$ac_tool_prefix"; then 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14455$as_echo_n "checking for file... " >&6; } 14456if ${lt_cv_path_MAGIC_CMD+:} false; then : 14457 $as_echo_n "(cached) " >&6 14458else 14459 case $MAGIC_CMD in 14460[\\/*] | ?:[\\/]*) 14461 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14462 ;; 14463*) 14464 lt_save_MAGIC_CMD="$MAGIC_CMD" 14465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14466 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14467 for ac_dir in $ac_dummy; do 14468 IFS="$lt_save_ifs" 14469 test -z "$ac_dir" && ac_dir=. 14470 if test -f $ac_dir/file; then 14471 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14472 if test -n "$file_magic_test_file"; then 14473 case $deplibs_check_method in 14474 "file_magic "*) 14475 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14477 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14478 $EGREP "$file_magic_regex" > /dev/null; then 14479 : 14480 else 14481 cat <<_LT_EOF 1>&2 14482 14483*** Warning: the command libtool uses to detect shared libraries, 14484*** $file_magic_cmd, produces output that libtool cannot recognize. 14485*** The result is that libtool may fail to recognize shared libraries 14486*** as such. This will affect the creation of libtool libraries that 14487*** depend on shared libraries, but programs linked with such libtool 14488*** libraries will work regardless of this problem. Nevertheless, you 14489*** may want to report the problem to your system manager and/or to 14490*** bug-libtool@gnu.org 14491 14492_LT_EOF 14493 fi ;; 14494 esac 14495 fi 14496 break 14497 fi 14498 done 14499 IFS="$lt_save_ifs" 14500 MAGIC_CMD="$lt_save_MAGIC_CMD" 14501 ;; 14502esac 14503fi 14504 14505MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14506if test -n "$MAGIC_CMD"; then 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14508$as_echo "$MAGIC_CMD" >&6; } 14509else 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14511$as_echo "no" >&6; } 14512fi 14513 14514 14515 else 14516 MAGIC_CMD=: 14517 fi 14518fi 14519 14520 fi 14521 ;; 14522esac 14523 14524# Use C for the default configuration in the libtool script 14525 14526lt_save_CC="$CC" 14527ac_ext=c 14528ac_cpp='$CPP $CPPFLAGS' 14529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14531ac_compiler_gnu=$ac_cv_c_compiler_gnu 14532 14533 14534# Source file extension for C test sources. 14535ac_ext=c 14536 14537# Object file extension for compiled C test sources. 14538objext=o 14539objext=$objext 14540 14541# Code to be used in simple compile tests 14542lt_simple_compile_test_code="int some_variable = 0;" 14543 14544# Code to be used in simple link tests 14545lt_simple_link_test_code='int main(){return(0);}' 14546 14547 14548 14549 14550 14551 14552 14553# If no C compiler was specified, use CC. 14554LTCC=${LTCC-"$CC"} 14555 14556# If no C compiler flags were specified, use CFLAGS. 14557LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14558 14559# Allow CC to be a program name with arguments. 14560compiler=$CC 14561 14562# Save the default compiler, since it gets overwritten when the other 14563# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14564compiler_DEFAULT=$CC 14565 14566# save warnings/boilerplate of simple test code 14567ac_outfile=conftest.$ac_objext 14568echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14569eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14570_lt_compiler_boilerplate=`cat conftest.err` 14571$RM conftest* 14572 14573ac_outfile=conftest.$ac_objext 14574echo "$lt_simple_link_test_code" >conftest.$ac_ext 14575eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14576_lt_linker_boilerplate=`cat conftest.err` 14577$RM -r conftest* 14578 14579 14580if test -n "$compiler"; then 14581 14582lt_prog_compiler_no_builtin_flag= 14583 14584if test "$GCC" = yes; then 14585 case $cc_basename in 14586 nvcc*) 14587 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14588 *) 14589 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14590 esac 14591 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14593$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14594if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14595 $as_echo_n "(cached) " >&6 14596else 14597 lt_cv_prog_compiler_rtti_exceptions=no 14598 ac_outfile=conftest.$ac_objext 14599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14600 lt_compiler_flag="-fno-rtti -fno-exceptions" 14601 # Insert the option either (1) after the last *FLAGS variable, or 14602 # (2) before a word containing "conftest.", or (3) at the end. 14603 # Note that $ac_compile itself does not contain backslashes and begins 14604 # with a dollar sign (not a hyphen), so the echo should work correctly. 14605 # The option is referenced via a variable to avoid confusing sed. 14606 lt_compile=`echo "$ac_compile" | $SED \ 14607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14609 -e 's:$: $lt_compiler_flag:'` 14610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14611 (eval "$lt_compile" 2>conftest.err) 14612 ac_status=$? 14613 cat conftest.err >&5 14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14615 if (exit $ac_status) && test -s "$ac_outfile"; then 14616 # The compiler can only warn and ignore the option if not recognized 14617 # So say no if there are warnings other than the usual output. 14618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14621 lt_cv_prog_compiler_rtti_exceptions=yes 14622 fi 14623 fi 14624 $RM conftest* 14625 14626fi 14627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14628$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14629 14630if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14631 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14632else 14633 : 14634fi 14635 14636fi 14637 14638 14639 14640 14641 14642 14643 lt_prog_compiler_wl= 14644lt_prog_compiler_pic= 14645lt_prog_compiler_static= 14646 14647 14648 if test "$GCC" = yes; then 14649 lt_prog_compiler_wl='-Wl,' 14650 lt_prog_compiler_static='-static' 14651 14652 case $host_os in 14653 aix*) 14654 # All AIX code is PIC. 14655 if test "$host_cpu" = ia64; then 14656 # AIX 5 now supports IA64 processor 14657 lt_prog_compiler_static='-Bstatic' 14658 fi 14659 ;; 14660 14661 amigaos*) 14662 case $host_cpu in 14663 powerpc) 14664 # see comment about AmigaOS4 .so support 14665 lt_prog_compiler_pic='-fPIC' 14666 ;; 14667 m68k) 14668 # FIXME: we need at least 68020 code to build shared libraries, but 14669 # adding the `-m68020' flag to GCC prevents building anything better, 14670 # like `-m68040'. 14671 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14672 ;; 14673 esac 14674 ;; 14675 14676 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14677 # PIC is the default for these OSes. 14678 ;; 14679 14680 mingw* | cygwin* | pw32* | os2* | cegcc*) 14681 # This hack is so that the source file can tell whether it is being 14682 # built for inclusion in a dll (and should export symbols for example). 14683 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14684 # (--disable-auto-import) libraries 14685 lt_prog_compiler_pic='-DDLL_EXPORT' 14686 ;; 14687 14688 darwin* | rhapsody*) 14689 # PIC is the default on this platform 14690 # Common symbols not allowed in MH_DYLIB files 14691 lt_prog_compiler_pic='-fno-common' 14692 ;; 14693 14694 haiku*) 14695 # PIC is the default for Haiku. 14696 # The "-static" flag exists, but is broken. 14697 lt_prog_compiler_static= 14698 ;; 14699 14700 hpux*) 14701 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14702 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14703 # sets the default TLS model and affects inlining. 14704 case $host_cpu in 14705 hppa*64*) 14706 # +Z the default 14707 ;; 14708 *) 14709 lt_prog_compiler_pic='-fPIC' 14710 ;; 14711 esac 14712 ;; 14713 14714 interix[3-9]*) 14715 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14716 # Instead, we relocate shared libraries at runtime. 14717 ;; 14718 14719 msdosdjgpp*) 14720 # Just because we use GCC doesn't mean we suddenly get shared libraries 14721 # on systems that don't support them. 14722 lt_prog_compiler_can_build_shared=no 14723 enable_shared=no 14724 ;; 14725 14726 *nto* | *qnx*) 14727 # QNX uses GNU C++, but need to define -shared option too, otherwise 14728 # it will coredump. 14729 lt_prog_compiler_pic='-fPIC -shared' 14730 ;; 14731 14732 sysv4*MP*) 14733 if test -d /usr/nec; then 14734 lt_prog_compiler_pic=-Kconform_pic 14735 fi 14736 ;; 14737 14738 *) 14739 lt_prog_compiler_pic='-fPIC' 14740 ;; 14741 esac 14742 14743 case $cc_basename in 14744 nvcc*) # Cuda Compiler Driver 2.2 14745 lt_prog_compiler_wl='-Xlinker ' 14746 if test -n "$lt_prog_compiler_pic"; then 14747 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14748 fi 14749 ;; 14750 esac 14751 else 14752 # PORTME Check for flag to pass linker flags through the system compiler. 14753 case $host_os in 14754 aix*) 14755 lt_prog_compiler_wl='-Wl,' 14756 if test "$host_cpu" = ia64; then 14757 # AIX 5 now supports IA64 processor 14758 lt_prog_compiler_static='-Bstatic' 14759 else 14760 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14761 fi 14762 ;; 14763 14764 mingw* | cygwin* | pw32* | os2* | cegcc*) 14765 # This hack is so that the source file can tell whether it is being 14766 # built for inclusion in a dll (and should export symbols for example). 14767 lt_prog_compiler_pic='-DDLL_EXPORT' 14768 ;; 14769 14770 hpux9* | hpux10* | hpux11*) 14771 lt_prog_compiler_wl='-Wl,' 14772 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14773 # not for PA HP-UX. 14774 case $host_cpu in 14775 hppa*64*|ia64*) 14776 # +Z the default 14777 ;; 14778 *) 14779 lt_prog_compiler_pic='+Z' 14780 ;; 14781 esac 14782 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14783 lt_prog_compiler_static='${wl}-a ${wl}archive' 14784 ;; 14785 14786 irix5* | irix6* | nonstopux*) 14787 lt_prog_compiler_wl='-Wl,' 14788 # PIC (with -KPIC) is the default. 14789 lt_prog_compiler_static='-non_shared' 14790 ;; 14791 14792 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14793 case $cc_basename in 14794 # old Intel for x86_64 which still supported -KPIC. 14795 ecc*) 14796 lt_prog_compiler_wl='-Wl,' 14797 lt_prog_compiler_pic='-KPIC' 14798 lt_prog_compiler_static='-static' 14799 ;; 14800 # icc used to be incompatible with GCC. 14801 # ICC 10 doesn't accept -KPIC any more. 14802 icc* | ifort*) 14803 lt_prog_compiler_wl='-Wl,' 14804 lt_prog_compiler_pic='-fPIC' 14805 lt_prog_compiler_static='-static' 14806 ;; 14807 # Lahey Fortran 8.1. 14808 lf95*) 14809 lt_prog_compiler_wl='-Wl,' 14810 lt_prog_compiler_pic='--shared' 14811 lt_prog_compiler_static='--static' 14812 ;; 14813 nagfor*) 14814 # NAG Fortran compiler 14815 lt_prog_compiler_wl='-Wl,-Wl,,' 14816 lt_prog_compiler_pic='-PIC' 14817 lt_prog_compiler_static='-Bstatic' 14818 ;; 14819 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14820 # Portland Group compilers (*not* the Pentium gcc compiler, 14821 # which looks to be a dead project) 14822 lt_prog_compiler_wl='-Wl,' 14823 lt_prog_compiler_pic='-fpic' 14824 lt_prog_compiler_static='-Bstatic' 14825 ;; 14826 ccc*) 14827 lt_prog_compiler_wl='-Wl,' 14828 # All Alpha code is PIC. 14829 lt_prog_compiler_static='-non_shared' 14830 ;; 14831 xl* | bgxl* | bgf* | mpixl*) 14832 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14833 lt_prog_compiler_wl='-Wl,' 14834 lt_prog_compiler_pic='-qpic' 14835 lt_prog_compiler_static='-qstaticlink' 14836 ;; 14837 *) 14838 case `$CC -V 2>&1 | sed 5q` in 14839 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14840 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14841 lt_prog_compiler_pic='-KPIC' 14842 lt_prog_compiler_static='-Bstatic' 14843 lt_prog_compiler_wl='' 14844 ;; 14845 *Sun\ F* | *Sun*Fortran*) 14846 lt_prog_compiler_pic='-KPIC' 14847 lt_prog_compiler_static='-Bstatic' 14848 lt_prog_compiler_wl='-Qoption ld ' 14849 ;; 14850 *Sun\ C*) 14851 # Sun C 5.9 14852 lt_prog_compiler_pic='-KPIC' 14853 lt_prog_compiler_static='-Bstatic' 14854 lt_prog_compiler_wl='-Wl,' 14855 ;; 14856 *Intel*\ [CF]*Compiler*) 14857 lt_prog_compiler_wl='-Wl,' 14858 lt_prog_compiler_pic='-fPIC' 14859 lt_prog_compiler_static='-static' 14860 ;; 14861 *Portland\ Group*) 14862 lt_prog_compiler_wl='-Wl,' 14863 lt_prog_compiler_pic='-fpic' 14864 lt_prog_compiler_static='-Bstatic' 14865 ;; 14866 esac 14867 ;; 14868 esac 14869 ;; 14870 14871 newsos6) 14872 lt_prog_compiler_pic='-KPIC' 14873 lt_prog_compiler_static='-Bstatic' 14874 ;; 14875 14876 *nto* | *qnx*) 14877 # QNX uses GNU C++, but need to define -shared option too, otherwise 14878 # it will coredump. 14879 lt_prog_compiler_pic='-fPIC -shared' 14880 ;; 14881 14882 osf3* | osf4* | osf5*) 14883 lt_prog_compiler_wl='-Wl,' 14884 # All OSF/1 code is PIC. 14885 lt_prog_compiler_static='-non_shared' 14886 ;; 14887 14888 rdos*) 14889 lt_prog_compiler_static='-non_shared' 14890 ;; 14891 14892 solaris*) 14893 lt_prog_compiler_pic='-KPIC' 14894 lt_prog_compiler_static='-Bstatic' 14895 case $cc_basename in 14896 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14897 lt_prog_compiler_wl='-Qoption ld ';; 14898 *) 14899 lt_prog_compiler_wl='-Wl,';; 14900 esac 14901 ;; 14902 14903 sunos4*) 14904 lt_prog_compiler_wl='-Qoption ld ' 14905 lt_prog_compiler_pic='-PIC' 14906 lt_prog_compiler_static='-Bstatic' 14907 ;; 14908 14909 sysv4 | sysv4.2uw2* | sysv4.3*) 14910 lt_prog_compiler_wl='-Wl,' 14911 lt_prog_compiler_pic='-KPIC' 14912 lt_prog_compiler_static='-Bstatic' 14913 ;; 14914 14915 sysv4*MP*) 14916 if test -d /usr/nec ;then 14917 lt_prog_compiler_pic='-Kconform_pic' 14918 lt_prog_compiler_static='-Bstatic' 14919 fi 14920 ;; 14921 14922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14923 lt_prog_compiler_wl='-Wl,' 14924 lt_prog_compiler_pic='-KPIC' 14925 lt_prog_compiler_static='-Bstatic' 14926 ;; 14927 14928 unicos*) 14929 lt_prog_compiler_wl='-Wl,' 14930 lt_prog_compiler_can_build_shared=no 14931 ;; 14932 14933 uts4*) 14934 lt_prog_compiler_pic='-pic' 14935 lt_prog_compiler_static='-Bstatic' 14936 ;; 14937 14938 *) 14939 lt_prog_compiler_can_build_shared=no 14940 ;; 14941 esac 14942 fi 14943 14944case $host_os in 14945 # For platforms which do not support PIC, -DPIC is meaningless: 14946 *djgpp*) 14947 lt_prog_compiler_pic= 14948 ;; 14949 *) 14950 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14951 ;; 14952esac 14953 14954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14955$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14956if ${lt_cv_prog_compiler_pic+:} false; then : 14957 $as_echo_n "(cached) " >&6 14958else 14959 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14960fi 14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14962$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14963lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14964 14965# 14966# Check to make sure the PIC flag actually works. 14967# 14968if test -n "$lt_prog_compiler_pic"; then 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14970$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14971if ${lt_cv_prog_compiler_pic_works+:} false; then : 14972 $as_echo_n "(cached) " >&6 14973else 14974 lt_cv_prog_compiler_pic_works=no 14975 ac_outfile=conftest.$ac_objext 14976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14977 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14978 # Insert the option either (1) after the last *FLAGS variable, or 14979 # (2) before a word containing "conftest.", or (3) at the end. 14980 # Note that $ac_compile itself does not contain backslashes and begins 14981 # with a dollar sign (not a hyphen), so the echo should work correctly. 14982 # The option is referenced via a variable to avoid confusing sed. 14983 lt_compile=`echo "$ac_compile" | $SED \ 14984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14986 -e 's:$: $lt_compiler_flag:'` 14987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14988 (eval "$lt_compile" 2>conftest.err) 14989 ac_status=$? 14990 cat conftest.err >&5 14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14992 if (exit $ac_status) && test -s "$ac_outfile"; then 14993 # The compiler can only warn and ignore the option if not recognized 14994 # So say no if there are warnings other than the usual output. 14995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14998 lt_cv_prog_compiler_pic_works=yes 14999 fi 15000 fi 15001 $RM conftest* 15002 15003fi 15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15005$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15006 15007if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 15008 case $lt_prog_compiler_pic in 15009 "" | " "*) ;; 15010 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15011 esac 15012else 15013 lt_prog_compiler_pic= 15014 lt_prog_compiler_can_build_shared=no 15015fi 15016 15017fi 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029# 15030# Check to make sure the static flag actually works. 15031# 15032wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15034$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15035if ${lt_cv_prog_compiler_static_works+:} false; then : 15036 $as_echo_n "(cached) " >&6 15037else 15038 lt_cv_prog_compiler_static_works=no 15039 save_LDFLAGS="$LDFLAGS" 15040 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15041 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15043 # The linker can only warn and ignore the option if not recognized 15044 # So say no if there are warnings 15045 if test -s conftest.err; then 15046 # Append any errors to the config.log. 15047 cat conftest.err 1>&5 15048 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15050 if diff conftest.exp conftest.er2 >/dev/null; then 15051 lt_cv_prog_compiler_static_works=yes 15052 fi 15053 else 15054 lt_cv_prog_compiler_static_works=yes 15055 fi 15056 fi 15057 $RM -r conftest* 15058 LDFLAGS="$save_LDFLAGS" 15059 15060fi 15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15062$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15063 15064if test x"$lt_cv_prog_compiler_static_works" = xyes; then 15065 : 15066else 15067 lt_prog_compiler_static= 15068fi 15069 15070 15071 15072 15073 15074 15075 15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15077$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15078if ${lt_cv_prog_compiler_c_o+:} false; then : 15079 $as_echo_n "(cached) " >&6 15080else 15081 lt_cv_prog_compiler_c_o=no 15082 $RM -r conftest 2>/dev/null 15083 mkdir conftest 15084 cd conftest 15085 mkdir out 15086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15087 15088 lt_compiler_flag="-o out/conftest2.$ac_objext" 15089 # Insert the option either (1) after the last *FLAGS variable, or 15090 # (2) before a word containing "conftest.", or (3) at the end. 15091 # Note that $ac_compile itself does not contain backslashes and begins 15092 # with a dollar sign (not a hyphen), so the echo should work correctly. 15093 lt_compile=`echo "$ac_compile" | $SED \ 15094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15096 -e 's:$: $lt_compiler_flag:'` 15097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15098 (eval "$lt_compile" 2>out/conftest.err) 15099 ac_status=$? 15100 cat out/conftest.err >&5 15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15102 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15103 then 15104 # The compiler can only warn and ignore the option if not recognized 15105 # So say no if there are warnings 15106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15107 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15108 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15109 lt_cv_prog_compiler_c_o=yes 15110 fi 15111 fi 15112 chmod u+w . 2>&5 15113 $RM conftest* 15114 # SGI C++ compiler will create directory out/ii_files/ for 15115 # template instantiation 15116 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15117 $RM out/* && rmdir out 15118 cd .. 15119 $RM -r conftest 15120 $RM conftest* 15121 15122fi 15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15124$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15125 15126 15127 15128 15129 15130 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15132$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15133if ${lt_cv_prog_compiler_c_o+:} false; then : 15134 $as_echo_n "(cached) " >&6 15135else 15136 lt_cv_prog_compiler_c_o=no 15137 $RM -r conftest 2>/dev/null 15138 mkdir conftest 15139 cd conftest 15140 mkdir out 15141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15142 15143 lt_compiler_flag="-o out/conftest2.$ac_objext" 15144 # Insert the option either (1) after the last *FLAGS variable, or 15145 # (2) before a word containing "conftest.", or (3) at the end. 15146 # Note that $ac_compile itself does not contain backslashes and begins 15147 # with a dollar sign (not a hyphen), so the echo should work correctly. 15148 lt_compile=`echo "$ac_compile" | $SED \ 15149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15151 -e 's:$: $lt_compiler_flag:'` 15152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15153 (eval "$lt_compile" 2>out/conftest.err) 15154 ac_status=$? 15155 cat out/conftest.err >&5 15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15157 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15158 then 15159 # The compiler can only warn and ignore the option if not recognized 15160 # So say no if there are warnings 15161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15164 lt_cv_prog_compiler_c_o=yes 15165 fi 15166 fi 15167 chmod u+w . 2>&5 15168 $RM conftest* 15169 # SGI C++ compiler will create directory out/ii_files/ for 15170 # template instantiation 15171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15172 $RM out/* && rmdir out 15173 cd .. 15174 $RM -r conftest 15175 $RM conftest* 15176 15177fi 15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15179$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15180 15181 15182 15183 15184hard_links="nottested" 15185if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 15186 # do not overwrite the value of need_locks provided by the user 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15188$as_echo_n "checking if we can lock with hard links... " >&6; } 15189 hard_links=yes 15190 $RM conftest* 15191 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15192 touch conftest.a 15193 ln conftest.a conftest.b 2>&5 || hard_links=no 15194 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15196$as_echo "$hard_links" >&6; } 15197 if test "$hard_links" = no; then 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15199$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15200 need_locks=warn 15201 fi 15202else 15203 need_locks=no 15204fi 15205 15206 15207 15208 15209 15210 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15212$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15213 15214 runpath_var= 15215 allow_undefined_flag= 15216 always_export_symbols=no 15217 archive_cmds= 15218 archive_expsym_cmds= 15219 compiler_needs_object=no 15220 enable_shared_with_static_runtimes=no 15221 export_dynamic_flag_spec= 15222 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15223 hardcode_automatic=no 15224 hardcode_direct=no 15225 hardcode_direct_absolute=no 15226 hardcode_libdir_flag_spec= 15227 hardcode_libdir_separator= 15228 hardcode_minus_L=no 15229 hardcode_shlibpath_var=unsupported 15230 inherit_rpath=no 15231 link_all_deplibs=unknown 15232 module_cmds= 15233 module_expsym_cmds= 15234 old_archive_from_new_cmds= 15235 old_archive_from_expsyms_cmds= 15236 thread_safe_flag_spec= 15237 whole_archive_flag_spec= 15238 # include_expsyms should be a list of space-separated symbols to be *always* 15239 # included in the symbol list 15240 include_expsyms= 15241 # exclude_expsyms can be an extended regexp of symbols to exclude 15242 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15243 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15244 # as well as any symbol that contains `d'. 15245 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15246 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15247 # platforms (ab)use it in PIC code, but their linkers get confused if 15248 # the symbol is explicitly referenced. Since portable code cannot 15249 # rely on this symbol name, it's probably fine to never include it in 15250 # preloaded symbol tables. 15251 # Exclude shared library initialization/finalization symbols. 15252 extract_expsyms_cmds= 15253 15254 case $host_os in 15255 cygwin* | mingw* | pw32* | cegcc*) 15256 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15257 # When not using gcc, we currently assume that we are using 15258 # Microsoft Visual C++. 15259 if test "$GCC" != yes; then 15260 with_gnu_ld=no 15261 fi 15262 ;; 15263 interix*) 15264 # we just hope/assume this is gcc and not c89 (= MSVC++) 15265 with_gnu_ld=yes 15266 ;; 15267 openbsd*) 15268 with_gnu_ld=no 15269 ;; 15270 esac 15271 15272 ld_shlibs=yes 15273 15274 # On some targets, GNU ld is compatible enough with the native linker 15275 # that we're better off using the native interface for both. 15276 lt_use_gnu_ld_interface=no 15277 if test "$with_gnu_ld" = yes; then 15278 case $host_os in 15279 aix*) 15280 # The AIX port of GNU ld has always aspired to compatibility 15281 # with the native linker. However, as the warning in the GNU ld 15282 # block says, versions before 2.19.5* couldn't really create working 15283 # shared libraries, regardless of the interface used. 15284 case `$LD -v 2>&1` in 15285 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15286 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15287 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15288 *) 15289 lt_use_gnu_ld_interface=yes 15290 ;; 15291 esac 15292 ;; 15293 *) 15294 lt_use_gnu_ld_interface=yes 15295 ;; 15296 esac 15297 fi 15298 15299 if test "$lt_use_gnu_ld_interface" = yes; then 15300 # If archive_cmds runs LD, not CC, wlarc should be empty 15301 wlarc='${wl}' 15302 15303 # Set some defaults for GNU ld with shared library support. These 15304 # are reset later if shared libraries are not supported. Putting them 15305 # here allows them to be overridden if necessary. 15306 runpath_var=LD_RUN_PATH 15307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15308 export_dynamic_flag_spec='${wl}--export-dynamic' 15309 # ancient GNU ld didn't support --whole-archive et. al. 15310 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15311 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15312 else 15313 whole_archive_flag_spec= 15314 fi 15315 supports_anon_versioning=no 15316 case `$LD -v 2>&1` in 15317 *GNU\ gold*) supports_anon_versioning=yes ;; 15318 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15319 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15320 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15321 *\ 2.11.*) ;; # other 2.11 versions 15322 *) supports_anon_versioning=yes ;; 15323 esac 15324 15325 # See if GNU ld supports shared libraries. 15326 case $host_os in 15327 aix[3-9]*) 15328 # On AIX/PPC, the GNU linker is very broken 15329 if test "$host_cpu" != ia64; then 15330 ld_shlibs=no 15331 cat <<_LT_EOF 1>&2 15332 15333*** Warning: the GNU linker, at least up to release 2.19, is reported 15334*** to be unable to reliably create shared libraries on AIX. 15335*** Therefore, libtool is disabling shared libraries support. If you 15336*** really care for shared libraries, you may want to install binutils 15337*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15338*** You will then need to restart the configuration process. 15339 15340_LT_EOF 15341 fi 15342 ;; 15343 15344 amigaos*) 15345 case $host_cpu in 15346 powerpc) 15347 # see comment about AmigaOS4 .so support 15348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15349 archive_expsym_cmds='' 15350 ;; 15351 m68k) 15352 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)' 15353 hardcode_libdir_flag_spec='-L$libdir' 15354 hardcode_minus_L=yes 15355 ;; 15356 esac 15357 ;; 15358 15359 beos*) 15360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15361 allow_undefined_flag=unsupported 15362 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15363 # support --undefined. This deserves some investigation. FIXME 15364 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15365 else 15366 ld_shlibs=no 15367 fi 15368 ;; 15369 15370 cygwin* | mingw* | pw32* | cegcc*) 15371 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15372 # as there is no search path for DLLs. 15373 hardcode_libdir_flag_spec='-L$libdir' 15374 export_dynamic_flag_spec='${wl}--export-all-symbols' 15375 allow_undefined_flag=unsupported 15376 always_export_symbols=no 15377 enable_shared_with_static_runtimes=yes 15378 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' 15379 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15380 15381 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15383 # If the export-symbols file already is a .def file (1st line 15384 # is EXPORTS), use it as is; otherwise, prepend... 15385 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15386 cp $export_symbols $output_objdir/$soname.def; 15387 else 15388 echo EXPORTS > $output_objdir/$soname.def; 15389 cat $export_symbols >> $output_objdir/$soname.def; 15390 fi~ 15391 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15392 else 15393 ld_shlibs=no 15394 fi 15395 ;; 15396 15397 haiku*) 15398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15399 link_all_deplibs=yes 15400 ;; 15401 15402 interix[3-9]*) 15403 hardcode_direct=no 15404 hardcode_shlibpath_var=no 15405 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15406 export_dynamic_flag_spec='${wl}-E' 15407 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15408 # Instead, shared libraries are loaded at an image base (0x10000000 by 15409 # default) and relocated if they conflict, which is a slow very memory 15410 # consuming and fragmenting process. To avoid this, we pick a random, 15411 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15412 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15413 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15414 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' 15415 ;; 15416 15417 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15418 tmp_diet=no 15419 if test "$host_os" = linux-dietlibc; then 15420 case $cc_basename in 15421 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15422 esac 15423 fi 15424 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15425 && test "$tmp_diet" = no 15426 then 15427 tmp_addflag=' $pic_flag' 15428 tmp_sharedflag='-shared' 15429 case $cc_basename,$host_cpu in 15430 pgcc*) # Portland Group C compiler 15431 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' 15432 tmp_addflag=' $pic_flag' 15433 ;; 15434 pgf77* | pgf90* | pgf95* | pgfortran*) 15435 # Portland Group f77 and f90 compilers 15436 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' 15437 tmp_addflag=' $pic_flag -Mnomain' ;; 15438 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15439 tmp_addflag=' -i_dynamic' ;; 15440 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15441 tmp_addflag=' -i_dynamic -nofor_main' ;; 15442 ifc* | ifort*) # Intel Fortran compiler 15443 tmp_addflag=' -nofor_main' ;; 15444 lf95*) # Lahey Fortran 8.1 15445 whole_archive_flag_spec= 15446 tmp_sharedflag='--shared' ;; 15447 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15448 tmp_sharedflag='-qmkshrobj' 15449 tmp_addflag= ;; 15450 nvcc*) # Cuda Compiler Driver 2.2 15451 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' 15452 compiler_needs_object=yes 15453 ;; 15454 esac 15455 case `$CC -V 2>&1 | sed 5q` in 15456 *Sun\ C*) # Sun C 5.9 15457 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' 15458 compiler_needs_object=yes 15459 tmp_sharedflag='-G' ;; 15460 *Sun\ F*) # Sun Fortran 8.3 15461 tmp_sharedflag='-G' ;; 15462 esac 15463 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15464 15465 if test "x$supports_anon_versioning" = xyes; then 15466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15468 echo "local: *; };" >> $output_objdir/$libname.ver~ 15469 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15470 fi 15471 15472 case $cc_basename in 15473 xlf* | bgf* | bgxlf* | mpixlf*) 15474 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15475 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15477 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15478 if test "x$supports_anon_versioning" = xyes; then 15479 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15480 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15481 echo "local: *; };" >> $output_objdir/$libname.ver~ 15482 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15483 fi 15484 ;; 15485 esac 15486 else 15487 ld_shlibs=no 15488 fi 15489 ;; 15490 15491 netbsd*) 15492 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15493 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15494 wlarc= 15495 else 15496 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15497 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15498 fi 15499 ;; 15500 15501 solaris*) 15502 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15503 ld_shlibs=no 15504 cat <<_LT_EOF 1>&2 15505 15506*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15507*** create shared libraries on Solaris systems. Therefore, libtool 15508*** is disabling shared libraries support. We urge you to upgrade GNU 15509*** binutils to release 2.9.1 or newer. Another option is to modify 15510*** your PATH or compiler configuration so that the native linker is 15511*** used, and then restart. 15512 15513_LT_EOF 15514 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15515 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15516 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15517 else 15518 ld_shlibs=no 15519 fi 15520 ;; 15521 15522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15523 case `$LD -v 2>&1` in 15524 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15525 ld_shlibs=no 15526 cat <<_LT_EOF 1>&2 15527 15528*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15529*** reliably create shared libraries on SCO systems. Therefore, libtool 15530*** is disabling shared libraries support. We urge you to upgrade GNU 15531*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15532*** your PATH or compiler configuration so that the native linker is 15533*** used, and then restart. 15534 15535_LT_EOF 15536 ;; 15537 *) 15538 # For security reasons, it is highly recommended that you always 15539 # use absolute paths for naming shared libraries, and exclude the 15540 # DT_RUNPATH tag from executables and libraries. But doing so 15541 # requires that you compile everything twice, which is a pain. 15542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15545 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15546 else 15547 ld_shlibs=no 15548 fi 15549 ;; 15550 esac 15551 ;; 15552 15553 sunos4*) 15554 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15555 wlarc= 15556 hardcode_direct=yes 15557 hardcode_shlibpath_var=no 15558 ;; 15559 15560 *) 15561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15562 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15563 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15564 else 15565 ld_shlibs=no 15566 fi 15567 ;; 15568 esac 15569 15570 if test "$ld_shlibs" = no; then 15571 runpath_var= 15572 hardcode_libdir_flag_spec= 15573 export_dynamic_flag_spec= 15574 whole_archive_flag_spec= 15575 fi 15576 else 15577 # PORTME fill in a description of your system's linker (not GNU ld) 15578 case $host_os in 15579 aix3*) 15580 allow_undefined_flag=unsupported 15581 always_export_symbols=yes 15582 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' 15583 # Note: this linker hardcodes the directories in LIBPATH if there 15584 # are no directories specified by -L. 15585 hardcode_minus_L=yes 15586 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15587 # Neither direct hardcoding nor static linking is supported with a 15588 # broken collect2. 15589 hardcode_direct=unsupported 15590 fi 15591 ;; 15592 15593 aix[4-9]*) 15594 if test "$host_cpu" = ia64; then 15595 # On IA64, the linker does run time linking by default, so we don't 15596 # have to do anything special. 15597 aix_use_runtimelinking=no 15598 exp_sym_flag='-Bexport' 15599 no_entry_flag="" 15600 else 15601 # If we're using GNU nm, then we don't want the "-C" option. 15602 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15603 # Also, AIX nm treats weak defined symbols like other global 15604 # defined symbols, whereas GNU nm marks them as "W". 15605 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15606 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' 15607 else 15608 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' 15609 fi 15610 aix_use_runtimelinking=no 15611 15612 # Test if we are trying to use run time linking or normal 15613 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15614 # need to do runtime linking. 15615 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15616 for ld_flag in $LDFLAGS; do 15617 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15618 aix_use_runtimelinking=yes 15619 break 15620 fi 15621 done 15622 ;; 15623 esac 15624 15625 exp_sym_flag='-bexport' 15626 no_entry_flag='-bnoentry' 15627 fi 15628 15629 # When large executables or shared objects are built, AIX ld can 15630 # have problems creating the table of contents. If linking a library 15631 # or program results in "error TOC overflow" add -mminimal-toc to 15632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15634 15635 archive_cmds='' 15636 hardcode_direct=yes 15637 hardcode_direct_absolute=yes 15638 hardcode_libdir_separator=':' 15639 link_all_deplibs=yes 15640 file_list_spec='${wl}-f,' 15641 15642 if test "$GCC" = yes; then 15643 case $host_os in aix4.[012]|aix4.[012].*) 15644 # We only want to do this on AIX 4.2 and lower, the check 15645 # below for broken collect2 doesn't work under 4.3+ 15646 collect2name=`${CC} -print-prog-name=collect2` 15647 if test -f "$collect2name" && 15648 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15649 then 15650 # We have reworked collect2 15651 : 15652 else 15653 # We have old collect2 15654 hardcode_direct=unsupported 15655 # It fails to find uninstalled libraries when the uninstalled 15656 # path is not listed in the libpath. Setting hardcode_minus_L 15657 # to unsupported forces relinking 15658 hardcode_minus_L=yes 15659 hardcode_libdir_flag_spec='-L$libdir' 15660 hardcode_libdir_separator= 15661 fi 15662 ;; 15663 esac 15664 shared_flag='-shared' 15665 if test "$aix_use_runtimelinking" = yes; then 15666 shared_flag="$shared_flag "'${wl}-G' 15667 fi 15668 else 15669 # not using gcc 15670 if test "$host_cpu" = ia64; then 15671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15672 # chokes on -Wl,-G. The following line is correct: 15673 shared_flag='-G' 15674 else 15675 if test "$aix_use_runtimelinking" = yes; then 15676 shared_flag='${wl}-G' 15677 else 15678 shared_flag='${wl}-bM:SRE' 15679 fi 15680 fi 15681 fi 15682 15683 export_dynamic_flag_spec='${wl}-bexpall' 15684 # It seems that -bexpall does not export symbols beginning with 15685 # underscore (_), so it is better to generate a list of symbols to export. 15686 always_export_symbols=yes 15687 if test "$aix_use_runtimelinking" = yes; then 15688 # Warning - without using the other runtime loading flags (-brtl), 15689 # -berok will link without error, but may produce a broken library. 15690 allow_undefined_flag='-berok' 15691 # Determine the default libpath from the value encoded in an 15692 # empty executable. 15693 if test "${lt_cv_aix_libpath+set}" = set; then 15694 aix_libpath=$lt_cv_aix_libpath 15695else 15696 if ${lt_cv_aix_libpath_+:} false; then : 15697 $as_echo_n "(cached) " >&6 15698else 15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15700/* end confdefs.h. */ 15701 15702int 15703main () 15704{ 15705 15706 ; 15707 return 0; 15708} 15709_ACEOF 15710if ac_fn_c_try_link "$LINENO"; then : 15711 15712 lt_aix_libpath_sed=' 15713 /Import File Strings/,/^$/ { 15714 /^0/ { 15715 s/^0 *\([^ ]*\) *$/\1/ 15716 p 15717 } 15718 }' 15719 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15720 # Check for a 64-bit object if we didn't find anything. 15721 if test -z "$lt_cv_aix_libpath_"; then 15722 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15723 fi 15724fi 15725rm -f core conftest.err conftest.$ac_objext \ 15726 conftest$ac_exeext conftest.$ac_ext 15727 if test -z "$lt_cv_aix_libpath_"; then 15728 lt_cv_aix_libpath_="/usr/lib:/lib" 15729 fi 15730 15731fi 15732 15733 aix_libpath=$lt_cv_aix_libpath_ 15734fi 15735 15736 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15737 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" 15738 else 15739 if test "$host_cpu" = ia64; then 15740 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15741 allow_undefined_flag="-z nodefs" 15742 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" 15743 else 15744 # Determine the default libpath from the value encoded in an 15745 # empty executable. 15746 if test "${lt_cv_aix_libpath+set}" = set; then 15747 aix_libpath=$lt_cv_aix_libpath 15748else 15749 if ${lt_cv_aix_libpath_+:} false; then : 15750 $as_echo_n "(cached) " >&6 15751else 15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15753/* end confdefs.h. */ 15754 15755int 15756main () 15757{ 15758 15759 ; 15760 return 0; 15761} 15762_ACEOF 15763if ac_fn_c_try_link "$LINENO"; then : 15764 15765 lt_aix_libpath_sed=' 15766 /Import File Strings/,/^$/ { 15767 /^0/ { 15768 s/^0 *\([^ ]*\) *$/\1/ 15769 p 15770 } 15771 }' 15772 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15773 # Check for a 64-bit object if we didn't find anything. 15774 if test -z "$lt_cv_aix_libpath_"; then 15775 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15776 fi 15777fi 15778rm -f core conftest.err conftest.$ac_objext \ 15779 conftest$ac_exeext conftest.$ac_ext 15780 if test -z "$lt_cv_aix_libpath_"; then 15781 lt_cv_aix_libpath_="/usr/lib:/lib" 15782 fi 15783 15784fi 15785 15786 aix_libpath=$lt_cv_aix_libpath_ 15787fi 15788 15789 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15790 # Warning - without using the other run time loading flags, 15791 # -berok will link without error, but may produce a broken library. 15792 no_undefined_flag=' ${wl}-bernotok' 15793 allow_undefined_flag=' ${wl}-berok' 15794 if test "$with_gnu_ld" = yes; then 15795 # We only use this code for GNU lds that support --whole-archive. 15796 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15797 else 15798 # Exported symbols can be pulled into shared objects from archives 15799 whole_archive_flag_spec='$convenience' 15800 fi 15801 archive_cmds_need_lc=yes 15802 # This is similar to how AIX traditionally builds its shared libraries. 15803 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' 15804 fi 15805 fi 15806 ;; 15807 15808 amigaos*) 15809 case $host_cpu in 15810 powerpc) 15811 # see comment about AmigaOS4 .so support 15812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15813 archive_expsym_cmds='' 15814 ;; 15815 m68k) 15816 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)' 15817 hardcode_libdir_flag_spec='-L$libdir' 15818 hardcode_minus_L=yes 15819 ;; 15820 esac 15821 ;; 15822 15823 bsdi[45]*) 15824 export_dynamic_flag_spec=-rdynamic 15825 ;; 15826 15827 cygwin* | mingw* | pw32* | cegcc*) 15828 # When not using gcc, we currently assume that we are using 15829 # Microsoft Visual C++. 15830 # hardcode_libdir_flag_spec is actually meaningless, as there is 15831 # no search path for DLLs. 15832 case $cc_basename in 15833 cl*) 15834 # Native MSVC 15835 hardcode_libdir_flag_spec=' ' 15836 allow_undefined_flag=unsupported 15837 always_export_symbols=yes 15838 file_list_spec='@' 15839 # Tell ltmain to make .lib files, not .a files. 15840 libext=lib 15841 # Tell ltmain to make .dll files, not .so files. 15842 shrext_cmds=".dll" 15843 # FIXME: Setting linknames here is a bad hack. 15844 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15845 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15846 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15847 else 15848 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15849 fi~ 15850 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15851 linknames=' 15852 # The linker will not automatically build a static lib if we build a DLL. 15853 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15854 enable_shared_with_static_runtimes=yes 15855 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15857 # Don't use ranlib 15858 old_postinstall_cmds='chmod 644 $oldlib' 15859 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15860 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15861 case $lt_outputfile in 15862 *.exe|*.EXE) ;; 15863 *) 15864 lt_outputfile="$lt_outputfile.exe" 15865 lt_tool_outputfile="$lt_tool_outputfile.exe" 15866 ;; 15867 esac~ 15868 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15869 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15870 $RM "$lt_outputfile.manifest"; 15871 fi' 15872 ;; 15873 *) 15874 # Assume MSVC wrapper 15875 hardcode_libdir_flag_spec=' ' 15876 allow_undefined_flag=unsupported 15877 # Tell ltmain to make .lib files, not .a files. 15878 libext=lib 15879 # Tell ltmain to make .dll files, not .so files. 15880 shrext_cmds=".dll" 15881 # FIXME: Setting linknames here is a bad hack. 15882 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15883 # The linker will automatically build a .lib file if we build a DLL. 15884 old_archive_from_new_cmds='true' 15885 # FIXME: Should let the user specify the lib program. 15886 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15887 enable_shared_with_static_runtimes=yes 15888 ;; 15889 esac 15890 ;; 15891 15892 darwin* | rhapsody*) 15893 15894 15895 archive_cmds_need_lc=no 15896 hardcode_direct=no 15897 hardcode_automatic=yes 15898 hardcode_shlibpath_var=unsupported 15899 if test "$lt_cv_ld_force_load" = "yes"; then 15900 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\"`' 15901 15902 else 15903 whole_archive_flag_spec='' 15904 fi 15905 link_all_deplibs=yes 15906 allow_undefined_flag="$_lt_dar_allow_undefined" 15907 case $cc_basename in 15908 ifort*) _lt_dar_can_shared=yes ;; 15909 *) _lt_dar_can_shared=$GCC ;; 15910 esac 15911 if test "$_lt_dar_can_shared" = "yes"; then 15912 output_verbose_link_cmd=func_echo_all 15913 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15914 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15915 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}" 15916 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}" 15917 15918 else 15919 ld_shlibs=no 15920 fi 15921 15922 ;; 15923 15924 dgux*) 15925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15926 hardcode_libdir_flag_spec='-L$libdir' 15927 hardcode_shlibpath_var=no 15928 ;; 15929 15930 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15931 # support. Future versions do this automatically, but an explicit c++rt0.o 15932 # does not break anything, and helps significantly (at the cost of a little 15933 # extra space). 15934 freebsd2.2*) 15935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15936 hardcode_libdir_flag_spec='-R$libdir' 15937 hardcode_direct=yes 15938 hardcode_shlibpath_var=no 15939 ;; 15940 15941 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15942 freebsd2.*) 15943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15944 hardcode_direct=yes 15945 hardcode_minus_L=yes 15946 hardcode_shlibpath_var=no 15947 ;; 15948 15949 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15950 freebsd* | dragonfly*) 15951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15952 hardcode_libdir_flag_spec='-R$libdir' 15953 hardcode_direct=yes 15954 hardcode_shlibpath_var=no 15955 ;; 15956 15957 hpux9*) 15958 if test "$GCC" = yes; then 15959 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' 15960 else 15961 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' 15962 fi 15963 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15964 hardcode_libdir_separator=: 15965 hardcode_direct=yes 15966 15967 # hardcode_minus_L: Not really in the search PATH, 15968 # but as the default location of the library. 15969 hardcode_minus_L=yes 15970 export_dynamic_flag_spec='${wl}-E' 15971 ;; 15972 15973 hpux10*) 15974 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15975 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15976 else 15977 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15978 fi 15979 if test "$with_gnu_ld" = no; then 15980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15981 hardcode_libdir_separator=: 15982 hardcode_direct=yes 15983 hardcode_direct_absolute=yes 15984 export_dynamic_flag_spec='${wl}-E' 15985 # hardcode_minus_L: Not really in the search PATH, 15986 # but as the default location of the library. 15987 hardcode_minus_L=yes 15988 fi 15989 ;; 15990 15991 hpux11*) 15992 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15993 case $host_cpu in 15994 hppa*64*) 15995 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15996 ;; 15997 ia64*) 15998 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15999 ;; 16000 *) 16001 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16002 ;; 16003 esac 16004 else 16005 case $host_cpu in 16006 hppa*64*) 16007 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16008 ;; 16009 ia64*) 16010 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16011 ;; 16012 *) 16013 16014 # Older versions of the 11.00 compiler do not understand -b yet 16015 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16017$as_echo_n "checking if $CC understands -b... " >&6; } 16018if ${lt_cv_prog_compiler__b+:} false; then : 16019 $as_echo_n "(cached) " >&6 16020else 16021 lt_cv_prog_compiler__b=no 16022 save_LDFLAGS="$LDFLAGS" 16023 LDFLAGS="$LDFLAGS -b" 16024 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16026 # The linker can only warn and ignore the option if not recognized 16027 # So say no if there are warnings 16028 if test -s conftest.err; then 16029 # Append any errors to the config.log. 16030 cat conftest.err 1>&5 16031 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16033 if diff conftest.exp conftest.er2 >/dev/null; then 16034 lt_cv_prog_compiler__b=yes 16035 fi 16036 else 16037 lt_cv_prog_compiler__b=yes 16038 fi 16039 fi 16040 $RM -r conftest* 16041 LDFLAGS="$save_LDFLAGS" 16042 16043fi 16044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16045$as_echo "$lt_cv_prog_compiler__b" >&6; } 16046 16047if test x"$lt_cv_prog_compiler__b" = xyes; then 16048 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16049else 16050 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16051fi 16052 16053 ;; 16054 esac 16055 fi 16056 if test "$with_gnu_ld" = no; then 16057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16058 hardcode_libdir_separator=: 16059 16060 case $host_cpu in 16061 hppa*64*|ia64*) 16062 hardcode_direct=no 16063 hardcode_shlibpath_var=no 16064 ;; 16065 *) 16066 hardcode_direct=yes 16067 hardcode_direct_absolute=yes 16068 export_dynamic_flag_spec='${wl}-E' 16069 16070 # hardcode_minus_L: Not really in the search PATH, 16071 # but as the default location of the library. 16072 hardcode_minus_L=yes 16073 ;; 16074 esac 16075 fi 16076 ;; 16077 16078 irix5* | irix6* | nonstopux*) 16079 if test "$GCC" = yes; then 16080 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' 16081 # Try to use the -exported_symbol ld option, if it does not 16082 # work, assume that -exports_file does not work either and 16083 # implicitly export all symbols. 16084 # This should be the same for all languages, so no per-tag cache variable. 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16086$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16087if ${lt_cv_irix_exported_symbol+:} false; then : 16088 $as_echo_n "(cached) " >&6 16089else 16090 save_LDFLAGS="$LDFLAGS" 16091 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16093/* end confdefs.h. */ 16094int foo (void) { return 0; } 16095_ACEOF 16096if ac_fn_c_try_link "$LINENO"; then : 16097 lt_cv_irix_exported_symbol=yes 16098else 16099 lt_cv_irix_exported_symbol=no 16100fi 16101rm -f core conftest.err conftest.$ac_objext \ 16102 conftest$ac_exeext conftest.$ac_ext 16103 LDFLAGS="$save_LDFLAGS" 16104fi 16105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16106$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16107 if test "$lt_cv_irix_exported_symbol" = yes; then 16108 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' 16109 fi 16110 else 16111 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' 16112 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' 16113 fi 16114 archive_cmds_need_lc='no' 16115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16116 hardcode_libdir_separator=: 16117 inherit_rpath=yes 16118 link_all_deplibs=yes 16119 ;; 16120 16121 netbsd*) 16122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16124 else 16125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16126 fi 16127 hardcode_libdir_flag_spec='-R$libdir' 16128 hardcode_direct=yes 16129 hardcode_shlibpath_var=no 16130 ;; 16131 16132 newsos6) 16133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16134 hardcode_direct=yes 16135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16136 hardcode_libdir_separator=: 16137 hardcode_shlibpath_var=no 16138 ;; 16139 16140 *nto* | *qnx*) 16141 ;; 16142 16143 openbsd*) 16144 if test -f /usr/libexec/ld.so; then 16145 hardcode_direct=yes 16146 hardcode_shlibpath_var=no 16147 hardcode_direct_absolute=yes 16148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16150 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16152 export_dynamic_flag_spec='${wl}-E' 16153 else 16154 case $host_os in 16155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16157 hardcode_libdir_flag_spec='-R$libdir' 16158 ;; 16159 *) 16160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16162 ;; 16163 esac 16164 fi 16165 else 16166 ld_shlibs=no 16167 fi 16168 ;; 16169 16170 os2*) 16171 hardcode_libdir_flag_spec='-L$libdir' 16172 hardcode_minus_L=yes 16173 allow_undefined_flag=unsupported 16174 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' 16175 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16176 ;; 16177 16178 osf3*) 16179 if test "$GCC" = yes; then 16180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16181 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' 16182 else 16183 allow_undefined_flag=' -expect_unresolved \*' 16184 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' 16185 fi 16186 archive_cmds_need_lc='no' 16187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16188 hardcode_libdir_separator=: 16189 ;; 16190 16191 osf4* | osf5*) # as osf3* with the addition of -msym flag 16192 if test "$GCC" = yes; then 16193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16194 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' 16195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16196 else 16197 allow_undefined_flag=' -expect_unresolved \*' 16198 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' 16199 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~ 16200 $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' 16201 16202 # Both c and cxx compiler support -rpath directly 16203 hardcode_libdir_flag_spec='-rpath $libdir' 16204 fi 16205 archive_cmds_need_lc='no' 16206 hardcode_libdir_separator=: 16207 ;; 16208 16209 solaris*) 16210 no_undefined_flag=' -z defs' 16211 if test "$GCC" = yes; then 16212 wlarc='${wl}' 16213 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16215 $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' 16216 else 16217 case `$CC -V 2>&1` in 16218 *"Compilers 5.0"*) 16219 wlarc='' 16220 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16223 ;; 16224 *) 16225 wlarc='${wl}' 16226 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16228 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16229 ;; 16230 esac 16231 fi 16232 hardcode_libdir_flag_spec='-R$libdir' 16233 hardcode_shlibpath_var=no 16234 case $host_os in 16235 solaris2.[0-5] | solaris2.[0-5].*) ;; 16236 *) 16237 # The compiler driver will combine and reorder linker options, 16238 # but understands `-z linker_flag'. GCC discards it without `$wl', 16239 # but is careful enough not to reorder. 16240 # Supported since Solaris 2.6 (maybe 2.5.1?) 16241 if test "$GCC" = yes; then 16242 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16243 else 16244 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16245 fi 16246 ;; 16247 esac 16248 link_all_deplibs=yes 16249 ;; 16250 16251 sunos4*) 16252 if test "x$host_vendor" = xsequent; then 16253 # Use $CC to link under sequent, because it throws in some extra .o 16254 # files that make .init and .fini sections work. 16255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16256 else 16257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16258 fi 16259 hardcode_libdir_flag_spec='-L$libdir' 16260 hardcode_direct=yes 16261 hardcode_minus_L=yes 16262 hardcode_shlibpath_var=no 16263 ;; 16264 16265 sysv4) 16266 case $host_vendor in 16267 sni) 16268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16269 hardcode_direct=yes # is this really true??? 16270 ;; 16271 siemens) 16272 ## LD is ld it makes a PLAMLIB 16273 ## CC just makes a GrossModule. 16274 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16275 reload_cmds='$CC -r -o $output$reload_objs' 16276 hardcode_direct=no 16277 ;; 16278 motorola) 16279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16280 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16281 ;; 16282 esac 16283 runpath_var='LD_RUN_PATH' 16284 hardcode_shlibpath_var=no 16285 ;; 16286 16287 sysv4.3*) 16288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16289 hardcode_shlibpath_var=no 16290 export_dynamic_flag_spec='-Bexport' 16291 ;; 16292 16293 sysv4*MP*) 16294 if test -d /usr/nec; then 16295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16296 hardcode_shlibpath_var=no 16297 runpath_var=LD_RUN_PATH 16298 hardcode_runpath_var=yes 16299 ld_shlibs=yes 16300 fi 16301 ;; 16302 16303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16304 no_undefined_flag='${wl}-z,text' 16305 archive_cmds_need_lc=no 16306 hardcode_shlibpath_var=no 16307 runpath_var='LD_RUN_PATH' 16308 16309 if test "$GCC" = yes; then 16310 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16311 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16312 else 16313 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16314 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16315 fi 16316 ;; 16317 16318 sysv5* | sco3.2v5* | sco5v6*) 16319 # Note: We can NOT use -z defs as we might desire, because we do not 16320 # link with -lc, and that would cause any symbols used from libc to 16321 # always be unresolved, which means just about no library would 16322 # ever link correctly. If we're not using GNU ld we use -z text 16323 # though, which does catch some bad symbols but isn't as heavy-handed 16324 # as -z defs. 16325 no_undefined_flag='${wl}-z,text' 16326 allow_undefined_flag='${wl}-z,nodefs' 16327 archive_cmds_need_lc=no 16328 hardcode_shlibpath_var=no 16329 hardcode_libdir_flag_spec='${wl}-R,$libdir' 16330 hardcode_libdir_separator=':' 16331 link_all_deplibs=yes 16332 export_dynamic_flag_spec='${wl}-Bexport' 16333 runpath_var='LD_RUN_PATH' 16334 16335 if test "$GCC" = yes; then 16336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16338 else 16339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16341 fi 16342 ;; 16343 16344 uts4*) 16345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16346 hardcode_libdir_flag_spec='-L$libdir' 16347 hardcode_shlibpath_var=no 16348 ;; 16349 16350 *) 16351 ld_shlibs=no 16352 ;; 16353 esac 16354 16355 if test x$host_vendor = xsni; then 16356 case $host in 16357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16358 export_dynamic_flag_spec='${wl}-Blargedynsym' 16359 ;; 16360 esac 16361 fi 16362 fi 16363 16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16365$as_echo "$ld_shlibs" >&6; } 16366test "$ld_shlibs" = no && can_build_shared=no 16367 16368with_gnu_ld=$with_gnu_ld 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384# 16385# Do we need to explicitly link libc? 16386# 16387case "x$archive_cmds_need_lc" in 16388x|xyes) 16389 # Assume -lc should be added 16390 archive_cmds_need_lc=yes 16391 16392 if test "$enable_shared" = yes && test "$GCC" = yes; then 16393 case $archive_cmds in 16394 *'~'*) 16395 # FIXME: we may have to deal with multi-command sequences. 16396 ;; 16397 '$CC '*) 16398 # Test whether the compiler implicitly links with -lc since on some 16399 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16400 # to ld, don't add -lc before -lgcc. 16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16402$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16403if ${lt_cv_archive_cmds_need_lc+:} false; then : 16404 $as_echo_n "(cached) " >&6 16405else 16406 $RM conftest* 16407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16408 16409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16410 (eval $ac_compile) 2>&5 16411 ac_status=$? 16412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16413 test $ac_status = 0; } 2>conftest.err; then 16414 soname=conftest 16415 lib=conftest 16416 libobjs=conftest.$ac_objext 16417 deplibs= 16418 wl=$lt_prog_compiler_wl 16419 pic_flag=$lt_prog_compiler_pic 16420 compiler_flags=-v 16421 linker_flags=-v 16422 verstring= 16423 output_objdir=. 16424 libname=conftest 16425 lt_save_allow_undefined_flag=$allow_undefined_flag 16426 allow_undefined_flag= 16427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16428 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16429 ac_status=$? 16430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16431 test $ac_status = 0; } 16432 then 16433 lt_cv_archive_cmds_need_lc=no 16434 else 16435 lt_cv_archive_cmds_need_lc=yes 16436 fi 16437 allow_undefined_flag=$lt_save_allow_undefined_flag 16438 else 16439 cat conftest.err 1>&5 16440 fi 16441 $RM conftest* 16442 16443fi 16444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16445$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16446 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16447 ;; 16448 esac 16449 fi 16450 ;; 16451esac 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 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16605$as_echo_n "checking dynamic linker characteristics... " >&6; } 16606 16607if test "$GCC" = yes; then 16608 case $host_os in 16609 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16610 *) lt_awk_arg="/^libraries:/" ;; 16611 esac 16612 case $host_os in 16613 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16614 *) lt_sed_strip_eq="s,=/,/,g" ;; 16615 esac 16616 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16617 case $lt_search_path_spec in 16618 *\;*) 16619 # if the path contains ";" then we assume it to be the separator 16620 # otherwise default to the standard path separator (i.e. ":") - it is 16621 # assumed that no part of a normal pathname contains ";" but that should 16622 # okay in the real world where ";" in dirpaths is itself problematic. 16623 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16624 ;; 16625 *) 16626 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16627 ;; 16628 esac 16629 # Ok, now we have the path, separated by spaces, we can step through it 16630 # and add multilib dir if necessary. 16631 lt_tmp_lt_search_path_spec= 16632 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16633 for lt_sys_path in $lt_search_path_spec; do 16634 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16635 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16636 else 16637 test -d "$lt_sys_path" && \ 16638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16639 fi 16640 done 16641 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16642BEGIN {RS=" "; FS="/|\n";} { 16643 lt_foo=""; 16644 lt_count=0; 16645 for (lt_i = NF; lt_i > 0; lt_i--) { 16646 if ($lt_i != "" && $lt_i != ".") { 16647 if ($lt_i == "..") { 16648 lt_count++; 16649 } else { 16650 if (lt_count == 0) { 16651 lt_foo="/" $lt_i lt_foo; 16652 } else { 16653 lt_count--; 16654 } 16655 } 16656 } 16657 } 16658 if (lt_foo != "") { lt_freq[lt_foo]++; } 16659 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16660}'` 16661 # AWK program above erroneously prepends '/' to C:/dos/paths 16662 # for these hosts. 16663 case $host_os in 16664 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16665 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16666 esac 16667 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16668else 16669 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16670fi 16671library_names_spec= 16672libname_spec='lib$name' 16673soname_spec= 16674shrext_cmds=".so" 16675postinstall_cmds= 16676postuninstall_cmds= 16677finish_cmds= 16678finish_eval= 16679shlibpath_var= 16680shlibpath_overrides_runpath=unknown 16681version_type=none 16682dynamic_linker="$host_os ld.so" 16683sys_lib_dlsearch_path_spec="/lib /usr/lib" 16684need_lib_prefix=unknown 16685hardcode_into_libs=no 16686 16687# when you set need_version to no, make sure it does not cause -set_version 16688# flags to be left without arguments 16689need_version=unknown 16690 16691case $host_os in 16692aix3*) 16693 version_type=linux # correct to gnu/linux during the next big refactor 16694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16695 shlibpath_var=LIBPATH 16696 16697 # AIX 3 has no versioning support, so we append a major version to the name. 16698 soname_spec='${libname}${release}${shared_ext}$major' 16699 ;; 16700 16701aix[4-9]*) 16702 version_type=linux # correct to gnu/linux during the next big refactor 16703 need_lib_prefix=no 16704 need_version=no 16705 hardcode_into_libs=yes 16706 if test "$host_cpu" = ia64; then 16707 # AIX 5 supports IA64 16708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16709 shlibpath_var=LD_LIBRARY_PATH 16710 else 16711 # With GCC up to 2.95.x, collect2 would create an import file 16712 # for dependence libraries. The import file would start with 16713 # the line `#! .'. This would cause the generated library to 16714 # depend on `.', always an invalid library. This was fixed in 16715 # development snapshots of GCC prior to 3.0. 16716 case $host_os in 16717 aix4 | aix4.[01] | aix4.[01].*) 16718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16719 echo ' yes ' 16720 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16721 : 16722 else 16723 can_build_shared=no 16724 fi 16725 ;; 16726 esac 16727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16728 # soname into executable. Probably we can add versioning support to 16729 # collect2, so additional links can be useful in future. 16730 if test "$aix_use_runtimelinking" = yes; then 16731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16732 # instead of lib<name>.a to let people know that these are not 16733 # typical AIX shared libraries. 16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16735 else 16736 # We preserve .a as extension for shared libraries through AIX4.2 16737 # and later when we are not doing run time linking. 16738 library_names_spec='${libname}${release}.a $libname.a' 16739 soname_spec='${libname}${release}${shared_ext}$major' 16740 fi 16741 shlibpath_var=LIBPATH 16742 fi 16743 ;; 16744 16745amigaos*) 16746 case $host_cpu in 16747 powerpc) 16748 # Since July 2007 AmigaOS4 officially supports .so libraries. 16749 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16751 ;; 16752 m68k) 16753 library_names_spec='$libname.ixlibrary $libname.a' 16754 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16755 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' 16756 ;; 16757 esac 16758 ;; 16759 16760beos*) 16761 library_names_spec='${libname}${shared_ext}' 16762 dynamic_linker="$host_os ld.so" 16763 shlibpath_var=LIBRARY_PATH 16764 ;; 16765 16766bsdi[45]*) 16767 version_type=linux # correct to gnu/linux during the next big refactor 16768 need_version=no 16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16770 soname_spec='${libname}${release}${shared_ext}$major' 16771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16772 shlibpath_var=LD_LIBRARY_PATH 16773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16775 # the default ld.so.conf also contains /usr/contrib/lib and 16776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16777 # libtool to hard-code these into programs 16778 ;; 16779 16780cygwin* | mingw* | pw32* | cegcc*) 16781 version_type=windows 16782 shrext_cmds=".dll" 16783 need_version=no 16784 need_lib_prefix=no 16785 16786 case $GCC,$cc_basename in 16787 yes,*) 16788 # gcc 16789 library_names_spec='$libname.dll.a' 16790 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16791 postinstall_cmds='base_file=`basename \${file}`~ 16792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16793 dldir=$destdir/`dirname \$dlpath`~ 16794 test -d \$dldir || mkdir -p \$dldir~ 16795 $install_prog $dir/$dlname \$dldir/$dlname~ 16796 chmod a+x \$dldir/$dlname~ 16797 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16798 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16799 fi' 16800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16801 dlpath=$dir/\$dldll~ 16802 $RM \$dlpath' 16803 shlibpath_overrides_runpath=yes 16804 16805 case $host_os in 16806 cygwin*) 16807 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16809 16810 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16811 ;; 16812 mingw* | cegcc*) 16813 # MinGW DLLs use traditional 'lib' prefix 16814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16815 ;; 16816 pw32*) 16817 # pw32 DLLs use 'pw' prefix rather than 'lib' 16818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16819 ;; 16820 esac 16821 dynamic_linker='Win32 ld.exe' 16822 ;; 16823 16824 *,cl*) 16825 # Native MSVC 16826 libname_spec='$name' 16827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16828 library_names_spec='${libname}.dll.lib' 16829 16830 case $build_os in 16831 mingw*) 16832 sys_lib_search_path_spec= 16833 lt_save_ifs=$IFS 16834 IFS=';' 16835 for lt_path in $LIB 16836 do 16837 IFS=$lt_save_ifs 16838 # Let DOS variable expansion print the short 8.3 style file name. 16839 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16840 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16841 done 16842 IFS=$lt_save_ifs 16843 # Convert to MSYS style. 16844 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16845 ;; 16846 cygwin*) 16847 # Convert to unix form, then to dos form, then back to unix form 16848 # but this time dos style (no spaces!) so that the unix form looks 16849 # like /cygdrive/c/PROGRA~1:/cygdr... 16850 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16851 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16852 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16853 ;; 16854 *) 16855 sys_lib_search_path_spec="$LIB" 16856 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16857 # It is most probably a Windows format PATH. 16858 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16859 else 16860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16861 fi 16862 # FIXME: find the short name or the path components, as spaces are 16863 # common. (e.g. "Program Files" -> "PROGRA~1") 16864 ;; 16865 esac 16866 16867 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16868 postinstall_cmds='base_file=`basename \${file}`~ 16869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16870 dldir=$destdir/`dirname \$dlpath`~ 16871 test -d \$dldir || mkdir -p \$dldir~ 16872 $install_prog $dir/$dlname \$dldir/$dlname' 16873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16874 dlpath=$dir/\$dldll~ 16875 $RM \$dlpath' 16876 shlibpath_overrides_runpath=yes 16877 dynamic_linker='Win32 link.exe' 16878 ;; 16879 16880 *) 16881 # Assume MSVC wrapper 16882 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16883 dynamic_linker='Win32 ld.exe' 16884 ;; 16885 esac 16886 # FIXME: first we should search . and the directory the executable is in 16887 shlibpath_var=PATH 16888 ;; 16889 16890darwin* | rhapsody*) 16891 dynamic_linker="$host_os dyld" 16892 version_type=darwin 16893 need_lib_prefix=no 16894 need_version=no 16895 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16896 soname_spec='${libname}${release}${major}$shared_ext' 16897 shlibpath_overrides_runpath=yes 16898 shlibpath_var=DYLD_LIBRARY_PATH 16899 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16900 16901 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16902 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16903 ;; 16904 16905dgux*) 16906 version_type=linux # correct to gnu/linux during the next big refactor 16907 need_lib_prefix=no 16908 need_version=no 16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16910 soname_spec='${libname}${release}${shared_ext}$major' 16911 shlibpath_var=LD_LIBRARY_PATH 16912 ;; 16913 16914freebsd* | dragonfly*) 16915 # DragonFly does not have aout. When/if they implement a new 16916 # versioning mechanism, adjust this. 16917 if test -x /usr/bin/objformat; then 16918 objformat=`/usr/bin/objformat` 16919 else 16920 case $host_os in 16921 freebsd[23].*) objformat=aout ;; 16922 *) objformat=elf ;; 16923 esac 16924 fi 16925 version_type=freebsd-$objformat 16926 case $version_type in 16927 freebsd-elf*) 16928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16929 need_version=no 16930 need_lib_prefix=no 16931 ;; 16932 freebsd-*) 16933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16934 need_version=yes 16935 ;; 16936 esac 16937 shlibpath_var=LD_LIBRARY_PATH 16938 case $host_os in 16939 freebsd2.*) 16940 shlibpath_overrides_runpath=yes 16941 ;; 16942 freebsd3.[01]* | freebsdelf3.[01]*) 16943 shlibpath_overrides_runpath=yes 16944 hardcode_into_libs=yes 16945 ;; 16946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16948 shlibpath_overrides_runpath=no 16949 hardcode_into_libs=yes 16950 ;; 16951 *) # from 4.6 on, and DragonFly 16952 shlibpath_overrides_runpath=yes 16953 hardcode_into_libs=yes 16954 ;; 16955 esac 16956 ;; 16957 16958gnu*) 16959 version_type=linux # correct to gnu/linux during the next big refactor 16960 need_lib_prefix=no 16961 need_version=no 16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16963 soname_spec='${libname}${release}${shared_ext}$major' 16964 shlibpath_var=LD_LIBRARY_PATH 16965 shlibpath_overrides_runpath=no 16966 hardcode_into_libs=yes 16967 ;; 16968 16969haiku*) 16970 version_type=linux # correct to gnu/linux during the next big refactor 16971 need_lib_prefix=no 16972 need_version=no 16973 dynamic_linker="$host_os runtime_loader" 16974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16975 soname_spec='${libname}${release}${shared_ext}$major' 16976 shlibpath_var=LIBRARY_PATH 16977 shlibpath_overrides_runpath=yes 16978 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16979 hardcode_into_libs=yes 16980 ;; 16981 16982hpux9* | hpux10* | hpux11*) 16983 # Give a soname corresponding to the major version so that dld.sl refuses to 16984 # link against other versions. 16985 version_type=sunos 16986 need_lib_prefix=no 16987 need_version=no 16988 case $host_cpu in 16989 ia64*) 16990 shrext_cmds='.so' 16991 hardcode_into_libs=yes 16992 dynamic_linker="$host_os dld.so" 16993 shlibpath_var=LD_LIBRARY_PATH 16994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16996 soname_spec='${libname}${release}${shared_ext}$major' 16997 if test "X$HPUX_IA64_MODE" = X32; then 16998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16999 else 17000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17001 fi 17002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17003 ;; 17004 hppa*64*) 17005 shrext_cmds='.sl' 17006 hardcode_into_libs=yes 17007 dynamic_linker="$host_os dld.sl" 17008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17011 soname_spec='${libname}${release}${shared_ext}$major' 17012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17014 ;; 17015 *) 17016 shrext_cmds='.sl' 17017 dynamic_linker="$host_os dld.sl" 17018 shlibpath_var=SHLIB_PATH 17019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17021 soname_spec='${libname}${release}${shared_ext}$major' 17022 ;; 17023 esac 17024 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17025 postinstall_cmds='chmod 555 $lib' 17026 # or fails outright, so override atomically: 17027 install_override_mode=555 17028 ;; 17029 17030interix[3-9]*) 17031 version_type=linux # correct to gnu/linux during the next big refactor 17032 need_lib_prefix=no 17033 need_version=no 17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17035 soname_spec='${libname}${release}${shared_ext}$major' 17036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17037 shlibpath_var=LD_LIBRARY_PATH 17038 shlibpath_overrides_runpath=no 17039 hardcode_into_libs=yes 17040 ;; 17041 17042irix5* | irix6* | nonstopux*) 17043 case $host_os in 17044 nonstopux*) version_type=nonstopux ;; 17045 *) 17046 if test "$lt_cv_prog_gnu_ld" = yes; then 17047 version_type=linux # correct to gnu/linux during the next big refactor 17048 else 17049 version_type=irix 17050 fi ;; 17051 esac 17052 need_lib_prefix=no 17053 need_version=no 17054 soname_spec='${libname}${release}${shared_ext}$major' 17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17056 case $host_os in 17057 irix5* | nonstopux*) 17058 libsuff= shlibsuff= 17059 ;; 17060 *) 17061 case $LD in # libtool.m4 will add one of these switches to LD 17062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17063 libsuff= shlibsuff= libmagic=32-bit;; 17064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17065 libsuff=32 shlibsuff=N32 libmagic=N32;; 17066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17067 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17068 *) libsuff= shlibsuff= libmagic=never-match;; 17069 esac 17070 ;; 17071 esac 17072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17073 shlibpath_overrides_runpath=no 17074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17076 hardcode_into_libs=yes 17077 ;; 17078 17079# No shared lib support for Linux oldld, aout, or coff. 17080linux*oldld* | linux*aout* | linux*coff*) 17081 dynamic_linker=no 17082 ;; 17083 17084# This must be glibc/ELF. 17085linux* | k*bsd*-gnu | kopensolaris*-gnu) 17086 version_type=linux # correct to gnu/linux during the next big refactor 17087 need_lib_prefix=no 17088 need_version=no 17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17090 soname_spec='${libname}${release}${shared_ext}$major' 17091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17092 shlibpath_var=LD_LIBRARY_PATH 17093 shlibpath_overrides_runpath=no 17094 17095 # Some binutils ld are patched to set DT_RUNPATH 17096 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17097 $as_echo_n "(cached) " >&6 17098else 17099 lt_cv_shlibpath_overrides_runpath=no 17100 save_LDFLAGS=$LDFLAGS 17101 save_libdir=$libdir 17102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17105/* end confdefs.h. */ 17106 17107int 17108main () 17109{ 17110 17111 ; 17112 return 0; 17113} 17114_ACEOF 17115if ac_fn_c_try_link "$LINENO"; then : 17116 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17117 lt_cv_shlibpath_overrides_runpath=yes 17118fi 17119fi 17120rm -f core conftest.err conftest.$ac_objext \ 17121 conftest$ac_exeext conftest.$ac_ext 17122 LDFLAGS=$save_LDFLAGS 17123 libdir=$save_libdir 17124 17125fi 17126 17127 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17128 17129 # This implies no fast_install, which is unacceptable. 17130 # Some rework will be needed to allow for fast_install 17131 # before this can be enabled. 17132 hardcode_into_libs=yes 17133 17134 # Add ABI-specific directories to the system library path. 17135 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 17136 17137 # Append ld.so.conf contents to the search path 17138 if test -f /etc/ld.so.conf; then 17139 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' ' '` 17140 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 17141 17142 fi 17143 17144 # We used to test for /lib/ld.so.1 and disable shared libraries on 17145 # powerpc, because MkLinux only supported shared libraries with the 17146 # GNU dynamic linker. Since this was broken with cross compilers, 17147 # most powerpc-linux boxes support dynamic linking these days and 17148 # people can always --disable-shared, the test was removed, and we 17149 # assume the GNU/Linux dynamic linker is in use. 17150 dynamic_linker='GNU/Linux ld.so' 17151 ;; 17152 17153netbsd*) 17154 version_type=sunos 17155 need_lib_prefix=no 17156 need_version=no 17157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17160 dynamic_linker='NetBSD (a.out) ld.so' 17161 else 17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17163 soname_spec='${libname}${release}${shared_ext}$major' 17164 dynamic_linker='NetBSD ld.elf_so' 17165 fi 17166 shlibpath_var=LD_LIBRARY_PATH 17167 shlibpath_overrides_runpath=yes 17168 hardcode_into_libs=yes 17169 ;; 17170 17171newsos6) 17172 version_type=linux # correct to gnu/linux during the next big refactor 17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17174 shlibpath_var=LD_LIBRARY_PATH 17175 shlibpath_overrides_runpath=yes 17176 ;; 17177 17178*nto* | *qnx*) 17179 version_type=qnx 17180 need_lib_prefix=no 17181 need_version=no 17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17183 soname_spec='${libname}${release}${shared_ext}$major' 17184 shlibpath_var=LD_LIBRARY_PATH 17185 shlibpath_overrides_runpath=no 17186 hardcode_into_libs=yes 17187 dynamic_linker='ldqnx.so' 17188 ;; 17189 17190openbsd*) 17191 version_type=sunos 17192 sys_lib_dlsearch_path_spec="/usr/lib" 17193 need_lib_prefix=no 17194 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17195 case $host_os in 17196 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17197 *) need_version=no ;; 17198 esac 17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17201 shlibpath_var=LD_LIBRARY_PATH 17202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17203 case $host_os in 17204 openbsd2.[89] | openbsd2.[89].*) 17205 shlibpath_overrides_runpath=no 17206 ;; 17207 *) 17208 shlibpath_overrides_runpath=yes 17209 ;; 17210 esac 17211 else 17212 shlibpath_overrides_runpath=yes 17213 fi 17214 ;; 17215 17216os2*) 17217 libname_spec='$name' 17218 shrext_cmds=".dll" 17219 need_lib_prefix=no 17220 library_names_spec='$libname${shared_ext} $libname.a' 17221 dynamic_linker='OS/2 ld.exe' 17222 shlibpath_var=LIBPATH 17223 ;; 17224 17225osf3* | osf4* | osf5*) 17226 version_type=osf 17227 need_lib_prefix=no 17228 need_version=no 17229 soname_spec='${libname}${release}${shared_ext}$major' 17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17231 shlibpath_var=LD_LIBRARY_PATH 17232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17233 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17234 ;; 17235 17236rdos*) 17237 dynamic_linker=no 17238 ;; 17239 17240solaris*) 17241 version_type=linux # correct to gnu/linux during the next big refactor 17242 need_lib_prefix=no 17243 need_version=no 17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17245 soname_spec='${libname}${release}${shared_ext}$major' 17246 shlibpath_var=LD_LIBRARY_PATH 17247 shlibpath_overrides_runpath=yes 17248 hardcode_into_libs=yes 17249 # ldd complains unless libraries are executable 17250 postinstall_cmds='chmod +x $lib' 17251 ;; 17252 17253sunos4*) 17254 version_type=sunos 17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17257 shlibpath_var=LD_LIBRARY_PATH 17258 shlibpath_overrides_runpath=yes 17259 if test "$with_gnu_ld" = yes; then 17260 need_lib_prefix=no 17261 fi 17262 need_version=yes 17263 ;; 17264 17265sysv4 | sysv4.3*) 17266 version_type=linux # correct to gnu/linux during the next big refactor 17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17268 soname_spec='${libname}${release}${shared_ext}$major' 17269 shlibpath_var=LD_LIBRARY_PATH 17270 case $host_vendor in 17271 sni) 17272 shlibpath_overrides_runpath=no 17273 need_lib_prefix=no 17274 runpath_var=LD_RUN_PATH 17275 ;; 17276 siemens) 17277 need_lib_prefix=no 17278 ;; 17279 motorola) 17280 need_lib_prefix=no 17281 need_version=no 17282 shlibpath_overrides_runpath=no 17283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17284 ;; 17285 esac 17286 ;; 17287 17288sysv4*MP*) 17289 if test -d /usr/nec ;then 17290 version_type=linux # correct to gnu/linux during the next big refactor 17291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17292 soname_spec='$libname${shared_ext}.$major' 17293 shlibpath_var=LD_LIBRARY_PATH 17294 fi 17295 ;; 17296 17297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17298 version_type=freebsd-elf 17299 need_lib_prefix=no 17300 need_version=no 17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17302 soname_spec='${libname}${release}${shared_ext}$major' 17303 shlibpath_var=LD_LIBRARY_PATH 17304 shlibpath_overrides_runpath=yes 17305 hardcode_into_libs=yes 17306 if test "$with_gnu_ld" = yes; then 17307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17308 else 17309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17310 case $host_os in 17311 sco3.2v5*) 17312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17313 ;; 17314 esac 17315 fi 17316 sys_lib_dlsearch_path_spec='/usr/lib' 17317 ;; 17318 17319tpf*) 17320 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17321 version_type=linux # correct to gnu/linux during the next big refactor 17322 need_lib_prefix=no 17323 need_version=no 17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17325 shlibpath_var=LD_LIBRARY_PATH 17326 shlibpath_overrides_runpath=no 17327 hardcode_into_libs=yes 17328 ;; 17329 17330uts4*) 17331 version_type=linux # correct to gnu/linux during the next big refactor 17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17333 soname_spec='${libname}${release}${shared_ext}$major' 17334 shlibpath_var=LD_LIBRARY_PATH 17335 ;; 17336 17337*) 17338 dynamic_linker=no 17339 ;; 17340esac 17341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17342$as_echo "$dynamic_linker" >&6; } 17343test "$dynamic_linker" = no && can_build_shared=no 17344 17345variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17346if test "$GCC" = yes; then 17347 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17348fi 17349 17350if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17351 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17352fi 17353if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17354 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17355fi 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17449$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17450hardcode_action= 17451if test -n "$hardcode_libdir_flag_spec" || 17452 test -n "$runpath_var" || 17453 test "X$hardcode_automatic" = "Xyes" ; then 17454 17455 # We can hardcode non-existent directories. 17456 if test "$hardcode_direct" != no && 17457 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17458 # have to relink, otherwise we might link with an installed library 17459 # when we should be linking with a yet-to-be-installed one 17460 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17461 test "$hardcode_minus_L" != no; then 17462 # Linking always hardcodes the temporary library directory. 17463 hardcode_action=relink 17464 else 17465 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17466 hardcode_action=immediate 17467 fi 17468else 17469 # We cannot hardcode anything, or else we can only hardcode existing 17470 # directories. 17471 hardcode_action=unsupported 17472fi 17473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17474$as_echo "$hardcode_action" >&6; } 17475 17476if test "$hardcode_action" = relink || 17477 test "$inherit_rpath" = yes; then 17478 # Fast installation is not supported 17479 enable_fast_install=no 17480elif test "$shlibpath_overrides_runpath" = yes || 17481 test "$enable_shared" = no; then 17482 # Fast installation is not necessary 17483 enable_fast_install=needless 17484fi 17485 17486 17487 17488 17489 17490 17491 if test "x$enable_dlopen" != xyes; then 17492 enable_dlopen=unknown 17493 enable_dlopen_self=unknown 17494 enable_dlopen_self_static=unknown 17495else 17496 lt_cv_dlopen=no 17497 lt_cv_dlopen_libs= 17498 17499 case $host_os in 17500 beos*) 17501 lt_cv_dlopen="load_add_on" 17502 lt_cv_dlopen_libs= 17503 lt_cv_dlopen_self=yes 17504 ;; 17505 17506 mingw* | pw32* | cegcc*) 17507 lt_cv_dlopen="LoadLibrary" 17508 lt_cv_dlopen_libs= 17509 ;; 17510 17511 cygwin*) 17512 lt_cv_dlopen="dlopen" 17513 lt_cv_dlopen_libs= 17514 ;; 17515 17516 darwin*) 17517 # if libdl is installed we need to link against it 17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17519$as_echo_n "checking for dlopen in -ldl... " >&6; } 17520if ${ac_cv_lib_dl_dlopen+:} false; then : 17521 $as_echo_n "(cached) " >&6 17522else 17523 ac_check_lib_save_LIBS=$LIBS 17524LIBS="-ldl $LIBS" 17525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17526/* end confdefs.h. */ 17527 17528/* Override any GCC internal prototype to avoid an error. 17529 Use char because int might match the return type of a GCC 17530 builtin and then its argument prototype would still apply. */ 17531#ifdef __cplusplus 17532extern "C" 17533#endif 17534char dlopen (); 17535int 17536main () 17537{ 17538return dlopen (); 17539 ; 17540 return 0; 17541} 17542_ACEOF 17543if ac_fn_c_try_link "$LINENO"; then : 17544 ac_cv_lib_dl_dlopen=yes 17545else 17546 ac_cv_lib_dl_dlopen=no 17547fi 17548rm -f core conftest.err conftest.$ac_objext \ 17549 conftest$ac_exeext conftest.$ac_ext 17550LIBS=$ac_check_lib_save_LIBS 17551fi 17552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17553$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17554if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17556else 17557 17558 lt_cv_dlopen="dyld" 17559 lt_cv_dlopen_libs= 17560 lt_cv_dlopen_self=yes 17561 17562fi 17563 17564 ;; 17565 17566 *) 17567 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17568if test "x$ac_cv_func_shl_load" = xyes; then : 17569 lt_cv_dlopen="shl_load" 17570else 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17572$as_echo_n "checking for shl_load in -ldld... " >&6; } 17573if ${ac_cv_lib_dld_shl_load+:} 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 shl_load (); 17588int 17589main () 17590{ 17591return shl_load (); 17592 ; 17593 return 0; 17594} 17595_ACEOF 17596if ac_fn_c_try_link "$LINENO"; then : 17597 ac_cv_lib_dld_shl_load=yes 17598else 17599 ac_cv_lib_dld_shl_load=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_shl_load" >&5 17606$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17607if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17608 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17609else 17610 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17611if test "x$ac_cv_func_dlopen" = xyes; then : 17612 lt_cv_dlopen="dlopen" 17613else 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17615$as_echo_n "checking for dlopen in -ldl... " >&6; } 17616if ${ac_cv_lib_dl_dlopen+:} false; then : 17617 $as_echo_n "(cached) " >&6 17618else 17619 ac_check_lib_save_LIBS=$LIBS 17620LIBS="-ldl $LIBS" 17621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17622/* end confdefs.h. */ 17623 17624/* Override any GCC internal prototype to avoid an error. 17625 Use char because int might match the return type of a GCC 17626 builtin and then its argument prototype would still apply. */ 17627#ifdef __cplusplus 17628extern "C" 17629#endif 17630char dlopen (); 17631int 17632main () 17633{ 17634return dlopen (); 17635 ; 17636 return 0; 17637} 17638_ACEOF 17639if ac_fn_c_try_link "$LINENO"; then : 17640 ac_cv_lib_dl_dlopen=yes 17641else 17642 ac_cv_lib_dl_dlopen=no 17643fi 17644rm -f core conftest.err conftest.$ac_objext \ 17645 conftest$ac_exeext conftest.$ac_ext 17646LIBS=$ac_check_lib_save_LIBS 17647fi 17648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17649$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17650if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17652else 17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17654$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17655if ${ac_cv_lib_svld_dlopen+:} false; then : 17656 $as_echo_n "(cached) " >&6 17657else 17658 ac_check_lib_save_LIBS=$LIBS 17659LIBS="-lsvld $LIBS" 17660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17661/* end confdefs.h. */ 17662 17663/* Override any GCC internal prototype to avoid an error. 17664 Use char because int might match the return type of a GCC 17665 builtin and then its argument prototype would still apply. */ 17666#ifdef __cplusplus 17667extern "C" 17668#endif 17669char dlopen (); 17670int 17671main () 17672{ 17673return dlopen (); 17674 ; 17675 return 0; 17676} 17677_ACEOF 17678if ac_fn_c_try_link "$LINENO"; then : 17679 ac_cv_lib_svld_dlopen=yes 17680else 17681 ac_cv_lib_svld_dlopen=no 17682fi 17683rm -f core conftest.err conftest.$ac_objext \ 17684 conftest$ac_exeext conftest.$ac_ext 17685LIBS=$ac_check_lib_save_LIBS 17686fi 17687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17688$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17689if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17691else 17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17693$as_echo_n "checking for dld_link in -ldld... " >&6; } 17694if ${ac_cv_lib_dld_dld_link+:} false; then : 17695 $as_echo_n "(cached) " >&6 17696else 17697 ac_check_lib_save_LIBS=$LIBS 17698LIBS="-ldld $LIBS" 17699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17700/* end confdefs.h. */ 17701 17702/* Override any GCC internal prototype to avoid an error. 17703 Use char because int might match the return type of a GCC 17704 builtin and then its argument prototype would still apply. */ 17705#ifdef __cplusplus 17706extern "C" 17707#endif 17708char dld_link (); 17709int 17710main () 17711{ 17712return dld_link (); 17713 ; 17714 return 0; 17715} 17716_ACEOF 17717if ac_fn_c_try_link "$LINENO"; then : 17718 ac_cv_lib_dld_dld_link=yes 17719else 17720 ac_cv_lib_dld_dld_link=no 17721fi 17722rm -f core conftest.err conftest.$ac_objext \ 17723 conftest$ac_exeext conftest.$ac_ext 17724LIBS=$ac_check_lib_save_LIBS 17725fi 17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17727$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17728if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17729 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17730fi 17731 17732 17733fi 17734 17735 17736fi 17737 17738 17739fi 17740 17741 17742fi 17743 17744 17745fi 17746 17747 ;; 17748 esac 17749 17750 if test "x$lt_cv_dlopen" != xno; then 17751 enable_dlopen=yes 17752 else 17753 enable_dlopen=no 17754 fi 17755 17756 case $lt_cv_dlopen in 17757 dlopen) 17758 save_CPPFLAGS="$CPPFLAGS" 17759 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17760 17761 save_LDFLAGS="$LDFLAGS" 17762 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17763 17764 save_LIBS="$LIBS" 17765 LIBS="$lt_cv_dlopen_libs $LIBS" 17766 17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17768$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17769if ${lt_cv_dlopen_self+:} false; then : 17770 $as_echo_n "(cached) " >&6 17771else 17772 if test "$cross_compiling" = yes; then : 17773 lt_cv_dlopen_self=cross 17774else 17775 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17776 lt_status=$lt_dlunknown 17777 cat > conftest.$ac_ext <<_LT_EOF 17778#line $LINENO "configure" 17779#include "confdefs.h" 17780 17781#if HAVE_DLFCN_H 17782#include <dlfcn.h> 17783#endif 17784 17785#include <stdio.h> 17786 17787#ifdef RTLD_GLOBAL 17788# define LT_DLGLOBAL RTLD_GLOBAL 17789#else 17790# ifdef DL_GLOBAL 17791# define LT_DLGLOBAL DL_GLOBAL 17792# else 17793# define LT_DLGLOBAL 0 17794# endif 17795#endif 17796 17797/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17798 find out it does not work in some platform. */ 17799#ifndef LT_DLLAZY_OR_NOW 17800# ifdef RTLD_LAZY 17801# define LT_DLLAZY_OR_NOW RTLD_LAZY 17802# else 17803# ifdef DL_LAZY 17804# define LT_DLLAZY_OR_NOW DL_LAZY 17805# else 17806# ifdef RTLD_NOW 17807# define LT_DLLAZY_OR_NOW RTLD_NOW 17808# else 17809# ifdef DL_NOW 17810# define LT_DLLAZY_OR_NOW DL_NOW 17811# else 17812# define LT_DLLAZY_OR_NOW 0 17813# endif 17814# endif 17815# endif 17816# endif 17817#endif 17818 17819/* When -fvisbility=hidden is used, assume the code has been annotated 17820 correspondingly for the symbols needed. */ 17821#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17822int fnord () __attribute__((visibility("default"))); 17823#endif 17824 17825int fnord () { return 42; } 17826int main () 17827{ 17828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17829 int status = $lt_dlunknown; 17830 17831 if (self) 17832 { 17833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17834 else 17835 { 17836 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17837 else puts (dlerror ()); 17838 } 17839 /* dlclose (self); */ 17840 } 17841 else 17842 puts (dlerror ()); 17843 17844 return status; 17845} 17846_LT_EOF 17847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17848 (eval $ac_link) 2>&5 17849 ac_status=$? 17850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17851 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17852 (./conftest; exit; ) >&5 2>/dev/null 17853 lt_status=$? 17854 case x$lt_status in 17855 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17856 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17857 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17858 esac 17859 else : 17860 # compilation failed 17861 lt_cv_dlopen_self=no 17862 fi 17863fi 17864rm -fr conftest* 17865 17866 17867fi 17868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17869$as_echo "$lt_cv_dlopen_self" >&6; } 17870 17871 if test "x$lt_cv_dlopen_self" = xyes; then 17872 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17874$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17875if ${lt_cv_dlopen_self_static+:} false; then : 17876 $as_echo_n "(cached) " >&6 17877else 17878 if test "$cross_compiling" = yes; then : 17879 lt_cv_dlopen_self_static=cross 17880else 17881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17882 lt_status=$lt_dlunknown 17883 cat > conftest.$ac_ext <<_LT_EOF 17884#line $LINENO "configure" 17885#include "confdefs.h" 17886 17887#if HAVE_DLFCN_H 17888#include <dlfcn.h> 17889#endif 17890 17891#include <stdio.h> 17892 17893#ifdef RTLD_GLOBAL 17894# define LT_DLGLOBAL RTLD_GLOBAL 17895#else 17896# ifdef DL_GLOBAL 17897# define LT_DLGLOBAL DL_GLOBAL 17898# else 17899# define LT_DLGLOBAL 0 17900# endif 17901#endif 17902 17903/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17904 find out it does not work in some platform. */ 17905#ifndef LT_DLLAZY_OR_NOW 17906# ifdef RTLD_LAZY 17907# define LT_DLLAZY_OR_NOW RTLD_LAZY 17908# else 17909# ifdef DL_LAZY 17910# define LT_DLLAZY_OR_NOW DL_LAZY 17911# else 17912# ifdef RTLD_NOW 17913# define LT_DLLAZY_OR_NOW RTLD_NOW 17914# else 17915# ifdef DL_NOW 17916# define LT_DLLAZY_OR_NOW DL_NOW 17917# else 17918# define LT_DLLAZY_OR_NOW 0 17919# endif 17920# endif 17921# endif 17922# endif 17923#endif 17924 17925/* When -fvisbility=hidden is used, assume the code has been annotated 17926 correspondingly for the symbols needed. */ 17927#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17928int fnord () __attribute__((visibility("default"))); 17929#endif 17930 17931int fnord () { return 42; } 17932int main () 17933{ 17934 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17935 int status = $lt_dlunknown; 17936 17937 if (self) 17938 { 17939 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17940 else 17941 { 17942 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17943 else puts (dlerror ()); 17944 } 17945 /* dlclose (self); */ 17946 } 17947 else 17948 puts (dlerror ()); 17949 17950 return status; 17951} 17952_LT_EOF 17953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17954 (eval $ac_link) 2>&5 17955 ac_status=$? 17956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17957 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17958 (./conftest; exit; ) >&5 2>/dev/null 17959 lt_status=$? 17960 case x$lt_status in 17961 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17962 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17963 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17964 esac 17965 else : 17966 # compilation failed 17967 lt_cv_dlopen_self_static=no 17968 fi 17969fi 17970rm -fr conftest* 17971 17972 17973fi 17974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17975$as_echo "$lt_cv_dlopen_self_static" >&6; } 17976 fi 17977 17978 CPPFLAGS="$save_CPPFLAGS" 17979 LDFLAGS="$save_LDFLAGS" 17980 LIBS="$save_LIBS" 17981 ;; 17982 esac 17983 17984 case $lt_cv_dlopen_self in 17985 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17986 *) enable_dlopen_self=unknown ;; 17987 esac 17988 17989 case $lt_cv_dlopen_self_static in 17990 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17991 *) enable_dlopen_self_static=unknown ;; 17992 esac 17993fi 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011striplib= 18012old_striplib= 18013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18014$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18015if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18016 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18017 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18019$as_echo "yes" >&6; } 18020else 18021# FIXME - insert some real tests, host_os isn't really good enough 18022 case $host_os in 18023 darwin*) 18024 if test -n "$STRIP" ; then 18025 striplib="$STRIP -x" 18026 old_striplib="$STRIP -S" 18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18028$as_echo "yes" >&6; } 18029 else 18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18031$as_echo "no" >&6; } 18032 fi 18033 ;; 18034 *) 18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18036$as_echo "no" >&6; } 18037 ;; 18038 esac 18039fi 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 # Report which library types will actually be built 18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18054$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18056$as_echo "$can_build_shared" >&6; } 18057 18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18059$as_echo_n "checking whether to build shared libraries... " >&6; } 18060 test "$can_build_shared" = "no" && enable_shared=no 18061 18062 # On AIX, shared libraries and static libraries use the same namespace, and 18063 # are all built from PIC. 18064 case $host_os in 18065 aix3*) 18066 test "$enable_shared" = yes && enable_static=no 18067 if test -n "$RANLIB"; then 18068 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18069 postinstall_cmds='$RANLIB $lib' 18070 fi 18071 ;; 18072 18073 aix[4-9]*) 18074 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 18075 test "$enable_shared" = yes && enable_static=no 18076 fi 18077 ;; 18078 esac 18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18080$as_echo "$enable_shared" >&6; } 18081 18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18083$as_echo_n "checking whether to build static libraries... " >&6; } 18084 # Make sure either enable_shared or enable_static is yes. 18085 test "$enable_shared" = yes || enable_static=yes 18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18087$as_echo "$enable_static" >&6; } 18088 18089 18090 18091 18092fi 18093ac_ext=c 18094ac_cpp='$CPP $CPPFLAGS' 18095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18097ac_compiler_gnu=$ac_cv_c_compiler_gnu 18098 18099CC="$lt_save_CC" 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 ac_config_commands="$ac_config_commands libtool" 18116 18117 18118 18119 18120# Only expand once: 18121 18122 18123 18124# Checks for programs. 18125 18126 18127 18128 18129# Define a configure option for an alternate module directory 18130 18131# Check whether --with-xorg-module-dir was given. 18132if test "${with_xorg_module_dir+set}" = set; then : 18133 withval=$with_xorg_module_dir; moduledir="$withval" 18134else 18135 moduledir="$libdir/xorg/modules" 18136fi 18137 18138 18139# Define a configure option to build the vmwarectrl client tool 18140# Check whether --enable-vmwarectrl-client was given. 18141if test "${enable_vmwarectrl_client+set}" = set; then : 18142 enableval=$enable_vmwarectrl_client; VMWARECTRL=$enableval 18143else 18144 VMWARECTRL=no 18145fi 18146 18147 if test "x$VMWARECTRL" = xyes; then 18148 BUILD_VMWARECTRL_TRUE= 18149 BUILD_VMWARECTRL_FALSE='#' 18150else 18151 BUILD_VMWARECTRL_TRUE='#' 18152 BUILD_VMWARECTRL_FALSE= 18153fi 18154 18155 18156# Store the list of server defined optional extensions in REQUIRED_MODULES 18157 18158 18159 SAVE_CFLAGS="$CFLAGS" 18160 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18162/* end confdefs.h. */ 18163 18164#include "xorg-server.h" 18165#if !defined RANDR 18166#error RANDR not defined 18167#endif 18168 18169int 18170main () 18171{ 18172 18173 ; 18174 return 0; 18175} 18176_ACEOF 18177if ac_fn_c_try_compile "$LINENO"; then : 18178 _EXT_CHECK=yes 18179else 18180 _EXT_CHECK=no 18181fi 18182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18183 CFLAGS="$SAVE_CFLAGS" 18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18185$as_echo_n "checking if RANDR is defined... " >&6; } 18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18187$as_echo "$_EXT_CHECK" >&6; } 18188 if test "$_EXT_CHECK" != no; then 18189 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18190 fi 18191 18192 18193 18194 SAVE_CFLAGS="$CFLAGS" 18195 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18197/* end confdefs.h. */ 18198 18199#include "xorg-server.h" 18200#if !defined RENDER 18201#error RENDER not defined 18202#endif 18203 18204int 18205main () 18206{ 18207 18208 ; 18209 return 0; 18210} 18211_ACEOF 18212if ac_fn_c_try_compile "$LINENO"; then : 18213 _EXT_CHECK=yes 18214else 18215 _EXT_CHECK=no 18216fi 18217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18218 CFLAGS="$SAVE_CFLAGS" 18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18220$as_echo_n "checking if RENDER is defined... " >&6; } 18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18222$as_echo "$_EXT_CHECK" >&6; } 18223 if test "$_EXT_CHECK" != no; then 18224 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18225 fi 18226 18227 18228 18229 SAVE_CFLAGS="$CFLAGS" 18230 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18232/* end confdefs.h. */ 18233 18234#include "xorg-server.h" 18235#if !defined DPMSExtension 18236#error DPMSExtension not defined 18237#endif 18238 18239int 18240main () 18241{ 18242 18243 ; 18244 return 0; 18245} 18246_ACEOF 18247if ac_fn_c_try_compile "$LINENO"; then : 18248 _EXT_CHECK=yes 18249else 18250 _EXT_CHECK=no 18251fi 18252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18253 CFLAGS="$SAVE_CFLAGS" 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18255$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18257$as_echo "$_EXT_CHECK" >&6; } 18258 if test "$_EXT_CHECK" != no; then 18259 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18260 fi 18261 18262 18263 18264 SAVE_CFLAGS="$CFLAGS" 18265 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18267/* end confdefs.h. */ 18268 18269#include "xorg-server.h" 18270#if !defined XINERAMA 18271#error XINERAMA not defined 18272#endif 18273 18274int 18275main () 18276{ 18277 18278 ; 18279 return 0; 18280} 18281_ACEOF 18282if ac_fn_c_try_compile "$LINENO"; then : 18283 _EXT_CHECK=yes 18284else 18285 _EXT_CHECK=no 18286fi 18287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18288 CFLAGS="$SAVE_CFLAGS" 18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5 18290$as_echo_n "checking if XINERAMA is defined... " >&6; } 18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18292$as_echo "$_EXT_CHECK" >&6; } 18293 if test "$_EXT_CHECK" != no; then 18294 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto" 18295 fi 18296 18297 18298 18299 SAVE_CFLAGS="$CFLAGS" 18300 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18302/* end confdefs.h. */ 18303 18304#include "xorg-server.h" 18305#if !defined XV 18306#error XV not defined 18307#endif 18308 18309int 18310main () 18311{ 18312 18313 ; 18314 return 0; 18315} 18316_ACEOF 18317if ac_fn_c_try_compile "$LINENO"; then : 18318 _EXT_CHECK=yes 18319else 18320 _EXT_CHECK=no 18321fi 18322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18323 CFLAGS="$SAVE_CFLAGS" 18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18325$as_echo_n "checking if XV is defined... " >&6; } 18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18327$as_echo "$_EXT_CHECK" >&6; } 18328 if test "$_EXT_CHECK" != no; then 18329 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18330 fi 18331 18332 18333# Obtain compiler/linker options for the driver dependencies 18334 18335pkg_failed=no 18336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18337$as_echo_n "checking for XORG... " >&6; } 18338 18339if test -n "$XORG_CFLAGS"; then 18340 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18341 elif test -n "$PKG_CONFIG"; then 18342 if test -n "$PKG_CONFIG" && \ 18343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18344 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5 18345 ac_status=$? 18346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18347 test $ac_status = 0; }; then 18348 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18349 test "x$?" != "x0" && pkg_failed=yes 18350else 18351 pkg_failed=yes 18352fi 18353 else 18354 pkg_failed=untried 18355fi 18356if test -n "$XORG_LIBS"; then 18357 pkg_cv_XORG_LIBS="$XORG_LIBS" 18358 elif test -n "$PKG_CONFIG"; then 18359 if test -n "$PKG_CONFIG" && \ 18360 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18361 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5 18362 ac_status=$? 18363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18364 test $ac_status = 0; }; then 18365 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18366 test "x$?" != "x0" && pkg_failed=yes 18367else 18368 pkg_failed=yes 18369fi 18370 else 18371 pkg_failed=untried 18372fi 18373 18374 18375 18376if test $pkg_failed = yes; then 18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18378$as_echo "no" >&6; } 18379 18380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18381 _pkg_short_errors_supported=yes 18382else 18383 _pkg_short_errors_supported=no 18384fi 18385 if test $_pkg_short_errors_supported = yes; then 18386 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18387 else 18388 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18389 fi 18390 # Put the nasty error message in config.log where it belongs 18391 echo "$XORG_PKG_ERRORS" >&5 18392 18393 as_fn_error $? "Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met: 18394 18395$XORG_PKG_ERRORS 18396 18397Consider adjusting the PKG_CONFIG_PATH environment variable if you 18398installed software in a non-standard prefix. 18399 18400Alternatively, you may set the environment variables XORG_CFLAGS 18401and XORG_LIBS to avoid the need to call pkg-config. 18402See the pkg-config man page for more details." "$LINENO" 5 18403elif test $pkg_failed = untried; then 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18405$as_echo "no" >&6; } 18406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18408as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18409is in your PATH or set the PKG_CONFIG environment variable to the full 18410path to pkg-config. 18411 18412Alternatively, you may set the environment variables XORG_CFLAGS 18413and XORG_LIBS to avoid the need to call pkg-config. 18414See the pkg-config man page for more details. 18415 18416To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18417See \`config.log' for more details" "$LINENO" 5; } 18418else 18419 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18420 XORG_LIBS=$pkg_cv_XORG_LIBS 18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18422$as_echo "yes" >&6; } 18423 18424fi 18425if test -n "$PKG_CONFIG" && \ 18426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\""; } >&5 18427 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5 18428 ac_status=$? 18429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18430 test $ac_status = 0; }; then 18431 18432$as_echo "#define HAVE_XORG_SERVER_1_1_0 1" >>confdefs.h 18433 18434fi 18435 18436if test -n "$PKG_CONFIG" && \ 18437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\""; } >&5 18438 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5 18439 ac_status=$? 18440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18441 test $ac_status = 0; }; then 18442 18443$as_echo "#define HAVE_XORG_SERVER_1_2_0 1" >>confdefs.h 18444 18445fi 18446 18447if test -n "$PKG_CONFIG" && \ 18448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4.99\""; } >&5 18449 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4.99") 2>&5 18450 ac_status=$? 18451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18452 test $ac_status = 0; }; then 18453 18454$as_echo "#define HAVE_XORG_SERVER_1_5_0 1" >>confdefs.h 18455 18456fi 18457 18458if test -n "$PKG_CONFIG" && \ 18459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0\""; } >&5 18460 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0") 2>&5 18461 ac_status=$? 18462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18463 test $ac_status = 0; }; then 18464 18465$as_echo "#define HAVE_XORG_SERVER_1_7_0 1" >>confdefs.h 18466 18467 BUILD_VMWGFX=yes 18468else 18469 BUILD_VMWGFX=no 18470fi 18471 18472if test -n "$PKG_CONFIG" && \ 18473 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.12.0\""; } >&5 18474 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.12.0") 2>&5 18475 ac_status=$? 18476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18477 test $ac_status = 0; }; then 18478 18479$as_echo "#define HAVE_XORG_SERVER_1_12_0 1" >>confdefs.h 18480 18481fi 18482 18483# Obtain compiler/linker options for the vmwarectrl client tool 18484 18485pkg_failed=no 18486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 18487$as_echo_n "checking for X11... " >&6; } 18488 18489if test -n "$X11_CFLAGS"; then 18490 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 18491 elif test -n "$PKG_CONFIG"; then 18492 if test -n "$PKG_CONFIG" && \ 18493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5 18494 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5 18495 ac_status=$? 18496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18497 test $ac_status = 0; }; then 18498 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null` 18499 test "x$?" != "x0" && pkg_failed=yes 18500else 18501 pkg_failed=yes 18502fi 18503 else 18504 pkg_failed=untried 18505fi 18506if test -n "$X11_LIBS"; then 18507 pkg_cv_X11_LIBS="$X11_LIBS" 18508 elif test -n "$PKG_CONFIG"; then 18509 if test -n "$PKG_CONFIG" && \ 18510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5 18511 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5 18512 ac_status=$? 18513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18514 test $ac_status = 0; }; then 18515 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null` 18516 test "x$?" != "x0" && pkg_failed=yes 18517else 18518 pkg_failed=yes 18519fi 18520 else 18521 pkg_failed=untried 18522fi 18523 18524 18525 18526if test $pkg_failed = yes; then 18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18528$as_echo "no" >&6; } 18529 18530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18531 _pkg_short_errors_supported=yes 18532else 18533 _pkg_short_errors_supported=no 18534fi 18535 if test $_pkg_short_errors_supported = yes; then 18536 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext" 2>&1` 18537 else 18538 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext" 2>&1` 18539 fi 18540 # Put the nasty error message in config.log where it belongs 18541 echo "$X11_PKG_ERRORS" >&5 18542 18543 as_fn_error $? "Package requirements (x11 xext) were not met: 18544 18545$X11_PKG_ERRORS 18546 18547Consider adjusting the PKG_CONFIG_PATH environment variable if you 18548installed software in a non-standard prefix. 18549 18550Alternatively, you may set the environment variables X11_CFLAGS 18551and X11_LIBS to avoid the need to call pkg-config. 18552See the pkg-config man page for more details." "$LINENO" 5 18553elif test $pkg_failed = untried; then 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18555$as_echo "no" >&6; } 18556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18558as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18559is in your PATH or set the PKG_CONFIG environment variable to the full 18560path to pkg-config. 18561 18562Alternatively, you may set the environment variables X11_CFLAGS 18563and X11_LIBS to avoid the need to call pkg-config. 18564See the pkg-config man page for more details. 18565 18566To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18567See \`config.log' for more details" "$LINENO" 5; } 18568else 18569 X11_CFLAGS=$pkg_cv_X11_CFLAGS 18570 X11_LIBS=$pkg_cv_X11_LIBS 18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18572$as_echo "yes" >&6; } 18573 18574fi 18575 18576# Checks for libraries. 18577 18578save_CFLAGS="$CFLAGS" 18579CFLAGS="$XORG_CFLAGS" 18580ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18581" 18582if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18583 XSERVER_LIBPCIACCESS=yes 18584else 18585 XSERVER_LIBPCIACCESS=no 18586fi 18587 18588CFLAGS="$save_CFLAGS" 18589 18590if test x$XSERVER_LIBPCIACCESS = xyes; then 18591 18592pkg_failed=no 18593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18594$as_echo_n "checking for PCIACCESS... " >&6; } 18595 18596if test -n "$PCIACCESS_CFLAGS"; then 18597 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18598 elif test -n "$PKG_CONFIG"; then 18599 if test -n "$PKG_CONFIG" && \ 18600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18601 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18602 ac_status=$? 18603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18604 test $ac_status = 0; }; then 18605 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18606 test "x$?" != "x0" && pkg_failed=yes 18607else 18608 pkg_failed=yes 18609fi 18610 else 18611 pkg_failed=untried 18612fi 18613if test -n "$PCIACCESS_LIBS"; then 18614 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18615 elif test -n "$PKG_CONFIG"; then 18616 if test -n "$PKG_CONFIG" && \ 18617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18618 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18619 ac_status=$? 18620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18621 test $ac_status = 0; }; then 18622 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18623 test "x$?" != "x0" && pkg_failed=yes 18624else 18625 pkg_failed=yes 18626fi 18627 else 18628 pkg_failed=untried 18629fi 18630 18631 18632 18633if test $pkg_failed = yes; then 18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18635$as_echo "no" >&6; } 18636 18637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18638 _pkg_short_errors_supported=yes 18639else 18640 _pkg_short_errors_supported=no 18641fi 18642 if test $_pkg_short_errors_supported = yes; then 18643 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18644 else 18645 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18646 fi 18647 # Put the nasty error message in config.log where it belongs 18648 echo "$PCIACCESS_PKG_ERRORS" >&5 18649 18650 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18651 18652$PCIACCESS_PKG_ERRORS 18653 18654Consider adjusting the PKG_CONFIG_PATH environment variable if you 18655installed software in a non-standard prefix. 18656 18657Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18658and PCIACCESS_LIBS to avoid the need to call pkg-config. 18659See the pkg-config man page for more details." "$LINENO" 5 18660elif test $pkg_failed = untried; then 18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18662$as_echo "no" >&6; } 18663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18665as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18666is in your PATH or set the PKG_CONFIG environment variable to the full 18667path to pkg-config. 18668 18669Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18670and PCIACCESS_LIBS to avoid the need to call pkg-config. 18671See the pkg-config man page for more details. 18672 18673To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18674See \`config.log' for more details" "$LINENO" 5; } 18675else 18676 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18677 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18679$as_echo "yes" >&6; } 18680 18681fi 18682fi 18683 18684 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18685 XSERVER_LIBPCIACCESS_TRUE= 18686 XSERVER_LIBPCIACCESS_FALSE='#' 18687else 18688 XSERVER_LIBPCIACCESS_TRUE='#' 18689 XSERVER_LIBPCIACCESS_FALSE= 18690fi 18691 18692 18693 18694 18695if test x$BUILD_VMWGFX = xyes; then 18696 18697pkg_failed=no 18698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 18699$as_echo_n "checking for LIBDRM... " >&6; } 18700 18701if test -n "$LIBDRM_CFLAGS"; then 18702 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 18703 elif test -n "$PKG_CONFIG"; then 18704 if test -n "$PKG_CONFIG" && \ 18705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 18706 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 18707 ac_status=$? 18708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18709 test $ac_status = 0; }; then 18710 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null` 18711 test "x$?" != "x0" && pkg_failed=yes 18712else 18713 pkg_failed=yes 18714fi 18715 else 18716 pkg_failed=untried 18717fi 18718if test -n "$LIBDRM_LIBS"; then 18719 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 18720 elif test -n "$PKG_CONFIG"; then 18721 if test -n "$PKG_CONFIG" && \ 18722 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 18723 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 18724 ac_status=$? 18725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18726 test $ac_status = 0; }; then 18727 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null` 18728 test "x$?" != "x0" && pkg_failed=yes 18729else 18730 pkg_failed=yes 18731fi 18732 else 18733 pkg_failed=untried 18734fi 18735 18736 18737 18738if test $pkg_failed = yes; then 18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18740$as_echo "no" >&6; } 18741 18742if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18743 _pkg_short_errors_supported=yes 18744else 18745 _pkg_short_errors_supported=no 18746fi 18747 if test $_pkg_short_errors_supported = yes; then 18748 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm" 2>&1` 18749 else 18750 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm" 2>&1` 18751 fi 18752 # Put the nasty error message in config.log where it belongs 18753 echo "$LIBDRM_PKG_ERRORS" >&5 18754 18755 BUILD_VMWGFX=no 18756elif test $pkg_failed = untried; then 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18758$as_echo "no" >&6; } 18759 BUILD_VMWGFX=no 18760else 18761 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 18762 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18764$as_echo "yes" >&6; } 18765 18766fi 18767fi 18768if test x$BUILD_VMWGFX = xyes; then 18769# 18770# Early versions of mesa 10 forgot to bump the XA major version number in 18771# the xa_tracker.h header 18772# 18773 18774pkg_failed=no 18775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATRACKER" >&5 18776$as_echo_n "checking for XATRACKER... " >&6; } 18777 18778if test -n "$XATRACKER_CFLAGS"; then 18779 pkg_cv_XATRACKER_CFLAGS="$XATRACKER_CFLAGS" 18780 elif test -n "$PKG_CONFIG"; then 18781 if test -n "$PKG_CONFIG" && \ 18782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5 18783 ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5 18784 ac_status=$? 18785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18786 test $ac_status = 0; }; then 18787 pkg_cv_XATRACKER_CFLAGS=`$PKG_CONFIG --cflags "xatracker >= 0.4.0" 2>/dev/null` 18788 test "x$?" != "x0" && pkg_failed=yes 18789else 18790 pkg_failed=yes 18791fi 18792 else 18793 pkg_failed=untried 18794fi 18795if test -n "$XATRACKER_LIBS"; then 18796 pkg_cv_XATRACKER_LIBS="$XATRACKER_LIBS" 18797 elif test -n "$PKG_CONFIG"; then 18798 if test -n "$PKG_CONFIG" && \ 18799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5 18800 ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5 18801 ac_status=$? 18802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18803 test $ac_status = 0; }; then 18804 pkg_cv_XATRACKER_LIBS=`$PKG_CONFIG --libs "xatracker >= 0.4.0" 2>/dev/null` 18805 test "x$?" != "x0" && pkg_failed=yes 18806else 18807 pkg_failed=yes 18808fi 18809 else 18810 pkg_failed=untried 18811fi 18812 18813 18814 18815if test $pkg_failed = yes; then 18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18817$as_echo "no" >&6; } 18818 18819if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18820 _pkg_short_errors_supported=yes 18821else 18822 _pkg_short_errors_supported=no 18823fi 18824 if test $_pkg_short_errors_supported = yes; then 18825 XATRACKER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xatracker >= 0.4.0" 2>&1` 18826 else 18827 XATRACKER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xatracker >= 0.4.0" 2>&1` 18828 fi 18829 # Put the nasty error message in config.log where it belongs 18830 echo "$XATRACKER_PKG_ERRORS" >&5 18831 18832 BUILD_VMWGFX=no 18833elif test $pkg_failed = untried; then 18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18835$as_echo "no" >&6; } 18836 BUILD_VMWGFX=no 18837else 18838 XATRACKER_CFLAGS=$pkg_cv_XATRACKER_CFLAGS 18839 XATRACKER_LIBS=$pkg_cv_XATRACKER_LIBS 18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18841$as_echo "yes" >&6; } 18842 if test -n "$PKG_CONFIG" && \ 18843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker = 2.0.0\""; } >&5 18844 ($PKG_CONFIG --exists --print-errors "xatracker = 2.0.0") 2>&5 18845 ac_status=$? 18846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18847 test $ac_status = 0; }; then 18848 18849$as_echo "#define HAVE_XA_2 1" >>confdefs.h 18850 18851fi 18852fi 18853# 18854# Check for prime. 18855# 18856 if test -n "$PKG_CONFIG" && \ 18857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.38\""; } >&5 18858 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.38") 2>&5 18859 ac_status=$? 18860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18861 test $ac_status = 0; }; then 18862 18863$as_echo "#define HAVE_LIBDRM_2_4_38 1" >>confdefs.h 18864 18865fi 18866fi 18867 18868DRIVER_NAME=vmware 18869 18870 18871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Kernel Mode Setting and 3D" >&5 18872$as_echo_n "checking whether to build Kernel Mode Setting and 3D... " >&6; } 18873if test x$BUILD_VMWGFX = xyes; then 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18875$as_echo "yes" >&6; } 18876 18877$as_echo "#define BUILD_VMWGFX 1" >>confdefs.h 18878 18879 libudev_check=yes 18880 18881# Check whether --with-libudev was given. 18882if test "${with_libudev+set}" = set; then : 18883 withval=$with_libudev; if test x$withval = xno; then libudev_check=no; fi 18884 18885fi 18886 18887 if test $libudev_check != no; then 18888 18889pkg_failed=no 18890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 18891$as_echo_n "checking for LIBUDEV... " >&6; } 18892 18893if test -n "$LIBUDEV_CFLAGS"; then 18894 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 18895 elif test -n "$PKG_CONFIG"; then 18896 if test -n "$PKG_CONFIG" && \ 18897 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 18898 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 18899 ac_status=$? 18900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18901 test $ac_status = 0; }; then 18902 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 18903 test "x$?" != "x0" && pkg_failed=yes 18904else 18905 pkg_failed=yes 18906fi 18907 else 18908 pkg_failed=untried 18909fi 18910if test -n "$LIBUDEV_LIBS"; then 18911 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 18912 elif test -n "$PKG_CONFIG"; then 18913 if test -n "$PKG_CONFIG" && \ 18914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 18915 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 18916 ac_status=$? 18917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18918 test $ac_status = 0; }; then 18919 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 18920 test "x$?" != "x0" && pkg_failed=yes 18921else 18922 pkg_failed=yes 18923fi 18924 else 18925 pkg_failed=untried 18926fi 18927 18928 18929 18930if test $pkg_failed = yes; then 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18932$as_echo "no" >&6; } 18933 18934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18935 _pkg_short_errors_supported=yes 18936else 18937 _pkg_short_errors_supported=no 18938fi 18939 if test $_pkg_short_errors_supported = yes; then 18940 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 18941 else 18942 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 18943 fi 18944 # Put the nasty error message in config.log where it belongs 18945 echo "$LIBUDEV_PKG_ERRORS" >&5 18946 18947 as_fn_error $? "Package requirements (libudev) were not met: 18948 18949$LIBUDEV_PKG_ERRORS 18950 18951Consider adjusting the PKG_CONFIG_PATH environment variable if you 18952installed software in a non-standard prefix. 18953 18954Alternatively, you may set the environment variables LIBUDEV_CFLAGS 18955and LIBUDEV_LIBS to avoid the need to call pkg-config. 18956See the pkg-config man page for more details." "$LINENO" 5 18957elif test $pkg_failed = untried; then 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18959$as_echo "no" >&6; } 18960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18962as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18963is in your PATH or set the PKG_CONFIG environment variable to the full 18964path to pkg-config. 18965 18966Alternatively, you may set the environment variables LIBUDEV_CFLAGS 18967and LIBUDEV_LIBS to avoid the need to call pkg-config. 18968See the pkg-config man page for more details. 18969 18970To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18971See \`config.log' for more details" "$LINENO" 5; } 18972else 18973 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 18974 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18976$as_echo "yes" >&6; } 18977 18978$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 18979 18980fi; 18981 fi 18982else 18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18984$as_echo "no" >&6; } 18985fi 18986 18987 if test "x$BUILD_VMWGFX" = xyes; then 18988 BUILD_VMWGFX_TRUE= 18989 BUILD_VMWGFX_FALSE='#' 18990else 18991 BUILD_VMWGFX_TRUE='#' 18992 BUILD_VMWGFX_FALSE= 18993fi 18994 18995 18996ac_config_files="$ac_config_files Makefile man/Makefile saa/Makefile vmwgfx/Makefile src/Makefile vmwarectrl/Makefile" 18997 18998 18999cat >confcache <<\_ACEOF 19000# This file is a shell script that caches the results of configure 19001# tests run on this system so they can be shared between configure 19002# scripts and configure runs, see configure's option --config-cache. 19003# It is not useful on other systems. If it contains results you don't 19004# want to keep, you may remove or edit it. 19005# 19006# config.status only pays attention to the cache file if you give it 19007# the --recheck option to rerun configure. 19008# 19009# `ac_cv_env_foo' variables (set or unset) will be overridden when 19010# loading this file, other *unset* `ac_cv_foo' will be assigned the 19011# following values. 19012 19013_ACEOF 19014 19015# The following way of writing the cache mishandles newlines in values, 19016# but we know of no workaround that is simple, portable, and efficient. 19017# So, we kill variables containing newlines. 19018# Ultrix sh set writes to stderr and can't be redirected directly, 19019# and sets the high bit in the cache file unless we assign to the vars. 19020( 19021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19022 eval ac_val=\$$ac_var 19023 case $ac_val in #( 19024 *${as_nl}*) 19025 case $ac_var in #( 19026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19027$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19028 esac 19029 case $ac_var in #( 19030 _ | IFS | as_nl) ;; #( 19031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19032 *) { eval $ac_var=; unset $ac_var;} ;; 19033 esac ;; 19034 esac 19035 done 19036 19037 (set) 2>&1 | 19038 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19039 *${as_nl}ac_space=\ *) 19040 # `set' does not quote correctly, so add quotes: double-quote 19041 # substitution turns \\\\ into \\, and sed turns \\ into \. 19042 sed -n \ 19043 "s/'/'\\\\''/g; 19044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19045 ;; #( 19046 *) 19047 # `set' quotes correctly as required by POSIX, so do not add quotes. 19048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19049 ;; 19050 esac | 19051 sort 19052) | 19053 sed ' 19054 /^ac_cv_env_/b end 19055 t clear 19056 :clear 19057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19058 t end 19059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19060 :end' >>confcache 19061if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19062 if test -w "$cache_file"; then 19063 if test "x$cache_file" != "x/dev/null"; then 19064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19065$as_echo "$as_me: updating cache $cache_file" >&6;} 19066 if test ! -f "$cache_file" || test -h "$cache_file"; then 19067 cat confcache >"$cache_file" 19068 else 19069 case $cache_file in #( 19070 */* | ?:*) 19071 mv -f confcache "$cache_file"$$ && 19072 mv -f "$cache_file"$$ "$cache_file" ;; #( 19073 *) 19074 mv -f confcache "$cache_file" ;; 19075 esac 19076 fi 19077 fi 19078 else 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19080$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19081 fi 19082fi 19083rm -f confcache 19084 19085test "x$prefix" = xNONE && prefix=$ac_default_prefix 19086# Let make expand exec_prefix. 19087test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19088 19089DEFS=-DHAVE_CONFIG_H 19090 19091ac_libobjs= 19092ac_ltlibobjs= 19093U= 19094for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19095 # 1. Remove the extension, and $U if already installed. 19096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19097 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19099 # will be set to the directory where LIBOBJS objects are built. 19100 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19101 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19102done 19103LIBOBJS=$ac_libobjs 19104 19105LTLIBOBJS=$ac_ltlibobjs 19106 19107 19108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19109$as_echo_n "checking that generated files are newer than configure... " >&6; } 19110 if test -n "$am_sleep_pid"; then 19111 # Hide warnings about reused PIDs. 19112 wait $am_sleep_pid 2>/dev/null 19113 fi 19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19115$as_echo "done" >&6; } 19116if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19117 as_fn_error $? "conditional \"AMDEP\" was never defined. 19118Usually this means the macro was only invoked conditionally." "$LINENO" 5 19119fi 19120if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19121 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19122Usually this means the macro was only invoked conditionally." "$LINENO" 5 19123fi 19124 if test -n "$EXEEXT"; then 19125 am__EXEEXT_TRUE= 19126 am__EXEEXT_FALSE='#' 19127else 19128 am__EXEEXT_TRUE='#' 19129 am__EXEEXT_FALSE= 19130fi 19131 19132if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19133 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19134Usually this means the macro was only invoked conditionally." "$LINENO" 5 19135fi 19136if test -z "${BUILD_VMWARECTRL_TRUE}" && test -z "${BUILD_VMWARECTRL_FALSE}"; then 19137 as_fn_error $? "conditional \"BUILD_VMWARECTRL\" was never defined. 19138Usually this means the macro was only invoked conditionally." "$LINENO" 5 19139fi 19140if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19141 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19142Usually this means the macro was only invoked conditionally." "$LINENO" 5 19143fi 19144if test -z "${BUILD_VMWGFX_TRUE}" && test -z "${BUILD_VMWGFX_FALSE}"; then 19145 as_fn_error $? "conditional \"BUILD_VMWGFX\" was never defined. 19146Usually this means the macro was only invoked conditionally." "$LINENO" 5 19147fi 19148 19149: "${CONFIG_STATUS=./config.status}" 19150ac_write_fail=0 19151ac_clean_files_save=$ac_clean_files 19152ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19153{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19154$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19155as_write_fail=0 19156cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19157#! $SHELL 19158# Generated by $as_me. 19159# Run this file to recreate the current configuration. 19160# Compiler output produced by configure, useful for debugging 19161# configure, is in config.log if it exists. 19162 19163debug=false 19164ac_cs_recheck=false 19165ac_cs_silent=false 19166 19167SHELL=\${CONFIG_SHELL-$SHELL} 19168export SHELL 19169_ASEOF 19170cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19171## -------------------- ## 19172## M4sh Initialization. ## 19173## -------------------- ## 19174 19175# Be more Bourne compatible 19176DUALCASE=1; export DUALCASE # for MKS sh 19177if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19178 emulate sh 19179 NULLCMD=: 19180 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19181 # is contrary to our usage. Disable this feature. 19182 alias -g '${1+"$@"}'='"$@"' 19183 setopt NO_GLOB_SUBST 19184else 19185 case `(set -o) 2>/dev/null` in #( 19186 *posix*) : 19187 set -o posix ;; #( 19188 *) : 19189 ;; 19190esac 19191fi 19192 19193 19194as_nl=' 19195' 19196export as_nl 19197# Printing a long string crashes Solaris 7 /usr/bin/printf. 19198as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19199as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19200as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19201# Prefer a ksh shell builtin over an external printf program on Solaris, 19202# but without wasting forks for bash or zsh. 19203if test -z "$BASH_VERSION$ZSH_VERSION" \ 19204 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19205 as_echo='print -r --' 19206 as_echo_n='print -rn --' 19207elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19208 as_echo='printf %s\n' 19209 as_echo_n='printf %s' 19210else 19211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19212 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19213 as_echo_n='/usr/ucb/echo -n' 19214 else 19215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19216 as_echo_n_body='eval 19217 arg=$1; 19218 case $arg in #( 19219 *"$as_nl"*) 19220 expr "X$arg" : "X\\(.*\\)$as_nl"; 19221 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19222 esac; 19223 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19224 ' 19225 export as_echo_n_body 19226 as_echo_n='sh -c $as_echo_n_body as_echo' 19227 fi 19228 export as_echo_body 19229 as_echo='sh -c $as_echo_body as_echo' 19230fi 19231 19232# The user is always right. 19233if test "${PATH_SEPARATOR+set}" != set; then 19234 PATH_SEPARATOR=: 19235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19236 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19237 PATH_SEPARATOR=';' 19238 } 19239fi 19240 19241 19242# IFS 19243# We need space, tab and new line, in precisely that order. Quoting is 19244# there to prevent editors from complaining about space-tab. 19245# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19246# splitting by setting IFS to empty value.) 19247IFS=" "" $as_nl" 19248 19249# Find who we are. Look in the path if we contain no directory separator. 19250as_myself= 19251case $0 in #(( 19252 *[\\/]* ) as_myself=$0 ;; 19253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19254for as_dir in $PATH 19255do 19256 IFS=$as_save_IFS 19257 test -z "$as_dir" && as_dir=. 19258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19259 done 19260IFS=$as_save_IFS 19261 19262 ;; 19263esac 19264# We did not find ourselves, most probably we were run as `sh COMMAND' 19265# in which case we are not to be found in the path. 19266if test "x$as_myself" = x; then 19267 as_myself=$0 19268fi 19269if test ! -f "$as_myself"; then 19270 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19271 exit 1 19272fi 19273 19274# Unset variables that we do not need and which cause bugs (e.g. in 19275# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19276# suppresses any "Segmentation fault" message there. '((' could 19277# trigger a bug in pdksh 5.2.14. 19278for as_var in BASH_ENV ENV MAIL MAILPATH 19279do eval test x\${$as_var+set} = xset \ 19280 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19281done 19282PS1='$ ' 19283PS2='> ' 19284PS4='+ ' 19285 19286# NLS nuisances. 19287LC_ALL=C 19288export LC_ALL 19289LANGUAGE=C 19290export LANGUAGE 19291 19292# CDPATH. 19293(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19294 19295 19296# as_fn_error STATUS ERROR [LINENO LOG_FD] 19297# ---------------------------------------- 19298# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19299# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19300# script with STATUS, using 1 if that was 0. 19301as_fn_error () 19302{ 19303 as_status=$1; test $as_status -eq 0 && as_status=1 19304 if test "$4"; then 19305 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19306 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19307 fi 19308 $as_echo "$as_me: error: $2" >&2 19309 as_fn_exit $as_status 19310} # as_fn_error 19311 19312 19313# as_fn_set_status STATUS 19314# ----------------------- 19315# Set $? to STATUS, without forking. 19316as_fn_set_status () 19317{ 19318 return $1 19319} # as_fn_set_status 19320 19321# as_fn_exit STATUS 19322# ----------------- 19323# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19324as_fn_exit () 19325{ 19326 set +e 19327 as_fn_set_status $1 19328 exit $1 19329} # as_fn_exit 19330 19331# as_fn_unset VAR 19332# --------------- 19333# Portably unset VAR. 19334as_fn_unset () 19335{ 19336 { eval $1=; unset $1;} 19337} 19338as_unset=as_fn_unset 19339# as_fn_append VAR VALUE 19340# ---------------------- 19341# Append the text in VALUE to the end of the definition contained in VAR. Take 19342# advantage of any shell optimizations that allow amortized linear growth over 19343# repeated appends, instead of the typical quadratic growth present in naive 19344# implementations. 19345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19346 eval 'as_fn_append () 19347 { 19348 eval $1+=\$2 19349 }' 19350else 19351 as_fn_append () 19352 { 19353 eval $1=\$$1\$2 19354 } 19355fi # as_fn_append 19356 19357# as_fn_arith ARG... 19358# ------------------ 19359# Perform arithmetic evaluation on the ARGs, and store the result in the 19360# global $as_val. Take advantage of shells that can avoid forks. The arguments 19361# must be portable across $(()) and expr. 19362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19363 eval 'as_fn_arith () 19364 { 19365 as_val=$(( $* )) 19366 }' 19367else 19368 as_fn_arith () 19369 { 19370 as_val=`expr "$@" || test $? -eq 1` 19371 } 19372fi # as_fn_arith 19373 19374 19375if expr a : '\(a\)' >/dev/null 2>&1 && 19376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19377 as_expr=expr 19378else 19379 as_expr=false 19380fi 19381 19382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19383 as_basename=basename 19384else 19385 as_basename=false 19386fi 19387 19388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19389 as_dirname=dirname 19390else 19391 as_dirname=false 19392fi 19393 19394as_me=`$as_basename -- "$0" || 19395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19396 X"$0" : 'X\(//\)$' \| \ 19397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19398$as_echo X/"$0" | 19399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19400 s//\1/ 19401 q 19402 } 19403 /^X\/\(\/\/\)$/{ 19404 s//\1/ 19405 q 19406 } 19407 /^X\/\(\/\).*/{ 19408 s//\1/ 19409 q 19410 } 19411 s/.*/./; q'` 19412 19413# Avoid depending upon Character Ranges. 19414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19417as_cr_digits='0123456789' 19418as_cr_alnum=$as_cr_Letters$as_cr_digits 19419 19420ECHO_C= ECHO_N= ECHO_T= 19421case `echo -n x` in #((((( 19422-n*) 19423 case `echo 'xy\c'` in 19424 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19425 xy) ECHO_C='\c';; 19426 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19427 ECHO_T=' ';; 19428 esac;; 19429*) 19430 ECHO_N='-n';; 19431esac 19432 19433rm -f conf$$ conf$$.exe conf$$.file 19434if test -d conf$$.dir; then 19435 rm -f conf$$.dir/conf$$.file 19436else 19437 rm -f conf$$.dir 19438 mkdir conf$$.dir 2>/dev/null 19439fi 19440if (echo >conf$$.file) 2>/dev/null; then 19441 if ln -s conf$$.file conf$$ 2>/dev/null; then 19442 as_ln_s='ln -s' 19443 # ... but there are two gotchas: 19444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19446 # In both cases, we have to default to `cp -pR'. 19447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19448 as_ln_s='cp -pR' 19449 elif ln conf$$.file conf$$ 2>/dev/null; then 19450 as_ln_s=ln 19451 else 19452 as_ln_s='cp -pR' 19453 fi 19454else 19455 as_ln_s='cp -pR' 19456fi 19457rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19458rmdir conf$$.dir 2>/dev/null 19459 19460 19461# as_fn_mkdir_p 19462# ------------- 19463# Create "$as_dir" as a directory, including parents if necessary. 19464as_fn_mkdir_p () 19465{ 19466 19467 case $as_dir in #( 19468 -*) as_dir=./$as_dir;; 19469 esac 19470 test -d "$as_dir" || eval $as_mkdir_p || { 19471 as_dirs= 19472 while :; do 19473 case $as_dir in #( 19474 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19475 *) as_qdir=$as_dir;; 19476 esac 19477 as_dirs="'$as_qdir' $as_dirs" 19478 as_dir=`$as_dirname -- "$as_dir" || 19479$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19480 X"$as_dir" : 'X\(//\)[^/]' \| \ 19481 X"$as_dir" : 'X\(//\)$' \| \ 19482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19483$as_echo X"$as_dir" | 19484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19485 s//\1/ 19486 q 19487 } 19488 /^X\(\/\/\)[^/].*/{ 19489 s//\1/ 19490 q 19491 } 19492 /^X\(\/\/\)$/{ 19493 s//\1/ 19494 q 19495 } 19496 /^X\(\/\).*/{ 19497 s//\1/ 19498 q 19499 } 19500 s/.*/./; q'` 19501 test -d "$as_dir" && break 19502 done 19503 test -z "$as_dirs" || eval "mkdir $as_dirs" 19504 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19505 19506 19507} # as_fn_mkdir_p 19508if mkdir -p . 2>/dev/null; then 19509 as_mkdir_p='mkdir -p "$as_dir"' 19510else 19511 test -d ./-p && rmdir ./-p 19512 as_mkdir_p=false 19513fi 19514 19515 19516# as_fn_executable_p FILE 19517# ----------------------- 19518# Test if FILE is an executable regular file. 19519as_fn_executable_p () 19520{ 19521 test -f "$1" && test -x "$1" 19522} # as_fn_executable_p 19523as_test_x='test -x' 19524as_executable_p=as_fn_executable_p 19525 19526# Sed expression to map a string onto a valid CPP name. 19527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19528 19529# Sed expression to map a string onto a valid variable name. 19530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19531 19532 19533exec 6>&1 19534## ----------------------------------- ## 19535## Main body of $CONFIG_STATUS script. ## 19536## ----------------------------------- ## 19537_ASEOF 19538test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19539 19540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19541# Save the log message, to keep $0 and so on meaningful, and to 19542# report actual input values of CONFIG_FILES etc. instead of their 19543# values after options handling. 19544ac_log=" 19545This file was extended by xf86-video-vmware $as_me 13.2.1, which was 19546generated by GNU Autoconf 2.69. Invocation command line was 19547 19548 CONFIG_FILES = $CONFIG_FILES 19549 CONFIG_HEADERS = $CONFIG_HEADERS 19550 CONFIG_LINKS = $CONFIG_LINKS 19551 CONFIG_COMMANDS = $CONFIG_COMMANDS 19552 $ $0 $@ 19553 19554on `(hostname || uname -n) 2>/dev/null | sed 1q` 19555" 19556 19557_ACEOF 19558 19559case $ac_config_files in *" 19560"*) set x $ac_config_files; shift; ac_config_files=$*;; 19561esac 19562 19563case $ac_config_headers in *" 19564"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19565esac 19566 19567 19568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19569# Files that config.status was made for. 19570config_files="$ac_config_files" 19571config_headers="$ac_config_headers" 19572config_commands="$ac_config_commands" 19573 19574_ACEOF 19575 19576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19577ac_cs_usage="\ 19578\`$as_me' instantiates files and other configuration actions 19579from templates according to the current configuration. Unless the files 19580and actions are specified as TAGs, all are instantiated by default. 19581 19582Usage: $0 [OPTION]... [TAG]... 19583 19584 -h, --help print this help, then exit 19585 -V, --version print version number and configuration settings, then exit 19586 --config print configuration, then exit 19587 -q, --quiet, --silent 19588 do not print progress messages 19589 -d, --debug don't remove temporary files 19590 --recheck update $as_me by reconfiguring in the same conditions 19591 --file=FILE[:TEMPLATE] 19592 instantiate the configuration file FILE 19593 --header=FILE[:TEMPLATE] 19594 instantiate the configuration header FILE 19595 19596Configuration files: 19597$config_files 19598 19599Configuration headers: 19600$config_headers 19601 19602Configuration commands: 19603$config_commands 19604 19605Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19606 19607_ACEOF 19608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19609ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19610ac_cs_version="\\ 19611xf86-video-vmware config.status 13.2.1 19612configured by $0, generated by GNU Autoconf 2.69, 19613 with options \\"\$ac_cs_config\\" 19614 19615Copyright (C) 2012 Free Software Foundation, Inc. 19616This config.status script is free software; the Free Software Foundation 19617gives unlimited permission to copy, distribute and modify it." 19618 19619ac_pwd='$ac_pwd' 19620srcdir='$srcdir' 19621INSTALL='$INSTALL' 19622MKDIR_P='$MKDIR_P' 19623AWK='$AWK' 19624test -n "\$AWK" || AWK=awk 19625_ACEOF 19626 19627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19628# The default lists apply if the user does not specify any file. 19629ac_need_defaults=: 19630while test $# != 0 19631do 19632 case $1 in 19633 --*=?*) 19634 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19636 ac_shift=: 19637 ;; 19638 --*=) 19639 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19640 ac_optarg= 19641 ac_shift=: 19642 ;; 19643 *) 19644 ac_option=$1 19645 ac_optarg=$2 19646 ac_shift=shift 19647 ;; 19648 esac 19649 19650 case $ac_option in 19651 # Handling of the options. 19652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19653 ac_cs_recheck=: ;; 19654 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19655 $as_echo "$ac_cs_version"; exit ;; 19656 --config | --confi | --conf | --con | --co | --c ) 19657 $as_echo "$ac_cs_config"; exit ;; 19658 --debug | --debu | --deb | --de | --d | -d ) 19659 debug=: ;; 19660 --file | --fil | --fi | --f ) 19661 $ac_shift 19662 case $ac_optarg in 19663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19664 '') as_fn_error $? "missing file argument" ;; 19665 esac 19666 as_fn_append CONFIG_FILES " '$ac_optarg'" 19667 ac_need_defaults=false;; 19668 --header | --heade | --head | --hea ) 19669 $ac_shift 19670 case $ac_optarg in 19671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19672 esac 19673 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19674 ac_need_defaults=false;; 19675 --he | --h) 19676 # Conflict between --help and --header 19677 as_fn_error $? "ambiguous option: \`$1' 19678Try \`$0 --help' for more information.";; 19679 --help | --hel | -h ) 19680 $as_echo "$ac_cs_usage"; exit ;; 19681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19682 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19683 ac_cs_silent=: ;; 19684 19685 # This is an error. 19686 -*) as_fn_error $? "unrecognized option: \`$1' 19687Try \`$0 --help' for more information." ;; 19688 19689 *) as_fn_append ac_config_targets " $1" 19690 ac_need_defaults=false ;; 19691 19692 esac 19693 shift 19694done 19695 19696ac_configure_extra_args= 19697 19698if $ac_cs_silent; then 19699 exec 6>/dev/null 19700 ac_configure_extra_args="$ac_configure_extra_args --silent" 19701fi 19702 19703_ACEOF 19704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19705if \$ac_cs_recheck; then 19706 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19707 shift 19708 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19709 CONFIG_SHELL='$SHELL' 19710 export CONFIG_SHELL 19711 exec "\$@" 19712fi 19713 19714_ACEOF 19715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19716exec 5>>config.log 19717{ 19718 echo 19719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19720## Running $as_me. ## 19721_ASBOX 19722 $as_echo "$ac_log" 19723} >&5 19724 19725_ACEOF 19726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19727# 19728# INIT-COMMANDS 19729# 19730AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19731 19732 19733# The HP-UX ksh and POSIX shell print the target directory to stdout 19734# if CDPATH is set. 19735(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19736 19737sed_quote_subst='$sed_quote_subst' 19738double_quote_subst='$double_quote_subst' 19739delay_variable_subst='$delay_variable_subst' 19740enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19741macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19742macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19743enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19744pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19745enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19746SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19747ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19748PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19749host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19750host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19751host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19752build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19753build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19754build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19755SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19756Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19757GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19758EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19759FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19760LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19761NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19762LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19763max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19764ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19765exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19766lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19767lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19768lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19769lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19770lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19771reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19772reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19773OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19774deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19775file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19776file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19777want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19778DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19779sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19780AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19781AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19782archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19783STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19784RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19785old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19786old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19787old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19788lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19789CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19790CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19791compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19792GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19793lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19794lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19795lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19796lt_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"`' 19797nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19798lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19799objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19800MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19801lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19802lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19803lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19804lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19805lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19806need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19807MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19808DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19809NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19810LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19811OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19812OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19813libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19814shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19815extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19816archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19817enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19818export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19819whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19820compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19821old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19822old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19823archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19824archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19825module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19826module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19827with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19828allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19829no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19830hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19831hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19832hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19833hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19834hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19835hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19836hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19837inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19838link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19839always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19840export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19841exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19842include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19843prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19844postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19845file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19846variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19847need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19848need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19849version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19850runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19851shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19852shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19853libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19854library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19855soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19856install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19857postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19858postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19859finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19860finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19861hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19862sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19863sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19864hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19865enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19866enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19867enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19868old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19869striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19870 19871LTCC='$LTCC' 19872LTCFLAGS='$LTCFLAGS' 19873compiler='$compiler_DEFAULT' 19874 19875# A function that is used when there is no print builtin or printf. 19876func_fallback_echo () 19877{ 19878 eval 'cat <<_LTECHO_EOF 19879\$1 19880_LTECHO_EOF' 19881} 19882 19883# Quote evaled strings. 19884for var in SHELL \ 19885ECHO \ 19886PATH_SEPARATOR \ 19887SED \ 19888GREP \ 19889EGREP \ 19890FGREP \ 19891LD \ 19892NM \ 19893LN_S \ 19894lt_SP2NL \ 19895lt_NL2SP \ 19896reload_flag \ 19897OBJDUMP \ 19898deplibs_check_method \ 19899file_magic_cmd \ 19900file_magic_glob \ 19901want_nocaseglob \ 19902DLLTOOL \ 19903sharedlib_from_linklib_cmd \ 19904AR \ 19905AR_FLAGS \ 19906archiver_list_spec \ 19907STRIP \ 19908RANLIB \ 19909CC \ 19910CFLAGS \ 19911compiler \ 19912lt_cv_sys_global_symbol_pipe \ 19913lt_cv_sys_global_symbol_to_cdecl \ 19914lt_cv_sys_global_symbol_to_c_name_address \ 19915lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19916nm_file_list_spec \ 19917lt_prog_compiler_no_builtin_flag \ 19918lt_prog_compiler_pic \ 19919lt_prog_compiler_wl \ 19920lt_prog_compiler_static \ 19921lt_cv_prog_compiler_c_o \ 19922need_locks \ 19923MANIFEST_TOOL \ 19924DSYMUTIL \ 19925NMEDIT \ 19926LIPO \ 19927OTOOL \ 19928OTOOL64 \ 19929shrext_cmds \ 19930export_dynamic_flag_spec \ 19931whole_archive_flag_spec \ 19932compiler_needs_object \ 19933with_gnu_ld \ 19934allow_undefined_flag \ 19935no_undefined_flag \ 19936hardcode_libdir_flag_spec \ 19937hardcode_libdir_separator \ 19938exclude_expsyms \ 19939include_expsyms \ 19940file_list_spec \ 19941variables_saved_for_relink \ 19942libname_spec \ 19943library_names_spec \ 19944soname_spec \ 19945install_override_mode \ 19946finish_eval \ 19947old_striplib \ 19948striplib; do 19949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19950 *[\\\\\\\`\\"\\\$]*) 19951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19952 ;; 19953 *) 19954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19955 ;; 19956 esac 19957done 19958 19959# Double-quote double-evaled strings. 19960for var in reload_cmds \ 19961old_postinstall_cmds \ 19962old_postuninstall_cmds \ 19963old_archive_cmds \ 19964extract_expsyms_cmds \ 19965old_archive_from_new_cmds \ 19966old_archive_from_expsyms_cmds \ 19967archive_cmds \ 19968archive_expsym_cmds \ 19969module_cmds \ 19970module_expsym_cmds \ 19971export_symbols_cmds \ 19972prelink_cmds \ 19973postlink_cmds \ 19974postinstall_cmds \ 19975postuninstall_cmds \ 19976finish_cmds \ 19977sys_lib_search_path_spec \ 19978sys_lib_dlsearch_path_spec; do 19979 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19980 *[\\\\\\\`\\"\\\$]*) 19981 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19982 ;; 19983 *) 19984 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19985 ;; 19986 esac 19987done 19988 19989ac_aux_dir='$ac_aux_dir' 19990xsi_shell='$xsi_shell' 19991lt_shell_append='$lt_shell_append' 19992 19993# See if we are running on zsh, and set the options which allow our 19994# commands through without removal of \ escapes INIT. 19995if test -n "\${ZSH_VERSION+set}" ; then 19996 setopt NO_GLOB_SUBST 19997fi 19998 19999 20000 PACKAGE='$PACKAGE' 20001 VERSION='$VERSION' 20002 TIMESTAMP='$TIMESTAMP' 20003 RM='$RM' 20004 ofile='$ofile' 20005 20006 20007 20008 20009_ACEOF 20010 20011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20012 20013# Handling of arguments. 20014for ac_config_target in $ac_config_targets 20015do 20016 case $ac_config_target in 20017 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20018 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20019 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20020 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20021 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20022 "saa/Makefile") CONFIG_FILES="$CONFIG_FILES saa/Makefile" ;; 20023 "vmwgfx/Makefile") CONFIG_FILES="$CONFIG_FILES vmwgfx/Makefile" ;; 20024 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20025 "vmwarectrl/Makefile") CONFIG_FILES="$CONFIG_FILES vmwarectrl/Makefile" ;; 20026 20027 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20028 esac 20029done 20030 20031 20032# If the user did not use the arguments to specify the items to instantiate, 20033# then the envvar interface is used. Set only those that are not. 20034# We use the long form for the default assignment because of an extremely 20035# bizarre bug on SunOS 4.1.3. 20036if $ac_need_defaults; then 20037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20039 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20040fi 20041 20042# Have a temporary directory for convenience. Make it in the build tree 20043# simply because there is no reason against having it here, and in addition, 20044# creating and moving files from /tmp can sometimes cause problems. 20045# Hook for its removal unless debugging. 20046# Note that there is a small window in which the directory will not be cleaned: 20047# after its creation but before its name has been assigned to `$tmp'. 20048$debug || 20049{ 20050 tmp= ac_tmp= 20051 trap 'exit_status=$? 20052 : "${ac_tmp:=$tmp}" 20053 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20054' 0 20055 trap 'as_fn_exit 1' 1 2 13 15 20056} 20057# Create a (secure) tmp directory for tmp files. 20058 20059{ 20060 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20061 test -d "$tmp" 20062} || 20063{ 20064 tmp=./conf$$-$RANDOM 20065 (umask 077 && mkdir "$tmp") 20066} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20067ac_tmp=$tmp 20068 20069# Set up the scripts for CONFIG_FILES section. 20070# No need to generate them if there are no CONFIG_FILES. 20071# This happens for instance with `./config.status config.h'. 20072if test -n "$CONFIG_FILES"; then 20073 20074 20075ac_cr=`echo X | tr X '\015'` 20076# On cygwin, bash can eat \r inside `` if the user requested igncr. 20077# But we know of no other shell where ac_cr would be empty at this 20078# point, so we can use a bashism as a fallback. 20079if test "x$ac_cr" = x; then 20080 eval ac_cr=\$\'\\r\' 20081fi 20082ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20083if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20084 ac_cs_awk_cr='\\r' 20085else 20086 ac_cs_awk_cr=$ac_cr 20087fi 20088 20089echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20090_ACEOF 20091 20092 20093{ 20094 echo "cat >conf$$subs.awk <<_ACEOF" && 20095 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20096 echo "_ACEOF" 20097} >conf$$subs.sh || 20098 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20099ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20100ac_delim='%!_!# ' 20101for ac_last_try in false false false false false :; do 20102 . ./conf$$subs.sh || 20103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20104 20105 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20106 if test $ac_delim_n = $ac_delim_num; then 20107 break 20108 elif $ac_last_try; then 20109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20110 else 20111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20112 fi 20113done 20114rm -f conf$$subs.sh 20115 20116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20117cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20118_ACEOF 20119sed -n ' 20120h 20121s/^/S["/; s/!.*/"]=/ 20122p 20123g 20124s/^[^!]*!// 20125:repl 20126t repl 20127s/'"$ac_delim"'$// 20128t delim 20129:nl 20130h 20131s/\(.\{148\}\)..*/\1/ 20132t more1 20133s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20134p 20135n 20136b repl 20137:more1 20138s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20139p 20140g 20141s/.\{148\}// 20142t nl 20143:delim 20144h 20145s/\(.\{148\}\)..*/\1/ 20146t more2 20147s/["\\]/\\&/g; s/^/"/; s/$/"/ 20148p 20149b 20150:more2 20151s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20152p 20153g 20154s/.\{148\}// 20155t delim 20156' <conf$$subs.awk | sed ' 20157/^[^""]/{ 20158 N 20159 s/\n// 20160} 20161' >>$CONFIG_STATUS || ac_write_fail=1 20162rm -f conf$$subs.awk 20163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20164_ACAWK 20165cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20166 for (key in S) S_is_set[key] = 1 20167 FS = "" 20168 20169} 20170{ 20171 line = $ 0 20172 nfields = split(line, field, "@") 20173 substed = 0 20174 len = length(field[1]) 20175 for (i = 2; i < nfields; i++) { 20176 key = field[i] 20177 keylen = length(key) 20178 if (S_is_set[key]) { 20179 value = S[key] 20180 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20181 len += length(value) + length(field[++i]) 20182 substed = 1 20183 } else 20184 len += 1 + keylen 20185 } 20186 20187 print line 20188} 20189 20190_ACAWK 20191_ACEOF 20192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20193if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20194 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20195else 20196 cat 20197fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20198 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20199_ACEOF 20200 20201# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20202# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20203# trailing colons and then remove the whole line if VPATH becomes empty 20204# (actually we leave an empty line to preserve line numbers). 20205if test "x$srcdir" = x.; then 20206 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20207h 20208s/// 20209s/^/:/ 20210s/[ ]*$/:/ 20211s/:\$(srcdir):/:/g 20212s/:\${srcdir}:/:/g 20213s/:@srcdir@:/:/g 20214s/^:*// 20215s/:*$// 20216x 20217s/\(=[ ]*\).*/\1/ 20218G 20219s/\n// 20220s/^[^=]*=[ ]*$// 20221}' 20222fi 20223 20224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20225fi # test -n "$CONFIG_FILES" 20226 20227# Set up the scripts for CONFIG_HEADERS section. 20228# No need to generate them if there are no CONFIG_HEADERS. 20229# This happens for instance with `./config.status Makefile'. 20230if test -n "$CONFIG_HEADERS"; then 20231cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20232BEGIN { 20233_ACEOF 20234 20235# Transform confdefs.h into an awk script `defines.awk', embedded as 20236# here-document in config.status, that substitutes the proper values into 20237# config.h.in to produce config.h. 20238 20239# Create a delimiter string that does not exist in confdefs.h, to ease 20240# handling of long lines. 20241ac_delim='%!_!# ' 20242for ac_last_try in false false :; do 20243 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20244 if test -z "$ac_tt"; then 20245 break 20246 elif $ac_last_try; then 20247 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20248 else 20249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20250 fi 20251done 20252 20253# For the awk script, D is an array of macro values keyed by name, 20254# likewise P contains macro parameters if any. Preserve backslash 20255# newline sequences. 20256 20257ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20258sed -n ' 20259s/.\{148\}/&'"$ac_delim"'/g 20260t rset 20261:rset 20262s/^[ ]*#[ ]*define[ ][ ]*/ / 20263t def 20264d 20265:def 20266s/\\$// 20267t bsnl 20268s/["\\]/\\&/g 20269s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20270D["\1"]=" \3"/p 20271s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20272d 20273:bsnl 20274s/["\\]/\\&/g 20275s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20276D["\1"]=" \3\\\\\\n"\\/p 20277t cont 20278s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20279t cont 20280d 20281:cont 20282n 20283s/.\{148\}/&'"$ac_delim"'/g 20284t clear 20285:clear 20286s/\\$// 20287t bsnlc 20288s/["\\]/\\&/g; s/^/"/; s/$/"/p 20289d 20290:bsnlc 20291s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20292b cont 20293' <confdefs.h | sed ' 20294s/'"$ac_delim"'/"\\\ 20295"/g' >>$CONFIG_STATUS || ac_write_fail=1 20296 20297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20298 for (key in D) D_is_set[key] = 1 20299 FS = "" 20300} 20301/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20302 line = \$ 0 20303 split(line, arg, " ") 20304 if (arg[1] == "#") { 20305 defundef = arg[2] 20306 mac1 = arg[3] 20307 } else { 20308 defundef = substr(arg[1], 2) 20309 mac1 = arg[2] 20310 } 20311 split(mac1, mac2, "(") #) 20312 macro = mac2[1] 20313 prefix = substr(line, 1, index(line, defundef) - 1) 20314 if (D_is_set[macro]) { 20315 # Preserve the white space surrounding the "#". 20316 print prefix "define", macro P[macro] D[macro] 20317 next 20318 } else { 20319 # Replace #undef with comments. This is necessary, for example, 20320 # in the case of _POSIX_SOURCE, which is predefined and required 20321 # on some systems where configure will not decide to define it. 20322 if (defundef == "undef") { 20323 print "/*", prefix defundef, macro, "*/" 20324 next 20325 } 20326 } 20327} 20328{ print } 20329_ACAWK 20330_ACEOF 20331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20332 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20333fi # test -n "$CONFIG_HEADERS" 20334 20335 20336eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20337shift 20338for ac_tag 20339do 20340 case $ac_tag in 20341 :[FHLC]) ac_mode=$ac_tag; continue;; 20342 esac 20343 case $ac_mode$ac_tag in 20344 :[FHL]*:*);; 20345 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20346 :[FH]-) ac_tag=-:-;; 20347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20348 esac 20349 ac_save_IFS=$IFS 20350 IFS=: 20351 set x $ac_tag 20352 IFS=$ac_save_IFS 20353 shift 20354 ac_file=$1 20355 shift 20356 20357 case $ac_mode in 20358 :L) ac_source=$1;; 20359 :[FH]) 20360 ac_file_inputs= 20361 for ac_f 20362 do 20363 case $ac_f in 20364 -) ac_f="$ac_tmp/stdin";; 20365 *) # Look for the file first in the build tree, then in the source tree 20366 # (if the path is not absolute). The absolute path cannot be DOS-style, 20367 # because $ac_f cannot contain `:'. 20368 test -f "$ac_f" || 20369 case $ac_f in 20370 [\\/$]*) false;; 20371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20372 esac || 20373 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20374 esac 20375 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20376 as_fn_append ac_file_inputs " '$ac_f'" 20377 done 20378 20379 # Let's still pretend it is `configure' which instantiates (i.e., don't 20380 # use $as_me), people would be surprised to read: 20381 # /* config.h. Generated by config.status. */ 20382 configure_input='Generated from '` 20383 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20384 `' by configure.' 20385 if test x"$ac_file" != x-; then 20386 configure_input="$ac_file. $configure_input" 20387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20388$as_echo "$as_me: creating $ac_file" >&6;} 20389 fi 20390 # Neutralize special characters interpreted by sed in replacement strings. 20391 case $configure_input in #( 20392 *\&* | *\|* | *\\* ) 20393 ac_sed_conf_input=`$as_echo "$configure_input" | 20394 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20395 *) ac_sed_conf_input=$configure_input;; 20396 esac 20397 20398 case $ac_tag in 20399 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20401 esac 20402 ;; 20403 esac 20404 20405 ac_dir=`$as_dirname -- "$ac_file" || 20406$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20407 X"$ac_file" : 'X\(//\)[^/]' \| \ 20408 X"$ac_file" : 'X\(//\)$' \| \ 20409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20410$as_echo X"$ac_file" | 20411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20412 s//\1/ 20413 q 20414 } 20415 /^X\(\/\/\)[^/].*/{ 20416 s//\1/ 20417 q 20418 } 20419 /^X\(\/\/\)$/{ 20420 s//\1/ 20421 q 20422 } 20423 /^X\(\/\).*/{ 20424 s//\1/ 20425 q 20426 } 20427 s/.*/./; q'` 20428 as_dir="$ac_dir"; as_fn_mkdir_p 20429 ac_builddir=. 20430 20431case "$ac_dir" in 20432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20433*) 20434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20435 # A ".." for each directory in $ac_dir_suffix. 20436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20437 case $ac_top_builddir_sub in 20438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20440 esac ;; 20441esac 20442ac_abs_top_builddir=$ac_pwd 20443ac_abs_builddir=$ac_pwd$ac_dir_suffix 20444# for backward compatibility: 20445ac_top_builddir=$ac_top_build_prefix 20446 20447case $srcdir in 20448 .) # We are building in place. 20449 ac_srcdir=. 20450 ac_top_srcdir=$ac_top_builddir_sub 20451 ac_abs_top_srcdir=$ac_pwd ;; 20452 [\\/]* | ?:[\\/]* ) # Absolute name. 20453 ac_srcdir=$srcdir$ac_dir_suffix; 20454 ac_top_srcdir=$srcdir 20455 ac_abs_top_srcdir=$srcdir ;; 20456 *) # Relative name. 20457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20458 ac_top_srcdir=$ac_top_build_prefix$srcdir 20459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20460esac 20461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20462 20463 20464 case $ac_mode in 20465 :F) 20466 # 20467 # CONFIG_FILE 20468 # 20469 20470 case $INSTALL in 20471 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20472 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20473 esac 20474 ac_MKDIR_P=$MKDIR_P 20475 case $MKDIR_P in 20476 [\\/$]* | ?:[\\/]* ) ;; 20477 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20478 esac 20479_ACEOF 20480 20481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20482# If the template does not know about datarootdir, expand it. 20483# FIXME: This hack should be removed a few years after 2.60. 20484ac_datarootdir_hack=; ac_datarootdir_seen= 20485ac_sed_dataroot=' 20486/datarootdir/ { 20487 p 20488 q 20489} 20490/@datadir@/p 20491/@docdir@/p 20492/@infodir@/p 20493/@localedir@/p 20494/@mandir@/p' 20495case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20496*datarootdir*) ac_datarootdir_seen=yes;; 20497*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20499$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20500_ACEOF 20501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20502 ac_datarootdir_hack=' 20503 s&@datadir@&$datadir&g 20504 s&@docdir@&$docdir&g 20505 s&@infodir@&$infodir&g 20506 s&@localedir@&$localedir&g 20507 s&@mandir@&$mandir&g 20508 s&\\\${datarootdir}&$datarootdir&g' ;; 20509esac 20510_ACEOF 20511 20512# Neutralize VPATH when `$srcdir' = `.'. 20513# Shell code in configure.ac might set extrasub. 20514# FIXME: do we really want to maintain this feature? 20515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20516ac_sed_extra="$ac_vpsub 20517$extrasub 20518_ACEOF 20519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20520:t 20521/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20522s|@configure_input@|$ac_sed_conf_input|;t t 20523s&@top_builddir@&$ac_top_builddir_sub&;t t 20524s&@top_build_prefix@&$ac_top_build_prefix&;t t 20525s&@srcdir@&$ac_srcdir&;t t 20526s&@abs_srcdir@&$ac_abs_srcdir&;t t 20527s&@top_srcdir@&$ac_top_srcdir&;t t 20528s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20529s&@builddir@&$ac_builddir&;t t 20530s&@abs_builddir@&$ac_abs_builddir&;t t 20531s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20532s&@INSTALL@&$ac_INSTALL&;t t 20533s&@MKDIR_P@&$ac_MKDIR_P&;t t 20534$ac_datarootdir_hack 20535" 20536eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20537 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20538 20539test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20540 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20542 "$ac_tmp/out"`; test -z "$ac_out"; } && 20543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20544which seems to be undefined. Please make sure it is defined" >&5 20545$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20546which seems to be undefined. Please make sure it is defined" >&2;} 20547 20548 rm -f "$ac_tmp/stdin" 20549 case $ac_file in 20550 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20551 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20552 esac \ 20553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20554 ;; 20555 :H) 20556 # 20557 # CONFIG_HEADER 20558 # 20559 if test x"$ac_file" != x-; then 20560 { 20561 $as_echo "/* $configure_input */" \ 20562 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20563 } >"$ac_tmp/config.h" \ 20564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20565 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20566 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20567$as_echo "$as_me: $ac_file is unchanged" >&6;} 20568 else 20569 rm -f "$ac_file" 20570 mv "$ac_tmp/config.h" "$ac_file" \ 20571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20572 fi 20573 else 20574 $as_echo "/* $configure_input */" \ 20575 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20576 || as_fn_error $? "could not create -" "$LINENO" 5 20577 fi 20578# Compute "$ac_file"'s index in $config_headers. 20579_am_arg="$ac_file" 20580_am_stamp_count=1 20581for _am_header in $config_headers :; do 20582 case $_am_header in 20583 $_am_arg | $_am_arg:* ) 20584 break ;; 20585 * ) 20586 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20587 esac 20588done 20589echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20590$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20591 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20592 X"$_am_arg" : 'X\(//\)$' \| \ 20593 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20594$as_echo X"$_am_arg" | 20595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20596 s//\1/ 20597 q 20598 } 20599 /^X\(\/\/\)[^/].*/{ 20600 s//\1/ 20601 q 20602 } 20603 /^X\(\/\/\)$/{ 20604 s//\1/ 20605 q 20606 } 20607 /^X\(\/\).*/{ 20608 s//\1/ 20609 q 20610 } 20611 s/.*/./; q'`/stamp-h$_am_stamp_count 20612 ;; 20613 20614 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20615$as_echo "$as_me: executing $ac_file commands" >&6;} 20616 ;; 20617 esac 20618 20619 20620 case $ac_file$ac_mode in 20621 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20622 # Older Autoconf quotes --file arguments for eval, but not when files 20623 # are listed without --file. Let's play safe and only enable the eval 20624 # if we detect the quoting. 20625 case $CONFIG_FILES in 20626 *\'*) eval set x "$CONFIG_FILES" ;; 20627 *) set x $CONFIG_FILES ;; 20628 esac 20629 shift 20630 for mf 20631 do 20632 # Strip MF so we end up with the name of the file. 20633 mf=`echo "$mf" | sed -e 's/:.*$//'` 20634 # Check whether this is an Automake generated Makefile or not. 20635 # We used to match only the files named 'Makefile.in', but 20636 # some people rename them; so instead we look at the file content. 20637 # Grep'ing the first line is not enough: some people post-process 20638 # each Makefile.in and add a new line on top of each file to say so. 20639 # Grep'ing the whole file is not good either: AIX grep has a line 20640 # limit of 2048, but all sed's we know have understand at least 4000. 20641 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20642 dirpart=`$as_dirname -- "$mf" || 20643$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20644 X"$mf" : 'X\(//\)[^/]' \| \ 20645 X"$mf" : 'X\(//\)$' \| \ 20646 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20647$as_echo X"$mf" | 20648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20649 s//\1/ 20650 q 20651 } 20652 /^X\(\/\/\)[^/].*/{ 20653 s//\1/ 20654 q 20655 } 20656 /^X\(\/\/\)$/{ 20657 s//\1/ 20658 q 20659 } 20660 /^X\(\/\).*/{ 20661 s//\1/ 20662 q 20663 } 20664 s/.*/./; q'` 20665 else 20666 continue 20667 fi 20668 # Extract the definition of DEPDIR, am__include, and am__quote 20669 # from the Makefile without running 'make'. 20670 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20671 test -z "$DEPDIR" && continue 20672 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20673 test -z "$am__include" && continue 20674 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20675 # Find all dependency output files, they are included files with 20676 # $(DEPDIR) in their names. We invoke sed twice because it is the 20677 # simplest approach to changing $(DEPDIR) to its actual value in the 20678 # expansion. 20679 for file in `sed -n " 20680 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20681 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20682 # Make sure the directory exists. 20683 test -f "$dirpart/$file" && continue 20684 fdir=`$as_dirname -- "$file" || 20685$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20686 X"$file" : 'X\(//\)[^/]' \| \ 20687 X"$file" : 'X\(//\)$' \| \ 20688 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20689$as_echo X"$file" | 20690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20691 s//\1/ 20692 q 20693 } 20694 /^X\(\/\/\)[^/].*/{ 20695 s//\1/ 20696 q 20697 } 20698 /^X\(\/\/\)$/{ 20699 s//\1/ 20700 q 20701 } 20702 /^X\(\/\).*/{ 20703 s//\1/ 20704 q 20705 } 20706 s/.*/./; q'` 20707 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20708 # echo "creating $dirpart/$file" 20709 echo '# dummy' > "$dirpart/$file" 20710 done 20711 done 20712} 20713 ;; 20714 "libtool":C) 20715 20716 # See if we are running on zsh, and set the options which allow our 20717 # commands through without removal of \ escapes. 20718 if test -n "${ZSH_VERSION+set}" ; then 20719 setopt NO_GLOB_SUBST 20720 fi 20721 20722 cfgfile="${ofile}T" 20723 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20724 $RM "$cfgfile" 20725 20726 cat <<_LT_EOF >> "$cfgfile" 20727#! $SHELL 20728 20729# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20730# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20732# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20733# 20734# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20735# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20736# Foundation, Inc. 20737# Written by Gordon Matzigkeit, 1996 20738# 20739# This file is part of GNU Libtool. 20740# 20741# GNU Libtool is free software; you can redistribute it and/or 20742# modify it under the terms of the GNU General Public License as 20743# published by the Free Software Foundation; either version 2 of 20744# the License, or (at your option) any later version. 20745# 20746# As a special exception to the GNU General Public License, 20747# if you distribute this file as part of a program or library that 20748# is built using GNU Libtool, you may include this file under the 20749# same distribution terms that you use for the rest of that program. 20750# 20751# GNU Libtool is distributed in the hope that it will be useful, 20752# but WITHOUT ANY WARRANTY; without even the implied warranty of 20753# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20754# GNU General Public License for more details. 20755# 20756# You should have received a copy of the GNU General Public License 20757# along with GNU Libtool; see the file COPYING. If not, a copy 20758# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20759# obtained by writing to the Free Software Foundation, Inc., 20760# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20761 20762 20763# The names of the tagged configurations supported by this script. 20764available_tags="" 20765 20766# ### BEGIN LIBTOOL CONFIG 20767 20768# Whether or not to build static libraries. 20769build_old_libs=$enable_static 20770 20771# Which release of libtool.m4 was used? 20772macro_version=$macro_version 20773macro_revision=$macro_revision 20774 20775# Whether or not to build shared libraries. 20776build_libtool_libs=$enable_shared 20777 20778# What type of objects to build. 20779pic_mode=$pic_mode 20780 20781# Whether or not to optimize for fast installation. 20782fast_install=$enable_fast_install 20783 20784# Shell to use when invoking shell scripts. 20785SHELL=$lt_SHELL 20786 20787# An echo program that protects backslashes. 20788ECHO=$lt_ECHO 20789 20790# The PATH separator for the build system. 20791PATH_SEPARATOR=$lt_PATH_SEPARATOR 20792 20793# The host system. 20794host_alias=$host_alias 20795host=$host 20796host_os=$host_os 20797 20798# The build system. 20799build_alias=$build_alias 20800build=$build 20801build_os=$build_os 20802 20803# A sed program that does not truncate output. 20804SED=$lt_SED 20805 20806# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20807Xsed="\$SED -e 1s/^X//" 20808 20809# A grep program that handles long lines. 20810GREP=$lt_GREP 20811 20812# An ERE matcher. 20813EGREP=$lt_EGREP 20814 20815# A literal string matcher. 20816FGREP=$lt_FGREP 20817 20818# A BSD- or MS-compatible name lister. 20819NM=$lt_NM 20820 20821# Whether we need soft or hard links. 20822LN_S=$lt_LN_S 20823 20824# What is the maximum length of a command? 20825max_cmd_len=$max_cmd_len 20826 20827# Object file suffix (normally "o"). 20828objext=$ac_objext 20829 20830# Executable file suffix (normally ""). 20831exeext=$exeext 20832 20833# whether the shell understands "unset". 20834lt_unset=$lt_unset 20835 20836# turn spaces into newlines. 20837SP2NL=$lt_lt_SP2NL 20838 20839# turn newlines into spaces. 20840NL2SP=$lt_lt_NL2SP 20841 20842# convert \$build file names to \$host format. 20843to_host_file_cmd=$lt_cv_to_host_file_cmd 20844 20845# convert \$build files to toolchain format. 20846to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20847 20848# An object symbol dumper. 20849OBJDUMP=$lt_OBJDUMP 20850 20851# Method to check whether dependent libraries are shared objects. 20852deplibs_check_method=$lt_deplibs_check_method 20853 20854# Command to use when deplibs_check_method = "file_magic". 20855file_magic_cmd=$lt_file_magic_cmd 20856 20857# How to find potential files when deplibs_check_method = "file_magic". 20858file_magic_glob=$lt_file_magic_glob 20859 20860# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20861want_nocaseglob=$lt_want_nocaseglob 20862 20863# DLL creation program. 20864DLLTOOL=$lt_DLLTOOL 20865 20866# Command to associate shared and link libraries. 20867sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20868 20869# The archiver. 20870AR=$lt_AR 20871 20872# Flags to create an archive. 20873AR_FLAGS=$lt_AR_FLAGS 20874 20875# How to feed a file listing to the archiver. 20876archiver_list_spec=$lt_archiver_list_spec 20877 20878# A symbol stripping program. 20879STRIP=$lt_STRIP 20880 20881# Commands used to install an old-style archive. 20882RANLIB=$lt_RANLIB 20883old_postinstall_cmds=$lt_old_postinstall_cmds 20884old_postuninstall_cmds=$lt_old_postuninstall_cmds 20885 20886# Whether to use a lock for old archive extraction. 20887lock_old_archive_extraction=$lock_old_archive_extraction 20888 20889# A C compiler. 20890LTCC=$lt_CC 20891 20892# LTCC compiler flags. 20893LTCFLAGS=$lt_CFLAGS 20894 20895# Take the output of nm and produce a listing of raw symbols and C names. 20896global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20897 20898# Transform the output of nm in a proper C declaration. 20899global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20900 20901# Transform the output of nm in a C name address pair. 20902global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20903 20904# Transform the output of nm in a C name address pair when lib prefix is needed. 20905global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20906 20907# Specify filename containing input files for \$NM. 20908nm_file_list_spec=$lt_nm_file_list_spec 20909 20910# The root where to search for dependent libraries,and in which our libraries should be installed. 20911lt_sysroot=$lt_sysroot 20912 20913# The name of the directory that contains temporary libtool files. 20914objdir=$objdir 20915 20916# Used to examine libraries when file_magic_cmd begins with "file". 20917MAGIC_CMD=$MAGIC_CMD 20918 20919# Must we lock files when doing compilation? 20920need_locks=$lt_need_locks 20921 20922# Manifest tool. 20923MANIFEST_TOOL=$lt_MANIFEST_TOOL 20924 20925# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20926DSYMUTIL=$lt_DSYMUTIL 20927 20928# Tool to change global to local symbols on Mac OS X. 20929NMEDIT=$lt_NMEDIT 20930 20931# Tool to manipulate fat objects and archives on Mac OS X. 20932LIPO=$lt_LIPO 20933 20934# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20935OTOOL=$lt_OTOOL 20936 20937# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20938OTOOL64=$lt_OTOOL64 20939 20940# Old archive suffix (normally "a"). 20941libext=$libext 20942 20943# Shared library suffix (normally ".so"). 20944shrext_cmds=$lt_shrext_cmds 20945 20946# The commands to extract the exported symbol list from a shared archive. 20947extract_expsyms_cmds=$lt_extract_expsyms_cmds 20948 20949# Variables whose values should be saved in libtool wrapper scripts and 20950# restored at link time. 20951variables_saved_for_relink=$lt_variables_saved_for_relink 20952 20953# Do we need the "lib" prefix for modules? 20954need_lib_prefix=$need_lib_prefix 20955 20956# Do we need a version for libraries? 20957need_version=$need_version 20958 20959# Library versioning type. 20960version_type=$version_type 20961 20962# Shared library runtime path variable. 20963runpath_var=$runpath_var 20964 20965# Shared library path variable. 20966shlibpath_var=$shlibpath_var 20967 20968# Is shlibpath searched before the hard-coded library search path? 20969shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20970 20971# Format of library name prefix. 20972libname_spec=$lt_libname_spec 20973 20974# List of archive names. First name is the real one, the rest are links. 20975# The last name is the one that the linker finds with -lNAME 20976library_names_spec=$lt_library_names_spec 20977 20978# The coded name of the library, if different from the real name. 20979soname_spec=$lt_soname_spec 20980 20981# Permission mode override for installation of shared libraries. 20982install_override_mode=$lt_install_override_mode 20983 20984# Command to use after installation of a shared archive. 20985postinstall_cmds=$lt_postinstall_cmds 20986 20987# Command to use after uninstallation of a shared archive. 20988postuninstall_cmds=$lt_postuninstall_cmds 20989 20990# Commands used to finish a libtool library installation in a directory. 20991finish_cmds=$lt_finish_cmds 20992 20993# As "finish_cmds", except a single script fragment to be evaled but 20994# not shown. 20995finish_eval=$lt_finish_eval 20996 20997# Whether we should hardcode library paths into libraries. 20998hardcode_into_libs=$hardcode_into_libs 20999 21000# Compile-time system search path for libraries. 21001sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21002 21003# Run-time system search path for libraries. 21004sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21005 21006# Whether dlopen is supported. 21007dlopen_support=$enable_dlopen 21008 21009# Whether dlopen of programs is supported. 21010dlopen_self=$enable_dlopen_self 21011 21012# Whether dlopen of statically linked programs is supported. 21013dlopen_self_static=$enable_dlopen_self_static 21014 21015# Commands to strip libraries. 21016old_striplib=$lt_old_striplib 21017striplib=$lt_striplib 21018 21019 21020# The linker used to build libraries. 21021LD=$lt_LD 21022 21023# How to create reloadable object files. 21024reload_flag=$lt_reload_flag 21025reload_cmds=$lt_reload_cmds 21026 21027# Commands used to build an old-style archive. 21028old_archive_cmds=$lt_old_archive_cmds 21029 21030# A language specific compiler. 21031CC=$lt_compiler 21032 21033# Is the compiler the GNU compiler? 21034with_gcc=$GCC 21035 21036# Compiler flag to turn off builtin functions. 21037no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21038 21039# Additional compiler flags for building library objects. 21040pic_flag=$lt_lt_prog_compiler_pic 21041 21042# How to pass a linker flag through the compiler. 21043wl=$lt_lt_prog_compiler_wl 21044 21045# Compiler flag to prevent dynamic linking. 21046link_static_flag=$lt_lt_prog_compiler_static 21047 21048# Does compiler simultaneously support -c and -o options? 21049compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21050 21051# Whether or not to add -lc for building shared libraries. 21052build_libtool_need_lc=$archive_cmds_need_lc 21053 21054# Whether or not to disallow shared libs when runtime libs are static. 21055allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21056 21057# Compiler flag to allow reflexive dlopens. 21058export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21059 21060# Compiler flag to generate shared objects directly from archives. 21061whole_archive_flag_spec=$lt_whole_archive_flag_spec 21062 21063# Whether the compiler copes with passing no objects directly. 21064compiler_needs_object=$lt_compiler_needs_object 21065 21066# Create an old-style archive from a shared archive. 21067old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21068 21069# Create a temporary old-style archive to link instead of a shared archive. 21070old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21071 21072# Commands used to build a shared archive. 21073archive_cmds=$lt_archive_cmds 21074archive_expsym_cmds=$lt_archive_expsym_cmds 21075 21076# Commands used to build a loadable module if different from building 21077# a shared archive. 21078module_cmds=$lt_module_cmds 21079module_expsym_cmds=$lt_module_expsym_cmds 21080 21081# Whether we are building with GNU ld or not. 21082with_gnu_ld=$lt_with_gnu_ld 21083 21084# Flag that allows shared libraries with undefined symbols to be built. 21085allow_undefined_flag=$lt_allow_undefined_flag 21086 21087# Flag that enforces no undefined symbols. 21088no_undefined_flag=$lt_no_undefined_flag 21089 21090# Flag to hardcode \$libdir into a binary during linking. 21091# This must work even if \$libdir does not exist 21092hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21093 21094# Whether we need a single "-rpath" flag with a separated argument. 21095hardcode_libdir_separator=$lt_hardcode_libdir_separator 21096 21097# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21098# DIR into the resulting binary. 21099hardcode_direct=$hardcode_direct 21100 21101# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21102# DIR into the resulting binary and the resulting library dependency is 21103# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21104# library is relocated. 21105hardcode_direct_absolute=$hardcode_direct_absolute 21106 21107# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21108# into the resulting binary. 21109hardcode_minus_L=$hardcode_minus_L 21110 21111# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21112# into the resulting binary. 21113hardcode_shlibpath_var=$hardcode_shlibpath_var 21114 21115# Set to "yes" if building a shared library automatically hardcodes DIR 21116# into the library and all subsequent libraries and executables linked 21117# against it. 21118hardcode_automatic=$hardcode_automatic 21119 21120# Set to yes if linker adds runtime paths of dependent libraries 21121# to runtime path list. 21122inherit_rpath=$inherit_rpath 21123 21124# Whether libtool must link a program against all its dependency libraries. 21125link_all_deplibs=$link_all_deplibs 21126 21127# Set to "yes" if exported symbols are required. 21128always_export_symbols=$always_export_symbols 21129 21130# The commands to list exported symbols. 21131export_symbols_cmds=$lt_export_symbols_cmds 21132 21133# Symbols that should not be listed in the preloaded symbols. 21134exclude_expsyms=$lt_exclude_expsyms 21135 21136# Symbols that must always be exported. 21137include_expsyms=$lt_include_expsyms 21138 21139# Commands necessary for linking programs (against libraries) with templates. 21140prelink_cmds=$lt_prelink_cmds 21141 21142# Commands necessary for finishing linking programs. 21143postlink_cmds=$lt_postlink_cmds 21144 21145# Specify filename containing input files. 21146file_list_spec=$lt_file_list_spec 21147 21148# How to hardcode a shared library path into an executable. 21149hardcode_action=$hardcode_action 21150 21151# ### END LIBTOOL CONFIG 21152 21153_LT_EOF 21154 21155 case $host_os in 21156 aix3*) 21157 cat <<\_LT_EOF >> "$cfgfile" 21158# AIX sometimes has problems with the GCC collect2 program. For some 21159# reason, if we set the COLLECT_NAMES environment variable, the problems 21160# vanish in a puff of smoke. 21161if test "X${COLLECT_NAMES+set}" != Xset; then 21162 COLLECT_NAMES= 21163 export COLLECT_NAMES 21164fi 21165_LT_EOF 21166 ;; 21167 esac 21168 21169 21170ltmain="$ac_aux_dir/ltmain.sh" 21171 21172 21173 # We use sed instead of cat because bash on DJGPP gets confused if 21174 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21175 # text mode, it properly converts lines to CR/LF. This bash problem 21176 # is reportedly fixed, but why not run on old versions too? 21177 sed '$q' "$ltmain" >> "$cfgfile" \ 21178 || (rm -f "$cfgfile"; exit 1) 21179 21180 if test x"$xsi_shell" = xyes; then 21181 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21182func_dirname ()\ 21183{\ 21184\ case ${1} in\ 21185\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21186\ * ) func_dirname_result="${3}" ;;\ 21187\ esac\ 21188} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21189 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21190 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21191test 0 -eq $? || _lt_function_replace_fail=: 21192 21193 21194 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21195func_basename ()\ 21196{\ 21197\ func_basename_result="${1##*/}"\ 21198} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21199 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21201test 0 -eq $? || _lt_function_replace_fail=: 21202 21203 21204 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21205func_dirname_and_basename ()\ 21206{\ 21207\ case ${1} in\ 21208\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21209\ * ) func_dirname_result="${3}" ;;\ 21210\ esac\ 21211\ func_basename_result="${1##*/}"\ 21212} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21213 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21214 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21215test 0 -eq $? || _lt_function_replace_fail=: 21216 21217 21218 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21219func_stripname ()\ 21220{\ 21221\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21222\ # positional parameters, so assign one to ordinary parameter first.\ 21223\ func_stripname_result=${3}\ 21224\ func_stripname_result=${func_stripname_result#"${1}"}\ 21225\ func_stripname_result=${func_stripname_result%"${2}"}\ 21226} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21227 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21228 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21229test 0 -eq $? || _lt_function_replace_fail=: 21230 21231 21232 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21233func_split_long_opt ()\ 21234{\ 21235\ func_split_long_opt_name=${1%%=*}\ 21236\ func_split_long_opt_arg=${1#*=}\ 21237} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21238 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21240test 0 -eq $? || _lt_function_replace_fail=: 21241 21242 21243 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21244func_split_short_opt ()\ 21245{\ 21246\ func_split_short_opt_arg=${1#??}\ 21247\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21248} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21249 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21250 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21251test 0 -eq $? || _lt_function_replace_fail=: 21252 21253 21254 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21255func_lo2o ()\ 21256{\ 21257\ case ${1} in\ 21258\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21259\ *) func_lo2o_result=${1} ;;\ 21260\ esac\ 21261} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21262 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21263 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21264test 0 -eq $? || _lt_function_replace_fail=: 21265 21266 21267 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21268func_xform ()\ 21269{\ 21270 func_xform_result=${1%.*}.lo\ 21271} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21272 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21273 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21274test 0 -eq $? || _lt_function_replace_fail=: 21275 21276 21277 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21278func_arith ()\ 21279{\ 21280 func_arith_result=$(( $* ))\ 21281} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21282 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21284test 0 -eq $? || _lt_function_replace_fail=: 21285 21286 21287 sed -e '/^func_len ()$/,/^} # func_len /c\ 21288func_len ()\ 21289{\ 21290 func_len_result=${#1}\ 21291} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21292 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21294test 0 -eq $? || _lt_function_replace_fail=: 21295 21296fi 21297 21298if test x"$lt_shell_append" = xyes; then 21299 sed -e '/^func_append ()$/,/^} # func_append /c\ 21300func_append ()\ 21301{\ 21302 eval "${1}+=\\${2}"\ 21303} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21304 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21305 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21306test 0 -eq $? || _lt_function_replace_fail=: 21307 21308 21309 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21310func_append_quoted ()\ 21311{\ 21312\ func_quote_for_eval "${2}"\ 21313\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21314} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21315 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21317test 0 -eq $? || _lt_function_replace_fail=: 21318 21319 21320 # Save a `func_append' function call where possible by direct use of '+=' 21321 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21322 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21324 test 0 -eq $? || _lt_function_replace_fail=: 21325else 21326 # Save a `func_append' function call even when '+=' is not available 21327 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21328 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21330 test 0 -eq $? || _lt_function_replace_fail=: 21331fi 21332 21333if test x"$_lt_function_replace_fail" = x":"; then 21334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21335$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21336fi 21337 21338 21339 mv -f "$cfgfile" "$ofile" || 21340 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21341 chmod +x "$ofile" 21342 21343 ;; 21344 21345 esac 21346done # for ac_tag 21347 21348 21349as_fn_exit 0 21350_ACEOF 21351ac_clean_files=$ac_clean_files_save 21352 21353test $ac_write_fail = 0 || 21354 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21355 21356 21357# configure is writing to config.log, and then calls config.status. 21358# config.status does its own redirection, appending to config.log. 21359# Unfortunately, on DOS this fails, as config.log is still kept open 21360# by configure, so config.status won't be able to write to it; its 21361# output is simply discarded. So we exec the FD to /dev/null, 21362# effectively closing config.log, so it can be properly (re)opened and 21363# appended to by config.status. When coming back to configure, we 21364# need to make the FD available again. 21365if test "$no_create" != yes; then 21366 ac_cs_success=: 21367 ac_config_status_args= 21368 test "$silent" = yes && 21369 ac_config_status_args="$ac_config_status_args --quiet" 21370 exec 5>/dev/null 21371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21372 exec 5>>config.log 21373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21374 # would make configure fail if this is the last instruction. 21375 $ac_cs_success || as_fn_exit 1 21376fi 21377if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21379$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21380fi 21381 21382