1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-qxl 0.1.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='xf86-video-qxl' 624PACKAGE_TARNAME='xf86-video-qxl' 625PACKAGE_VERSION='0.1.6' 626PACKAGE_STRING='xf86-video-qxl 0.1.6' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667SPICE_PROTOCOL_LIBS 668SPICE_PROTOCOL_CFLAGS 669LIBUDEV_FALSE 670LIBUDEV_TRUE 671LIBUDEV_LIBS 672LIBUDEV_CFLAGS 673BUILD_SPICECCID_FALSE 674BUILD_SPICECCID_TRUE 675BUILD_QXL_FALSE 676BUILD_QXL_TRUE 677BUILD_XSPICE_FALSE 678BUILD_XSPICE_TRUE 679LIBCACARD_LIBS 680LIBCACARD_CFLAGS 681LIBPCSCLITE_LIBS 682LIBPCSCLITE_CFLAGS 683cciddir 684SPICE_LIBS 685SPICE_CFLAGS 686DRM_MODE_FALSE 687DRM_MODE_TRUE 688XSERVER_LIBPCIACCESS_FALSE 689XSERVER_LIBPCIACCESS_TRUE 690PCIACCESS_LIBS 691PCIACCESS_CFLAGS 692DRM_LIBS 693DRM_CFLAGS 694XORG_LIBS 695XORG_CFLAGS 696moduledir 697LT_SYS_LIBRARY_PATH 698OTOOL64 699OTOOL 700LIPO 701NMEDIT 702DSYMUTIL 703MANIFEST_TOOL 704RANLIB 705ac_ct_AR 706AR 707DLLTOOL 708OBJDUMP 709FILECMD 710LN_S 711NM 712ac_ct_DUMPBIN 713DUMPBIN 714LD 715FGREP 716EGREP 717GREP 718LIBTOOL 719MAN_SUBSTS 720XORG_MAN_PAGE 721ADMIN_MAN_DIR 722DRIVER_MAN_DIR 723MISC_MAN_DIR 724FILE_MAN_DIR 725LIB_MAN_DIR 726APP_MAN_DIR 727ADMIN_MAN_SUFFIX 728DRIVER_MAN_SUFFIX 729MISC_MAN_SUFFIX 730FILE_MAN_SUFFIX 731LIB_MAN_SUFFIX 732APP_MAN_SUFFIX 733SED 734INSTALL_CMD 735PKG_CONFIG_LIBDIR 736PKG_CONFIG_PATH 737PKG_CONFIG 738CHANGELOG_CMD 739STRICT_CFLAGS 740CWARNFLAGS 741BASE_CFLAGS 742am__fastdepCC_FALSE 743am__fastdepCC_TRUE 744CCDEPMODE 745am__nodep 746AMDEPBACKSLASH 747AMDEP_FALSE 748AMDEP_TRUE 749am__include 750DEPDIR 751OBJEXT 752EXEEXT 753ac_ct_CC 754CPPFLAGS 755LDFLAGS 756CFLAGS 757CC 758MAINT 759MAINTAINER_MODE_FALSE 760MAINTAINER_MODE_TRUE 761AM_BACKSLASH 762AM_DEFAULT_VERBOSITY 763AM_DEFAULT_V 764AM_V 765CSCOPE 766ETAGS 767CTAGS 768am__untar 769am__tar 770AMTAR 771am__leading_dot 772SET_MAKE 773AWK 774mkdir_p 775MKDIR_P 776INSTALL_STRIP_PROGRAM 777STRIP 778install_sh 779MAKEINFO 780AUTOHEADER 781AUTOMAKE 782AUTOCONF 783ACLOCAL 784VERSION 785PACKAGE 786CYGPATH_W 787am__isrc 788INSTALL_DATA 789INSTALL_SCRIPT 790INSTALL_PROGRAM 791host_os 792host_vendor 793host_cpu 794host 795build_os 796build_vendor 797build_cpu 798build 799target_alias 800host_alias 801build_alias 802LIBS 803ECHO_T 804ECHO_N 805ECHO_C 806DEFS 807mandir 808localedir 809libdir 810psdir 811pdfdir 812dvidir 813htmldir 814infodir 815docdir 816oldincludedir 817includedir 818runstatedir 819localstatedir 820sharedstatedir 821sysconfdir 822datadir 823datarootdir 824libexecdir 825sbindir 826bindir 827program_transform_name 828prefix 829exec_prefix 830PACKAGE_URL 831PACKAGE_BUGREPORT 832PACKAGE_STRING 833PACKAGE_VERSION 834PACKAGE_TARNAME 835PACKAGE_NAME 836PATH_SEPARATOR 837SHELL 838am__quote' 839ac_subst_files='' 840ac_user_opts=' 841enable_option_checking 842enable_silent_rules 843enable_maintainer_mode 844enable_largefile 845enable_dependency_tracking 846enable_selective_werror 847enable_strict_compilation 848enable_static 849enable_shared 850with_pic 851enable_fast_install 852with_aix_soname 853with_gnu_ld 854with_sysroot 855enable_libtool_lock 856with_xorg_module_dir 857enable_kms 858enable_xspice 859enable_ccid 860with_ccid_module_dir 861enable_udev 862' 863 ac_precious_vars='build_alias 864host_alias 865target_alias 866CC 867CFLAGS 868LDFLAGS 869LIBS 870CPPFLAGS 871PKG_CONFIG 872PKG_CONFIG_PATH 873PKG_CONFIG_LIBDIR 874LT_SYS_LIBRARY_PATH 875XORG_CFLAGS 876XORG_LIBS 877DRM_CFLAGS 878DRM_LIBS 879PCIACCESS_CFLAGS 880PCIACCESS_LIBS 881SPICE_CFLAGS 882SPICE_LIBS 883LIBPCSCLITE_CFLAGS 884LIBPCSCLITE_LIBS 885LIBCACARD_CFLAGS 886LIBCACARD_LIBS 887LIBUDEV_CFLAGS 888LIBUDEV_LIBS 889SPICE_PROTOCOL_CFLAGS 890SPICE_PROTOCOL_LIBS' 891 892 893# Initialize some variables set by options. 894ac_init_help= 895ac_init_version=false 896ac_unrecognized_opts= 897ac_unrecognized_sep= 898# The variables have the same names as the options, with 899# dashes changed to underlines. 900cache_file=/dev/null 901exec_prefix=NONE 902no_create= 903no_recursion= 904prefix=NONE 905program_prefix=NONE 906program_suffix=NONE 907program_transform_name=s,x,x, 908silent= 909site= 910srcdir= 911verbose= 912x_includes=NONE 913x_libraries=NONE 914 915# Installation directory options. 916# These are left unexpanded so users can "make install exec_prefix=/foo" 917# and all the variables that are supposed to be based on exec_prefix 918# by default will actually change. 919# Use braces instead of parens because sh, perl, etc. also accept them. 920# (The list follows the same order as the GNU Coding Standards.) 921bindir='${exec_prefix}/bin' 922sbindir='${exec_prefix}/sbin' 923libexecdir='${exec_prefix}/libexec' 924datarootdir='${prefix}/share' 925datadir='${datarootdir}' 926sysconfdir='${prefix}/etc' 927sharedstatedir='${prefix}/com' 928localstatedir='${prefix}/var' 929runstatedir='${localstatedir}/run' 930includedir='${prefix}/include' 931oldincludedir='/usr/include' 932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 933infodir='${datarootdir}/info' 934htmldir='${docdir}' 935dvidir='${docdir}' 936pdfdir='${docdir}' 937psdir='${docdir}' 938libdir='${exec_prefix}/lib' 939localedir='${datarootdir}/locale' 940mandir='${datarootdir}/man' 941 942ac_prev= 943ac_dashdash= 944for ac_option 945do 946 # If the previous option needs an argument, assign it. 947 if test -n "$ac_prev"; then 948 eval $ac_prev=\$ac_option 949 ac_prev= 950 continue 951 fi 952 953 case $ac_option in 954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 955 *=) ac_optarg= ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 case $ac_dashdash$ac_option in 960 --) 961 ac_dashdash=yes ;; 962 963 -bindir | --bindir | --bindi | --bind | --bin | --bi) 964 ac_prev=bindir ;; 965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 966 bindir=$ac_optarg ;; 967 968 -build | --build | --buil | --bui | --bu) 969 ac_prev=build_alias ;; 970 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 971 build_alias=$ac_optarg ;; 972 973 -cache-file | --cache-file | --cache-fil | --cache-fi \ 974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 975 ac_prev=cache_file ;; 976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 978 cache_file=$ac_optarg ;; 979 980 --config-cache | -C) 981 cache_file=config.cache ;; 982 983 -datadir | --datadir | --datadi | --datad) 984 ac_prev=datadir ;; 985 -datadir=* | --datadir=* | --datadi=* | --datad=*) 986 datadir=$ac_optarg ;; 987 988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 989 | --dataroo | --dataro | --datar) 990 ac_prev=datarootdir ;; 991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 993 datarootdir=$ac_optarg ;; 994 995 -disable-* | --disable-*) 996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 997 # Reject names that are not valid shell variable names. 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 999 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1000 ac_useropt_orig=$ac_useropt 1001 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1002 case $ac_user_opts in 1003 *" 1004"enable_$ac_useropt" 1005"*) ;; 1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1007 ac_unrecognized_sep=', ';; 1008 esac 1009 eval enable_$ac_useropt=no ;; 1010 1011 -docdir | --docdir | --docdi | --doc | --do) 1012 ac_prev=docdir ;; 1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1014 docdir=$ac_optarg ;; 1015 1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1017 ac_prev=dvidir ;; 1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1019 dvidir=$ac_optarg ;; 1020 1021 -enable-* | --enable-*) 1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1025 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1026 ac_useropt_orig=$ac_useropt 1027 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1028 case $ac_user_opts in 1029 *" 1030"enable_$ac_useropt" 1031"*) ;; 1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1033 ac_unrecognized_sep=', ';; 1034 esac 1035 eval enable_$ac_useropt=\$ac_optarg ;; 1036 1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1039 | --exec | --exe | --ex) 1040 ac_prev=exec_prefix ;; 1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1043 | --exec=* | --exe=* | --ex=*) 1044 exec_prefix=$ac_optarg ;; 1045 1046 -gas | --gas | --ga | --g) 1047 # Obsolete; use --with-gas. 1048 with_gas=yes ;; 1049 1050 -help | --help | --hel | --he | -h) 1051 ac_init_help=long ;; 1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1053 ac_init_help=recursive ;; 1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1055 ac_init_help=short ;; 1056 1057 -host | --host | --hos | --ho) 1058 ac_prev=host_alias ;; 1059 -host=* | --host=* | --hos=* | --ho=*) 1060 host_alias=$ac_optarg ;; 1061 1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1063 ac_prev=htmldir ;; 1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1065 | --ht=*) 1066 htmldir=$ac_optarg ;; 1067 1068 -includedir | --includedir | --includedi | --included | --include \ 1069 | --includ | --inclu | --incl | --inc) 1070 ac_prev=includedir ;; 1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1072 | --includ=* | --inclu=* | --incl=* | --inc=*) 1073 includedir=$ac_optarg ;; 1074 1075 -infodir | --infodir | --infodi | --infod | --info | --inf) 1076 ac_prev=infodir ;; 1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1078 infodir=$ac_optarg ;; 1079 1080 -libdir | --libdir | --libdi | --libd) 1081 ac_prev=libdir ;; 1082 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1083 libdir=$ac_optarg ;; 1084 1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1086 | --libexe | --libex | --libe) 1087 ac_prev=libexecdir ;; 1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1089 | --libexe=* | --libex=* | --libe=*) 1090 libexecdir=$ac_optarg ;; 1091 1092 -localedir | --localedir | --localedi | --localed | --locale) 1093 ac_prev=localedir ;; 1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1095 localedir=$ac_optarg ;; 1096 1097 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1098 | --localstate | --localstat | --localsta | --localst | --locals) 1099 ac_prev=localstatedir ;; 1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1102 localstatedir=$ac_optarg ;; 1103 1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1105 ac_prev=mandir ;; 1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1107 mandir=$ac_optarg ;; 1108 1109 -nfp | --nfp | --nf) 1110 # Obsolete; use --without-fp. 1111 with_fp=no ;; 1112 1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1114 | --no-cr | --no-c | -n) 1115 no_create=yes ;; 1116 1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1119 no_recursion=yes ;; 1120 1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1123 | --oldin | --oldi | --old | --ol | --o) 1124 ac_prev=oldincludedir ;; 1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1128 oldincludedir=$ac_optarg ;; 1129 1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1131 ac_prev=prefix ;; 1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1133 prefix=$ac_optarg ;; 1134 1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1136 | --program-pre | --program-pr | --program-p) 1137 ac_prev=program_prefix ;; 1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1140 program_prefix=$ac_optarg ;; 1141 1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1143 | --program-suf | --program-su | --program-s) 1144 ac_prev=program_suffix ;; 1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1147 program_suffix=$ac_optarg ;; 1148 1149 -program-transform-name | --program-transform-name \ 1150 | --program-transform-nam | --program-transform-na \ 1151 | --program-transform-n | --program-transform- \ 1152 | --program-transform | --program-transfor \ 1153 | --program-transfo | --program-transf \ 1154 | --program-trans | --program-tran \ 1155 | --progr-tra | --program-tr | --program-t) 1156 ac_prev=program_transform_name ;; 1157 -program-transform-name=* | --program-transform-name=* \ 1158 | --program-transform-nam=* | --program-transform-na=* \ 1159 | --program-transform-n=* | --program-transform-=* \ 1160 | --program-transform=* | --program-transfor=* \ 1161 | --program-transfo=* | --program-transf=* \ 1162 | --program-trans=* | --program-tran=* \ 1163 | --progr-tra=* | --program-tr=* | --program-t=*) 1164 program_transform_name=$ac_optarg ;; 1165 1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1167 ac_prev=pdfdir ;; 1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1169 pdfdir=$ac_optarg ;; 1170 1171 -psdir | --psdir | --psdi | --psd | --ps) 1172 ac_prev=psdir ;; 1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1174 psdir=$ac_optarg ;; 1175 1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1177 | -silent | --silent | --silen | --sile | --sil) 1178 silent=yes ;; 1179 1180 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1181 | --runstate | --runstat | --runsta | --runst | --runs \ 1182 | --run | --ru | --r) 1183 ac_prev=runstatedir ;; 1184 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1185 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1186 | --run=* | --ru=* | --r=*) 1187 runstatedir=$ac_optarg ;; 1188 1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1190 ac_prev=sbindir ;; 1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1192 | --sbi=* | --sb=*) 1193 sbindir=$ac_optarg ;; 1194 1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1197 | --sharedst | --shareds | --shared | --share | --shar \ 1198 | --sha | --sh) 1199 ac_prev=sharedstatedir ;; 1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1203 | --sha=* | --sh=*) 1204 sharedstatedir=$ac_optarg ;; 1205 1206 -site | --site | --sit) 1207 ac_prev=site ;; 1208 -site=* | --site=* | --sit=*) 1209 site=$ac_optarg ;; 1210 1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1212 ac_prev=srcdir ;; 1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1214 srcdir=$ac_optarg ;; 1215 1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1217 | --syscon | --sysco | --sysc | --sys | --sy) 1218 ac_prev=sysconfdir ;; 1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1221 sysconfdir=$ac_optarg ;; 1222 1223 -target | --target | --targe | --targ | --tar | --ta | --t) 1224 ac_prev=target_alias ;; 1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1226 target_alias=$ac_optarg ;; 1227 1228 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1229 verbose=yes ;; 1230 1231 -version | --version | --versio | --versi | --vers | -V) 1232 ac_init_version=: ;; 1233 1234 -with-* | --with-*) 1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1236 # Reject names that are not valid shell variable names. 1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1238 as_fn_error $? "invalid package name: \`$ac_useropt'" 1239 ac_useropt_orig=$ac_useropt 1240 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1241 case $ac_user_opts in 1242 *" 1243"with_$ac_useropt" 1244"*) ;; 1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1246 ac_unrecognized_sep=', ';; 1247 esac 1248 eval with_$ac_useropt=\$ac_optarg ;; 1249 1250 -without-* | --without-*) 1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1254 as_fn_error $? "invalid package name: \`$ac_useropt'" 1255 ac_useropt_orig=$ac_useropt 1256 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1257 case $ac_user_opts in 1258 *" 1259"with_$ac_useropt" 1260"*) ;; 1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1262 ac_unrecognized_sep=', ';; 1263 esac 1264 eval with_$ac_useropt=no ;; 1265 1266 --x) 1267 # Obsolete; use --with-x. 1268 with_x=yes ;; 1269 1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1271 | --x-incl | --x-inc | --x-in | --x-i) 1272 ac_prev=x_includes ;; 1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1275 x_includes=$ac_optarg ;; 1276 1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1279 ac_prev=x_libraries ;; 1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1282 x_libraries=$ac_optarg ;; 1283 1284 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1285Try \`$0 --help' for more information" 1286 ;; 1287 1288 *=*) 1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1290 # Reject names that are not valid shell variable names. 1291 case $ac_envvar in #( 1292 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1294 esac 1295 eval $ac_envvar=\$ac_optarg 1296 export $ac_envvar ;; 1297 1298 *) 1299 # FIXME: should be removed in autoconf 3.0. 1300 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1302 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1304 ;; 1305 1306 esac 1307done 1308 1309if test -n "$ac_prev"; then 1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1311 as_fn_error $? "missing argument to $ac_option" 1312fi 1313 1314if test -n "$ac_unrecognized_opts"; then 1315 case $enable_option_checking in 1316 no) ;; 1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1318 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1319 esac 1320fi 1321 1322# Check all directory arguments for consistency. 1323for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1324 datadir sysconfdir sharedstatedir localstatedir includedir \ 1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1326 libdir localedir mandir runstatedir 1327do 1328 eval ac_val=\$$ac_var 1329 # Remove trailing slashes. 1330 case $ac_val in 1331 */ ) 1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1333 eval $ac_var=\$ac_val;; 1334 esac 1335 # Be sure to have absolute directory names. 1336 case $ac_val in 1337 [\\/$]* | ?:[\\/]* ) continue;; 1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1339 esac 1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1341done 1342 1343# There might be people who depend on the old broken behavior: `$host' 1344# used to hold the argument of --host etc. 1345# FIXME: To remove some day. 1346build=$build_alias 1347host=$host_alias 1348target=$target_alias 1349 1350# FIXME: To remove some day. 1351if test "x$host_alias" != x; then 1352 if test "x$build_alias" = x; then 1353 cross_compiling=maybe 1354 elif test "x$build_alias" != "x$host_alias"; then 1355 cross_compiling=yes 1356 fi 1357fi 1358 1359ac_tool_prefix= 1360test -n "$host_alias" && ac_tool_prefix=$host_alias- 1361 1362test "$silent" = yes && exec 6>/dev/null 1363 1364 1365ac_pwd=`pwd` && test -n "$ac_pwd" && 1366ac_ls_di=`ls -di .` && 1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1368 as_fn_error $? "working directory cannot be determined" 1369test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1370 as_fn_error $? "pwd does not report name of working directory" 1371 1372 1373# Find the source files, if location was not specified. 1374if test -z "$srcdir"; then 1375 ac_srcdir_defaulted=yes 1376 # Try the directory containing this script, then the parent directory. 1377 ac_confdir=`$as_dirname -- "$as_myself" || 1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1379 X"$as_myself" : 'X\(//\)[^/]' \| \ 1380 X"$as_myself" : 'X\(//\)$' \| \ 1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1382printf "%s\n" X"$as_myself" | 1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1384 s//\1/ 1385 q 1386 } 1387 /^X\(\/\/\)[^/].*/{ 1388 s//\1/ 1389 q 1390 } 1391 /^X\(\/\/\)$/{ 1392 s//\1/ 1393 q 1394 } 1395 /^X\(\/\).*/{ 1396 s//\1/ 1397 q 1398 } 1399 s/.*/./; q'` 1400 srcdir=$ac_confdir 1401 if test ! -r "$srcdir/$ac_unique_file"; then 1402 srcdir=.. 1403 fi 1404else 1405 ac_srcdir_defaulted=no 1406fi 1407if test ! -r "$srcdir/$ac_unique_file"; then 1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1410fi 1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1412ac_abs_confdir=`( 1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1414 pwd)` 1415# When building in place, set srcdir=. 1416if test "$ac_abs_confdir" = "$ac_pwd"; then 1417 srcdir=. 1418fi 1419# Remove unnecessary trailing slashes from srcdir. 1420# Double slashes in file names in object file debugging info 1421# mess up M-x gdb in Emacs. 1422case $srcdir in 1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1424esac 1425for ac_var in $ac_precious_vars; do 1426 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1427 eval ac_env_${ac_var}_value=\$${ac_var} 1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1429 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1430done 1431 1432# 1433# Report the --help message. 1434# 1435if test "$ac_init_help" = "long"; then 1436 # Omit some internal or obsolete options to make the list less imposing. 1437 # This message is too long to be a string in the A/UX 3.1 sh. 1438 cat <<_ACEOF 1439\`configure' configures xf86-video-qxl 0.1.6 to adapt to many kinds of systems. 1440 1441Usage: $0 [OPTION]... [VAR=VALUE]... 1442 1443To assign environment variables (e.g., CC, CFLAGS...), specify them as 1444VAR=VALUE. See below for descriptions of some of the useful variables. 1445 1446Defaults for the options are specified in brackets. 1447 1448Configuration: 1449 -h, --help display this help and exit 1450 --help=short display options specific to this package 1451 --help=recursive display the short help of all the included packages 1452 -V, --version display version information and exit 1453 -q, --quiet, --silent do not print \`checking ...' messages 1454 --cache-file=FILE cache test results in FILE [disabled] 1455 -C, --config-cache alias for \`--cache-file=config.cache' 1456 -n, --no-create do not create output files 1457 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1458 1459Installation directories: 1460 --prefix=PREFIX install architecture-independent files in PREFIX 1461 [$ac_default_prefix] 1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1463 [PREFIX] 1464 1465By default, \`make install' will install all the files in 1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1467an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1468for instance \`--prefix=\$HOME'. 1469 1470For better control, use the options below. 1471 1472Fine tuning of the installation directories: 1473 --bindir=DIR user executables [EPREFIX/bin] 1474 --sbindir=DIR system admin executables [EPREFIX/sbin] 1475 --libexecdir=DIR program executables [EPREFIX/libexec] 1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1479 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1480 --libdir=DIR object code libraries [EPREFIX/lib] 1481 --includedir=DIR C header files [PREFIX/include] 1482 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1485 --infodir=DIR info documentation [DATAROOTDIR/info] 1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1487 --mandir=DIR man documentation [DATAROOTDIR/man] 1488 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-qxl] 1489 --htmldir=DIR html documentation [DOCDIR] 1490 --dvidir=DIR dvi documentation [DOCDIR] 1491 --pdfdir=DIR pdf documentation [DOCDIR] 1492 --psdir=DIR ps documentation [DOCDIR] 1493_ACEOF 1494 1495 cat <<\_ACEOF 1496 1497Program names: 1498 --program-prefix=PREFIX prepend PREFIX to installed program names 1499 --program-suffix=SUFFIX append SUFFIX to installed program names 1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1501 1502System types: 1503 --build=BUILD configure for building on BUILD [guessed] 1504 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1505_ACEOF 1506fi 1507 1508if test -n "$ac_init_help"; then 1509 case $ac_init_help in 1510 short | recursive ) echo "Configuration of xf86-video-qxl 0.1.6:";; 1511 esac 1512 cat <<\_ACEOF 1513 1514Optional Features: 1515 --disable-option-checking ignore unrecognized --enable/--with options 1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1518 --enable-silent-rules less verbose build output (undo: "make V=1") 1519 --disable-silent-rules verbose build output (undo: "make V=0") 1520 --enable-maintainer-mode 1521 enable make rules and dependencies not useful (and 1522 sometimes confusing) to the casual installer 1523 --disable-largefile omit support for large files 1524 --enable-dependency-tracking 1525 do not reject slow dependency extractors 1526 --disable-dependency-tracking 1527 speeds up one-time build 1528 --disable-selective-werror 1529 Turn off selective compiler errors. (default: 1530 enabled) 1531 --enable-strict-compilation 1532 Enable all warnings from compiler and make them 1533 errors (default: disabled) 1534 --enable-static[=PKGS] build static libraries [default=no] 1535 --enable-shared[=PKGS] build shared libraries [default=yes] 1536 --enable-fast-install[=PKGS] 1537 optimize for fast installation [default=yes] 1538 --disable-libtool-lock avoid locking (might break parallel builds) 1539 --disable-kms Disable KMS support [[default=enabled]] 1540 --enable-xspice[=(no|yes|only)] Build the xspice driver 1541 no (default) Do not build 1542 yes Build in addition to qxl 1543 only Only build xspice 1544 --enable-ccid Build the spiceccid SmartCard driver (default is no) 1545 --disable-udev Disable libudev support [default=auto] 1546 1547Optional Packages: 1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1550 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1551 both] 1552 --with-aix-soname=aix|svr4|both 1553 shared library versioning (aka "SONAME") variant to 1554 provide on AIX, [default=aix]. 1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1556 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1557 compiler's sysroot if not specified). 1558 --with-xorg-module-dir=DIR 1559 --with-ccid-module-dir=DIR 1560 Specify the install path for spiceccid driver 1561 (default is $libdir/pcsc/drivers/serial) 1562 1563Some influential environment variables: 1564 CC C compiler command 1565 CFLAGS C compiler flags 1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1567 nonstandard directory <lib dir> 1568 LIBS libraries to pass to the linker, e.g. -l<library> 1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1570 you have headers in a nonstandard directory <include dir> 1571 PKG_CONFIG path to pkg-config utility 1572 PKG_CONFIG_PATH 1573 directories to add to pkg-config's search path 1574 PKG_CONFIG_LIBDIR 1575 path overriding pkg-config's built-in search path 1576 LT_SYS_LIBRARY_PATH 1577 User-defined run-time library search path. 1578 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1579 XORG_LIBS linker flags for XORG, overriding pkg-config 1580 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config 1581 DRM_LIBS linker flags for DRM, overriding pkg-config 1582 PCIACCESS_CFLAGS 1583 C compiler flags for PCIACCESS, overriding pkg-config 1584 PCIACCESS_LIBS 1585 linker flags for PCIACCESS, overriding pkg-config 1586 SPICE_CFLAGS 1587 C compiler flags for SPICE, overriding pkg-config 1588 SPICE_LIBS linker flags for SPICE, overriding pkg-config 1589 LIBPCSCLITE_CFLAGS 1590 C compiler flags for LIBPCSCLITE, overriding pkg-config 1591 LIBPCSCLITE_LIBS 1592 linker flags for LIBPCSCLITE, overriding pkg-config 1593 LIBCACARD_CFLAGS 1594 C compiler flags for LIBCACARD, overriding pkg-config 1595 LIBCACARD_LIBS 1596 linker flags for LIBCACARD, overriding pkg-config 1597 LIBUDEV_CFLAGS 1598 C compiler flags for LIBUDEV, overriding pkg-config 1599 LIBUDEV_LIBS 1600 linker flags for LIBUDEV, overriding pkg-config 1601 SPICE_PROTOCOL_CFLAGS 1602 C compiler flags for SPICE_PROTOCOL, overriding pkg-config 1603 SPICE_PROTOCOL_LIBS 1604 linker flags for SPICE_PROTOCOL, overriding pkg-config 1605 1606Use these variables to override the choices made by `configure' or to help 1607it to find libraries and programs with nonstandard names/locations. 1608 1609Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/issues>. 1610_ACEOF 1611ac_status=$? 1612fi 1613 1614if test "$ac_init_help" = "recursive"; then 1615 # If there are subdirs, report their specific --help. 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1617 test -d "$ac_dir" || 1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1619 continue 1620 ac_builddir=. 1621 1622case "$ac_dir" in 1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1624*) 1625 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1626 # A ".." for each directory in $ac_dir_suffix. 1627 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1628 case $ac_top_builddir_sub in 1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1631 esac ;; 1632esac 1633ac_abs_top_builddir=$ac_pwd 1634ac_abs_builddir=$ac_pwd$ac_dir_suffix 1635# for backward compatibility: 1636ac_top_builddir=$ac_top_build_prefix 1637 1638case $srcdir in 1639 .) # We are building in place. 1640 ac_srcdir=. 1641 ac_top_srcdir=$ac_top_builddir_sub 1642 ac_abs_top_srcdir=$ac_pwd ;; 1643 [\\/]* | ?:[\\/]* ) # Absolute name. 1644 ac_srcdir=$srcdir$ac_dir_suffix; 1645 ac_top_srcdir=$srcdir 1646 ac_abs_top_srcdir=$srcdir ;; 1647 *) # Relative name. 1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1649 ac_top_srcdir=$ac_top_build_prefix$srcdir 1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1651esac 1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1653 1654 cd "$ac_dir" || { ac_status=$?; continue; } 1655 # Check for configure.gnu first; this name is used for a wrapper for 1656 # Metaconfig's "Configure" on case-insensitive file systems. 1657 if test -f "$ac_srcdir/configure.gnu"; then 1658 echo && 1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1660 elif test -f "$ac_srcdir/configure"; then 1661 echo && 1662 $SHELL "$ac_srcdir/configure" --help=recursive 1663 else 1664 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1665 fi || ac_status=$? 1666 cd "$ac_pwd" || { ac_status=$?; break; } 1667 done 1668fi 1669 1670test -n "$ac_init_help" && exit $ac_status 1671if $ac_init_version; then 1672 cat <<\_ACEOF 1673xf86-video-qxl configure 0.1.6 1674generated by GNU Autoconf 2.71 1675 1676Copyright (C) 2021 Free Software Foundation, Inc. 1677This configure script is free software; the Free Software Foundation 1678gives unlimited permission to copy, distribute and modify it. 1679_ACEOF 1680 exit 1681fi 1682 1683## ------------------------ ## 1684## Autoconf initialization. ## 1685## ------------------------ ## 1686 1687# ac_fn_c_try_compile LINENO 1688# -------------------------- 1689# Try to compile conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_c_try_compile () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext conftest.beam 1694 if { { ac_try="$ac_compile" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700printf "%s\n" "$ac_try_echo"; } >&5 1701 (eval "$ac_compile") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest.$ac_objext 1713then : 1714 ac_retval=0 1715else $as_nop 1716 printf "%s\n" "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=1 1720fi 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_compile 1725 1726# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1727# ------------------------------------------------------------------ 1728# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1729# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1730ac_fn_check_decl () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 as_decl_name=`echo $2|sed 's/ *(.*//'` 1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1735printf %s "checking whether $as_decl_name is declared... " >&6; } 1736if eval test \${$3+y} 1737then : 1738 printf %s "(cached) " >&6 1739else $as_nop 1740 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1741 eval ac_save_FLAGS=\$$6 1742 as_fn_append $6 " $5" 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745$4 1746int 1747main (void) 1748{ 1749#ifndef $as_decl_name 1750#ifdef __cplusplus 1751 (void) $as_decl_use; 1752#else 1753 (void) $as_decl_name; 1754#endif 1755#endif 1756 1757 ; 1758 return 0; 1759} 1760_ACEOF 1761if ac_fn_c_try_compile "$LINENO" 1762then : 1763 eval "$3=yes" 1764else $as_nop 1765 eval "$3=no" 1766fi 1767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1768 eval $6=\$ac_save_FLAGS 1769 1770fi 1771eval ac_res=\$$3 1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1773printf "%s\n" "$ac_res" >&6; } 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 1776} # ac_fn_check_decl 1777 1778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1779# ------------------------------------------------------- 1780# Tests whether HEADER exists and can be compiled using the include files in 1781# INCLUDES, setting the cache variable VAR accordingly. 1782ac_fn_c_check_header_compile () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786printf %s "checking for $2... " >&6; } 1787if eval test \${$3+y} 1788then : 1789 printf %s "(cached) " >&6 1790else $as_nop 1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792/* end confdefs.h. */ 1793$4 1794#include <$2> 1795_ACEOF 1796if ac_fn_c_try_compile "$LINENO" 1797then : 1798 eval "$3=yes" 1799else $as_nop 1800 eval "$3=no" 1801fi 1802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1803fi 1804eval ac_res=\$$3 1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1806printf "%s\n" "$ac_res" >&6; } 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 1809} # ac_fn_c_check_header_compile 1810 1811# ac_fn_c_try_link LINENO 1812# ----------------------- 1813# Try to link conftest.$ac_ext, and return whether this succeeded. 1814ac_fn_c_try_link () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1818 if { { ac_try="$ac_link" 1819case "(($ac_try" in 1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1821 *) ac_try_echo=$ac_try;; 1822esac 1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1824printf "%s\n" "$ac_try_echo"; } >&5 1825 (eval "$ac_link") 2>conftest.err 1826 ac_status=$? 1827 if test -s conftest.err; then 1828 grep -v '^ *+' conftest.err >conftest.er1 1829 cat conftest.er1 >&5 1830 mv -f conftest.er1 conftest.err 1831 fi 1832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1833 test $ac_status = 0; } && { 1834 test -z "$ac_c_werror_flag" || 1835 test ! -s conftest.err 1836 } && test -s conftest$ac_exeext && { 1837 test "$cross_compiling" = yes || 1838 test -x conftest$ac_exeext 1839 } 1840then : 1841 ac_retval=0 1842else $as_nop 1843 printf "%s\n" "$as_me: failed program was:" >&5 1844sed 's/^/| /' conftest.$ac_ext >&5 1845 1846 ac_retval=1 1847fi 1848 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1849 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1850 # interfere with the next link command; also delete a directory that is 1851 # left behind by Apple's compiler. We do this before executing the actions. 1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 as_fn_set_status $ac_retval 1855 1856} # ac_fn_c_try_link 1857 1858# ac_fn_c_check_func LINENO FUNC VAR 1859# ---------------------------------- 1860# Tests whether FUNC exists, setting the cache variable VAR accordingly 1861ac_fn_c_check_func () 1862{ 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865printf %s "checking for $2... " >&6; } 1866if eval test \${$3+y} 1867then : 1868 printf %s "(cached) " >&6 1869else $as_nop 1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1871/* end confdefs.h. */ 1872/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1874#define $2 innocuous_$2 1875 1876/* System header to define __stub macros and hopefully few prototypes, 1877 which can conflict with char $2 (); below. */ 1878 1879#include <limits.h> 1880#undef $2 1881 1882/* Override any GCC internal prototype to avoid an error. 1883 Use char because int might match the return type of a GCC 1884 builtin and then its argument prototype would still apply. */ 1885#ifdef __cplusplus 1886extern "C" 1887#endif 1888char $2 (); 1889/* The GNU C library defines this for functions which it implements 1890 to always fail with ENOSYS. Some functions are actually named 1891 something starting with __ and the normal name is an alias. */ 1892#if defined __stub_$2 || defined __stub___$2 1893choke me 1894#endif 1895 1896int 1897main (void) 1898{ 1899return $2 (); 1900 ; 1901 return 0; 1902} 1903_ACEOF 1904if ac_fn_c_try_link "$LINENO" 1905then : 1906 eval "$3=yes" 1907else $as_nop 1908 eval "$3=no" 1909fi 1910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1911 conftest$ac_exeext conftest.$ac_ext 1912fi 1913eval ac_res=\$$3 1914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1915printf "%s\n" "$ac_res" >&6; } 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 1918} # ac_fn_c_check_func 1919ac_configure_args_raw= 1920for ac_arg 1921do 1922 case $ac_arg in 1923 *\'*) 1924 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1925 esac 1926 as_fn_append ac_configure_args_raw " '$ac_arg'" 1927done 1928 1929case $ac_configure_args_raw in 1930 *$as_nl*) 1931 ac_safe_unquote= ;; 1932 *) 1933 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1934 ac_unsafe_a="$ac_unsafe_z#~" 1935 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1936 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1937esac 1938 1939cat >config.log <<_ACEOF 1940This file contains any messages produced by compilers while 1941running configure, to aid debugging if configure makes a mistake. 1942 1943It was created by xf86-video-qxl $as_me 0.1.6, which was 1944generated by GNU Autoconf 2.71. Invocation command line was 1945 1946 $ $0$ac_configure_args_raw 1947 1948_ACEOF 1949exec 5>>config.log 1950{ 1951cat <<_ASUNAME 1952## --------- ## 1953## Platform. ## 1954## --------- ## 1955 1956hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1957uname -m = `(uname -m) 2>/dev/null || echo unknown` 1958uname -r = `(uname -r) 2>/dev/null || echo unknown` 1959uname -s = `(uname -s) 2>/dev/null || echo unknown` 1960uname -v = `(uname -v) 2>/dev/null || echo unknown` 1961 1962/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1963/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1964 1965/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1966/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1967/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1968/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1969/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1970/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1971/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1972 1973_ASUNAME 1974 1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1976for as_dir in $PATH 1977do 1978 IFS=$as_save_IFS 1979 case $as_dir in #((( 1980 '') as_dir=./ ;; 1981 */) ;; 1982 *) as_dir=$as_dir/ ;; 1983 esac 1984 printf "%s\n" "PATH: $as_dir" 1985 done 1986IFS=$as_save_IFS 1987 1988} >&5 1989 1990cat >&5 <<_ACEOF 1991 1992 1993## ----------- ## 1994## Core tests. ## 1995## ----------- ## 1996 1997_ACEOF 1998 1999 2000# Keep a trace of the command line. 2001# Strip out --no-create and --no-recursion so they do not pile up. 2002# Strip out --silent because we don't want to record it for future runs. 2003# Also quote any args containing shell meta-characters. 2004# Make two passes to allow for proper duplicate-argument suppression. 2005ac_configure_args= 2006ac_configure_args0= 2007ac_configure_args1= 2008ac_must_keep_next=false 2009for ac_pass in 1 2 2010do 2011 for ac_arg 2012 do 2013 case $ac_arg in 2014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2016 | -silent | --silent | --silen | --sile | --sil) 2017 continue ;; 2018 *\'*) 2019 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2020 esac 2021 case $ac_pass in 2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2023 2) 2024 as_fn_append ac_configure_args1 " '$ac_arg'" 2025 if test $ac_must_keep_next = true; then 2026 ac_must_keep_next=false # Got value, back to normal. 2027 else 2028 case $ac_arg in 2029 *=* | --config-cache | -C | -disable-* | --disable-* \ 2030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2032 | -with-* | --with-* | -without-* | --without-* | --x) 2033 case "$ac_configure_args0 " in 2034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2035 esac 2036 ;; 2037 -* ) ac_must_keep_next=true ;; 2038 esac 2039 fi 2040 as_fn_append ac_configure_args " '$ac_arg'" 2041 ;; 2042 esac 2043 done 2044done 2045{ ac_configure_args0=; unset ac_configure_args0;} 2046{ ac_configure_args1=; unset ac_configure_args1;} 2047 2048# When interrupted or exit'd, cleanup temporary files, and complete 2049# config.log. We remove comments because anyway the quotes in there 2050# would cause problems or look ugly. 2051# WARNING: Use '\'' to represent an apostrophe within the trap. 2052# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2053trap 'exit_status=$? 2054 # Sanitize IFS. 2055 IFS=" "" $as_nl" 2056 # Save into config.log some information that might help in debugging. 2057 { 2058 echo 2059 2060 printf "%s\n" "## ---------------- ## 2061## Cache variables. ## 2062## ---------------- ##" 2063 echo 2064 # The following way of writing the cache mishandles newlines in values, 2065( 2066 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2067 eval ac_val=\$$ac_var 2068 case $ac_val in #( 2069 *${as_nl}*) 2070 case $ac_var in #( 2071 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2072printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2073 esac 2074 case $ac_var in #( 2075 _ | IFS | as_nl) ;; #( 2076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2077 *) { eval $ac_var=; unset $ac_var;} ;; 2078 esac ;; 2079 esac 2080 done 2081 (set) 2>&1 | 2082 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2083 *${as_nl}ac_space=\ *) 2084 sed -n \ 2085 "s/'\''/'\''\\\\'\'''\''/g; 2086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2087 ;; #( 2088 *) 2089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2090 ;; 2091 esac | 2092 sort 2093) 2094 echo 2095 2096 printf "%s\n" "## ----------------- ## 2097## Output variables. ## 2098## ----------------- ##" 2099 echo 2100 for ac_var in $ac_subst_vars 2101 do 2102 eval ac_val=\$$ac_var 2103 case $ac_val in 2104 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2105 esac 2106 printf "%s\n" "$ac_var='\''$ac_val'\''" 2107 done | sort 2108 echo 2109 2110 if test -n "$ac_subst_files"; then 2111 printf "%s\n" "## ------------------- ## 2112## File substitutions. ## 2113## ------------------- ##" 2114 echo 2115 for ac_var in $ac_subst_files 2116 do 2117 eval ac_val=\$$ac_var 2118 case $ac_val in 2119 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2120 esac 2121 printf "%s\n" "$ac_var='\''$ac_val'\''" 2122 done | sort 2123 echo 2124 fi 2125 2126 if test -s confdefs.h; then 2127 printf "%s\n" "## ----------- ## 2128## confdefs.h. ## 2129## ----------- ##" 2130 echo 2131 cat confdefs.h 2132 echo 2133 fi 2134 test "$ac_signal" != 0 && 2135 printf "%s\n" "$as_me: caught signal $ac_signal" 2136 printf "%s\n" "$as_me: exit $exit_status" 2137 } >&5 2138 rm -f core *.core core.conftest.* && 2139 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2140 exit $exit_status 2141' 0 2142for ac_signal in 1 2 13 15; do 2143 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2144done 2145ac_signal=0 2146 2147# confdefs.h avoids OS command line length limits that DEFS can exceed. 2148rm -f -r conftest* confdefs.h 2149 2150printf "%s\n" "/* confdefs.h */" > confdefs.h 2151 2152# Predefined preprocessor variables. 2153 2154printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2155 2156printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2157 2158printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2159 2160printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2161 2162printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2163 2164printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2165 2166 2167# Let the site file select an alternate cache file if it wants to. 2168# Prefer an explicitly selected file to automatically selected ones. 2169if test -n "$CONFIG_SITE"; then 2170 ac_site_files="$CONFIG_SITE" 2171elif test "x$prefix" != xNONE; then 2172 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2173else 2174 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2175fi 2176 2177for ac_site_file in $ac_site_files 2178do 2179 case $ac_site_file in #( 2180 */*) : 2181 ;; #( 2182 *) : 2183 ac_site_file=./$ac_site_file ;; 2184esac 2185 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2187printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2188 sed 's/^/| /' "$ac_site_file" >&5 2189 . "$ac_site_file" \ 2190 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2191printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2192as_fn_error $? "failed to load site script $ac_site_file 2193See \`config.log' for more details" "$LINENO" 5; } 2194 fi 2195done 2196 2197if test -r "$cache_file"; then 2198 # Some versions of bash will fail to source /dev/null (special files 2199 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2200 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2202printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2203 case $cache_file in 2204 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2205 *) . "./$cache_file";; 2206 esac 2207 fi 2208else 2209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2210printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2211 >$cache_file 2212fi 2213 2214# Test code for whether the C compiler supports C89 (global declarations) 2215ac_c_conftest_c89_globals=' 2216/* Does the compiler advertise C89 conformance? 2217 Do not test the value of __STDC__, because some compilers set it to 0 2218 while being otherwise adequately conformant. */ 2219#if !defined __STDC__ 2220# error "Compiler does not advertise C89 conformance" 2221#endif 2222 2223#include <stddef.h> 2224#include <stdarg.h> 2225struct stat; 2226/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2227struct buf { int x; }; 2228struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2229static char *e (p, i) 2230 char **p; 2231 int i; 2232{ 2233 return p[i]; 2234} 2235static char *f (char * (*g) (char **, int), char **p, ...) 2236{ 2237 char *s; 2238 va_list v; 2239 va_start (v,p); 2240 s = g (p, va_arg (v,int)); 2241 va_end (v); 2242 return s; 2243} 2244 2245/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2246 function prototypes and stuff, but not \xHH hex character constants. 2247 These do not provoke an error unfortunately, instead are silently treated 2248 as an "x". The following induces an error, until -std is added to get 2249 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2250 array size at least. It is necessary to write \x00 == 0 to get something 2251 that is true only with -std. */ 2252int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2253 2254/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2255 inside strings and character constants. */ 2256#define FOO(x) '\''x'\'' 2257int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2258 2259int test (int i, double x); 2260struct s1 {int (*f) (int a);}; 2261struct s2 {int (*f) (double a);}; 2262int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2263 int, int);' 2264 2265# Test code for whether the C compiler supports C89 (body of main). 2266ac_c_conftest_c89_main=' 2267ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2268' 2269 2270# Test code for whether the C compiler supports C99 (global declarations) 2271ac_c_conftest_c99_globals=' 2272// Does the compiler advertise C99 conformance? 2273#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2274# error "Compiler does not advertise C99 conformance" 2275#endif 2276 2277#include <stdbool.h> 2278extern int puts (const char *); 2279extern int printf (const char *, ...); 2280extern int dprintf (int, const char *, ...); 2281extern void *malloc (size_t); 2282 2283// Check varargs macros. These examples are taken from C99 6.10.3.5. 2284// dprintf is used instead of fprintf to avoid needing to declare 2285// FILE and stderr. 2286#define debug(...) dprintf (2, __VA_ARGS__) 2287#define showlist(...) puts (#__VA_ARGS__) 2288#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2289static void 2290test_varargs_macros (void) 2291{ 2292 int x = 1234; 2293 int y = 5678; 2294 debug ("Flag"); 2295 debug ("X = %d\n", x); 2296 showlist (The first, second, and third items.); 2297 report (x>y, "x is %d but y is %d", x, y); 2298} 2299 2300// Check long long types. 2301#define BIG64 18446744073709551615ull 2302#define BIG32 4294967295ul 2303#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2304#if !BIG_OK 2305 #error "your preprocessor is broken" 2306#endif 2307#if BIG_OK 2308#else 2309 #error "your preprocessor is broken" 2310#endif 2311static long long int bignum = -9223372036854775807LL; 2312static unsigned long long int ubignum = BIG64; 2313 2314struct incomplete_array 2315{ 2316 int datasize; 2317 double data[]; 2318}; 2319 2320struct named_init { 2321 int number; 2322 const wchar_t *name; 2323 double average; 2324}; 2325 2326typedef const char *ccp; 2327 2328static inline int 2329test_restrict (ccp restrict text) 2330{ 2331 // See if C++-style comments work. 2332 // Iterate through items via the restricted pointer. 2333 // Also check for declarations in for loops. 2334 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2335 continue; 2336 return 0; 2337} 2338 2339// Check varargs and va_copy. 2340static bool 2341test_varargs (const char *format, ...) 2342{ 2343 va_list args; 2344 va_start (args, format); 2345 va_list args_copy; 2346 va_copy (args_copy, args); 2347 2348 const char *str = ""; 2349 int number = 0; 2350 float fnumber = 0; 2351 2352 while (*format) 2353 { 2354 switch (*format++) 2355 { 2356 case '\''s'\'': // string 2357 str = va_arg (args_copy, const char *); 2358 break; 2359 case '\''d'\'': // int 2360 number = va_arg (args_copy, int); 2361 break; 2362 case '\''f'\'': // float 2363 fnumber = va_arg (args_copy, double); 2364 break; 2365 default: 2366 break; 2367 } 2368 } 2369 va_end (args_copy); 2370 va_end (args); 2371 2372 return *str && number && fnumber; 2373} 2374' 2375 2376# Test code for whether the C compiler supports C99 (body of main). 2377ac_c_conftest_c99_main=' 2378 // Check bool. 2379 _Bool success = false; 2380 success |= (argc != 0); 2381 2382 // Check restrict. 2383 if (test_restrict ("String literal") == 0) 2384 success = true; 2385 char *restrict newvar = "Another string"; 2386 2387 // Check varargs. 2388 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2389 test_varargs_macros (); 2390 2391 // Check flexible array members. 2392 struct incomplete_array *ia = 2393 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2394 ia->datasize = 10; 2395 for (int i = 0; i < ia->datasize; ++i) 2396 ia->data[i] = i * 1.234; 2397 2398 // Check named initializers. 2399 struct named_init ni = { 2400 .number = 34, 2401 .name = L"Test wide string", 2402 .average = 543.34343, 2403 }; 2404 2405 ni.number = 58; 2406 2407 int dynamic_array[ni.number]; 2408 dynamic_array[0] = argv[0][0]; 2409 dynamic_array[ni.number - 1] = 543; 2410 2411 // work around unused variable warnings 2412 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2413 || dynamic_array[ni.number - 1] != 543); 2414' 2415 2416# Test code for whether the C compiler supports C11 (global declarations) 2417ac_c_conftest_c11_globals=' 2418// Does the compiler advertise C11 conformance? 2419#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2420# error "Compiler does not advertise C11 conformance" 2421#endif 2422 2423// Check _Alignas. 2424char _Alignas (double) aligned_as_double; 2425char _Alignas (0) no_special_alignment; 2426extern char aligned_as_int; 2427char _Alignas (0) _Alignas (int) aligned_as_int; 2428 2429// Check _Alignof. 2430enum 2431{ 2432 int_alignment = _Alignof (int), 2433 int_array_alignment = _Alignof (int[100]), 2434 char_alignment = _Alignof (char) 2435}; 2436_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2437 2438// Check _Noreturn. 2439int _Noreturn does_not_return (void) { for (;;) continue; } 2440 2441// Check _Static_assert. 2442struct test_static_assert 2443{ 2444 int x; 2445 _Static_assert (sizeof (int) <= sizeof (long int), 2446 "_Static_assert does not work in struct"); 2447 long int y; 2448}; 2449 2450// Check UTF-8 literals. 2451#define u8 syntax error! 2452char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2453 2454// Check duplicate typedefs. 2455typedef long *long_ptr; 2456typedef long int *long_ptr; 2457typedef long_ptr long_ptr; 2458 2459// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2460struct anonymous 2461{ 2462 union { 2463 struct { int i; int j; }; 2464 struct { int k; long int l; } w; 2465 }; 2466 int m; 2467} v1; 2468' 2469 2470# Test code for whether the C compiler supports C11 (body of main). 2471ac_c_conftest_c11_main=' 2472 _Static_assert ((offsetof (struct anonymous, i) 2473 == offsetof (struct anonymous, w.k)), 2474 "Anonymous union alignment botch"); 2475 v1.i = 2; 2476 v1.w.k = 5; 2477 ok |= v1.i != 5; 2478' 2479 2480# Test code for whether the C compiler supports C11 (complete). 2481ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2482${ac_c_conftest_c99_globals} 2483${ac_c_conftest_c11_globals} 2484 2485int 2486main (int argc, char **argv) 2487{ 2488 int ok = 0; 2489 ${ac_c_conftest_c89_main} 2490 ${ac_c_conftest_c99_main} 2491 ${ac_c_conftest_c11_main} 2492 return ok; 2493} 2494" 2495 2496# Test code for whether the C compiler supports C99 (complete). 2497ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2498${ac_c_conftest_c99_globals} 2499 2500int 2501main (int argc, char **argv) 2502{ 2503 int ok = 0; 2504 ${ac_c_conftest_c89_main} 2505 ${ac_c_conftest_c99_main} 2506 return ok; 2507} 2508" 2509 2510# Test code for whether the C compiler supports C89 (complete). 2511ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2512 2513int 2514main (int argc, char **argv) 2515{ 2516 int ok = 0; 2517 ${ac_c_conftest_c89_main} 2518 return ok; 2519} 2520" 2521 2522as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2523as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2524as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2525as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2526as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2527as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2528as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2529as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2530as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2531 2532# Auxiliary files required by this configure script. 2533ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub" 2534 2535# Locations in which to look for auxiliary files. 2536ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2537 2538# Search for a directory containing all of the required auxiliary files, 2539# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2540# If we don't find one directory that contains all the files we need, 2541# we report the set of missing files from the *first* directory in 2542# $ac_aux_dir_candidates and give up. 2543ac_missing_aux_files="" 2544ac_first_candidate=: 2545printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2547as_found=false 2548for as_dir in $ac_aux_dir_candidates 2549do 2550 IFS=$as_save_IFS 2551 case $as_dir in #((( 2552 '') as_dir=./ ;; 2553 */) ;; 2554 *) as_dir=$as_dir/ ;; 2555 esac 2556 as_found=: 2557 2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2559 ac_aux_dir_found=yes 2560 ac_install_sh= 2561 for ac_aux in $ac_aux_files 2562 do 2563 # As a special case, if "install-sh" is required, that requirement 2564 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2565 # and $ac_install_sh is set appropriately for whichever one is found. 2566 if test x"$ac_aux" = x"install-sh" 2567 then 2568 if test -f "${as_dir}install-sh"; then 2569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2570 ac_install_sh="${as_dir}install-sh -c" 2571 elif test -f "${as_dir}install.sh"; then 2572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2573 ac_install_sh="${as_dir}install.sh -c" 2574 elif test -f "${as_dir}shtool"; then 2575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2576 ac_install_sh="${as_dir}shtool install -c" 2577 else 2578 ac_aux_dir_found=no 2579 if $ac_first_candidate; then 2580 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2581 else 2582 break 2583 fi 2584 fi 2585 else 2586 if test -f "${as_dir}${ac_aux}"; then 2587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2588 else 2589 ac_aux_dir_found=no 2590 if $ac_first_candidate; then 2591 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2592 else 2593 break 2594 fi 2595 fi 2596 fi 2597 done 2598 if test "$ac_aux_dir_found" = yes; then 2599 ac_aux_dir="$as_dir" 2600 break 2601 fi 2602 ac_first_candidate=false 2603 2604 as_found=false 2605done 2606IFS=$as_save_IFS 2607if $as_found 2608then : 2609 2610else $as_nop 2611 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2612fi 2613 2614 2615# These three variables are undocumented and unsupported, 2616# and are intended to be withdrawn in a future Autoconf release. 2617# They can cause serious problems if a builder's source tree is in a directory 2618# whose full name contains unusual characters. 2619if test -f "${ac_aux_dir}config.guess"; then 2620 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2621fi 2622if test -f "${ac_aux_dir}config.sub"; then 2623 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2624fi 2625if test -f "$ac_aux_dir/configure"; then 2626 ac_configure="$SHELL ${ac_aux_dir}configure" 2627fi 2628 2629# Check that the precious variables saved in the cache have kept the same 2630# value. 2631ac_cache_corrupted=false 2632for ac_var in $ac_precious_vars; do 2633 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2634 eval ac_new_set=\$ac_env_${ac_var}_set 2635 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2636 eval ac_new_val=\$ac_env_${ac_var}_value 2637 case $ac_old_set,$ac_new_set in 2638 set,) 2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2640printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2641 ac_cache_corrupted=: ;; 2642 ,set) 2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2644printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2645 ac_cache_corrupted=: ;; 2646 ,);; 2647 *) 2648 if test "x$ac_old_val" != "x$ac_new_val"; then 2649 # differences in whitespace do not lead to failure. 2650 ac_old_val_w=`echo x $ac_old_val` 2651 ac_new_val_w=`echo x $ac_new_val` 2652 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2654printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2655 ac_cache_corrupted=: 2656 else 2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2658printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2659 eval $ac_var=\$ac_old_val 2660 fi 2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2662printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2664printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2665 fi;; 2666 esac 2667 # Pass precious variables to config.status. 2668 if test "$ac_new_set" = set; then 2669 case $ac_new_val in 2670 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2671 *) ac_arg=$ac_var=$ac_new_val ;; 2672 esac 2673 case " $ac_configure_args " in 2674 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2675 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2676 esac 2677 fi 2678done 2679if $ac_cache_corrupted; then 2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2681printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2683printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2684 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2685 and start over" "$LINENO" 5 2686fi 2687## -------------------- ## 2688## Main body of script. ## 2689## -------------------- ## 2690 2691ac_ext=c 2692ac_cpp='$CPP $CPPFLAGS' 2693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2695ac_compiler_gnu=$ac_cv_c_compiler_gnu 2696 2697 2698 2699 2700 2701 2702 # Make sure we can run config.sub. 2703$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 2704 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 2705 2706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2707printf %s "checking build system type... " >&6; } 2708if test ${ac_cv_build+y} 2709then : 2710 printf %s "(cached) " >&6 2711else $as_nop 2712 ac_build_alias=$build_alias 2713test "x$ac_build_alias" = x && 2714 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 2715test "x$ac_build_alias" = x && 2716 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2717ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 2718 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 2719 2720fi 2721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2722printf "%s\n" "$ac_cv_build" >&6; } 2723case $ac_cv_build in 2724*-*-*) ;; 2725*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2726esac 2727build=$ac_cv_build 2728ac_save_IFS=$IFS; IFS='-' 2729set x $ac_cv_build 2730shift 2731build_cpu=$1 2732build_vendor=$2 2733shift; shift 2734# Remember, the first character of IFS is used to create $*, 2735# except with old shells: 2736build_os=$* 2737IFS=$ac_save_IFS 2738case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2739 2740 2741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2742printf %s "checking host system type... " >&6; } 2743if test ${ac_cv_host+y} 2744then : 2745 printf %s "(cached) " >&6 2746else $as_nop 2747 if test "x$host_alias" = x; then 2748 ac_cv_host=$ac_cv_build 2749else 2750 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 2751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 2752fi 2753 2754fi 2755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2756printf "%s\n" "$ac_cv_host" >&6; } 2757case $ac_cv_host in 2758*-*-*) ;; 2759*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2760esac 2761host=$ac_cv_host 2762ac_save_IFS=$IFS; IFS='-' 2763set x $ac_cv_host 2764shift 2765host_cpu=$1 2766host_vendor=$2 2767shift; shift 2768# Remember, the first character of IFS is used to create $*, 2769# except with old shells: 2770host_os=$* 2771IFS=$ac_save_IFS 2772case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2773 2774 2775 2776# Initialize Automake 2777am__api_version='1.16' 2778 2779 2780 # Find a good install program. We prefer a C program (faster), 2781# so one script is as good as another. But avoid the broken or 2782# incompatible versions: 2783# SysV /etc/install, /usr/sbin/install 2784# SunOS /usr/etc/install 2785# IRIX /sbin/install 2786# AIX /bin/install 2787# AmigaOS /C/install, which installs bootblocks on floppy discs 2788# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2789# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2790# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2791# OS/2's system install, which has a completely different semantic 2792# ./install, which can be erroneously created by make from ./install.sh. 2793# Reject install programs that cannot install multiple files. 2794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2795printf %s "checking for a BSD-compatible install... " >&6; } 2796if test -z "$INSTALL"; then 2797if test ${ac_cv_path_install+y} 2798then : 2799 printf %s "(cached) " >&6 2800else $as_nop 2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2802for as_dir in $PATH 2803do 2804 IFS=$as_save_IFS 2805 case $as_dir in #((( 2806 '') as_dir=./ ;; 2807 */) ;; 2808 *) as_dir=$as_dir/ ;; 2809 esac 2810 # Account for fact that we put trailing slashes in our PATH walk. 2811case $as_dir in #(( 2812 ./ | /[cC]/* | \ 2813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2814 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2815 /usr/ucb/* ) ;; 2816 *) 2817 # OSF1 and SCO ODT 3.0 have their own names for install. 2818 # Don't use installbsd from OSF since it installs stuff as root 2819 # by default. 2820 for ac_prog in ginstall scoinst install; do 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2823 if test $ac_prog = install && 2824 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2825 # AIX install. It has an incompatible calling convention. 2826 : 2827 elif test $ac_prog = install && 2828 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2829 # program-specific install script used by HP pwplus--don't use. 2830 : 2831 else 2832 rm -rf conftest.one conftest.two conftest.dir 2833 echo one > conftest.one 2834 echo two > conftest.two 2835 mkdir conftest.dir 2836 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2837 test -s conftest.one && test -s conftest.two && 2838 test -s conftest.dir/conftest.one && 2839 test -s conftest.dir/conftest.two 2840 then 2841 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2842 break 3 2843 fi 2844 fi 2845 fi 2846 done 2847 done 2848 ;; 2849esac 2850 2851 done 2852IFS=$as_save_IFS 2853 2854rm -rf conftest.one conftest.two conftest.dir 2855 2856fi 2857 if test ${ac_cv_path_install+y}; then 2858 INSTALL=$ac_cv_path_install 2859 else 2860 # As a last resort, use the slow shell script. Don't cache a 2861 # value for INSTALL within a source directory, because that will 2862 # break other packages using the cache if that directory is 2863 # removed, or if the value is a relative name. 2864 INSTALL=$ac_install_sh 2865 fi 2866fi 2867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2868printf "%s\n" "$INSTALL" >&6; } 2869 2870# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2871# It thinks the first close brace ends the variable substitution. 2872test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2873 2874test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2875 2876test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2877 2878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2879printf %s "checking whether build environment is sane... " >&6; } 2880# Reject unsafe characters in $srcdir or the absolute working directory 2881# name. Accept space and tab only in the latter. 2882am_lf=' 2883' 2884case `pwd` in 2885 *[\\\"\#\$\&\'\`$am_lf]*) 2886 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2887esac 2888case $srcdir in 2889 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2890 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2891esac 2892 2893# Do 'set' in a subshell so we don't clobber the current shell's 2894# arguments. Must try -L first in case configure is actually a 2895# symlink; some systems play weird games with the mod time of symlinks 2896# (eg FreeBSD returns the mod time of the symlink's containing 2897# directory). 2898if ( 2899 am_has_slept=no 2900 for am_try in 1 2; do 2901 echo "timestamp, slept: $am_has_slept" > conftest.file 2902 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2903 if test "$*" = "X"; then 2904 # -L didn't work. 2905 set X `ls -t "$srcdir/configure" conftest.file` 2906 fi 2907 if test "$*" != "X $srcdir/configure conftest.file" \ 2908 && test "$*" != "X conftest.file $srcdir/configure"; then 2909 2910 # If neither matched, then we have a broken ls. This can happen 2911 # if, for instance, CONFIG_SHELL is bash and it inherits a 2912 # broken ls alias from the environment. This has actually 2913 # happened. Such a system could not be considered "sane". 2914 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2915 alias in your environment" "$LINENO" 5 2916 fi 2917 if test "$2" = conftest.file || test $am_try -eq 2; then 2918 break 2919 fi 2920 # Just in case. 2921 sleep 1 2922 am_has_slept=yes 2923 done 2924 test "$2" = conftest.file 2925 ) 2926then 2927 # Ok. 2928 : 2929else 2930 as_fn_error $? "newly created file is older than distributed files! 2931Check your system clock" "$LINENO" 5 2932fi 2933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2934printf "%s\n" "yes" >&6; } 2935# If we didn't sleep, we still need to ensure time stamps of config.status and 2936# generated files are strictly newer. 2937am_sleep_pid= 2938if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2939 ( sleep 1 ) & 2940 am_sleep_pid=$! 2941fi 2942 2943rm -f conftest.file 2944 2945test "$program_prefix" != NONE && 2946 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2947# Use a double $ so make ignores it. 2948test "$program_suffix" != NONE && 2949 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2950# Double any \ or $. 2951# By default was `s,x,x', remove it if useless. 2952ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2953program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2954 2955 2956# Expand $ac_aux_dir to an absolute path. 2957am_aux_dir=`cd "$ac_aux_dir" && pwd` 2958 2959 2960 if test x"${MISSING+set}" != xset; then 2961 MISSING="\${SHELL} '$am_aux_dir/missing'" 2962fi 2963# Use eval to expand $SHELL 2964if eval "$MISSING --is-lightweight"; then 2965 am_missing_run="$MISSING " 2966else 2967 am_missing_run= 2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2969printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2970fi 2971 2972if test x"${install_sh+set}" != xset; then 2973 case $am_aux_dir in 2974 *\ * | *\ *) 2975 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2976 *) 2977 install_sh="\${SHELL} $am_aux_dir/install-sh" 2978 esac 2979fi 2980 2981# Installed binaries are usually stripped using 'strip' when the user 2982# run "make install-strip". However 'strip' might not be the right 2983# tool to use in cross-compilation environments, therefore Automake 2984# will honor the 'STRIP' environment variable to overrule this program. 2985if test "$cross_compiling" != no; then 2986 if test -n "$ac_tool_prefix"; then 2987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2988set dummy ${ac_tool_prefix}strip; ac_word=$2 2989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2990printf %s "checking for $ac_word... " >&6; } 2991if test ${ac_cv_prog_STRIP+y} 2992then : 2993 printf %s "(cached) " >&6 2994else $as_nop 2995 if test -n "$STRIP"; then 2996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2997else 2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2999for as_dir in $PATH 3000do 3001 IFS=$as_save_IFS 3002 case $as_dir in #((( 3003 '') as_dir=./ ;; 3004 */) ;; 3005 *) as_dir=$as_dir/ ;; 3006 esac 3007 for ac_exec_ext in '' $ac_executable_extensions; do 3008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3009 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3011 break 2 3012 fi 3013done 3014 done 3015IFS=$as_save_IFS 3016 3017fi 3018fi 3019STRIP=$ac_cv_prog_STRIP 3020if test -n "$STRIP"; then 3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3022printf "%s\n" "$STRIP" >&6; } 3023else 3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025printf "%s\n" "no" >&6; } 3026fi 3027 3028 3029fi 3030if test -z "$ac_cv_prog_STRIP"; then 3031 ac_ct_STRIP=$STRIP 3032 # Extract the first word of "strip", so it can be a program name with args. 3033set dummy strip; ac_word=$2 3034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035printf %s "checking for $ac_word... " >&6; } 3036if test ${ac_cv_prog_ac_ct_STRIP+y} 3037then : 3038 printf %s "(cached) " >&6 3039else $as_nop 3040 if test -n "$ac_ct_STRIP"; then 3041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3042else 3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3044for as_dir in $PATH 3045do 3046 IFS=$as_save_IFS 3047 case $as_dir in #((( 3048 '') as_dir=./ ;; 3049 */) ;; 3050 *) as_dir=$as_dir/ ;; 3051 esac 3052 for ac_exec_ext in '' $ac_executable_extensions; do 3053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3054 ac_cv_prog_ac_ct_STRIP="strip" 3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3056 break 2 3057 fi 3058done 3059 done 3060IFS=$as_save_IFS 3061 3062fi 3063fi 3064ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3065if test -n "$ac_ct_STRIP"; then 3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3067printf "%s\n" "$ac_ct_STRIP" >&6; } 3068else 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3070printf "%s\n" "no" >&6; } 3071fi 3072 3073 if test "x$ac_ct_STRIP" = x; then 3074 STRIP=":" 3075 else 3076 case $cross_compiling:$ac_tool_warned in 3077yes:) 3078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3079printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3080ac_tool_warned=yes ;; 3081esac 3082 STRIP=$ac_ct_STRIP 3083 fi 3084else 3085 STRIP="$ac_cv_prog_STRIP" 3086fi 3087 3088fi 3089INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3090 3091 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3093printf %s "checking for a race-free mkdir -p... " >&6; } 3094if test -z "$MKDIR_P"; then 3095 if test ${ac_cv_path_mkdir+y} 3096then : 3097 printf %s "(cached) " >&6 3098else $as_nop 3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3100for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3101do 3102 IFS=$as_save_IFS 3103 case $as_dir in #((( 3104 '') as_dir=./ ;; 3105 */) ;; 3106 *) as_dir=$as_dir/ ;; 3107 esac 3108 for ac_prog in mkdir gmkdir; do 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3111 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3112 'mkdir ('*'coreutils) '* | \ 3113 'BusyBox '* | \ 3114 'mkdir (fileutils) '4.1*) 3115 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3116 break 3;; 3117 esac 3118 done 3119 done 3120 done 3121IFS=$as_save_IFS 3122 3123fi 3124 3125 test -d ./--version && rmdir ./--version 3126 if test ${ac_cv_path_mkdir+y}; then 3127 MKDIR_P="$ac_cv_path_mkdir -p" 3128 else 3129 # As a last resort, use the slow shell script. Don't cache a 3130 # value for MKDIR_P within a source directory, because that will 3131 # break other packages using the cache if that directory is 3132 # removed, or if the value is a relative name. 3133 MKDIR_P="$ac_install_sh -d" 3134 fi 3135fi 3136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3137printf "%s\n" "$MKDIR_P" >&6; } 3138 3139for ac_prog in gawk mawk nawk awk 3140do 3141 # Extract the first word of "$ac_prog", so it can be a program name with args. 3142set dummy $ac_prog; ac_word=$2 3143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144printf %s "checking for $ac_word... " >&6; } 3145if test ${ac_cv_prog_AWK+y} 3146then : 3147 printf %s "(cached) " >&6 3148else $as_nop 3149 if test -n "$AWK"; then 3150 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3151else 3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153for as_dir in $PATH 3154do 3155 IFS=$as_save_IFS 3156 case $as_dir in #((( 3157 '') as_dir=./ ;; 3158 */) ;; 3159 *) as_dir=$as_dir/ ;; 3160 esac 3161 for ac_exec_ext in '' $ac_executable_extensions; do 3162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3163 ac_cv_prog_AWK="$ac_prog" 3164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3165 break 2 3166 fi 3167done 3168 done 3169IFS=$as_save_IFS 3170 3171fi 3172fi 3173AWK=$ac_cv_prog_AWK 3174if test -n "$AWK"; then 3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3176printf "%s\n" "$AWK" >&6; } 3177else 3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3179printf "%s\n" "no" >&6; } 3180fi 3181 3182 3183 test -n "$AWK" && break 3184done 3185 3186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3187printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3188set x ${MAKE-make} 3189ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3190if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3191then : 3192 printf %s "(cached) " >&6 3193else $as_nop 3194 cat >conftest.make <<\_ACEOF 3195SHELL = /bin/sh 3196all: 3197 @echo '@@@%%%=$(MAKE)=@@@%%%' 3198_ACEOF 3199# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3200case `${MAKE-make} -f conftest.make 2>/dev/null` in 3201 *@@@%%%=?*=@@@%%%*) 3202 eval ac_cv_prog_make_${ac_make}_set=yes;; 3203 *) 3204 eval ac_cv_prog_make_${ac_make}_set=no;; 3205esac 3206rm -f conftest.make 3207fi 3208if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3210printf "%s\n" "yes" >&6; } 3211 SET_MAKE= 3212else 3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214printf "%s\n" "no" >&6; } 3215 SET_MAKE="MAKE=${MAKE-make}" 3216fi 3217 3218rm -rf .tst 2>/dev/null 3219mkdir .tst 2>/dev/null 3220if test -d .tst; then 3221 am__leading_dot=. 3222else 3223 am__leading_dot=_ 3224fi 3225rmdir .tst 2>/dev/null 3226 3227# Check whether --enable-silent-rules was given. 3228if test ${enable_silent_rules+y} 3229then : 3230 enableval=$enable_silent_rules; 3231fi 3232 3233case $enable_silent_rules in # ((( 3234 yes) AM_DEFAULT_VERBOSITY=0;; 3235 no) AM_DEFAULT_VERBOSITY=1;; 3236 *) AM_DEFAULT_VERBOSITY=1;; 3237esac 3238am_make=${MAKE-make} 3239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3240printf %s "checking whether $am_make supports nested variables... " >&6; } 3241if test ${am_cv_make_support_nested_variables+y} 3242then : 3243 printf %s "(cached) " >&6 3244else $as_nop 3245 if printf "%s\n" 'TRUE=$(BAR$(V)) 3246BAR0=false 3247BAR1=true 3248V=1 3249am__doit: 3250 @$(TRUE) 3251.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3252 am_cv_make_support_nested_variables=yes 3253else 3254 am_cv_make_support_nested_variables=no 3255fi 3256fi 3257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3258printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3259if test $am_cv_make_support_nested_variables = yes; then 3260 AM_V='$(V)' 3261 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3262else 3263 AM_V=$AM_DEFAULT_VERBOSITY 3264 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3265fi 3266AM_BACKSLASH='\' 3267 3268if test "`cd $srcdir && pwd`" != "`pwd`"; then 3269 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3270 # is not polluted with repeated "-I." 3271 am__isrc=' -I$(srcdir)' 3272 # test to see if srcdir already configured 3273 if test -f $srcdir/config.status; then 3274 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3275 fi 3276fi 3277 3278# test whether we have cygpath 3279if test -z "$CYGPATH_W"; then 3280 if (cygpath --version) >/dev/null 2>/dev/null; then 3281 CYGPATH_W='cygpath -w' 3282 else 3283 CYGPATH_W=echo 3284 fi 3285fi 3286 3287 3288# Define the identity of the package. 3289 PACKAGE='xf86-video-qxl' 3290 VERSION='0.1.6' 3291 3292 3293printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3294 3295 3296printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3297 3298# Some tools Automake needs. 3299 3300ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3301 3302 3303AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3304 3305 3306AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3307 3308 3309AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3310 3311 3312MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3313 3314# For better backward compatibility. To be removed once Automake 1.9.x 3315# dies out for good. For more background, see: 3316# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3317# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3318mkdir_p='$(MKDIR_P)' 3319 3320# We need awk for the "check" target (and possibly the TAP driver). The 3321# system "awk" is bad on some platforms. 3322# Always define AMTAR for backward compatibility. Yes, it's still used 3323# in the wild :-( We should find a proper way to deprecate it ... 3324AMTAR='$${TAR-tar}' 3325 3326 3327# We'll loop over all known methods to create a tar archive until one works. 3328_am_tools='gnutar pax cpio none' 3329 3330am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3331 3332 3333 3334 3335 3336# Variables for tags utilities; see am/tags.am 3337if test -z "$CTAGS"; then 3338 CTAGS=ctags 3339fi 3340 3341if test -z "$ETAGS"; then 3342 ETAGS=etags 3343fi 3344 3345if test -z "$CSCOPE"; then 3346 CSCOPE=cscope 3347fi 3348 3349 3350 3351# POSIX will say in a future version that running "rm -f" with no argument 3352# is OK; and we want to be able to make that assumption in our Makefile 3353# recipes. So use an aggressive probe to check that the usage we want is 3354# actually supported "in the wild" to an acceptable degree. 3355# See automake bug#10828. 3356# To make any issue more visible, cause the running configure to be aborted 3357# by default if the 'rm' program in use doesn't match our expectations; the 3358# user can still override this though. 3359if rm -f && rm -fr && rm -rf; then : OK; else 3360 cat >&2 <<'END' 3361Oops! 3362 3363Your 'rm' program seems unable to run without file operands specified 3364on the command line, even when the '-f' option is present. This is contrary 3365to the behaviour of most rm programs out there, and not conforming with 3366the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3367 3368Please tell bug-automake@gnu.org about your system, including the value 3369of your $PATH and any error possibly output before this message. This 3370can help us improve future automake versions. 3371 3372END 3373 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3374 echo 'Configuration will proceed anyway, since you have set the' >&2 3375 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3376 echo >&2 3377 else 3378 cat >&2 <<'END' 3379Aborting the configuration process, to ensure you take notice of the issue. 3380 3381You can download and install GNU coreutils to get an 'rm' implementation 3382that behaves properly: <https://www.gnu.org/software/coreutils/>. 3383 3384If you want to complete the configuration process using your problematic 3385'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3386to "yes", and re-run configure. 3387 3388END 3389 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3390 fi 3391fi 3392 3393 3394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3395printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3396 # Check whether --enable-maintainer-mode was given. 3397if test ${enable_maintainer_mode+y} 3398then : 3399 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3400else $as_nop 3401 USE_MAINTAINER_MODE=no 3402fi 3403 3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3405printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3406 if test $USE_MAINTAINER_MODE = yes; then 3407 MAINTAINER_MODE_TRUE= 3408 MAINTAINER_MODE_FALSE='#' 3409else 3410 MAINTAINER_MODE_TRUE='#' 3411 MAINTAINER_MODE_FALSE= 3412fi 3413 3414 MAINT=$MAINTAINER_MODE_TRUE 3415 3416 3417ac_config_headers="$ac_config_headers config.h" 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428DEPDIR="${am__leading_dot}deps" 3429 3430ac_config_commands="$ac_config_commands depfiles" 3431 3432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3433printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3434cat > confinc.mk << 'END' 3435am__doit: 3436 @echo this is the am__doit target >confinc.out 3437.PHONY: am__doit 3438END 3439am__include="#" 3440am__quote= 3441# BSD make does it like this. 3442echo '.include "confinc.mk" # ignored' > confmf.BSD 3443# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3444echo 'include confinc.mk # ignored' > confmf.GNU 3445_am_result=no 3446for s in GNU BSD; do 3447 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3448 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3449 ac_status=$? 3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); } 3452 case $?:`cat confinc.out 2>/dev/null` in #( 3453 '0:this is the am__doit target') : 3454 case $s in #( 3455 BSD) : 3456 am__include='.include' am__quote='"' ;; #( 3457 *) : 3458 am__include='include' am__quote='' ;; 3459esac ;; #( 3460 *) : 3461 ;; 3462esac 3463 if test "$am__include" != "#"; then 3464 _am_result="yes ($s style)" 3465 break 3466 fi 3467done 3468rm -f confinc.* confmf.* 3469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3470printf "%s\n" "${_am_result}" >&6; } 3471 3472# Check whether --enable-dependency-tracking was given. 3473if test ${enable_dependency_tracking+y} 3474then : 3475 enableval=$enable_dependency_tracking; 3476fi 3477 3478if test "x$enable_dependency_tracking" != xno; then 3479 am_depcomp="$ac_aux_dir/depcomp" 3480 AMDEPBACKSLASH='\' 3481 am__nodep='_no' 3482fi 3483 if test "x$enable_dependency_tracking" != xno; then 3484 AMDEP_TRUE= 3485 AMDEP_FALSE='#' 3486else 3487 AMDEP_TRUE='#' 3488 AMDEP_FALSE= 3489fi 3490 3491 3492ac_ext=c 3493ac_cpp='$CPP $CPPFLAGS' 3494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3496ac_compiler_gnu=$ac_cv_c_compiler_gnu 3497if test -n "$ac_tool_prefix"; then 3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3499set dummy ${ac_tool_prefix}gcc; ac_word=$2 3500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501printf %s "checking for $ac_word... " >&6; } 3502if test ${ac_cv_prog_CC+y} 3503then : 3504 printf %s "(cached) " >&6 3505else $as_nop 3506 if test -n "$CC"; then 3507 ac_cv_prog_CC="$CC" # Let the user override the test. 3508else 3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510for as_dir in $PATH 3511do 3512 IFS=$as_save_IFS 3513 case $as_dir in #((( 3514 '') as_dir=./ ;; 3515 */) ;; 3516 *) as_dir=$as_dir/ ;; 3517 esac 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3520 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524done 3525 done 3526IFS=$as_save_IFS 3527 3528fi 3529fi 3530CC=$ac_cv_prog_CC 3531if test -n "$CC"; then 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3533printf "%s\n" "$CC" >&6; } 3534else 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3536printf "%s\n" "no" >&6; } 3537fi 3538 3539 3540fi 3541if test -z "$ac_cv_prog_CC"; then 3542 ac_ct_CC=$CC 3543 # Extract the first word of "gcc", so it can be a program name with args. 3544set dummy gcc; ac_word=$2 3545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3546printf %s "checking for $ac_word... " >&6; } 3547if test ${ac_cv_prog_ac_ct_CC+y} 3548then : 3549 printf %s "(cached) " >&6 3550else $as_nop 3551 if test -n "$ac_ct_CC"; then 3552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3553else 3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555for as_dir in $PATH 3556do 3557 IFS=$as_save_IFS 3558 case $as_dir in #((( 3559 '') as_dir=./ ;; 3560 */) ;; 3561 *) as_dir=$as_dir/ ;; 3562 esac 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3565 ac_cv_prog_ac_ct_CC="gcc" 3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3567 break 2 3568 fi 3569done 3570 done 3571IFS=$as_save_IFS 3572 3573fi 3574fi 3575ac_ct_CC=$ac_cv_prog_ac_ct_CC 3576if test -n "$ac_ct_CC"; then 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3578printf "%s\n" "$ac_ct_CC" >&6; } 3579else 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581printf "%s\n" "no" >&6; } 3582fi 3583 3584 if test "x$ac_ct_CC" = x; then 3585 CC="" 3586 else 3587 case $cross_compiling:$ac_tool_warned in 3588yes:) 3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3590printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3591ac_tool_warned=yes ;; 3592esac 3593 CC=$ac_ct_CC 3594 fi 3595else 3596 CC="$ac_cv_prog_CC" 3597fi 3598 3599if test -z "$CC"; then 3600 if test -n "$ac_tool_prefix"; then 3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3602set dummy ${ac_tool_prefix}cc; ac_word=$2 3603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3604printf %s "checking for $ac_word... " >&6; } 3605if test ${ac_cv_prog_CC+y} 3606then : 3607 printf %s "(cached) " >&6 3608else $as_nop 3609 if test -n "$CC"; then 3610 ac_cv_prog_CC="$CC" # Let the user override the test. 3611else 3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3613for as_dir in $PATH 3614do 3615 IFS=$as_save_IFS 3616 case $as_dir in #((( 3617 '') as_dir=./ ;; 3618 */) ;; 3619 *) as_dir=$as_dir/ ;; 3620 esac 3621 for ac_exec_ext in '' $ac_executable_extensions; do 3622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3623 ac_cv_prog_CC="${ac_tool_prefix}cc" 3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3625 break 2 3626 fi 3627done 3628 done 3629IFS=$as_save_IFS 3630 3631fi 3632fi 3633CC=$ac_cv_prog_CC 3634if test -n "$CC"; then 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3636printf "%s\n" "$CC" >&6; } 3637else 3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3639printf "%s\n" "no" >&6; } 3640fi 3641 3642 3643 fi 3644fi 3645if test -z "$CC"; then 3646 # Extract the first word of "cc", so it can be a program name with args. 3647set dummy cc; ac_word=$2 3648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3649printf %s "checking for $ac_word... " >&6; } 3650if test ${ac_cv_prog_CC+y} 3651then : 3652 printf %s "(cached) " >&6 3653else $as_nop 3654 if test -n "$CC"; then 3655 ac_cv_prog_CC="$CC" # Let the user override the test. 3656else 3657 ac_prog_rejected=no 3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3659for as_dir in $PATH 3660do 3661 IFS=$as_save_IFS 3662 case $as_dir in #((( 3663 '') as_dir=./ ;; 3664 */) ;; 3665 *) as_dir=$as_dir/ ;; 3666 esac 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3669 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3670 ac_prog_rejected=yes 3671 continue 3672 fi 3673 ac_cv_prog_CC="cc" 3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3675 break 2 3676 fi 3677done 3678 done 3679IFS=$as_save_IFS 3680 3681if test $ac_prog_rejected = yes; then 3682 # We found a bogon in the path, so make sure we never use it. 3683 set dummy $ac_cv_prog_CC 3684 shift 3685 if test $# != 0; then 3686 # We chose a different compiler from the bogus one. 3687 # However, it has the same basename, so the bogon will be chosen 3688 # first if we set CC to just the basename; use the full file name. 3689 shift 3690 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3691 fi 3692fi 3693fi 3694fi 3695CC=$ac_cv_prog_CC 3696if test -n "$CC"; then 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3698printf "%s\n" "$CC" >&6; } 3699else 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701printf "%s\n" "no" >&6; } 3702fi 3703 3704 3705fi 3706if test -z "$CC"; then 3707 if test -n "$ac_tool_prefix"; then 3708 for ac_prog in cl.exe 3709 do 3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3711set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3713printf %s "checking for $ac_word... " >&6; } 3714if test ${ac_cv_prog_CC+y} 3715then : 3716 printf %s "(cached) " >&6 3717else $as_nop 3718 if test -n "$CC"; then 3719 ac_cv_prog_CC="$CC" # Let the user override the test. 3720else 3721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3722for as_dir in $PATH 3723do 3724 IFS=$as_save_IFS 3725 case $as_dir in #((( 3726 '') as_dir=./ ;; 3727 */) ;; 3728 *) as_dir=$as_dir/ ;; 3729 esac 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736done 3737 done 3738IFS=$as_save_IFS 3739 3740fi 3741fi 3742CC=$ac_cv_prog_CC 3743if test -n "$CC"; then 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745printf "%s\n" "$CC" >&6; } 3746else 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748printf "%s\n" "no" >&6; } 3749fi 3750 3751 3752 test -n "$CC" && break 3753 done 3754fi 3755if test -z "$CC"; then 3756 ac_ct_CC=$CC 3757 for ac_prog in cl.exe 3758do 3759 # Extract the first word of "$ac_prog", so it can be a program name with args. 3760set dummy $ac_prog; ac_word=$2 3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3762printf %s "checking for $ac_word... " >&6; } 3763if test ${ac_cv_prog_ac_ct_CC+y} 3764then : 3765 printf %s "(cached) " >&6 3766else $as_nop 3767 if test -n "$ac_ct_CC"; then 3768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3769else 3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771for as_dir in $PATH 3772do 3773 IFS=$as_save_IFS 3774 case $as_dir in #((( 3775 '') as_dir=./ ;; 3776 */) ;; 3777 *) as_dir=$as_dir/ ;; 3778 esac 3779 for ac_exec_ext in '' $ac_executable_extensions; do 3780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3781 ac_cv_prog_ac_ct_CC="$ac_prog" 3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3783 break 2 3784 fi 3785done 3786 done 3787IFS=$as_save_IFS 3788 3789fi 3790fi 3791ac_ct_CC=$ac_cv_prog_ac_ct_CC 3792if test -n "$ac_ct_CC"; then 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3794printf "%s\n" "$ac_ct_CC" >&6; } 3795else 3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797printf "%s\n" "no" >&6; } 3798fi 3799 3800 3801 test -n "$ac_ct_CC" && break 3802done 3803 3804 if test "x$ac_ct_CC" = x; then 3805 CC="" 3806 else 3807 case $cross_compiling:$ac_tool_warned in 3808yes:) 3809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3810printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3811ac_tool_warned=yes ;; 3812esac 3813 CC=$ac_ct_CC 3814 fi 3815fi 3816 3817fi 3818if test -z "$CC"; then 3819 if test -n "$ac_tool_prefix"; then 3820 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3821set dummy ${ac_tool_prefix}clang; ac_word=$2 3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3823printf %s "checking for $ac_word... " >&6; } 3824if test ${ac_cv_prog_CC+y} 3825then : 3826 printf %s "(cached) " >&6 3827else $as_nop 3828 if test -n "$CC"; then 3829 ac_cv_prog_CC="$CC" # Let the user override the test. 3830else 3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3832for as_dir in $PATH 3833do 3834 IFS=$as_save_IFS 3835 case $as_dir in #((( 3836 '') as_dir=./ ;; 3837 */) ;; 3838 *) as_dir=$as_dir/ ;; 3839 esac 3840 for ac_exec_ext in '' $ac_executable_extensions; do 3841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3842 ac_cv_prog_CC="${ac_tool_prefix}clang" 3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846done 3847 done 3848IFS=$as_save_IFS 3849 3850fi 3851fi 3852CC=$ac_cv_prog_CC 3853if test -n "$CC"; then 3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3855printf "%s\n" "$CC" >&6; } 3856else 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858printf "%s\n" "no" >&6; } 3859fi 3860 3861 3862fi 3863if test -z "$ac_cv_prog_CC"; then 3864 ac_ct_CC=$CC 3865 # Extract the first word of "clang", so it can be a program name with args. 3866set dummy clang; ac_word=$2 3867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3868printf %s "checking for $ac_word... " >&6; } 3869if test ${ac_cv_prog_ac_ct_CC+y} 3870then : 3871 printf %s "(cached) " >&6 3872else $as_nop 3873 if test -n "$ac_ct_CC"; then 3874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3875else 3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3877for as_dir in $PATH 3878do 3879 IFS=$as_save_IFS 3880 case $as_dir in #((( 3881 '') as_dir=./ ;; 3882 */) ;; 3883 *) as_dir=$as_dir/ ;; 3884 esac 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3887 ac_cv_prog_ac_ct_CC="clang" 3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3889 break 2 3890 fi 3891done 3892 done 3893IFS=$as_save_IFS 3894 3895fi 3896fi 3897ac_ct_CC=$ac_cv_prog_ac_ct_CC 3898if test -n "$ac_ct_CC"; then 3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3900printf "%s\n" "$ac_ct_CC" >&6; } 3901else 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3903printf "%s\n" "no" >&6; } 3904fi 3905 3906 if test "x$ac_ct_CC" = x; then 3907 CC="" 3908 else 3909 case $cross_compiling:$ac_tool_warned in 3910yes:) 3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3912printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3913ac_tool_warned=yes ;; 3914esac 3915 CC=$ac_ct_CC 3916 fi 3917else 3918 CC="$ac_cv_prog_CC" 3919fi 3920 3921fi 3922 3923 3924test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3925printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3926as_fn_error $? "no acceptable C compiler found in \$PATH 3927See \`config.log' for more details" "$LINENO" 5; } 3928 3929# Provide some information about the compiler. 3930printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3931set X $ac_compile 3932ac_compiler=$2 3933for ac_option in --version -v -V -qversion -version; do 3934 { { ac_try="$ac_compiler $ac_option >&5" 3935case "(($ac_try" in 3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3937 *) ac_try_echo=$ac_try;; 3938esac 3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3940printf "%s\n" "$ac_try_echo"; } >&5 3941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3942 ac_status=$? 3943 if test -s conftest.err; then 3944 sed '10a\ 3945... rest of stderr output deleted ... 3946 10q' conftest.err >conftest.er1 3947 cat conftest.er1 >&5 3948 fi 3949 rm -f conftest.er1 conftest.err 3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3951 test $ac_status = 0; } 3952done 3953 3954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955/* end confdefs.h. */ 3956 3957int 3958main (void) 3959{ 3960 3961 ; 3962 return 0; 3963} 3964_ACEOF 3965ac_clean_files_save=$ac_clean_files 3966ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3967# Try to create an executable without -o first, disregard a.out. 3968# It will help us diagnose broken compilers, and finding out an intuition 3969# of exeext. 3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3971printf %s "checking whether the C compiler works... " >&6; } 3972ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3973 3974# The possible output files: 3975ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3976 3977ac_rmfiles= 3978for ac_file in $ac_files 3979do 3980 case $ac_file in 3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3982 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3983 esac 3984done 3985rm -f $ac_rmfiles 3986 3987if { { ac_try="$ac_link_default" 3988case "(($ac_try" in 3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3990 *) ac_try_echo=$ac_try;; 3991esac 3992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3993printf "%s\n" "$ac_try_echo"; } >&5 3994 (eval "$ac_link_default") 2>&5 3995 ac_status=$? 3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3997 test $ac_status = 0; } 3998then : 3999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4000# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4001# in a Makefile. We should not override ac_cv_exeext if it was cached, 4002# so that the user can short-circuit this test for compilers unknown to 4003# Autoconf. 4004for ac_file in $ac_files '' 4005do 4006 test -f "$ac_file" || continue 4007 case $ac_file in 4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4009 ;; 4010 [ab].out ) 4011 # We found the default executable, but exeext='' is most 4012 # certainly right. 4013 break;; 4014 *.* ) 4015 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4016 then :; else 4017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4018 fi 4019 # We set ac_cv_exeext here because the later test for it is not 4020 # safe: cross compilers may not add the suffix if given an `-o' 4021 # argument, so we may need to know it at that point already. 4022 # Even if this section looks crufty: it has the advantage of 4023 # actually working. 4024 break;; 4025 * ) 4026 break;; 4027 esac 4028done 4029test "$ac_cv_exeext" = no && ac_cv_exeext= 4030 4031else $as_nop 4032 ac_file='' 4033fi 4034if test -z "$ac_file" 4035then : 4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4037printf "%s\n" "no" >&6; } 4038printf "%s\n" "$as_me: failed program was:" >&5 4039sed 's/^/| /' conftest.$ac_ext >&5 4040 4041{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4042printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4043as_fn_error 77 "C compiler cannot create executables 4044See \`config.log' for more details" "$LINENO" 5; } 4045else $as_nop 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4047printf "%s\n" "yes" >&6; } 4048fi 4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4050printf %s "checking for C compiler default output file name... " >&6; } 4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4052printf "%s\n" "$ac_file" >&6; } 4053ac_exeext=$ac_cv_exeext 4054 4055rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4056ac_clean_files=$ac_clean_files_save 4057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4058printf %s "checking for suffix of executables... " >&6; } 4059if { { ac_try="$ac_link" 4060case "(($ac_try" in 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4062 *) ac_try_echo=$ac_try;; 4063esac 4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4065printf "%s\n" "$ac_try_echo"; } >&5 4066 (eval "$ac_link") 2>&5 4067 ac_status=$? 4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4069 test $ac_status = 0; } 4070then : 4071 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4072# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4073# work properly (i.e., refer to `conftest.exe'), while it won't with 4074# `rm'. 4075for ac_file in conftest.exe conftest conftest.*; do 4076 test -f "$ac_file" || continue 4077 case $ac_file in 4078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4080 break;; 4081 * ) break;; 4082 esac 4083done 4084else $as_nop 4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4086printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4087as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4088See \`config.log' for more details" "$LINENO" 5; } 4089fi 4090rm -f conftest conftest$ac_cv_exeext 4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4092printf "%s\n" "$ac_cv_exeext" >&6; } 4093 4094rm -f conftest.$ac_ext 4095EXEEXT=$ac_cv_exeext 4096ac_exeext=$EXEEXT 4097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099#include <stdio.h> 4100int 4101main (void) 4102{ 4103FILE *f = fopen ("conftest.out", "w"); 4104 return ferror (f) || fclose (f) != 0; 4105 4106 ; 4107 return 0; 4108} 4109_ACEOF 4110ac_clean_files="$ac_clean_files conftest.out" 4111# Check that the compiler produces executables we can run. If not, either 4112# the compiler is broken, or we cross compile. 4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4114printf %s "checking whether we are cross compiling... " >&6; } 4115if test "$cross_compiling" != yes; then 4116 { { ac_try="$ac_link" 4117case "(($ac_try" in 4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4119 *) ac_try_echo=$ac_try;; 4120esac 4121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4122printf "%s\n" "$ac_try_echo"; } >&5 4123 (eval "$ac_link") 2>&5 4124 ac_status=$? 4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4126 test $ac_status = 0; } 4127 if { ac_try='./conftest$ac_cv_exeext' 4128 { { case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131esac 4132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133printf "%s\n" "$ac_try_echo"; } >&5 4134 (eval "$ac_try") 2>&5 4135 ac_status=$? 4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4137 test $ac_status = 0; }; }; then 4138 cross_compiling=no 4139 else 4140 if test "$cross_compiling" = maybe; then 4141 cross_compiling=yes 4142 else 4143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4144printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4145as_fn_error 77 "cannot run C compiled programs. 4146If you meant to cross compile, use \`--host'. 4147See \`config.log' for more details" "$LINENO" 5; } 4148 fi 4149 fi 4150fi 4151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4152printf "%s\n" "$cross_compiling" >&6; } 4153 4154rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4155ac_clean_files=$ac_clean_files_save 4156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4157printf %s "checking for suffix of object files... " >&6; } 4158if test ${ac_cv_objext+y} 4159then : 4160 printf %s "(cached) " >&6 4161else $as_nop 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164 4165int 4166main (void) 4167{ 4168 4169 ; 4170 return 0; 4171} 4172_ACEOF 4173rm -f conftest.o conftest.obj 4174if { { ac_try="$ac_compile" 4175case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178esac 4179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4180printf "%s\n" "$ac_try_echo"; } >&5 4181 (eval "$ac_compile") 2>&5 4182 ac_status=$? 4183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4184 test $ac_status = 0; } 4185then : 4186 for ac_file in conftest.o conftest.obj conftest.*; do 4187 test -f "$ac_file" || continue; 4188 case $ac_file in 4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4191 break;; 4192 esac 4193done 4194else $as_nop 4195 printf "%s\n" "$as_me: failed program was:" >&5 4196sed 's/^/| /' conftest.$ac_ext >&5 4197 4198{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4199printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4200as_fn_error $? "cannot compute suffix of object files: cannot compile 4201See \`config.log' for more details" "$LINENO" 5; } 4202fi 4203rm -f conftest.$ac_cv_objext conftest.$ac_ext 4204fi 4205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4206printf "%s\n" "$ac_cv_objext" >&6; } 4207OBJEXT=$ac_cv_objext 4208ac_objext=$OBJEXT 4209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4210printf %s "checking whether the compiler supports GNU C... " >&6; } 4211if test ${ac_cv_c_compiler_gnu+y} 4212then : 4213 printf %s "(cached) " >&6 4214else $as_nop 4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4216/* end confdefs.h. */ 4217 4218int 4219main (void) 4220{ 4221#ifndef __GNUC__ 4222 choke me 4223#endif 4224 4225 ; 4226 return 0; 4227} 4228_ACEOF 4229if ac_fn_c_try_compile "$LINENO" 4230then : 4231 ac_compiler_gnu=yes 4232else $as_nop 4233 ac_compiler_gnu=no 4234fi 4235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4236ac_cv_c_compiler_gnu=$ac_compiler_gnu 4237 4238fi 4239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4240printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4241ac_compiler_gnu=$ac_cv_c_compiler_gnu 4242 4243if test $ac_compiler_gnu = yes; then 4244 GCC=yes 4245else 4246 GCC= 4247fi 4248ac_test_CFLAGS=${CFLAGS+y} 4249ac_save_CFLAGS=$CFLAGS 4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4251printf %s "checking whether $CC accepts -g... " >&6; } 4252if test ${ac_cv_prog_cc_g+y} 4253then : 4254 printf %s "(cached) " >&6 4255else $as_nop 4256 ac_save_c_werror_flag=$ac_c_werror_flag 4257 ac_c_werror_flag=yes 4258 ac_cv_prog_cc_g=no 4259 CFLAGS="-g" 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262 4263int 4264main (void) 4265{ 4266 4267 ; 4268 return 0; 4269} 4270_ACEOF 4271if ac_fn_c_try_compile "$LINENO" 4272then : 4273 ac_cv_prog_cc_g=yes 4274else $as_nop 4275 CFLAGS="" 4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277/* end confdefs.h. */ 4278 4279int 4280main (void) 4281{ 4282 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287if ac_fn_c_try_compile "$LINENO" 4288then : 4289 4290else $as_nop 4291 ac_c_werror_flag=$ac_save_c_werror_flag 4292 CFLAGS="-g" 4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4294/* end confdefs.h. */ 4295 4296int 4297main (void) 4298{ 4299 4300 ; 4301 return 0; 4302} 4303_ACEOF 4304if ac_fn_c_try_compile "$LINENO" 4305then : 4306 ac_cv_prog_cc_g=yes 4307fi 4308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4309fi 4310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4311fi 4312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4313 ac_c_werror_flag=$ac_save_c_werror_flag 4314fi 4315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4316printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4317if test $ac_test_CFLAGS; then 4318 CFLAGS=$ac_save_CFLAGS 4319elif test $ac_cv_prog_cc_g = yes; then 4320 if test "$GCC" = yes; then 4321 CFLAGS="-g -O2" 4322 else 4323 CFLAGS="-g" 4324 fi 4325else 4326 if test "$GCC" = yes; then 4327 CFLAGS="-O2" 4328 else 4329 CFLAGS= 4330 fi 4331fi 4332ac_prog_cc_stdc=no 4333if test x$ac_prog_cc_stdc = xno 4334then : 4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4336printf %s "checking for $CC option to enable C11 features... " >&6; } 4337if test ${ac_cv_prog_cc_c11+y} 4338then : 4339 printf %s "(cached) " >&6 4340else $as_nop 4341 ac_cv_prog_cc_c11=no 4342ac_save_CC=$CC 4343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344/* end confdefs.h. */ 4345$ac_c_conftest_c11_program 4346_ACEOF 4347for ac_arg in '' -std=gnu11 4348do 4349 CC="$ac_save_CC $ac_arg" 4350 if ac_fn_c_try_compile "$LINENO" 4351then : 4352 ac_cv_prog_cc_c11=$ac_arg 4353fi 4354rm -f core conftest.err conftest.$ac_objext conftest.beam 4355 test "x$ac_cv_prog_cc_c11" != "xno" && break 4356done 4357rm -f conftest.$ac_ext 4358CC=$ac_save_CC 4359fi 4360 4361if test "x$ac_cv_prog_cc_c11" = xno 4362then : 4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4364printf "%s\n" "unsupported" >&6; } 4365else $as_nop 4366 if test "x$ac_cv_prog_cc_c11" = x 4367then : 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4369printf "%s\n" "none needed" >&6; } 4370else $as_nop 4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4372printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4373 CC="$CC $ac_cv_prog_cc_c11" 4374fi 4375 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4376 ac_prog_cc_stdc=c11 4377fi 4378fi 4379if test x$ac_prog_cc_stdc = xno 4380then : 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4382printf %s "checking for $CC option to enable C99 features... " >&6; } 4383if test ${ac_cv_prog_cc_c99+y} 4384then : 4385 printf %s "(cached) " >&6 4386else $as_nop 4387 ac_cv_prog_cc_c99=no 4388ac_save_CC=$CC 4389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390/* end confdefs.h. */ 4391$ac_c_conftest_c99_program 4392_ACEOF 4393for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4394do 4395 CC="$ac_save_CC $ac_arg" 4396 if ac_fn_c_try_compile "$LINENO" 4397then : 4398 ac_cv_prog_cc_c99=$ac_arg 4399fi 4400rm -f core conftest.err conftest.$ac_objext conftest.beam 4401 test "x$ac_cv_prog_cc_c99" != "xno" && break 4402done 4403rm -f conftest.$ac_ext 4404CC=$ac_save_CC 4405fi 4406 4407if test "x$ac_cv_prog_cc_c99" = xno 4408then : 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4410printf "%s\n" "unsupported" >&6; } 4411else $as_nop 4412 if test "x$ac_cv_prog_cc_c99" = x 4413then : 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4415printf "%s\n" "none needed" >&6; } 4416else $as_nop 4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4418printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4419 CC="$CC $ac_cv_prog_cc_c99" 4420fi 4421 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4422 ac_prog_cc_stdc=c99 4423fi 4424fi 4425if test x$ac_prog_cc_stdc = xno 4426then : 4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4428printf %s "checking for $CC option to enable C89 features... " >&6; } 4429if test ${ac_cv_prog_cc_c89+y} 4430then : 4431 printf %s "(cached) " >&6 4432else $as_nop 4433 ac_cv_prog_cc_c89=no 4434ac_save_CC=$CC 4435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437$ac_c_conftest_c89_program 4438_ACEOF 4439for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4440do 4441 CC="$ac_save_CC $ac_arg" 4442 if ac_fn_c_try_compile "$LINENO" 4443then : 4444 ac_cv_prog_cc_c89=$ac_arg 4445fi 4446rm -f core conftest.err conftest.$ac_objext conftest.beam 4447 test "x$ac_cv_prog_cc_c89" != "xno" && break 4448done 4449rm -f conftest.$ac_ext 4450CC=$ac_save_CC 4451fi 4452 4453if test "x$ac_cv_prog_cc_c89" = xno 4454then : 4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4456printf "%s\n" "unsupported" >&6; } 4457else $as_nop 4458 if test "x$ac_cv_prog_cc_c89" = x 4459then : 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4461printf "%s\n" "none needed" >&6; } 4462else $as_nop 4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4464printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4465 CC="$CC $ac_cv_prog_cc_c89" 4466fi 4467 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4468 ac_prog_cc_stdc=c89 4469fi 4470fi 4471 4472ac_ext=c 4473ac_cpp='$CPP $CPPFLAGS' 4474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4476ac_compiler_gnu=$ac_cv_c_compiler_gnu 4477 4478 4479 ac_ext=c 4480ac_cpp='$CPP $CPPFLAGS' 4481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4483ac_compiler_gnu=$ac_cv_c_compiler_gnu 4484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4485printf %s "checking whether $CC understands -c and -o together... " >&6; } 4486if test ${am_cv_prog_cc_c_o+y} 4487then : 4488 printf %s "(cached) " >&6 4489else $as_nop 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491/* end confdefs.h. */ 4492 4493int 4494main (void) 4495{ 4496 4497 ; 4498 return 0; 4499} 4500_ACEOF 4501 # Make sure it works both with $CC and with simple cc. 4502 # Following AC_PROG_CC_C_O, we do the test twice because some 4503 # compilers refuse to overwrite an existing .o file with -o, 4504 # though they will create one. 4505 am_cv_prog_cc_c_o=yes 4506 for am_i in 1 2; do 4507 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4508 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4509 ac_status=$? 4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4511 (exit $ac_status); } \ 4512 && test -f conftest2.$ac_objext; then 4513 : OK 4514 else 4515 am_cv_prog_cc_c_o=no 4516 break 4517 fi 4518 done 4519 rm -f core conftest* 4520 unset am_i 4521fi 4522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4523printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4524if test "$am_cv_prog_cc_c_o" != yes; then 4525 # Losing compiler, so override with the script. 4526 # FIXME: It is wrong to rewrite CC. 4527 # But if we don't then we get into trouble of one sort or another. 4528 # A longer-term fix would be to have automake use am__CC in this case, 4529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4530 CC="$am_aux_dir/compile $CC" 4531fi 4532ac_ext=c 4533ac_cpp='$CPP $CPPFLAGS' 4534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4536ac_compiler_gnu=$ac_cv_c_compiler_gnu 4537 4538 4539depcc="$CC" am_compiler_list= 4540 4541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4542printf %s "checking dependency style of $depcc... " >&6; } 4543if test ${am_cv_CC_dependencies_compiler_type+y} 4544then : 4545 printf %s "(cached) " >&6 4546else $as_nop 4547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4548 # We make a subdir and do the tests there. Otherwise we can end up 4549 # making bogus files that we don't know about and never remove. For 4550 # instance it was reported that on HP-UX the gcc test will end up 4551 # making a dummy file named 'D' -- because '-MD' means "put the output 4552 # in D". 4553 rm -rf conftest.dir 4554 mkdir conftest.dir 4555 # Copy depcomp to subdir because otherwise we won't find it if we're 4556 # using a relative directory. 4557 cp "$am_depcomp" conftest.dir 4558 cd conftest.dir 4559 # We will build objects and dependencies in a subdirectory because 4560 # it helps to detect inapplicable dependency modes. For instance 4561 # both Tru64's cc and ICC support -MD to output dependencies as a 4562 # side effect of compilation, but ICC will put the dependencies in 4563 # the current directory while Tru64 will put them in the object 4564 # directory. 4565 mkdir sub 4566 4567 am_cv_CC_dependencies_compiler_type=none 4568 if test "$am_compiler_list" = ""; then 4569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4570 fi 4571 am__universal=false 4572 case " $depcc " in #( 4573 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4574 esac 4575 4576 for depmode in $am_compiler_list; do 4577 # Setup a source with many dependencies, because some compilers 4578 # like to wrap large dependency lists on column 80 (with \), and 4579 # we should not choose a depcomp mode which is confused by this. 4580 # 4581 # We need to recreate these files for each test, as the compiler may 4582 # overwrite some of them when testing with obscure command lines. 4583 # This happens at least with the AIX C compiler. 4584 : > sub/conftest.c 4585 for i in 1 2 3 4 5 6; do 4586 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4587 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4588 # Solaris 10 /bin/sh. 4589 echo '/* dummy */' > sub/conftst$i.h 4590 done 4591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4592 4593 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4594 # mode. It turns out that the SunPro C++ compiler does not properly 4595 # handle '-M -o', and we need to detect this. Also, some Intel 4596 # versions had trouble with output in subdirs. 4597 am__obj=sub/conftest.${OBJEXT-o} 4598 am__minus_obj="-o $am__obj" 4599 case $depmode in 4600 gcc) 4601 # This depmode causes a compiler race in universal mode. 4602 test "$am__universal" = false || continue 4603 ;; 4604 nosideeffect) 4605 # After this tag, mechanisms are not by side-effect, so they'll 4606 # only be used when explicitly requested. 4607 if test "x$enable_dependency_tracking" = xyes; then 4608 continue 4609 else 4610 break 4611 fi 4612 ;; 4613 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4614 # This compiler won't grok '-c -o', but also, the minuso test has 4615 # not run yet. These depmodes are late enough in the game, and 4616 # so weak that their functioning should not be impacted. 4617 am__obj=conftest.${OBJEXT-o} 4618 am__minus_obj= 4619 ;; 4620 none) break ;; 4621 esac 4622 if depmode=$depmode \ 4623 source=sub/conftest.c object=$am__obj \ 4624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4625 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4626 >/dev/null 2>conftest.err && 4627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4629 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4631 # icc doesn't choke on unknown options, it will just issue warnings 4632 # or remarks (even with -Werror). So we grep stderr for any message 4633 # that says an option was ignored or not supported. 4634 # When given -MP, icc 7.0 and 7.1 complain thusly: 4635 # icc: Command line warning: ignoring option '-M'; no argument required 4636 # The diagnosis changed in icc 8.0: 4637 # icc: Command line remark: option '-MP' not supported 4638 if (grep 'ignoring option' conftest.err || 4639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4640 am_cv_CC_dependencies_compiler_type=$depmode 4641 break 4642 fi 4643 fi 4644 done 4645 4646 cd .. 4647 rm -rf conftest.dir 4648else 4649 am_cv_CC_dependencies_compiler_type=none 4650fi 4651 4652fi 4653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4654printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4655CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4656 4657 if 4658 test "x$enable_dependency_tracking" != xno \ 4659 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4660 am__fastdepCC_TRUE= 4661 am__fastdepCC_FALSE='#' 4662else 4663 am__fastdepCC_TRUE='#' 4664 am__fastdepCC_FALSE= 4665fi 4666 4667 4668 4669# Check whether --enable-largefile was given. 4670if test ${enable_largefile+y} 4671then : 4672 enableval=$enable_largefile; 4673fi 4674 4675if test "$enable_largefile" != no; then 4676 4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4678printf %s "checking for special C compiler options needed for large files... " >&6; } 4679if test ${ac_cv_sys_largefile_CC+y} 4680then : 4681 printf %s "(cached) " >&6 4682else $as_nop 4683 ac_cv_sys_largefile_CC=no 4684 if test "$GCC" != yes; then 4685 ac_save_CC=$CC 4686 while :; do 4687 # IRIX 6.2 and later do not support large files by default, 4688 # so use the C compiler's -n32 option if that helps. 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690/* end confdefs.h. */ 4691#include <sys/types.h> 4692 /* Check that off_t can represent 2**63 - 1 correctly. 4693 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4694 since some C++ compilers masquerading as C compilers 4695 incorrectly reject 9223372036854775807. */ 4696#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4698 && LARGE_OFF_T % 2147483647 == 1) 4699 ? 1 : -1]; 4700int 4701main (void) 4702{ 4703 4704 ; 4705 return 0; 4706} 4707_ACEOF 4708 if ac_fn_c_try_compile "$LINENO" 4709then : 4710 break 4711fi 4712rm -f core conftest.err conftest.$ac_objext conftest.beam 4713 CC="$CC -n32" 4714 if ac_fn_c_try_compile "$LINENO" 4715then : 4716 ac_cv_sys_largefile_CC=' -n32'; break 4717fi 4718rm -f core conftest.err conftest.$ac_objext conftest.beam 4719 break 4720 done 4721 CC=$ac_save_CC 4722 rm -f conftest.$ac_ext 4723 fi 4724fi 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4726printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 4727 if test "$ac_cv_sys_largefile_CC" != no; then 4728 CC=$CC$ac_cv_sys_largefile_CC 4729 fi 4730 4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4732printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4733if test ${ac_cv_sys_file_offset_bits+y} 4734then : 4735 printf %s "(cached) " >&6 4736else $as_nop 4737 while :; do 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739/* end confdefs.h. */ 4740#include <sys/types.h> 4741 /* Check that off_t can represent 2**63 - 1 correctly. 4742 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4743 since some C++ compilers masquerading as C compilers 4744 incorrectly reject 9223372036854775807. */ 4745#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4747 && LARGE_OFF_T % 2147483647 == 1) 4748 ? 1 : -1]; 4749int 4750main (void) 4751{ 4752 4753 ; 4754 return 0; 4755} 4756_ACEOF 4757if ac_fn_c_try_compile "$LINENO" 4758then : 4759 ac_cv_sys_file_offset_bits=no; break 4760fi 4761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4763/* end confdefs.h. */ 4764#define _FILE_OFFSET_BITS 64 4765#include <sys/types.h> 4766 /* Check that off_t can represent 2**63 - 1 correctly. 4767 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4768 since some C++ compilers masquerading as C compilers 4769 incorrectly reject 9223372036854775807. */ 4770#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4772 && LARGE_OFF_T % 2147483647 == 1) 4773 ? 1 : -1]; 4774int 4775main (void) 4776{ 4777 4778 ; 4779 return 0; 4780} 4781_ACEOF 4782if ac_fn_c_try_compile "$LINENO" 4783then : 4784 ac_cv_sys_file_offset_bits=64; break 4785fi 4786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4787 ac_cv_sys_file_offset_bits=unknown 4788 break 4789done 4790fi 4791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4792printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 4793case $ac_cv_sys_file_offset_bits in #( 4794 no | unknown) ;; 4795 *) 4796printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 4797;; 4798esac 4799rm -rf conftest* 4800 if test $ac_cv_sys_file_offset_bits = unknown; then 4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4802printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 4803if test ${ac_cv_sys_large_files+y} 4804then : 4805 printf %s "(cached) " >&6 4806else $as_nop 4807 while :; do 4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4809/* end confdefs.h. */ 4810#include <sys/types.h> 4811 /* Check that off_t can represent 2**63 - 1 correctly. 4812 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4813 since some C++ compilers masquerading as C compilers 4814 incorrectly reject 9223372036854775807. */ 4815#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4817 && LARGE_OFF_T % 2147483647 == 1) 4818 ? 1 : -1]; 4819int 4820main (void) 4821{ 4822 4823 ; 4824 return 0; 4825} 4826_ACEOF 4827if ac_fn_c_try_compile "$LINENO" 4828then : 4829 ac_cv_sys_large_files=no; break 4830fi 4831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4833/* end confdefs.h. */ 4834#define _LARGE_FILES 1 4835#include <sys/types.h> 4836 /* Check that off_t can represent 2**63 - 1 correctly. 4837 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4838 since some C++ compilers masquerading as C compilers 4839 incorrectly reject 9223372036854775807. */ 4840#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4842 && LARGE_OFF_T % 2147483647 == 1) 4843 ? 1 : -1]; 4844int 4845main (void) 4846{ 4847 4848 ; 4849 return 0; 4850} 4851_ACEOF 4852if ac_fn_c_try_compile "$LINENO" 4853then : 4854 ac_cv_sys_large_files=1; break 4855fi 4856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4857 ac_cv_sys_large_files=unknown 4858 break 4859done 4860fi 4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4862printf "%s\n" "$ac_cv_sys_large_files" >&6; } 4863case $ac_cv_sys_large_files in #( 4864 no | unknown) ;; 4865 *) 4866printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 4867;; 4868esac 4869rm -rf conftest* 4870 fi 4871fi 4872 4873 4874# Require xorg-macros: XORG_DEFAULT_OPTIONS 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4888printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4889if test ${ac_cv_c_undeclared_builtin_options+y} 4890then : 4891 printf %s "(cached) " >&6 4892else $as_nop 4893 ac_save_CFLAGS=$CFLAGS 4894 ac_cv_c_undeclared_builtin_options='cannot detect' 4895 for ac_arg in '' -fno-builtin; do 4896 CFLAGS="$ac_save_CFLAGS $ac_arg" 4897 # This test program should *not* compile successfully. 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4899/* end confdefs.h. */ 4900 4901int 4902main (void) 4903{ 4904(void) strchr; 4905 ; 4906 return 0; 4907} 4908_ACEOF 4909if ac_fn_c_try_compile "$LINENO" 4910then : 4911 4912else $as_nop 4913 # This test program should compile successfully. 4914 # No library function is consistently available on 4915 # freestanding implementations, so test against a dummy 4916 # declaration. Include always-available headers on the 4917 # off chance that they somehow elicit warnings. 4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919/* end confdefs.h. */ 4920#include <float.h> 4921#include <limits.h> 4922#include <stdarg.h> 4923#include <stddef.h> 4924extern void ac_decl (int, char *); 4925 4926int 4927main (void) 4928{ 4929(void) ac_decl (0, (char *) 0); 4930 (void) ac_decl; 4931 4932 ; 4933 return 0; 4934} 4935_ACEOF 4936if ac_fn_c_try_compile "$LINENO" 4937then : 4938 if test x"$ac_arg" = x 4939then : 4940 ac_cv_c_undeclared_builtin_options='none needed' 4941else $as_nop 4942 ac_cv_c_undeclared_builtin_options=$ac_arg 4943fi 4944 break 4945fi 4946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4947fi 4948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4949 done 4950 CFLAGS=$ac_save_CFLAGS 4951 4952fi 4953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4954printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4955 case $ac_cv_c_undeclared_builtin_options in #( 4956 'cannot detect') : 4957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4958printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4959as_fn_error $? "cannot make $CC report undeclared builtins 4960See \`config.log' for more details" "$LINENO" 5; } ;; #( 4961 'none needed') : 4962 ac_c_undeclared_builtin_options='' ;; #( 4963 *) : 4964 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4965esac 4966 4967ac_header= ac_cache= 4968for ac_item in $ac_header_c_list 4969do 4970 if test $ac_cache; then 4971 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4972 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4973 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4974 fi 4975 ac_header= ac_cache= 4976 elif test $ac_header; then 4977 ac_cache=$ac_item 4978 else 4979 ac_header=$ac_item 4980 fi 4981done 4982 4983 4984 4985 4986 4987 4988 4989 4990if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4991then : 4992 4993printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4994 4995fi 4996 4997 4998 4999 5000ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5001if test "x$ac_cv_have_decl___clang__" = xyes 5002then : 5003 CLANGCC="yes" 5004else $as_nop 5005 CLANGCC="no" 5006fi 5007ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5008if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5009then : 5010 INTELCC="yes" 5011else $as_nop 5012 INTELCC="no" 5013fi 5014ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5015if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5016then : 5017 SUNCC="yes" 5018else $as_nop 5019 SUNCC="no" 5020fi 5021 5022 5023 5024 5025 5026 5027 5028 5029if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5030 if test -n "$ac_tool_prefix"; then 5031 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5032set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5034printf %s "checking for $ac_word... " >&6; } 5035if test ${ac_cv_path_PKG_CONFIG+y} 5036then : 5037 printf %s "(cached) " >&6 5038else $as_nop 5039 case $PKG_CONFIG in 5040 [\\/]* | ?:[\\/]*) 5041 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5042 ;; 5043 *) 5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5045for as_dir in $PATH 5046do 5047 IFS=$as_save_IFS 5048 case $as_dir in #((( 5049 '') as_dir=./ ;; 5050 */) ;; 5051 *) as_dir=$as_dir/ ;; 5052 esac 5053 for ac_exec_ext in '' $ac_executable_extensions; do 5054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5055 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5057 break 2 5058 fi 5059done 5060 done 5061IFS=$as_save_IFS 5062 5063 ;; 5064esac 5065fi 5066PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5067if test -n "$PKG_CONFIG"; then 5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5069printf "%s\n" "$PKG_CONFIG" >&6; } 5070else 5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5072printf "%s\n" "no" >&6; } 5073fi 5074 5075 5076fi 5077if test -z "$ac_cv_path_PKG_CONFIG"; then 5078 ac_pt_PKG_CONFIG=$PKG_CONFIG 5079 # Extract the first word of "pkg-config", so it can be a program name with args. 5080set dummy pkg-config; ac_word=$2 5081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5082printf %s "checking for $ac_word... " >&6; } 5083if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5084then : 5085 printf %s "(cached) " >&6 5086else $as_nop 5087 case $ac_pt_PKG_CONFIG in 5088 [\\/]* | ?:[\\/]*) 5089 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5090 ;; 5091 *) 5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5093for as_dir in $PATH 5094do 5095 IFS=$as_save_IFS 5096 case $as_dir in #((( 5097 '') as_dir=./ ;; 5098 */) ;; 5099 *) as_dir=$as_dir/ ;; 5100 esac 5101 for ac_exec_ext in '' $ac_executable_extensions; do 5102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5103 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5105 break 2 5106 fi 5107done 5108 done 5109IFS=$as_save_IFS 5110 5111 ;; 5112esac 5113fi 5114ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5115if test -n "$ac_pt_PKG_CONFIG"; then 5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5117printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5118else 5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5120printf "%s\n" "no" >&6; } 5121fi 5122 5123 if test "x$ac_pt_PKG_CONFIG" = x; then 5124 PKG_CONFIG="" 5125 else 5126 case $cross_compiling:$ac_tool_warned in 5127yes:) 5128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5129printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5130ac_tool_warned=yes ;; 5131esac 5132 PKG_CONFIG=$ac_pt_PKG_CONFIG 5133 fi 5134else 5135 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5136fi 5137 5138fi 5139if test -n "$PKG_CONFIG"; then 5140 _pkg_min_version=0.9.0 5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5142printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5143 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5145printf "%s\n" "yes" >&6; } 5146 else 5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5148printf "%s\n" "no" >&6; } 5149 PKG_CONFIG="" 5150 fi 5151fi 5152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5153printf %s "checking for a sed that does not truncate output... " >&6; } 5154if test ${ac_cv_path_SED+y} 5155then : 5156 printf %s "(cached) " >&6 5157else $as_nop 5158 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5159 for ac_i in 1 2 3 4 5 6 7; do 5160 ac_script="$ac_script$as_nl$ac_script" 5161 done 5162 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5163 { ac_script=; unset ac_script;} 5164 if test -z "$SED"; then 5165 ac_path_SED_found=false 5166 # Loop through the user's path and test for each of PROGNAME-LIST 5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5168for as_dir in $PATH 5169do 5170 IFS=$as_save_IFS 5171 case $as_dir in #((( 5172 '') as_dir=./ ;; 5173 */) ;; 5174 *) as_dir=$as_dir/ ;; 5175 esac 5176 for ac_prog in sed gsed 5177 do 5178 for ac_exec_ext in '' $ac_executable_extensions; do 5179 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5180 as_fn_executable_p "$ac_path_SED" || continue 5181# Check for GNU ac_path_SED and select it if it is found. 5182 # Check for GNU $ac_path_SED 5183case `"$ac_path_SED" --version 2>&1` in 5184*GNU*) 5185 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5186*) 5187 ac_count=0 5188 printf %s 0123456789 >"conftest.in" 5189 while : 5190 do 5191 cat "conftest.in" "conftest.in" >"conftest.tmp" 5192 mv "conftest.tmp" "conftest.in" 5193 cp "conftest.in" "conftest.nl" 5194 printf "%s\n" '' >> "conftest.nl" 5195 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5197 as_fn_arith $ac_count + 1 && ac_count=$as_val 5198 if test $ac_count -gt ${ac_path_SED_max-0}; then 5199 # Best one so far, save it but keep looking for a better one 5200 ac_cv_path_SED="$ac_path_SED" 5201 ac_path_SED_max=$ac_count 5202 fi 5203 # 10*(2^10) chars as input seems more than enough 5204 test $ac_count -gt 10 && break 5205 done 5206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5207esac 5208 5209 $ac_path_SED_found && break 3 5210 done 5211 done 5212 done 5213IFS=$as_save_IFS 5214 if test -z "$ac_cv_path_SED"; then 5215 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5216 fi 5217else 5218 ac_cv_path_SED=$SED 5219fi 5220 5221fi 5222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5223printf "%s\n" "$ac_cv_path_SED" >&6; } 5224 SED="$ac_cv_path_SED" 5225 rm -f conftest.sed 5226 5227 5228 5229 5230 5231 5232# Check whether --enable-selective-werror was given. 5233if test ${enable_selective_werror+y} 5234then : 5235 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5236else $as_nop 5237 SELECTIVE_WERROR=yes 5238fi 5239 5240 5241 5242 5243 5244# -v is too short to test reliably with XORG_TESTSET_CFLAG 5245if test "x$SUNCC" = "xyes"; then 5246 BASE_CFLAGS="-v" 5247else 5248 BASE_CFLAGS="" 5249fi 5250 5251# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265xorg_testset_save_CFLAGS="$CFLAGS" 5266 5267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5271if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5272then : 5273 printf %s "(cached) " >&6 5274else $as_nop 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277int i; 5278_ACEOF 5279if ac_fn_c_try_compile "$LINENO" 5280then : 5281 xorg_cv_cc_flag_unknown_warning_option=yes 5282else $as_nop 5283 xorg_cv_cc_flag_unknown_warning_option=no 5284fi 5285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5286fi 5287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291fi 5292 5293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5296 fi 5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5300if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5301then : 5302 printf %s "(cached) " >&6 5303else $as_nop 5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306int i; 5307_ACEOF 5308if ac_fn_c_try_compile "$LINENO" 5309then : 5310 xorg_cv_cc_flag_unused_command_line_argument=yes 5311else $as_nop 5312 xorg_cv_cc_flag_unused_command_line_argument=no 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5315fi 5316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5319 CFLAGS="$xorg_testset_save_CFLAGS" 5320fi 5321 5322found="no" 5323 5324 if test $found = "no" ; then 5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327 fi 5328 5329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5331 fi 5332 5333 CFLAGS="$CFLAGS -Wall" 5334 5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5336printf %s "checking if $CC supports -Wall... " >&6; } 5337 cacheid=xorg_cv_cc_flag__Wall 5338 if eval test \${$cacheid+y} 5339then : 5340 printf %s "(cached) " >&6 5341else $as_nop 5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5343/* end confdefs.h. */ 5344int i; 5345int 5346main (void) 5347{ 5348 5349 ; 5350 return 0; 5351} 5352_ACEOF 5353if ac_fn_c_try_link "$LINENO" 5354then : 5355 eval $cacheid=yes 5356else $as_nop 5357 eval $cacheid=no 5358fi 5359rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5360 conftest$ac_exeext conftest.$ac_ext 5361fi 5362 5363 5364 CFLAGS="$xorg_testset_save_CFLAGS" 5365 5366 eval supported=\$$cacheid 5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5368printf "%s\n" "$supported" >&6; } 5369 if test "$supported" = "yes" ; then 5370 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5371 found="yes" 5372 fi 5373 fi 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389xorg_testset_save_CFLAGS="$CFLAGS" 5390 5391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5395if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5396then : 5397 printf %s "(cached) " >&6 5398else $as_nop 5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5400/* end confdefs.h. */ 5401int i; 5402_ACEOF 5403if ac_fn_c_try_compile "$LINENO" 5404then : 5405 xorg_cv_cc_flag_unknown_warning_option=yes 5406else $as_nop 5407 xorg_cv_cc_flag_unknown_warning_option=no 5408fi 5409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5410fi 5411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5414 CFLAGS="$xorg_testset_save_CFLAGS" 5415fi 5416 5417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5420 fi 5421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5424if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5425then : 5426 printf %s "(cached) " >&6 5427else $as_nop 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429/* end confdefs.h. */ 5430int i; 5431_ACEOF 5432if ac_fn_c_try_compile "$LINENO" 5433then : 5434 xorg_cv_cc_flag_unused_command_line_argument=yes 5435else $as_nop 5436 xorg_cv_cc_flag_unused_command_line_argument=no 5437fi 5438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5439fi 5440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5443 CFLAGS="$xorg_testset_save_CFLAGS" 5444fi 5445 5446found="no" 5447 5448 if test $found = "no" ; then 5449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 fi 5452 5453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5455 fi 5456 5457 CFLAGS="$CFLAGS -Wpointer-arith" 5458 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5460printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5461 cacheid=xorg_cv_cc_flag__Wpointer_arith 5462 if eval test \${$cacheid+y} 5463then : 5464 printf %s "(cached) " >&6 5465else $as_nop 5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467/* end confdefs.h. */ 5468int i; 5469int 5470main (void) 5471{ 5472 5473 ; 5474 return 0; 5475} 5476_ACEOF 5477if ac_fn_c_try_link "$LINENO" 5478then : 5479 eval $cacheid=yes 5480else $as_nop 5481 eval $cacheid=no 5482fi 5483rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5484 conftest$ac_exeext conftest.$ac_ext 5485fi 5486 5487 5488 CFLAGS="$xorg_testset_save_CFLAGS" 5489 5490 eval supported=\$$cacheid 5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5492printf "%s\n" "$supported" >&6; } 5493 if test "$supported" = "yes" ; then 5494 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5495 found="yes" 5496 fi 5497 fi 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513xorg_testset_save_CFLAGS="$CFLAGS" 5514 5515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5519if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5520then : 5521 printf %s "(cached) " >&6 5522else $as_nop 5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5524/* end confdefs.h. */ 5525int i; 5526_ACEOF 5527if ac_fn_c_try_compile "$LINENO" 5528then : 5529 xorg_cv_cc_flag_unknown_warning_option=yes 5530else $as_nop 5531 xorg_cv_cc_flag_unknown_warning_option=no 5532fi 5533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5534fi 5535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5538 CFLAGS="$xorg_testset_save_CFLAGS" 5539fi 5540 5541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5544 fi 5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5548if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5549then : 5550 printf %s "(cached) " >&6 5551else $as_nop 5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553/* end confdefs.h. */ 5554int i; 5555_ACEOF 5556if ac_fn_c_try_compile "$LINENO" 5557then : 5558 xorg_cv_cc_flag_unused_command_line_argument=yes 5559else $as_nop 5560 xorg_cv_cc_flag_unused_command_line_argument=no 5561fi 5562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5563fi 5564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5567 CFLAGS="$xorg_testset_save_CFLAGS" 5568fi 5569 5570found="no" 5571 5572 if test $found = "no" ; then 5573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5575 fi 5576 5577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5579 fi 5580 5581 CFLAGS="$CFLAGS -Wmissing-declarations" 5582 5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5584printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5585 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5586 if eval test \${$cacheid+y} 5587then : 5588 printf %s "(cached) " >&6 5589else $as_nop 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592int i; 5593int 5594main (void) 5595{ 5596 5597 ; 5598 return 0; 5599} 5600_ACEOF 5601if ac_fn_c_try_link "$LINENO" 5602then : 5603 eval $cacheid=yes 5604else $as_nop 5605 eval $cacheid=no 5606fi 5607rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5608 conftest$ac_exeext conftest.$ac_ext 5609fi 5610 5611 5612 CFLAGS="$xorg_testset_save_CFLAGS" 5613 5614 eval supported=\$$cacheid 5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5616printf "%s\n" "$supported" >&6; } 5617 if test "$supported" = "yes" ; then 5618 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5619 found="yes" 5620 fi 5621 fi 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637xorg_testset_save_CFLAGS="$CFLAGS" 5638 5639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5643if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5644then : 5645 printf %s "(cached) " >&6 5646else $as_nop 5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5648/* end confdefs.h. */ 5649int i; 5650_ACEOF 5651if ac_fn_c_try_compile "$LINENO" 5652then : 5653 xorg_cv_cc_flag_unknown_warning_option=yes 5654else $as_nop 5655 xorg_cv_cc_flag_unknown_warning_option=no 5656fi 5657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5658fi 5659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5662 CFLAGS="$xorg_testset_save_CFLAGS" 5663fi 5664 5665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5668 fi 5669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5672if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5673then : 5674 printf %s "(cached) " >&6 5675else $as_nop 5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5677/* end confdefs.h. */ 5678int i; 5679_ACEOF 5680if ac_fn_c_try_compile "$LINENO" 5681then : 5682 xorg_cv_cc_flag_unused_command_line_argument=yes 5683else $as_nop 5684 xorg_cv_cc_flag_unused_command_line_argument=no 5685fi 5686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5687fi 5688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5689printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5691 CFLAGS="$xorg_testset_save_CFLAGS" 5692fi 5693 5694found="no" 5695 5696 if test $found = "no" ; then 5697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5699 fi 5700 5701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5703 fi 5704 5705 CFLAGS="$CFLAGS -Wformat=2" 5706 5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5708printf %s "checking if $CC supports -Wformat=2... " >&6; } 5709 cacheid=xorg_cv_cc_flag__Wformat_2 5710 if eval test \${$cacheid+y} 5711then : 5712 printf %s "(cached) " >&6 5713else $as_nop 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5715/* end confdefs.h. */ 5716int i; 5717int 5718main (void) 5719{ 5720 5721 ; 5722 return 0; 5723} 5724_ACEOF 5725if ac_fn_c_try_link "$LINENO" 5726then : 5727 eval $cacheid=yes 5728else $as_nop 5729 eval $cacheid=no 5730fi 5731rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5732 conftest$ac_exeext conftest.$ac_ext 5733fi 5734 5735 5736 CFLAGS="$xorg_testset_save_CFLAGS" 5737 5738 eval supported=\$$cacheid 5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5740printf "%s\n" "$supported" >&6; } 5741 if test "$supported" = "yes" ; then 5742 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5743 found="yes" 5744 fi 5745 fi 5746 5747 if test $found = "no" ; then 5748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5750 fi 5751 5752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5754 fi 5755 5756 CFLAGS="$CFLAGS -Wformat" 5757 5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5759printf %s "checking if $CC supports -Wformat... " >&6; } 5760 cacheid=xorg_cv_cc_flag__Wformat 5761 if eval test \${$cacheid+y} 5762then : 5763 printf %s "(cached) " >&6 5764else $as_nop 5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766/* end confdefs.h. */ 5767int i; 5768int 5769main (void) 5770{ 5771 5772 ; 5773 return 0; 5774} 5775_ACEOF 5776if ac_fn_c_try_link "$LINENO" 5777then : 5778 eval $cacheid=yes 5779else $as_nop 5780 eval $cacheid=no 5781fi 5782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5783 conftest$ac_exeext conftest.$ac_ext 5784fi 5785 5786 5787 CFLAGS="$xorg_testset_save_CFLAGS" 5788 5789 eval supported=\$$cacheid 5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5791printf "%s\n" "$supported" >&6; } 5792 if test "$supported" = "yes" ; then 5793 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5794 found="yes" 5795 fi 5796 fi 5797 5798 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5820if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5821then : 5822 printf %s "(cached) " >&6 5823else $as_nop 5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5825/* end confdefs.h. */ 5826int i; 5827_ACEOF 5828if ac_fn_c_try_compile "$LINENO" 5829then : 5830 xorg_cv_cc_flag_unknown_warning_option=yes 5831else $as_nop 5832 xorg_cv_cc_flag_unknown_warning_option=no 5833fi 5834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5835fi 5836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5839 CFLAGS="$xorg_testset_save_CFLAGS" 5840fi 5841 5842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5845 fi 5846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5849if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5850then : 5851 printf %s "(cached) " >&6 5852else $as_nop 5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5854/* end confdefs.h. */ 5855int i; 5856_ACEOF 5857if ac_fn_c_try_compile "$LINENO" 5858then : 5859 xorg_cv_cc_flag_unused_command_line_argument=yes 5860else $as_nop 5861 xorg_cv_cc_flag_unused_command_line_argument=no 5862fi 5863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5864fi 5865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5866printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5868 CFLAGS="$xorg_testset_save_CFLAGS" 5869fi 5870 5871found="no" 5872 5873 if test $found = "no" ; then 5874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5876 fi 5877 5878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5880 fi 5881 5882 CFLAGS="$CFLAGS -Wstrict-prototypes" 5883 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5885printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5886 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5887 if eval test \${$cacheid+y} 5888then : 5889 printf %s "(cached) " >&6 5890else $as_nop 5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892/* end confdefs.h. */ 5893int i; 5894int 5895main (void) 5896{ 5897 5898 ; 5899 return 0; 5900} 5901_ACEOF 5902if ac_fn_c_try_link "$LINENO" 5903then : 5904 eval $cacheid=yes 5905else $as_nop 5906 eval $cacheid=no 5907fi 5908rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5909 conftest$ac_exeext conftest.$ac_ext 5910fi 5911 5912 5913 CFLAGS="$xorg_testset_save_CFLAGS" 5914 5915 eval supported=\$$cacheid 5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5917printf "%s\n" "$supported" >&6; } 5918 if test "$supported" = "yes" ; then 5919 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5920 found="yes" 5921 fi 5922 fi 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938xorg_testset_save_CFLAGS="$CFLAGS" 5939 5940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5944if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5945then : 5946 printf %s "(cached) " >&6 5947else $as_nop 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5949/* end confdefs.h. */ 5950int i; 5951_ACEOF 5952if ac_fn_c_try_compile "$LINENO" 5953then : 5954 xorg_cv_cc_flag_unknown_warning_option=yes 5955else $as_nop 5956 xorg_cv_cc_flag_unknown_warning_option=no 5957fi 5958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5959fi 5960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964fi 5965 5966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5969 fi 5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5973if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5974then : 5975 printf %s "(cached) " >&6 5976else $as_nop 5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979int i; 5980_ACEOF 5981if ac_fn_c_try_compile "$LINENO" 5982then : 5983 xorg_cv_cc_flag_unused_command_line_argument=yes 5984else $as_nop 5985 xorg_cv_cc_flag_unused_command_line_argument=no 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5988fi 5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5992 CFLAGS="$xorg_testset_save_CFLAGS" 5993fi 5994 5995found="no" 5996 5997 if test $found = "no" ; then 5998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 fi 6001 6002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6004 fi 6005 6006 CFLAGS="$CFLAGS -Wmissing-prototypes" 6007 6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6009printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6010 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6011 if eval test \${$cacheid+y} 6012then : 6013 printf %s "(cached) " >&6 6014else $as_nop 6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6016/* end confdefs.h. */ 6017int i; 6018int 6019main (void) 6020{ 6021 6022 ; 6023 return 0; 6024} 6025_ACEOF 6026if ac_fn_c_try_link "$LINENO" 6027then : 6028 eval $cacheid=yes 6029else $as_nop 6030 eval $cacheid=no 6031fi 6032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6033 conftest$ac_exeext conftest.$ac_ext 6034fi 6035 6036 6037 CFLAGS="$xorg_testset_save_CFLAGS" 6038 6039 eval supported=\$$cacheid 6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6041printf "%s\n" "$supported" >&6; } 6042 if test "$supported" = "yes" ; then 6043 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6044 found="yes" 6045 fi 6046 fi 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062xorg_testset_save_CFLAGS="$CFLAGS" 6063 6064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6067printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6068if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6069then : 6070 printf %s "(cached) " >&6 6071else $as_nop 6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6073/* end confdefs.h. */ 6074int i; 6075_ACEOF 6076if ac_fn_c_try_compile "$LINENO" 6077then : 6078 xorg_cv_cc_flag_unknown_warning_option=yes 6079else $as_nop 6080 xorg_cv_cc_flag_unknown_warning_option=no 6081fi 6082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6083fi 6084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6087 CFLAGS="$xorg_testset_save_CFLAGS" 6088fi 6089 6090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6093 fi 6094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6097if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6098then : 6099 printf %s "(cached) " >&6 6100else $as_nop 6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6102/* end confdefs.h. */ 6103int i; 6104_ACEOF 6105if ac_fn_c_try_compile "$LINENO" 6106then : 6107 xorg_cv_cc_flag_unused_command_line_argument=yes 6108else $as_nop 6109 xorg_cv_cc_flag_unused_command_line_argument=no 6110fi 6111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6112fi 6113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6114printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6116 CFLAGS="$xorg_testset_save_CFLAGS" 6117fi 6118 6119found="no" 6120 6121 if test $found = "no" ; then 6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6124 fi 6125 6126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6128 fi 6129 6130 CFLAGS="$CFLAGS -Wnested-externs" 6131 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6133printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6134 cacheid=xorg_cv_cc_flag__Wnested_externs 6135 if eval test \${$cacheid+y} 6136then : 6137 printf %s "(cached) " >&6 6138else $as_nop 6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6140/* end confdefs.h. */ 6141int i; 6142int 6143main (void) 6144{ 6145 6146 ; 6147 return 0; 6148} 6149_ACEOF 6150if ac_fn_c_try_link "$LINENO" 6151then : 6152 eval $cacheid=yes 6153else $as_nop 6154 eval $cacheid=no 6155fi 6156rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6157 conftest$ac_exeext conftest.$ac_ext 6158fi 6159 6160 6161 CFLAGS="$xorg_testset_save_CFLAGS" 6162 6163 eval supported=\$$cacheid 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6165printf "%s\n" "$supported" >&6; } 6166 if test "$supported" = "yes" ; then 6167 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6168 found="yes" 6169 fi 6170 fi 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186xorg_testset_save_CFLAGS="$CFLAGS" 6187 6188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6191printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6192if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6193then : 6194 printf %s "(cached) " >&6 6195else $as_nop 6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6197/* end confdefs.h. */ 6198int i; 6199_ACEOF 6200if ac_fn_c_try_compile "$LINENO" 6201then : 6202 xorg_cv_cc_flag_unknown_warning_option=yes 6203else $as_nop 6204 xorg_cv_cc_flag_unknown_warning_option=no 6205fi 6206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6207fi 6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6209printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6211 CFLAGS="$xorg_testset_save_CFLAGS" 6212fi 6213 6214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6217 fi 6218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6220printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6221if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6222then : 6223 printf %s "(cached) " >&6 6224else $as_nop 6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226/* end confdefs.h. */ 6227int i; 6228_ACEOF 6229if ac_fn_c_try_compile "$LINENO" 6230then : 6231 xorg_cv_cc_flag_unused_command_line_argument=yes 6232else $as_nop 6233 xorg_cv_cc_flag_unused_command_line_argument=no 6234fi 6235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6236fi 6237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6240 CFLAGS="$xorg_testset_save_CFLAGS" 6241fi 6242 6243found="no" 6244 6245 if test $found = "no" ; then 6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6248 fi 6249 6250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6252 fi 6253 6254 CFLAGS="$CFLAGS -Wbad-function-cast" 6255 6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6257printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6258 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6259 if eval test \${$cacheid+y} 6260then : 6261 printf %s "(cached) " >&6 6262else $as_nop 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265int i; 6266int 6267main (void) 6268{ 6269 6270 ; 6271 return 0; 6272} 6273_ACEOF 6274if ac_fn_c_try_link "$LINENO" 6275then : 6276 eval $cacheid=yes 6277else $as_nop 6278 eval $cacheid=no 6279fi 6280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6281 conftest$ac_exeext conftest.$ac_ext 6282fi 6283 6284 6285 CFLAGS="$xorg_testset_save_CFLAGS" 6286 6287 eval supported=\$$cacheid 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6289printf "%s\n" "$supported" >&6; } 6290 if test "$supported" = "yes" ; then 6291 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6292 found="yes" 6293 fi 6294 fi 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310xorg_testset_save_CFLAGS="$CFLAGS" 6311 6312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6315printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6316if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6317then : 6318 printf %s "(cached) " >&6 6319else $as_nop 6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6321/* end confdefs.h. */ 6322int i; 6323_ACEOF 6324if ac_fn_c_try_compile "$LINENO" 6325then : 6326 xorg_cv_cc_flag_unknown_warning_option=yes 6327else $as_nop 6328 xorg_cv_cc_flag_unknown_warning_option=no 6329fi 6330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6331fi 6332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6333printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6335 CFLAGS="$xorg_testset_save_CFLAGS" 6336fi 6337 6338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6341 fi 6342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6344printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6345if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6346then : 6347 printf %s "(cached) " >&6 6348else $as_nop 6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6350/* end confdefs.h. */ 6351int i; 6352_ACEOF 6353if ac_fn_c_try_compile "$LINENO" 6354then : 6355 xorg_cv_cc_flag_unused_command_line_argument=yes 6356else $as_nop 6357 xorg_cv_cc_flag_unused_command_line_argument=no 6358fi 6359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6360fi 6361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6364 CFLAGS="$xorg_testset_save_CFLAGS" 6365fi 6366 6367found="no" 6368 6369 if test $found = "no" ; then 6370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6372 fi 6373 6374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6376 fi 6377 6378 CFLAGS="$CFLAGS -Wold-style-definition" 6379 6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6381printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6382 cacheid=xorg_cv_cc_flag__Wold_style_definition 6383 if eval test \${$cacheid+y} 6384then : 6385 printf %s "(cached) " >&6 6386else $as_nop 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388/* end confdefs.h. */ 6389int i; 6390int 6391main (void) 6392{ 6393 6394 ; 6395 return 0; 6396} 6397_ACEOF 6398if ac_fn_c_try_link "$LINENO" 6399then : 6400 eval $cacheid=yes 6401else $as_nop 6402 eval $cacheid=no 6403fi 6404rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6405 conftest$ac_exeext conftest.$ac_ext 6406fi 6407 6408 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410 6411 eval supported=\$$cacheid 6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6413printf "%s\n" "$supported" >&6; } 6414 if test "$supported" = "yes" ; then 6415 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6416 found="yes" 6417 fi 6418 fi 6419 6420 if test $found = "no" ; then 6421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6423 fi 6424 6425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6427 fi 6428 6429 CFLAGS="$CFLAGS -fd" 6430 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6432printf %s "checking if $CC supports -fd... " >&6; } 6433 cacheid=xorg_cv_cc_flag__fd 6434 if eval test \${$cacheid+y} 6435then : 6436 printf %s "(cached) " >&6 6437else $as_nop 6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6439/* end confdefs.h. */ 6440int i; 6441int 6442main (void) 6443{ 6444 6445 ; 6446 return 0; 6447} 6448_ACEOF 6449if ac_fn_c_try_link "$LINENO" 6450then : 6451 eval $cacheid=yes 6452else $as_nop 6453 eval $cacheid=no 6454fi 6455rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6456 conftest$ac_exeext conftest.$ac_ext 6457fi 6458 6459 6460 CFLAGS="$xorg_testset_save_CFLAGS" 6461 6462 eval supported=\$$cacheid 6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6464printf "%s\n" "$supported" >&6; } 6465 if test "$supported" = "yes" ; then 6466 BASE_CFLAGS="$BASE_CFLAGS -fd" 6467 found="yes" 6468 fi 6469 fi 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485xorg_testset_save_CFLAGS="$CFLAGS" 6486 6487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6491if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6492then : 6493 printf %s "(cached) " >&6 6494else $as_nop 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6496/* end confdefs.h. */ 6497int i; 6498_ACEOF 6499if ac_fn_c_try_compile "$LINENO" 6500then : 6501 xorg_cv_cc_flag_unknown_warning_option=yes 6502else $as_nop 6503 xorg_cv_cc_flag_unknown_warning_option=no 6504fi 6505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6506fi 6507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6508printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6510 CFLAGS="$xorg_testset_save_CFLAGS" 6511fi 6512 6513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6516 fi 6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6519printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6520if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6521then : 6522 printf %s "(cached) " >&6 6523else $as_nop 6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6525/* end confdefs.h. */ 6526int i; 6527_ACEOF 6528if ac_fn_c_try_compile "$LINENO" 6529then : 6530 xorg_cv_cc_flag_unused_command_line_argument=yes 6531else $as_nop 6532 xorg_cv_cc_flag_unused_command_line_argument=no 6533fi 6534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6535fi 6536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540fi 6541 6542found="no" 6543 6544 if test $found = "no" ; then 6545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6547 fi 6548 6549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6551 fi 6552 6553 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6554 6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6556printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6557 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6558 if eval test \${$cacheid+y} 6559then : 6560 printf %s "(cached) " >&6 6561else $as_nop 6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563/* end confdefs.h. */ 6564int i; 6565int 6566main (void) 6567{ 6568 6569 ; 6570 return 0; 6571} 6572_ACEOF 6573if ac_fn_c_try_link "$LINENO" 6574then : 6575 eval $cacheid=yes 6576else $as_nop 6577 eval $cacheid=no 6578fi 6579rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6580 conftest$ac_exeext conftest.$ac_ext 6581fi 6582 6583 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6585 6586 eval supported=\$$cacheid 6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6588printf "%s\n" "$supported" >&6; } 6589 if test "$supported" = "yes" ; then 6590 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6591 found="yes" 6592 fi 6593 fi 6594 6595 6596 6597 6598 6599# This chunk adds additional warnings that could catch undesired effects. 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613xorg_testset_save_CFLAGS="$CFLAGS" 6614 6615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6619if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6620then : 6621 printf %s "(cached) " >&6 6622else $as_nop 6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6624/* end confdefs.h. */ 6625int i; 6626_ACEOF 6627if ac_fn_c_try_compile "$LINENO" 6628then : 6629 xorg_cv_cc_flag_unknown_warning_option=yes 6630else $as_nop 6631 xorg_cv_cc_flag_unknown_warning_option=no 6632fi 6633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6634fi 6635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639fi 6640 6641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6644 fi 6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6649then : 6650 printf %s "(cached) " >&6 6651else $as_nop 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653/* end confdefs.h. */ 6654int i; 6655_ACEOF 6656if ac_fn_c_try_compile "$LINENO" 6657then : 6658 xorg_cv_cc_flag_unused_command_line_argument=yes 6659else $as_nop 6660 xorg_cv_cc_flag_unused_command_line_argument=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6663fi 6664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668fi 6669 6670found="no" 6671 6672 if test $found = "no" ; then 6673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6675 fi 6676 6677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6679 fi 6680 6681 CFLAGS="$CFLAGS -Wunused" 6682 6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6684printf %s "checking if $CC supports -Wunused... " >&6; } 6685 cacheid=xorg_cv_cc_flag__Wunused 6686 if eval test \${$cacheid+y} 6687then : 6688 printf %s "(cached) " >&6 6689else $as_nop 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691/* end confdefs.h. */ 6692int i; 6693int 6694main (void) 6695{ 6696 6697 ; 6698 return 0; 6699} 6700_ACEOF 6701if ac_fn_c_try_link "$LINENO" 6702then : 6703 eval $cacheid=yes 6704else $as_nop 6705 eval $cacheid=no 6706fi 6707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6708 conftest$ac_exeext conftest.$ac_ext 6709fi 6710 6711 6712 CFLAGS="$xorg_testset_save_CFLAGS" 6713 6714 eval supported=\$$cacheid 6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6716printf "%s\n" "$supported" >&6; } 6717 if test "$supported" = "yes" ; then 6718 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6719 found="yes" 6720 fi 6721 fi 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737xorg_testset_save_CFLAGS="$CFLAGS" 6738 6739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6743if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6744then : 6745 printf %s "(cached) " >&6 6746else $as_nop 6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6748/* end confdefs.h. */ 6749int i; 6750_ACEOF 6751if ac_fn_c_try_compile "$LINENO" 6752then : 6753 xorg_cv_cc_flag_unknown_warning_option=yes 6754else $as_nop 6755 xorg_cv_cc_flag_unknown_warning_option=no 6756fi 6757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6758fi 6759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6762 CFLAGS="$xorg_testset_save_CFLAGS" 6763fi 6764 6765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6768 fi 6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6772if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6773then : 6774 printf %s "(cached) " >&6 6775else $as_nop 6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6777/* end confdefs.h. */ 6778int i; 6779_ACEOF 6780if ac_fn_c_try_compile "$LINENO" 6781then : 6782 xorg_cv_cc_flag_unused_command_line_argument=yes 6783else $as_nop 6784 xorg_cv_cc_flag_unused_command_line_argument=no 6785fi 6786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6787fi 6788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6791 CFLAGS="$xorg_testset_save_CFLAGS" 6792fi 6793 6794found="no" 6795 6796 if test $found = "no" ; then 6797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6799 fi 6800 6801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6803 fi 6804 6805 CFLAGS="$CFLAGS -Wuninitialized" 6806 6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6808printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6809 cacheid=xorg_cv_cc_flag__Wuninitialized 6810 if eval test \${$cacheid+y} 6811then : 6812 printf %s "(cached) " >&6 6813else $as_nop 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817int 6818main (void) 6819{ 6820 6821 ; 6822 return 0; 6823} 6824_ACEOF 6825if ac_fn_c_try_link "$LINENO" 6826then : 6827 eval $cacheid=yes 6828else $as_nop 6829 eval $cacheid=no 6830fi 6831rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6832 conftest$ac_exeext conftest.$ac_ext 6833fi 6834 6835 6836 CFLAGS="$xorg_testset_save_CFLAGS" 6837 6838 eval supported=\$$cacheid 6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6840printf "%s\n" "$supported" >&6; } 6841 if test "$supported" = "yes" ; then 6842 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6843 found="yes" 6844 fi 6845 fi 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861xorg_testset_save_CFLAGS="$CFLAGS" 6862 6863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6867if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6868then : 6869 printf %s "(cached) " >&6 6870else $as_nop 6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873int i; 6874_ACEOF 6875if ac_fn_c_try_compile "$LINENO" 6876then : 6877 xorg_cv_cc_flag_unknown_warning_option=yes 6878else $as_nop 6879 xorg_cv_cc_flag_unknown_warning_option=no 6880fi 6881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6882fi 6883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6886 CFLAGS="$xorg_testset_save_CFLAGS" 6887fi 6888 6889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6892 fi 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6896if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6897then : 6898 printf %s "(cached) " >&6 6899else $as_nop 6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6901/* end confdefs.h. */ 6902int i; 6903_ACEOF 6904if ac_fn_c_try_compile "$LINENO" 6905then : 6906 xorg_cv_cc_flag_unused_command_line_argument=yes 6907else $as_nop 6908 xorg_cv_cc_flag_unused_command_line_argument=no 6909fi 6910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6911fi 6912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6915 CFLAGS="$xorg_testset_save_CFLAGS" 6916fi 6917 6918found="no" 6919 6920 if test $found = "no" ; then 6921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6923 fi 6924 6925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6927 fi 6928 6929 CFLAGS="$CFLAGS -Wshadow" 6930 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6932printf %s "checking if $CC supports -Wshadow... " >&6; } 6933 cacheid=xorg_cv_cc_flag__Wshadow 6934 if eval test \${$cacheid+y} 6935then : 6936 printf %s "(cached) " >&6 6937else $as_nop 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939/* end confdefs.h. */ 6940int i; 6941int 6942main (void) 6943{ 6944 6945 ; 6946 return 0; 6947} 6948_ACEOF 6949if ac_fn_c_try_link "$LINENO" 6950then : 6951 eval $cacheid=yes 6952else $as_nop 6953 eval $cacheid=no 6954fi 6955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6956 conftest$ac_exeext conftest.$ac_ext 6957fi 6958 6959 6960 CFLAGS="$xorg_testset_save_CFLAGS" 6961 6962 eval supported=\$$cacheid 6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6964printf "%s\n" "$supported" >&6; } 6965 if test "$supported" = "yes" ; then 6966 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6967 found="yes" 6968 fi 6969 fi 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985xorg_testset_save_CFLAGS="$CFLAGS" 6986 6987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6991if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6992then : 6993 printf %s "(cached) " >&6 6994else $as_nop 6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996/* end confdefs.h. */ 6997int i; 6998_ACEOF 6999if ac_fn_c_try_compile "$LINENO" 7000then : 7001 xorg_cv_cc_flag_unknown_warning_option=yes 7002else $as_nop 7003 xorg_cv_cc_flag_unknown_warning_option=no 7004fi 7005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7006fi 7007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7010 CFLAGS="$xorg_testset_save_CFLAGS" 7011fi 7012 7013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7016 fi 7017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7020if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7021then : 7022 printf %s "(cached) " >&6 7023else $as_nop 7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025/* end confdefs.h. */ 7026int i; 7027_ACEOF 7028if ac_fn_c_try_compile "$LINENO" 7029then : 7030 xorg_cv_cc_flag_unused_command_line_argument=yes 7031else $as_nop 7032 xorg_cv_cc_flag_unused_command_line_argument=no 7033fi 7034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7035fi 7036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7039 CFLAGS="$xorg_testset_save_CFLAGS" 7040fi 7041 7042found="no" 7043 7044 if test $found = "no" ; then 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 fi 7048 7049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7051 fi 7052 7053 CFLAGS="$CFLAGS -Wmissing-noreturn" 7054 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7056printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7057 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7058 if eval test \${$cacheid+y} 7059then : 7060 printf %s "(cached) " >&6 7061else $as_nop 7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064int i; 7065int 7066main (void) 7067{ 7068 7069 ; 7070 return 0; 7071} 7072_ACEOF 7073if ac_fn_c_try_link "$LINENO" 7074then : 7075 eval $cacheid=yes 7076else $as_nop 7077 eval $cacheid=no 7078fi 7079rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7080 conftest$ac_exeext conftest.$ac_ext 7081fi 7082 7083 7084 CFLAGS="$xorg_testset_save_CFLAGS" 7085 7086 eval supported=\$$cacheid 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7088printf "%s\n" "$supported" >&6; } 7089 if test "$supported" = "yes" ; then 7090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7091 found="yes" 7092 fi 7093 fi 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109xorg_testset_save_CFLAGS="$CFLAGS" 7110 7111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7115if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7116then : 7117 printf %s "(cached) " >&6 7118else $as_nop 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120/* end confdefs.h. */ 7121int i; 7122_ACEOF 7123if ac_fn_c_try_compile "$LINENO" 7124then : 7125 xorg_cv_cc_flag_unknown_warning_option=yes 7126else $as_nop 7127 xorg_cv_cc_flag_unknown_warning_option=no 7128fi 7129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7130fi 7131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7134 CFLAGS="$xorg_testset_save_CFLAGS" 7135fi 7136 7137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7140 fi 7141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7144if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7145then : 7146 printf %s "(cached) " >&6 7147else $as_nop 7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149/* end confdefs.h. */ 7150int i; 7151_ACEOF 7152if ac_fn_c_try_compile "$LINENO" 7153then : 7154 xorg_cv_cc_flag_unused_command_line_argument=yes 7155else $as_nop 7156 xorg_cv_cc_flag_unused_command_line_argument=no 7157fi 7158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7159fi 7160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7163 CFLAGS="$xorg_testset_save_CFLAGS" 7164fi 7165 7166found="no" 7167 7168 if test $found = "no" ; then 7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 fi 7172 7173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7175 fi 7176 7177 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7178 7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7180printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7181 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7182 if eval test \${$cacheid+y} 7183then : 7184 printf %s "(cached) " >&6 7185else $as_nop 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188int i; 7189int 7190main (void) 7191{ 7192 7193 ; 7194 return 0; 7195} 7196_ACEOF 7197if ac_fn_c_try_link "$LINENO" 7198then : 7199 eval $cacheid=yes 7200else $as_nop 7201 eval $cacheid=no 7202fi 7203rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7204 conftest$ac_exeext conftest.$ac_ext 7205fi 7206 7207 7208 CFLAGS="$xorg_testset_save_CFLAGS" 7209 7210 eval supported=\$$cacheid 7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7212printf "%s\n" "$supported" >&6; } 7213 if test "$supported" = "yes" ; then 7214 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7215 found="yes" 7216 fi 7217 fi 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233xorg_testset_save_CFLAGS="$CFLAGS" 7234 7235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7239if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7240then : 7241 printf %s "(cached) " >&6 7242else $as_nop 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244/* end confdefs.h. */ 7245int i; 7246_ACEOF 7247if ac_fn_c_try_compile "$LINENO" 7248then : 7249 xorg_cv_cc_flag_unknown_warning_option=yes 7250else $as_nop 7251 xorg_cv_cc_flag_unknown_warning_option=no 7252fi 7253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7254fi 7255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7258 CFLAGS="$xorg_testset_save_CFLAGS" 7259fi 7260 7261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7264 fi 7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7269then : 7270 printf %s "(cached) " >&6 7271else $as_nop 7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273/* end confdefs.h. */ 7274int i; 7275_ACEOF 7276if ac_fn_c_try_compile "$LINENO" 7277then : 7278 xorg_cv_cc_flag_unused_command_line_argument=yes 7279else $as_nop 7280 xorg_cv_cc_flag_unused_command_line_argument=no 7281fi 7282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7283fi 7284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7287 CFLAGS="$xorg_testset_save_CFLAGS" 7288fi 7289 7290found="no" 7291 7292 if test $found = "no" ; then 7293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7295 fi 7296 7297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7299 fi 7300 7301 CFLAGS="$CFLAGS -Wredundant-decls" 7302 7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7304printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7305 cacheid=xorg_cv_cc_flag__Wredundant_decls 7306 if eval test \${$cacheid+y} 7307then : 7308 printf %s "(cached) " >&6 7309else $as_nop 7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7311/* end confdefs.h. */ 7312int i; 7313int 7314main (void) 7315{ 7316 7317 ; 7318 return 0; 7319} 7320_ACEOF 7321if ac_fn_c_try_link "$LINENO" 7322then : 7323 eval $cacheid=yes 7324else $as_nop 7325 eval $cacheid=no 7326fi 7327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7328 conftest$ac_exeext conftest.$ac_ext 7329fi 7330 7331 7332 CFLAGS="$xorg_testset_save_CFLAGS" 7333 7334 eval supported=\$$cacheid 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7336printf "%s\n" "$supported" >&6; } 7337 if test "$supported" = "yes" ; then 7338 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7339 found="yes" 7340 fi 7341 fi 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357xorg_testset_save_CFLAGS="$CFLAGS" 7358 7359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7363if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7364then : 7365 printf %s "(cached) " >&6 7366else $as_nop 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368/* end confdefs.h. */ 7369int i; 7370_ACEOF 7371if ac_fn_c_try_compile "$LINENO" 7372then : 7373 xorg_cv_cc_flag_unknown_warning_option=yes 7374else $as_nop 7375 xorg_cv_cc_flag_unknown_warning_option=no 7376fi 7377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7378fi 7379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7382 CFLAGS="$xorg_testset_save_CFLAGS" 7383fi 7384 7385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7388 fi 7389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7392if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7393then : 7394 printf %s "(cached) " >&6 7395else $as_nop 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398int i; 7399_ACEOF 7400if ac_fn_c_try_compile "$LINENO" 7401then : 7402 xorg_cv_cc_flag_unused_command_line_argument=yes 7403else $as_nop 7404 xorg_cv_cc_flag_unused_command_line_argument=no 7405fi 7406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7407fi 7408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7411 CFLAGS="$xorg_testset_save_CFLAGS" 7412fi 7413 7414found="no" 7415 7416 if test $found = "no" ; then 7417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7419 fi 7420 7421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7423 fi 7424 7425 CFLAGS="$CFLAGS -Wlogical-op" 7426 7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7428printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7429 cacheid=xorg_cv_cc_flag__Wlogical_op 7430 if eval test \${$cacheid+y} 7431then : 7432 printf %s "(cached) " >&6 7433else $as_nop 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435/* end confdefs.h. */ 7436int i; 7437int 7438main (void) 7439{ 7440 7441 ; 7442 return 0; 7443} 7444_ACEOF 7445if ac_fn_c_try_link "$LINENO" 7446then : 7447 eval $cacheid=yes 7448else $as_nop 7449 eval $cacheid=no 7450fi 7451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7452 conftest$ac_exeext conftest.$ac_ext 7453fi 7454 7455 7456 CFLAGS="$xorg_testset_save_CFLAGS" 7457 7458 eval supported=\$$cacheid 7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7460printf "%s\n" "$supported" >&6; } 7461 if test "$supported" = "yes" ; then 7462 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7463 found="yes" 7464 fi 7465 fi 7466 7467 7468 7469# These are currently disabled because they are noisy. They will be enabled 7470# in the future once the codebase is sufficiently modernized to silence 7471# them. For now, I don't want them to drown out the other warnings. 7472# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7473# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7474# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7475 7476# Turn some warnings into errors, so we don't accidently get successful builds 7477# when there are problems that should be fixed. 7478 7479if test "x$SELECTIVE_WERROR" = "xyes" ; then 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493xorg_testset_save_CFLAGS="$CFLAGS" 7494 7495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7500then : 7501 printf %s "(cached) " >&6 7502else $as_nop 7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504/* end confdefs.h. */ 7505int i; 7506_ACEOF 7507if ac_fn_c_try_compile "$LINENO" 7508then : 7509 xorg_cv_cc_flag_unknown_warning_option=yes 7510else $as_nop 7511 xorg_cv_cc_flag_unknown_warning_option=no 7512fi 7513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7514fi 7515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7518 CFLAGS="$xorg_testset_save_CFLAGS" 7519fi 7520 7521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7524 fi 7525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7528if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7529then : 7530 printf %s "(cached) " >&6 7531else $as_nop 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534int i; 7535_ACEOF 7536if ac_fn_c_try_compile "$LINENO" 7537then : 7538 xorg_cv_cc_flag_unused_command_line_argument=yes 7539else $as_nop 7540 xorg_cv_cc_flag_unused_command_line_argument=no 7541fi 7542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7543fi 7544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7547 CFLAGS="$xorg_testset_save_CFLAGS" 7548fi 7549 7550found="no" 7551 7552 if test $found = "no" ; then 7553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7555 fi 7556 7557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7559 fi 7560 7561 CFLAGS="$CFLAGS -Werror=implicit" 7562 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7564printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7565 cacheid=xorg_cv_cc_flag__Werror_implicit 7566 if eval test \${$cacheid+y} 7567then : 7568 printf %s "(cached) " >&6 7569else $as_nop 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571/* end confdefs.h. */ 7572int i; 7573int 7574main (void) 7575{ 7576 7577 ; 7578 return 0; 7579} 7580_ACEOF 7581if ac_fn_c_try_link "$LINENO" 7582then : 7583 eval $cacheid=yes 7584else $as_nop 7585 eval $cacheid=no 7586fi 7587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7588 conftest$ac_exeext conftest.$ac_ext 7589fi 7590 7591 7592 CFLAGS="$xorg_testset_save_CFLAGS" 7593 7594 eval supported=\$$cacheid 7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7596printf "%s\n" "$supported" >&6; } 7597 if test "$supported" = "yes" ; then 7598 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7599 found="yes" 7600 fi 7601 fi 7602 7603 if test $found = "no" ; then 7604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7606 fi 7607 7608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7610 fi 7611 7612 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7613 7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7615printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7616 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7617 if eval test \${$cacheid+y} 7618then : 7619 printf %s "(cached) " >&6 7620else $as_nop 7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7622/* end confdefs.h. */ 7623int i; 7624int 7625main (void) 7626{ 7627 7628 ; 7629 return 0; 7630} 7631_ACEOF 7632if ac_fn_c_try_link "$LINENO" 7633then : 7634 eval $cacheid=yes 7635else $as_nop 7636 eval $cacheid=no 7637fi 7638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7639 conftest$ac_exeext conftest.$ac_ext 7640fi 7641 7642 7643 CFLAGS="$xorg_testset_save_CFLAGS" 7644 7645 eval supported=\$$cacheid 7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7647printf "%s\n" "$supported" >&6; } 7648 if test "$supported" = "yes" ; then 7649 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7650 found="yes" 7651 fi 7652 fi 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668xorg_testset_save_CFLAGS="$CFLAGS" 7669 7670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7674if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7675then : 7676 printf %s "(cached) " >&6 7677else $as_nop 7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7679/* end confdefs.h. */ 7680int i; 7681_ACEOF 7682if ac_fn_c_try_compile "$LINENO" 7683then : 7684 xorg_cv_cc_flag_unknown_warning_option=yes 7685else $as_nop 7686 xorg_cv_cc_flag_unknown_warning_option=no 7687fi 7688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7689fi 7690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7693 CFLAGS="$xorg_testset_save_CFLAGS" 7694fi 7695 7696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7699 fi 7700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7703if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7704then : 7705 printf %s "(cached) " >&6 7706else $as_nop 7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708/* end confdefs.h. */ 7709int i; 7710_ACEOF 7711if ac_fn_c_try_compile "$LINENO" 7712then : 7713 xorg_cv_cc_flag_unused_command_line_argument=yes 7714else $as_nop 7715 xorg_cv_cc_flag_unused_command_line_argument=no 7716fi 7717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7718fi 7719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7722 CFLAGS="$xorg_testset_save_CFLAGS" 7723fi 7724 7725found="no" 7726 7727 if test $found = "no" ; then 7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 fi 7731 7732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7734 fi 7735 7736 CFLAGS="$CFLAGS -Werror=nonnull" 7737 7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7739printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7740 cacheid=xorg_cv_cc_flag__Werror_nonnull 7741 if eval test \${$cacheid+y} 7742then : 7743 printf %s "(cached) " >&6 7744else $as_nop 7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746/* end confdefs.h. */ 7747int i; 7748int 7749main (void) 7750{ 7751 7752 ; 7753 return 0; 7754} 7755_ACEOF 7756if ac_fn_c_try_link "$LINENO" 7757then : 7758 eval $cacheid=yes 7759else $as_nop 7760 eval $cacheid=no 7761fi 7762rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7763 conftest$ac_exeext conftest.$ac_ext 7764fi 7765 7766 7767 CFLAGS="$xorg_testset_save_CFLAGS" 7768 7769 eval supported=\$$cacheid 7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7771printf "%s\n" "$supported" >&6; } 7772 if test "$supported" = "yes" ; then 7773 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7774 found="yes" 7775 fi 7776 fi 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792xorg_testset_save_CFLAGS="$CFLAGS" 7793 7794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7798if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7799then : 7800 printf %s "(cached) " >&6 7801else $as_nop 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803/* end confdefs.h. */ 7804int i; 7805_ACEOF 7806if ac_fn_c_try_compile "$LINENO" 7807then : 7808 xorg_cv_cc_flag_unknown_warning_option=yes 7809else $as_nop 7810 xorg_cv_cc_flag_unknown_warning_option=no 7811fi 7812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7813fi 7814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7817 CFLAGS="$xorg_testset_save_CFLAGS" 7818fi 7819 7820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7823 fi 7824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7827if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7828then : 7829 printf %s "(cached) " >&6 7830else $as_nop 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832/* end confdefs.h. */ 7833int i; 7834_ACEOF 7835if ac_fn_c_try_compile "$LINENO" 7836then : 7837 xorg_cv_cc_flag_unused_command_line_argument=yes 7838else $as_nop 7839 xorg_cv_cc_flag_unused_command_line_argument=no 7840fi 7841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7842fi 7843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7846 CFLAGS="$xorg_testset_save_CFLAGS" 7847fi 7848 7849found="no" 7850 7851 if test $found = "no" ; then 7852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7854 fi 7855 7856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7858 fi 7859 7860 CFLAGS="$CFLAGS -Werror=init-self" 7861 7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7863printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7864 cacheid=xorg_cv_cc_flag__Werror_init_self 7865 if eval test \${$cacheid+y} 7866then : 7867 printf %s "(cached) " >&6 7868else $as_nop 7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7870/* end confdefs.h. */ 7871int i; 7872int 7873main (void) 7874{ 7875 7876 ; 7877 return 0; 7878} 7879_ACEOF 7880if ac_fn_c_try_link "$LINENO" 7881then : 7882 eval $cacheid=yes 7883else $as_nop 7884 eval $cacheid=no 7885fi 7886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7887 conftest$ac_exeext conftest.$ac_ext 7888fi 7889 7890 7891 CFLAGS="$xorg_testset_save_CFLAGS" 7892 7893 eval supported=\$$cacheid 7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7895printf "%s\n" "$supported" >&6; } 7896 if test "$supported" = "yes" ; then 7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7898 found="yes" 7899 fi 7900 fi 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916xorg_testset_save_CFLAGS="$CFLAGS" 7917 7918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7923then : 7924 printf %s "(cached) " >&6 7925else $as_nop 7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7927/* end confdefs.h. */ 7928int i; 7929_ACEOF 7930if ac_fn_c_try_compile "$LINENO" 7931then : 7932 xorg_cv_cc_flag_unknown_warning_option=yes 7933else $as_nop 7934 xorg_cv_cc_flag_unknown_warning_option=no 7935fi 7936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7937fi 7938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7941 CFLAGS="$xorg_testset_save_CFLAGS" 7942fi 7943 7944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7947 fi 7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7951if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7952then : 7953 printf %s "(cached) " >&6 7954else $as_nop 7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956/* end confdefs.h. */ 7957int i; 7958_ACEOF 7959if ac_fn_c_try_compile "$LINENO" 7960then : 7961 xorg_cv_cc_flag_unused_command_line_argument=yes 7962else $as_nop 7963 xorg_cv_cc_flag_unused_command_line_argument=no 7964fi 7965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7966fi 7967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7970 CFLAGS="$xorg_testset_save_CFLAGS" 7971fi 7972 7973found="no" 7974 7975 if test $found = "no" ; then 7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 fi 7979 7980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7982 fi 7983 7984 CFLAGS="$CFLAGS -Werror=main" 7985 7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7987printf %s "checking if $CC supports -Werror=main... " >&6; } 7988 cacheid=xorg_cv_cc_flag__Werror_main 7989 if eval test \${$cacheid+y} 7990then : 7991 printf %s "(cached) " >&6 7992else $as_nop 7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994/* end confdefs.h. */ 7995int i; 7996int 7997main (void) 7998{ 7999 8000 ; 8001 return 0; 8002} 8003_ACEOF 8004if ac_fn_c_try_link "$LINENO" 8005then : 8006 eval $cacheid=yes 8007else $as_nop 8008 eval $cacheid=no 8009fi 8010rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8011 conftest$ac_exeext conftest.$ac_ext 8012fi 8013 8014 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016 8017 eval supported=\$$cacheid 8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8019printf "%s\n" "$supported" >&6; } 8020 if test "$supported" = "yes" ; then 8021 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8022 found="yes" 8023 fi 8024 fi 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040xorg_testset_save_CFLAGS="$CFLAGS" 8041 8042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8045printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8046if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8047then : 8048 printf %s "(cached) " >&6 8049else $as_nop 8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8051/* end confdefs.h. */ 8052int i; 8053_ACEOF 8054if ac_fn_c_try_compile "$LINENO" 8055then : 8056 xorg_cv_cc_flag_unknown_warning_option=yes 8057else $as_nop 8058 xorg_cv_cc_flag_unknown_warning_option=no 8059fi 8060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8061fi 8062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8063printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8065 CFLAGS="$xorg_testset_save_CFLAGS" 8066fi 8067 8068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8071 fi 8072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8074printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8075if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8076then : 8077 printf %s "(cached) " >&6 8078else $as_nop 8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8080/* end confdefs.h. */ 8081int i; 8082_ACEOF 8083if ac_fn_c_try_compile "$LINENO" 8084then : 8085 xorg_cv_cc_flag_unused_command_line_argument=yes 8086else $as_nop 8087 xorg_cv_cc_flag_unused_command_line_argument=no 8088fi 8089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8090fi 8091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8092printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8094 CFLAGS="$xorg_testset_save_CFLAGS" 8095fi 8096 8097found="no" 8098 8099 if test $found = "no" ; then 8100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8102 fi 8103 8104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8106 fi 8107 8108 CFLAGS="$CFLAGS -Werror=missing-braces" 8109 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8111printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8112 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8113 if eval test \${$cacheid+y} 8114then : 8115 printf %s "(cached) " >&6 8116else $as_nop 8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8118/* end confdefs.h. */ 8119int i; 8120int 8121main (void) 8122{ 8123 8124 ; 8125 return 0; 8126} 8127_ACEOF 8128if ac_fn_c_try_link "$LINENO" 8129then : 8130 eval $cacheid=yes 8131else $as_nop 8132 eval $cacheid=no 8133fi 8134rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8135 conftest$ac_exeext conftest.$ac_ext 8136fi 8137 8138 8139 CFLAGS="$xorg_testset_save_CFLAGS" 8140 8141 eval supported=\$$cacheid 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8143printf "%s\n" "$supported" >&6; } 8144 if test "$supported" = "yes" ; then 8145 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8146 found="yes" 8147 fi 8148 fi 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164xorg_testset_save_CFLAGS="$CFLAGS" 8165 8166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8170if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8171then : 8172 printf %s "(cached) " >&6 8173else $as_nop 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176int i; 8177_ACEOF 8178if ac_fn_c_try_compile "$LINENO" 8179then : 8180 xorg_cv_cc_flag_unknown_warning_option=yes 8181else $as_nop 8182 xorg_cv_cc_flag_unknown_warning_option=no 8183fi 8184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8185fi 8186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8189 CFLAGS="$xorg_testset_save_CFLAGS" 8190fi 8191 8192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8195 fi 8196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8199if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8200then : 8201 printf %s "(cached) " >&6 8202else $as_nop 8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204/* end confdefs.h. */ 8205int i; 8206_ACEOF 8207if ac_fn_c_try_compile "$LINENO" 8208then : 8209 xorg_cv_cc_flag_unused_command_line_argument=yes 8210else $as_nop 8211 xorg_cv_cc_flag_unused_command_line_argument=no 8212fi 8213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8214fi 8215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219fi 8220 8221found="no" 8222 8223 if test $found = "no" ; then 8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8226 fi 8227 8228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8230 fi 8231 8232 CFLAGS="$CFLAGS -Werror=sequence-point" 8233 8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8235printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8236 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8237 if eval test \${$cacheid+y} 8238then : 8239 printf %s "(cached) " >&6 8240else $as_nop 8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8242/* end confdefs.h. */ 8243int i; 8244int 8245main (void) 8246{ 8247 8248 ; 8249 return 0; 8250} 8251_ACEOF 8252if ac_fn_c_try_link "$LINENO" 8253then : 8254 eval $cacheid=yes 8255else $as_nop 8256 eval $cacheid=no 8257fi 8258rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8259 conftest$ac_exeext conftest.$ac_ext 8260fi 8261 8262 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264 8265 eval supported=\$$cacheid 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8267printf "%s\n" "$supported" >&6; } 8268 if test "$supported" = "yes" ; then 8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8270 found="yes" 8271 fi 8272 fi 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288xorg_testset_save_CFLAGS="$CFLAGS" 8289 8290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8294if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8295then : 8296 printf %s "(cached) " >&6 8297else $as_nop 8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299/* end confdefs.h. */ 8300int i; 8301_ACEOF 8302if ac_fn_c_try_compile "$LINENO" 8303then : 8304 xorg_cv_cc_flag_unknown_warning_option=yes 8305else $as_nop 8306 xorg_cv_cc_flag_unknown_warning_option=no 8307fi 8308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8309fi 8310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314fi 8315 8316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8319 fi 8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8323if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8324then : 8325 printf %s "(cached) " >&6 8326else $as_nop 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329int i; 8330_ACEOF 8331if ac_fn_c_try_compile "$LINENO" 8332then : 8333 xorg_cv_cc_flag_unused_command_line_argument=yes 8334else $as_nop 8335 xorg_cv_cc_flag_unused_command_line_argument=no 8336fi 8337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8338fi 8339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8342 CFLAGS="$xorg_testset_save_CFLAGS" 8343fi 8344 8345found="no" 8346 8347 if test $found = "no" ; then 8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8350 fi 8351 8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8354 fi 8355 8356 CFLAGS="$CFLAGS -Werror=return-type" 8357 8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8359printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8360 cacheid=xorg_cv_cc_flag__Werror_return_type 8361 if eval test \${$cacheid+y} 8362then : 8363 printf %s "(cached) " >&6 8364else $as_nop 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366/* end confdefs.h. */ 8367int i; 8368int 8369main (void) 8370{ 8371 8372 ; 8373 return 0; 8374} 8375_ACEOF 8376if ac_fn_c_try_link "$LINENO" 8377then : 8378 eval $cacheid=yes 8379else $as_nop 8380 eval $cacheid=no 8381fi 8382rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8383 conftest$ac_exeext conftest.$ac_ext 8384fi 8385 8386 8387 CFLAGS="$xorg_testset_save_CFLAGS" 8388 8389 eval supported=\$$cacheid 8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8391printf "%s\n" "$supported" >&6; } 8392 if test "$supported" = "yes" ; then 8393 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8394 found="yes" 8395 fi 8396 fi 8397 8398 if test $found = "no" ; then 8399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401 fi 8402 8403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8405 fi 8406 8407 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8408 8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8410printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8411 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8412 if eval test \${$cacheid+y} 8413then : 8414 printf %s "(cached) " >&6 8415else $as_nop 8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417/* end confdefs.h. */ 8418int i; 8419int 8420main (void) 8421{ 8422 8423 ; 8424 return 0; 8425} 8426_ACEOF 8427if ac_fn_c_try_link "$LINENO" 8428then : 8429 eval $cacheid=yes 8430else $as_nop 8431 eval $cacheid=no 8432fi 8433rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8434 conftest$ac_exeext conftest.$ac_ext 8435fi 8436 8437 8438 CFLAGS="$xorg_testset_save_CFLAGS" 8439 8440 eval supported=\$$cacheid 8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8442printf "%s\n" "$supported" >&6; } 8443 if test "$supported" = "yes" ; then 8444 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8445 found="yes" 8446 fi 8447 fi 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463xorg_testset_save_CFLAGS="$CFLAGS" 8464 8465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8468printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8469if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8470then : 8471 printf %s "(cached) " >&6 8472else $as_nop 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475int i; 8476_ACEOF 8477if ac_fn_c_try_compile "$LINENO" 8478then : 8479 xorg_cv_cc_flag_unknown_warning_option=yes 8480else $as_nop 8481 xorg_cv_cc_flag_unknown_warning_option=no 8482fi 8483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8484fi 8485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8486printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8488 CFLAGS="$xorg_testset_save_CFLAGS" 8489fi 8490 8491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8497printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8498if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8499then : 8500 printf %s "(cached) " >&6 8501else $as_nop 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503/* end confdefs.h. */ 8504int i; 8505_ACEOF 8506if ac_fn_c_try_compile "$LINENO" 8507then : 8508 xorg_cv_cc_flag_unused_command_line_argument=yes 8509else $as_nop 8510 xorg_cv_cc_flag_unused_command_line_argument=no 8511fi 8512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8513fi 8514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8517 CFLAGS="$xorg_testset_save_CFLAGS" 8518fi 8519 8520found="no" 8521 8522 if test $found = "no" ; then 8523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8525 fi 8526 8527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8529 fi 8530 8531 CFLAGS="$CFLAGS -Werror=trigraphs" 8532 8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8534printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8535 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8536 if eval test \${$cacheid+y} 8537then : 8538 printf %s "(cached) " >&6 8539else $as_nop 8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541/* end confdefs.h. */ 8542int i; 8543int 8544main (void) 8545{ 8546 8547 ; 8548 return 0; 8549} 8550_ACEOF 8551if ac_fn_c_try_link "$LINENO" 8552then : 8553 eval $cacheid=yes 8554else $as_nop 8555 eval $cacheid=no 8556fi 8557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8558 conftest$ac_exeext conftest.$ac_ext 8559fi 8560 8561 8562 CFLAGS="$xorg_testset_save_CFLAGS" 8563 8564 eval supported=\$$cacheid 8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8566printf "%s\n" "$supported" >&6; } 8567 if test "$supported" = "yes" ; then 8568 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8569 found="yes" 8570 fi 8571 fi 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587xorg_testset_save_CFLAGS="$CFLAGS" 8588 8589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8593if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8594then : 8595 printf %s "(cached) " >&6 8596else $as_nop 8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8598/* end confdefs.h. */ 8599int i; 8600_ACEOF 8601if ac_fn_c_try_compile "$LINENO" 8602then : 8603 xorg_cv_cc_flag_unknown_warning_option=yes 8604else $as_nop 8605 xorg_cv_cc_flag_unknown_warning_option=no 8606fi 8607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8608fi 8609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8612 CFLAGS="$xorg_testset_save_CFLAGS" 8613fi 8614 8615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8618 fi 8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8622if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8623then : 8624 printf %s "(cached) " >&6 8625else $as_nop 8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8627/* end confdefs.h. */ 8628int i; 8629_ACEOF 8630if ac_fn_c_try_compile "$LINENO" 8631then : 8632 xorg_cv_cc_flag_unused_command_line_argument=yes 8633else $as_nop 8634 xorg_cv_cc_flag_unused_command_line_argument=no 8635fi 8636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8637fi 8638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8641 CFLAGS="$xorg_testset_save_CFLAGS" 8642fi 8643 8644found="no" 8645 8646 if test $found = "no" ; then 8647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8649 fi 8650 8651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8653 fi 8654 8655 CFLAGS="$CFLAGS -Werror=array-bounds" 8656 8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8658printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8659 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8660 if eval test \${$cacheid+y} 8661then : 8662 printf %s "(cached) " >&6 8663else $as_nop 8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8665/* end confdefs.h. */ 8666int i; 8667int 8668main (void) 8669{ 8670 8671 ; 8672 return 0; 8673} 8674_ACEOF 8675if ac_fn_c_try_link "$LINENO" 8676then : 8677 eval $cacheid=yes 8678else $as_nop 8679 eval $cacheid=no 8680fi 8681rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8682 conftest$ac_exeext conftest.$ac_ext 8683fi 8684 8685 8686 CFLAGS="$xorg_testset_save_CFLAGS" 8687 8688 eval supported=\$$cacheid 8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8690printf "%s\n" "$supported" >&6; } 8691 if test "$supported" = "yes" ; then 8692 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8693 found="yes" 8694 fi 8695 fi 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711xorg_testset_save_CFLAGS="$CFLAGS" 8712 8713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8716printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8717if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8718then : 8719 printf %s "(cached) " >&6 8720else $as_nop 8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722/* end confdefs.h. */ 8723int i; 8724_ACEOF 8725if ac_fn_c_try_compile "$LINENO" 8726then : 8727 xorg_cv_cc_flag_unknown_warning_option=yes 8728else $as_nop 8729 xorg_cv_cc_flag_unknown_warning_option=no 8730fi 8731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8732fi 8733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8734printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8736 CFLAGS="$xorg_testset_save_CFLAGS" 8737fi 8738 8739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8745printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8746if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8747then : 8748 printf %s "(cached) " >&6 8749else $as_nop 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752int i; 8753_ACEOF 8754if ac_fn_c_try_compile "$LINENO" 8755then : 8756 xorg_cv_cc_flag_unused_command_line_argument=yes 8757else $as_nop 8758 xorg_cv_cc_flag_unused_command_line_argument=no 8759fi 8760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8761fi 8762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8765 CFLAGS="$xorg_testset_save_CFLAGS" 8766fi 8767 8768found="no" 8769 8770 if test $found = "no" ; then 8771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8773 fi 8774 8775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8777 fi 8778 8779 CFLAGS="$CFLAGS -Werror=write-strings" 8780 8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8782printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8783 cacheid=xorg_cv_cc_flag__Werror_write_strings 8784 if eval test \${$cacheid+y} 8785then : 8786 printf %s "(cached) " >&6 8787else $as_nop 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790int i; 8791int 8792main (void) 8793{ 8794 8795 ; 8796 return 0; 8797} 8798_ACEOF 8799if ac_fn_c_try_link "$LINENO" 8800then : 8801 eval $cacheid=yes 8802else $as_nop 8803 eval $cacheid=no 8804fi 8805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8806 conftest$ac_exeext conftest.$ac_ext 8807fi 8808 8809 8810 CFLAGS="$xorg_testset_save_CFLAGS" 8811 8812 eval supported=\$$cacheid 8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8814printf "%s\n" "$supported" >&6; } 8815 if test "$supported" = "yes" ; then 8816 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8817 found="yes" 8818 fi 8819 fi 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835xorg_testset_save_CFLAGS="$CFLAGS" 8836 8837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8841if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8842then : 8843 printf %s "(cached) " >&6 8844else $as_nop 8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846/* end confdefs.h. */ 8847int i; 8848_ACEOF 8849if ac_fn_c_try_compile "$LINENO" 8850then : 8851 xorg_cv_cc_flag_unknown_warning_option=yes 8852else $as_nop 8853 xorg_cv_cc_flag_unknown_warning_option=no 8854fi 8855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8856fi 8857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861fi 8862 8863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8870if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8871then : 8872 printf %s "(cached) " >&6 8873else $as_nop 8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875/* end confdefs.h. */ 8876int i; 8877_ACEOF 8878if ac_fn_c_try_compile "$LINENO" 8879then : 8880 xorg_cv_cc_flag_unused_command_line_argument=yes 8881else $as_nop 8882 xorg_cv_cc_flag_unused_command_line_argument=no 8883fi 8884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8885fi 8886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8889 CFLAGS="$xorg_testset_save_CFLAGS" 8890fi 8891 8892found="no" 8893 8894 if test $found = "no" ; then 8895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8897 fi 8898 8899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8901 fi 8902 8903 CFLAGS="$CFLAGS -Werror=address" 8904 8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8906printf %s "checking if $CC supports -Werror=address... " >&6; } 8907 cacheid=xorg_cv_cc_flag__Werror_address 8908 if eval test \${$cacheid+y} 8909then : 8910 printf %s "(cached) " >&6 8911else $as_nop 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913/* end confdefs.h. */ 8914int i; 8915int 8916main (void) 8917{ 8918 8919 ; 8920 return 0; 8921} 8922_ACEOF 8923if ac_fn_c_try_link "$LINENO" 8924then : 8925 eval $cacheid=yes 8926else $as_nop 8927 eval $cacheid=no 8928fi 8929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8930 conftest$ac_exeext conftest.$ac_ext 8931fi 8932 8933 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935 8936 eval supported=\$$cacheid 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8938printf "%s\n" "$supported" >&6; } 8939 if test "$supported" = "yes" ; then 8940 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8941 found="yes" 8942 fi 8943 fi 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959xorg_testset_save_CFLAGS="$CFLAGS" 8960 8961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8965if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8966then : 8967 printf %s "(cached) " >&6 8968else $as_nop 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970/* end confdefs.h. */ 8971int i; 8972_ACEOF 8973if ac_fn_c_try_compile "$LINENO" 8974then : 8975 xorg_cv_cc_flag_unknown_warning_option=yes 8976else $as_nop 8977 xorg_cv_cc_flag_unknown_warning_option=no 8978fi 8979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8980fi 8981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985fi 8986 8987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 fi 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8994if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8995then : 8996 printf %s "(cached) " >&6 8997else $as_nop 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999/* end confdefs.h. */ 9000int i; 9001_ACEOF 9002if ac_fn_c_try_compile "$LINENO" 9003then : 9004 xorg_cv_cc_flag_unused_command_line_argument=yes 9005else $as_nop 9006 xorg_cv_cc_flag_unused_command_line_argument=no 9007fi 9008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9009fi 9010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014fi 9015 9016found="no" 9017 9018 if test $found = "no" ; then 9019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9021 fi 9022 9023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9025 fi 9026 9027 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9028 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9030printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9031 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9032 if eval test \${$cacheid+y} 9033then : 9034 printf %s "(cached) " >&6 9035else $as_nop 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037/* end confdefs.h. */ 9038int i; 9039int 9040main (void) 9041{ 9042 9043 ; 9044 return 0; 9045} 9046_ACEOF 9047if ac_fn_c_try_link "$LINENO" 9048then : 9049 eval $cacheid=yes 9050else $as_nop 9051 eval $cacheid=no 9052fi 9053rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9054 conftest$ac_exeext conftest.$ac_ext 9055fi 9056 9057 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059 9060 eval supported=\$$cacheid 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9062printf "%s\n" "$supported" >&6; } 9063 if test "$supported" = "yes" ; then 9064 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9065 found="yes" 9066 fi 9067 fi 9068 9069 if test $found = "no" ; then 9070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9072 fi 9073 9074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9076 fi 9077 9078 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9079 9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9081printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9082 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9083 if eval test \${$cacheid+y} 9084then : 9085 printf %s "(cached) " >&6 9086else $as_nop 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088/* end confdefs.h. */ 9089int i; 9090int 9091main (void) 9092{ 9093 9094 ; 9095 return 0; 9096} 9097_ACEOF 9098if ac_fn_c_try_link "$LINENO" 9099then : 9100 eval $cacheid=yes 9101else $as_nop 9102 eval $cacheid=no 9103fi 9104rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9105 conftest$ac_exeext conftest.$ac_ext 9106fi 9107 9108 9109 CFLAGS="$xorg_testset_save_CFLAGS" 9110 9111 eval supported=\$$cacheid 9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9113printf "%s\n" "$supported" >&6; } 9114 if test "$supported" = "yes" ; then 9115 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9116 found="yes" 9117 fi 9118 fi 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134xorg_testset_save_CFLAGS="$CFLAGS" 9135 9136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9140if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9141then : 9142 printf %s "(cached) " >&6 9143else $as_nop 9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9145/* end confdefs.h. */ 9146int i; 9147_ACEOF 9148if ac_fn_c_try_compile "$LINENO" 9149then : 9150 xorg_cv_cc_flag_unknown_warning_option=yes 9151else $as_nop 9152 xorg_cv_cc_flag_unknown_warning_option=no 9153fi 9154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9155fi 9156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9159 CFLAGS="$xorg_testset_save_CFLAGS" 9160fi 9161 9162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9165 fi 9166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9169if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9170then : 9171 printf %s "(cached) " >&6 9172else $as_nop 9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9174/* end confdefs.h. */ 9175int i; 9176_ACEOF 9177if ac_fn_c_try_compile "$LINENO" 9178then : 9179 xorg_cv_cc_flag_unused_command_line_argument=yes 9180else $as_nop 9181 xorg_cv_cc_flag_unused_command_line_argument=no 9182fi 9183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9184fi 9185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9188 CFLAGS="$xorg_testset_save_CFLAGS" 9189fi 9190 9191found="no" 9192 9193 if test $found = "no" ; then 9194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9196 fi 9197 9198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9200 fi 9201 9202 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9203 9204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9205printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9206 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9207 if eval test \${$cacheid+y} 9208then : 9209 printf %s "(cached) " >&6 9210else $as_nop 9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9212/* end confdefs.h. */ 9213int i; 9214int 9215main (void) 9216{ 9217 9218 ; 9219 return 0; 9220} 9221_ACEOF 9222if ac_fn_c_try_link "$LINENO" 9223then : 9224 eval $cacheid=yes 9225else $as_nop 9226 eval $cacheid=no 9227fi 9228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9229 conftest$ac_exeext conftest.$ac_ext 9230fi 9231 9232 9233 CFLAGS="$xorg_testset_save_CFLAGS" 9234 9235 eval supported=\$$cacheid 9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9237printf "%s\n" "$supported" >&6; } 9238 if test "$supported" = "yes" ; then 9239 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9240 found="yes" 9241 fi 9242 fi 9243 9244 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9245else 9246{ printf "%s\n" "$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 9247printf "%s\n" "$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;} 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261xorg_testset_save_CFLAGS="$CFLAGS" 9262 9263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9266printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9267if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9268then : 9269 printf %s "(cached) " >&6 9270else $as_nop 9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9272/* end confdefs.h. */ 9273int i; 9274_ACEOF 9275if ac_fn_c_try_compile "$LINENO" 9276then : 9277 xorg_cv_cc_flag_unknown_warning_option=yes 9278else $as_nop 9279 xorg_cv_cc_flag_unknown_warning_option=no 9280fi 9281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9282fi 9283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287fi 9288 9289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9292 fi 9293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9296if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9297then : 9298 printf %s "(cached) " >&6 9299else $as_nop 9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9301/* end confdefs.h. */ 9302int i; 9303_ACEOF 9304if ac_fn_c_try_compile "$LINENO" 9305then : 9306 xorg_cv_cc_flag_unused_command_line_argument=yes 9307else $as_nop 9308 xorg_cv_cc_flag_unused_command_line_argument=no 9309fi 9310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9311fi 9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9313printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9315 CFLAGS="$xorg_testset_save_CFLAGS" 9316fi 9317 9318found="no" 9319 9320 if test $found = "no" ; then 9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 fi 9324 9325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327 fi 9328 9329 CFLAGS="$CFLAGS -Wimplicit" 9330 9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9332printf %s "checking if $CC supports -Wimplicit... " >&6; } 9333 cacheid=xorg_cv_cc_flag__Wimplicit 9334 if eval test \${$cacheid+y} 9335then : 9336 printf %s "(cached) " >&6 9337else $as_nop 9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9339/* end confdefs.h. */ 9340int i; 9341int 9342main (void) 9343{ 9344 9345 ; 9346 return 0; 9347} 9348_ACEOF 9349if ac_fn_c_try_link "$LINENO" 9350then : 9351 eval $cacheid=yes 9352else $as_nop 9353 eval $cacheid=no 9354fi 9355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9356 conftest$ac_exeext conftest.$ac_ext 9357fi 9358 9359 9360 CFLAGS="$xorg_testset_save_CFLAGS" 9361 9362 eval supported=\$$cacheid 9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9364printf "%s\n" "$supported" >&6; } 9365 if test "$supported" = "yes" ; then 9366 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9367 found="yes" 9368 fi 9369 fi 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385xorg_testset_save_CFLAGS="$CFLAGS" 9386 9387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9391if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9392then : 9393 printf %s "(cached) " >&6 9394else $as_nop 9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9396/* end confdefs.h. */ 9397int i; 9398_ACEOF 9399if ac_fn_c_try_compile "$LINENO" 9400then : 9401 xorg_cv_cc_flag_unknown_warning_option=yes 9402else $as_nop 9403 xorg_cv_cc_flag_unknown_warning_option=no 9404fi 9405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9406fi 9407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9410 CFLAGS="$xorg_testset_save_CFLAGS" 9411fi 9412 9413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9416 fi 9417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9420if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9421then : 9422 printf %s "(cached) " >&6 9423else $as_nop 9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9425/* end confdefs.h. */ 9426int i; 9427_ACEOF 9428if ac_fn_c_try_compile "$LINENO" 9429then : 9430 xorg_cv_cc_flag_unused_command_line_argument=yes 9431else $as_nop 9432 xorg_cv_cc_flag_unused_command_line_argument=no 9433fi 9434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9435fi 9436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9439 CFLAGS="$xorg_testset_save_CFLAGS" 9440fi 9441 9442found="no" 9443 9444 if test $found = "no" ; then 9445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9447 fi 9448 9449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9451 fi 9452 9453 CFLAGS="$CFLAGS -Wnonnull" 9454 9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9456printf %s "checking if $CC supports -Wnonnull... " >&6; } 9457 cacheid=xorg_cv_cc_flag__Wnonnull 9458 if eval test \${$cacheid+y} 9459then : 9460 printf %s "(cached) " >&6 9461else $as_nop 9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9463/* end confdefs.h. */ 9464int i; 9465int 9466main (void) 9467{ 9468 9469 ; 9470 return 0; 9471} 9472_ACEOF 9473if ac_fn_c_try_link "$LINENO" 9474then : 9475 eval $cacheid=yes 9476else $as_nop 9477 eval $cacheid=no 9478fi 9479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9480 conftest$ac_exeext conftest.$ac_ext 9481fi 9482 9483 9484 CFLAGS="$xorg_testset_save_CFLAGS" 9485 9486 eval supported=\$$cacheid 9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9488printf "%s\n" "$supported" >&6; } 9489 if test "$supported" = "yes" ; then 9490 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9491 found="yes" 9492 fi 9493 fi 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509xorg_testset_save_CFLAGS="$CFLAGS" 9510 9511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9514printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9515if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9516then : 9517 printf %s "(cached) " >&6 9518else $as_nop 9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9520/* end confdefs.h. */ 9521int i; 9522_ACEOF 9523if ac_fn_c_try_compile "$LINENO" 9524then : 9525 xorg_cv_cc_flag_unknown_warning_option=yes 9526else $as_nop 9527 xorg_cv_cc_flag_unknown_warning_option=no 9528fi 9529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9530fi 9531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9534 CFLAGS="$xorg_testset_save_CFLAGS" 9535fi 9536 9537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9540 fi 9541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9544if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9545then : 9546 printf %s "(cached) " >&6 9547else $as_nop 9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549/* end confdefs.h. */ 9550int i; 9551_ACEOF 9552if ac_fn_c_try_compile "$LINENO" 9553then : 9554 xorg_cv_cc_flag_unused_command_line_argument=yes 9555else $as_nop 9556 xorg_cv_cc_flag_unused_command_line_argument=no 9557fi 9558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9559fi 9560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9563 CFLAGS="$xorg_testset_save_CFLAGS" 9564fi 9565 9566found="no" 9567 9568 if test $found = "no" ; then 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 fi 9572 9573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9575 fi 9576 9577 CFLAGS="$CFLAGS -Winit-self" 9578 9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9580printf %s "checking if $CC supports -Winit-self... " >&6; } 9581 cacheid=xorg_cv_cc_flag__Winit_self 9582 if eval test \${$cacheid+y} 9583then : 9584 printf %s "(cached) " >&6 9585else $as_nop 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587/* end confdefs.h. */ 9588int i; 9589int 9590main (void) 9591{ 9592 9593 ; 9594 return 0; 9595} 9596_ACEOF 9597if ac_fn_c_try_link "$LINENO" 9598then : 9599 eval $cacheid=yes 9600else $as_nop 9601 eval $cacheid=no 9602fi 9603rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9604 conftest$ac_exeext conftest.$ac_ext 9605fi 9606 9607 9608 CFLAGS="$xorg_testset_save_CFLAGS" 9609 9610 eval supported=\$$cacheid 9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9612printf "%s\n" "$supported" >&6; } 9613 if test "$supported" = "yes" ; then 9614 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9615 found="yes" 9616 fi 9617 fi 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633xorg_testset_save_CFLAGS="$CFLAGS" 9634 9635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9638printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9639if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9640then : 9641 printf %s "(cached) " >&6 9642else $as_nop 9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9644/* end confdefs.h. */ 9645int i; 9646_ACEOF 9647if ac_fn_c_try_compile "$LINENO" 9648then : 9649 xorg_cv_cc_flag_unknown_warning_option=yes 9650else $as_nop 9651 xorg_cv_cc_flag_unknown_warning_option=no 9652fi 9653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9654fi 9655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9656printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9658 CFLAGS="$xorg_testset_save_CFLAGS" 9659fi 9660 9661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 fi 9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9667printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9668if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9669then : 9670 printf %s "(cached) " >&6 9671else $as_nop 9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9673/* end confdefs.h. */ 9674int i; 9675_ACEOF 9676if ac_fn_c_try_compile "$LINENO" 9677then : 9678 xorg_cv_cc_flag_unused_command_line_argument=yes 9679else $as_nop 9680 xorg_cv_cc_flag_unused_command_line_argument=no 9681fi 9682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9683fi 9684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9687 CFLAGS="$xorg_testset_save_CFLAGS" 9688fi 9689 9690found="no" 9691 9692 if test $found = "no" ; then 9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695 fi 9696 9697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9699 fi 9700 9701 CFLAGS="$CFLAGS -Wmain" 9702 9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9704printf %s "checking if $CC supports -Wmain... " >&6; } 9705 cacheid=xorg_cv_cc_flag__Wmain 9706 if eval test \${$cacheid+y} 9707then : 9708 printf %s "(cached) " >&6 9709else $as_nop 9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9711/* end confdefs.h. */ 9712int i; 9713int 9714main (void) 9715{ 9716 9717 ; 9718 return 0; 9719} 9720_ACEOF 9721if ac_fn_c_try_link "$LINENO" 9722then : 9723 eval $cacheid=yes 9724else $as_nop 9725 eval $cacheid=no 9726fi 9727rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9728 conftest$ac_exeext conftest.$ac_ext 9729fi 9730 9731 9732 CFLAGS="$xorg_testset_save_CFLAGS" 9733 9734 eval supported=\$$cacheid 9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9736printf "%s\n" "$supported" >&6; } 9737 if test "$supported" = "yes" ; then 9738 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9739 found="yes" 9740 fi 9741 fi 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757xorg_testset_save_CFLAGS="$CFLAGS" 9758 9759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9762printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9763if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9764then : 9765 printf %s "(cached) " >&6 9766else $as_nop 9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9768/* end confdefs.h. */ 9769int i; 9770_ACEOF 9771if ac_fn_c_try_compile "$LINENO" 9772then : 9773 xorg_cv_cc_flag_unknown_warning_option=yes 9774else $as_nop 9775 xorg_cv_cc_flag_unknown_warning_option=no 9776fi 9777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9778fi 9779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783fi 9784 9785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 fi 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9793then : 9794 printf %s "(cached) " >&6 9795else $as_nop 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798int i; 9799_ACEOF 9800if ac_fn_c_try_compile "$LINENO" 9801then : 9802 xorg_cv_cc_flag_unused_command_line_argument=yes 9803else $as_nop 9804 xorg_cv_cc_flag_unused_command_line_argument=no 9805fi 9806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9807fi 9808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9811 CFLAGS="$xorg_testset_save_CFLAGS" 9812fi 9813 9814found="no" 9815 9816 if test $found = "no" ; then 9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819 fi 9820 9821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9823 fi 9824 9825 CFLAGS="$CFLAGS -Wmissing-braces" 9826 9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9828printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9829 cacheid=xorg_cv_cc_flag__Wmissing_braces 9830 if eval test \${$cacheid+y} 9831then : 9832 printf %s "(cached) " >&6 9833else $as_nop 9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835/* end confdefs.h. */ 9836int i; 9837int 9838main (void) 9839{ 9840 9841 ; 9842 return 0; 9843} 9844_ACEOF 9845if ac_fn_c_try_link "$LINENO" 9846then : 9847 eval $cacheid=yes 9848else $as_nop 9849 eval $cacheid=no 9850fi 9851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9852 conftest$ac_exeext conftest.$ac_ext 9853fi 9854 9855 9856 CFLAGS="$xorg_testset_save_CFLAGS" 9857 9858 eval supported=\$$cacheid 9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9860printf "%s\n" "$supported" >&6; } 9861 if test "$supported" = "yes" ; then 9862 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9863 found="yes" 9864 fi 9865 fi 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881xorg_testset_save_CFLAGS="$CFLAGS" 9882 9883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9887if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9888then : 9889 printf %s "(cached) " >&6 9890else $as_nop 9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892/* end confdefs.h. */ 9893int i; 9894_ACEOF 9895if ac_fn_c_try_compile "$LINENO" 9896then : 9897 xorg_cv_cc_flag_unknown_warning_option=yes 9898else $as_nop 9899 xorg_cv_cc_flag_unknown_warning_option=no 9900fi 9901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9902fi 9903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9906 CFLAGS="$xorg_testset_save_CFLAGS" 9907fi 9908 9909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9912 fi 9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9916if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9917then : 9918 printf %s "(cached) " >&6 9919else $as_nop 9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9921/* end confdefs.h. */ 9922int i; 9923_ACEOF 9924if ac_fn_c_try_compile "$LINENO" 9925then : 9926 xorg_cv_cc_flag_unused_command_line_argument=yes 9927else $as_nop 9928 xorg_cv_cc_flag_unused_command_line_argument=no 9929fi 9930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9931fi 9932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9935 CFLAGS="$xorg_testset_save_CFLAGS" 9936fi 9937 9938found="no" 9939 9940 if test $found = "no" ; then 9941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9943 fi 9944 9945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9947 fi 9948 9949 CFLAGS="$CFLAGS -Wsequence-point" 9950 9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9952printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9953 cacheid=xorg_cv_cc_flag__Wsequence_point 9954 if eval test \${$cacheid+y} 9955then : 9956 printf %s "(cached) " >&6 9957else $as_nop 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959/* end confdefs.h. */ 9960int i; 9961int 9962main (void) 9963{ 9964 9965 ; 9966 return 0; 9967} 9968_ACEOF 9969if ac_fn_c_try_link "$LINENO" 9970then : 9971 eval $cacheid=yes 9972else $as_nop 9973 eval $cacheid=no 9974fi 9975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9976 conftest$ac_exeext conftest.$ac_ext 9977fi 9978 9979 9980 CFLAGS="$xorg_testset_save_CFLAGS" 9981 9982 eval supported=\$$cacheid 9983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9984printf "%s\n" "$supported" >&6; } 9985 if test "$supported" = "yes" ; then 9986 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9987 found="yes" 9988 fi 9989 fi 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005xorg_testset_save_CFLAGS="$CFLAGS" 10006 10007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10011if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10012then : 10013 printf %s "(cached) " >&6 10014else $as_nop 10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10016/* end confdefs.h. */ 10017int i; 10018_ACEOF 10019if ac_fn_c_try_compile "$LINENO" 10020then : 10021 xorg_cv_cc_flag_unknown_warning_option=yes 10022else $as_nop 10023 xorg_cv_cc_flag_unknown_warning_option=no 10024fi 10025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10026fi 10027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10030 CFLAGS="$xorg_testset_save_CFLAGS" 10031fi 10032 10033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10036 fi 10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10041then : 10042 printf %s "(cached) " >&6 10043else $as_nop 10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10045/* end confdefs.h. */ 10046int i; 10047_ACEOF 10048if ac_fn_c_try_compile "$LINENO" 10049then : 10050 xorg_cv_cc_flag_unused_command_line_argument=yes 10051else $as_nop 10052 xorg_cv_cc_flag_unused_command_line_argument=no 10053fi 10054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10055fi 10056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10059 CFLAGS="$xorg_testset_save_CFLAGS" 10060fi 10061 10062found="no" 10063 10064 if test $found = "no" ; then 10065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10067 fi 10068 10069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10071 fi 10072 10073 CFLAGS="$CFLAGS -Wreturn-type" 10074 10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10076printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10077 cacheid=xorg_cv_cc_flag__Wreturn_type 10078 if eval test \${$cacheid+y} 10079then : 10080 printf %s "(cached) " >&6 10081else $as_nop 10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10083/* end confdefs.h. */ 10084int i; 10085int 10086main (void) 10087{ 10088 10089 ; 10090 return 0; 10091} 10092_ACEOF 10093if ac_fn_c_try_link "$LINENO" 10094then : 10095 eval $cacheid=yes 10096else $as_nop 10097 eval $cacheid=no 10098fi 10099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10100 conftest$ac_exeext conftest.$ac_ext 10101fi 10102 10103 10104 CFLAGS="$xorg_testset_save_CFLAGS" 10105 10106 eval supported=\$$cacheid 10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10108printf "%s\n" "$supported" >&6; } 10109 if test "$supported" = "yes" ; then 10110 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10111 found="yes" 10112 fi 10113 fi 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129xorg_testset_save_CFLAGS="$CFLAGS" 10130 10131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10135if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10136then : 10137 printf %s "(cached) " >&6 10138else $as_nop 10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10140/* end confdefs.h. */ 10141int i; 10142_ACEOF 10143if ac_fn_c_try_compile "$LINENO" 10144then : 10145 xorg_cv_cc_flag_unknown_warning_option=yes 10146else $as_nop 10147 xorg_cv_cc_flag_unknown_warning_option=no 10148fi 10149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10150fi 10151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10154 CFLAGS="$xorg_testset_save_CFLAGS" 10155fi 10156 10157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10160 fi 10161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10164if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10165then : 10166 printf %s "(cached) " >&6 10167else $as_nop 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169/* end confdefs.h. */ 10170int i; 10171_ACEOF 10172if ac_fn_c_try_compile "$LINENO" 10173then : 10174 xorg_cv_cc_flag_unused_command_line_argument=yes 10175else $as_nop 10176 xorg_cv_cc_flag_unused_command_line_argument=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10179fi 10180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10181printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184fi 10185 10186found="no" 10187 10188 if test $found = "no" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10195 fi 10196 10197 CFLAGS="$CFLAGS -Wtrigraphs" 10198 10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10200printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10201 cacheid=xorg_cv_cc_flag__Wtrigraphs 10202 if eval test \${$cacheid+y} 10203then : 10204 printf %s "(cached) " >&6 10205else $as_nop 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207/* end confdefs.h. */ 10208int i; 10209int 10210main (void) 10211{ 10212 10213 ; 10214 return 0; 10215} 10216_ACEOF 10217if ac_fn_c_try_link "$LINENO" 10218then : 10219 eval $cacheid=yes 10220else $as_nop 10221 eval $cacheid=no 10222fi 10223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10224 conftest$ac_exeext conftest.$ac_ext 10225fi 10226 10227 10228 CFLAGS="$xorg_testset_save_CFLAGS" 10229 10230 eval supported=\$$cacheid 10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10232printf "%s\n" "$supported" >&6; } 10233 if test "$supported" = "yes" ; then 10234 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10235 found="yes" 10236 fi 10237 fi 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253xorg_testset_save_CFLAGS="$CFLAGS" 10254 10255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10259if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10260then : 10261 printf %s "(cached) " >&6 10262else $as_nop 10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10264/* end confdefs.h. */ 10265int i; 10266_ACEOF 10267if ac_fn_c_try_compile "$LINENO" 10268then : 10269 xorg_cv_cc_flag_unknown_warning_option=yes 10270else $as_nop 10271 xorg_cv_cc_flag_unknown_warning_option=no 10272fi 10273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10274fi 10275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10278 CFLAGS="$xorg_testset_save_CFLAGS" 10279fi 10280 10281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10284 fi 10285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10288if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10289then : 10290 printf %s "(cached) " >&6 10291else $as_nop 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294int i; 10295_ACEOF 10296if ac_fn_c_try_compile "$LINENO" 10297then : 10298 xorg_cv_cc_flag_unused_command_line_argument=yes 10299else $as_nop 10300 xorg_cv_cc_flag_unused_command_line_argument=no 10301fi 10302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10303fi 10304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308fi 10309 10310found="no" 10311 10312 if test $found = "no" ; then 10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10315 fi 10316 10317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10319 fi 10320 10321 CFLAGS="$CFLAGS -Warray-bounds" 10322 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10324printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10325 cacheid=xorg_cv_cc_flag__Warray_bounds 10326 if eval test \${$cacheid+y} 10327then : 10328 printf %s "(cached) " >&6 10329else $as_nop 10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331/* end confdefs.h. */ 10332int i; 10333int 10334main (void) 10335{ 10336 10337 ; 10338 return 0; 10339} 10340_ACEOF 10341if ac_fn_c_try_link "$LINENO" 10342then : 10343 eval $cacheid=yes 10344else $as_nop 10345 eval $cacheid=no 10346fi 10347rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10348 conftest$ac_exeext conftest.$ac_ext 10349fi 10350 10351 10352 CFLAGS="$xorg_testset_save_CFLAGS" 10353 10354 eval supported=\$$cacheid 10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10356printf "%s\n" "$supported" >&6; } 10357 if test "$supported" = "yes" ; then 10358 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10359 found="yes" 10360 fi 10361 fi 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377xorg_testset_save_CFLAGS="$CFLAGS" 10378 10379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10383if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10384then : 10385 printf %s "(cached) " >&6 10386else $as_nop 10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10388/* end confdefs.h. */ 10389int i; 10390_ACEOF 10391if ac_fn_c_try_compile "$LINENO" 10392then : 10393 xorg_cv_cc_flag_unknown_warning_option=yes 10394else $as_nop 10395 xorg_cv_cc_flag_unknown_warning_option=no 10396fi 10397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10398fi 10399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10402 CFLAGS="$xorg_testset_save_CFLAGS" 10403fi 10404 10405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10408 fi 10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10413then : 10414 printf %s "(cached) " >&6 10415else $as_nop 10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418int i; 10419_ACEOF 10420if ac_fn_c_try_compile "$LINENO" 10421then : 10422 xorg_cv_cc_flag_unused_command_line_argument=yes 10423else $as_nop 10424 xorg_cv_cc_flag_unused_command_line_argument=no 10425fi 10426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10427fi 10428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10431 CFLAGS="$xorg_testset_save_CFLAGS" 10432fi 10433 10434found="no" 10435 10436 if test $found = "no" ; then 10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439 fi 10440 10441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10443 fi 10444 10445 CFLAGS="$CFLAGS -Wwrite-strings" 10446 10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10448printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10449 cacheid=xorg_cv_cc_flag__Wwrite_strings 10450 if eval test \${$cacheid+y} 10451then : 10452 printf %s "(cached) " >&6 10453else $as_nop 10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10455/* end confdefs.h. */ 10456int i; 10457int 10458main (void) 10459{ 10460 10461 ; 10462 return 0; 10463} 10464_ACEOF 10465if ac_fn_c_try_link "$LINENO" 10466then : 10467 eval $cacheid=yes 10468else $as_nop 10469 eval $cacheid=no 10470fi 10471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10472 conftest$ac_exeext conftest.$ac_ext 10473fi 10474 10475 10476 CFLAGS="$xorg_testset_save_CFLAGS" 10477 10478 eval supported=\$$cacheid 10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10480printf "%s\n" "$supported" >&6; } 10481 if test "$supported" = "yes" ; then 10482 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10483 found="yes" 10484 fi 10485 fi 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501xorg_testset_save_CFLAGS="$CFLAGS" 10502 10503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10507if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10508then : 10509 printf %s "(cached) " >&6 10510else $as_nop 10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10512/* end confdefs.h. */ 10513int i; 10514_ACEOF 10515if ac_fn_c_try_compile "$LINENO" 10516then : 10517 xorg_cv_cc_flag_unknown_warning_option=yes 10518else $as_nop 10519 xorg_cv_cc_flag_unknown_warning_option=no 10520fi 10521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10522fi 10523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10526 CFLAGS="$xorg_testset_save_CFLAGS" 10527fi 10528 10529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532 fi 10533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10537then : 10538 printf %s "(cached) " >&6 10539else $as_nop 10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10541/* end confdefs.h. */ 10542int i; 10543_ACEOF 10544if ac_fn_c_try_compile "$LINENO" 10545then : 10546 xorg_cv_cc_flag_unused_command_line_argument=yes 10547else $as_nop 10548 xorg_cv_cc_flag_unused_command_line_argument=no 10549fi 10550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10551fi 10552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10555 CFLAGS="$xorg_testset_save_CFLAGS" 10556fi 10557 10558found="no" 10559 10560 if test $found = "no" ; then 10561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10563 fi 10564 10565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10567 fi 10568 10569 CFLAGS="$CFLAGS -Waddress" 10570 10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10572printf %s "checking if $CC supports -Waddress... " >&6; } 10573 cacheid=xorg_cv_cc_flag__Waddress 10574 if eval test \${$cacheid+y} 10575then : 10576 printf %s "(cached) " >&6 10577else $as_nop 10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10579/* end confdefs.h. */ 10580int i; 10581int 10582main (void) 10583{ 10584 10585 ; 10586 return 0; 10587} 10588_ACEOF 10589if ac_fn_c_try_link "$LINENO" 10590then : 10591 eval $cacheid=yes 10592else $as_nop 10593 eval $cacheid=no 10594fi 10595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10596 conftest$ac_exeext conftest.$ac_ext 10597fi 10598 10599 10600 CFLAGS="$xorg_testset_save_CFLAGS" 10601 10602 eval supported=\$$cacheid 10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10604printf "%s\n" "$supported" >&6; } 10605 if test "$supported" = "yes" ; then 10606 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10607 found="yes" 10608 fi 10609 fi 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625xorg_testset_save_CFLAGS="$CFLAGS" 10626 10627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10632then : 10633 printf %s "(cached) " >&6 10634else $as_nop 10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10636/* end confdefs.h. */ 10637int i; 10638_ACEOF 10639if ac_fn_c_try_compile "$LINENO" 10640then : 10641 xorg_cv_cc_flag_unknown_warning_option=yes 10642else $as_nop 10643 xorg_cv_cc_flag_unknown_warning_option=no 10644fi 10645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10646fi 10647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651fi 10652 10653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10656 fi 10657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10661then : 10662 printf %s "(cached) " >&6 10663else $as_nop 10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10665/* end confdefs.h. */ 10666int i; 10667_ACEOF 10668if ac_fn_c_try_compile "$LINENO" 10669then : 10670 xorg_cv_cc_flag_unused_command_line_argument=yes 10671else $as_nop 10672 xorg_cv_cc_flag_unused_command_line_argument=no 10673fi 10674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10675fi 10676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10679 CFLAGS="$xorg_testset_save_CFLAGS" 10680fi 10681 10682found="no" 10683 10684 if test $found = "no" ; then 10685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10687 fi 10688 10689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10691 fi 10692 10693 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10694 10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10696printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10697 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10698 if eval test \${$cacheid+y} 10699then : 10700 printf %s "(cached) " >&6 10701else $as_nop 10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703/* end confdefs.h. */ 10704int i; 10705int 10706main (void) 10707{ 10708 10709 ; 10710 return 0; 10711} 10712_ACEOF 10713if ac_fn_c_try_link "$LINENO" 10714then : 10715 eval $cacheid=yes 10716else $as_nop 10717 eval $cacheid=no 10718fi 10719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10720 conftest$ac_exeext conftest.$ac_ext 10721fi 10722 10723 10724 CFLAGS="$xorg_testset_save_CFLAGS" 10725 10726 eval supported=\$$cacheid 10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10728printf "%s\n" "$supported" >&6; } 10729 if test "$supported" = "yes" ; then 10730 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10731 found="yes" 10732 fi 10733 fi 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749xorg_testset_save_CFLAGS="$CFLAGS" 10750 10751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10755if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10756then : 10757 printf %s "(cached) " >&6 10758else $as_nop 10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10760/* end confdefs.h. */ 10761int i; 10762_ACEOF 10763if ac_fn_c_try_compile "$LINENO" 10764then : 10765 xorg_cv_cc_flag_unknown_warning_option=yes 10766else $as_nop 10767 xorg_cv_cc_flag_unknown_warning_option=no 10768fi 10769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10770fi 10771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10774 CFLAGS="$xorg_testset_save_CFLAGS" 10775fi 10776 10777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10780 fi 10781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10784if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10785then : 10786 printf %s "(cached) " >&6 10787else $as_nop 10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10789/* end confdefs.h. */ 10790int i; 10791_ACEOF 10792if ac_fn_c_try_compile "$LINENO" 10793then : 10794 xorg_cv_cc_flag_unused_command_line_argument=yes 10795else $as_nop 10796 xorg_cv_cc_flag_unused_command_line_argument=no 10797fi 10798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10799fi 10800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10803 CFLAGS="$xorg_testset_save_CFLAGS" 10804fi 10805 10806found="no" 10807 10808 if test $found = "no" ; then 10809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10811 fi 10812 10813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10815 fi 10816 10817 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10818 10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10820printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10821 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10822 if eval test \${$cacheid+y} 10823then : 10824 printf %s "(cached) " >&6 10825else $as_nop 10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827/* end confdefs.h. */ 10828int i; 10829int 10830main (void) 10831{ 10832 10833 ; 10834 return 0; 10835} 10836_ACEOF 10837if ac_fn_c_try_link "$LINENO" 10838then : 10839 eval $cacheid=yes 10840else $as_nop 10841 eval $cacheid=no 10842fi 10843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10844 conftest$ac_exeext conftest.$ac_ext 10845fi 10846 10847 10848 CFLAGS="$xorg_testset_save_CFLAGS" 10849 10850 eval supported=\$$cacheid 10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10852printf "%s\n" "$supported" >&6; } 10853 if test "$supported" = "yes" ; then 10854 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10855 found="yes" 10856 fi 10857 fi 10858 10859 10860fi 10861 10862 10863 10864 10865 10866 10867 10868 CWARNFLAGS="$BASE_CFLAGS" 10869 if test "x$GCC" = xyes ; then 10870 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10871 fi 10872 10873 10874 10875 10876 10877 10878 10879 10880# Check whether --enable-strict-compilation was given. 10881if test ${enable_strict_compilation+y} 10882then : 10883 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10884else $as_nop 10885 STRICT_COMPILE=no 10886fi 10887 10888 10889 10890 10891 10892 10893STRICT_CFLAGS="" 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907xorg_testset_save_CFLAGS="$CFLAGS" 10908 10909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10912printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10913if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10914then : 10915 printf %s "(cached) " >&6 10916else $as_nop 10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10918/* end confdefs.h. */ 10919int i; 10920_ACEOF 10921if ac_fn_c_try_compile "$LINENO" 10922then : 10923 xorg_cv_cc_flag_unknown_warning_option=yes 10924else $as_nop 10925 xorg_cv_cc_flag_unknown_warning_option=no 10926fi 10927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10928fi 10929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10930printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10932 CFLAGS="$xorg_testset_save_CFLAGS" 10933fi 10934 10935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10938 fi 10939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10941printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10942if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10943then : 10944 printf %s "(cached) " >&6 10945else $as_nop 10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947/* end confdefs.h. */ 10948int i; 10949_ACEOF 10950if ac_fn_c_try_compile "$LINENO" 10951then : 10952 xorg_cv_cc_flag_unused_command_line_argument=yes 10953else $as_nop 10954 xorg_cv_cc_flag_unused_command_line_argument=no 10955fi 10956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10957fi 10958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10959printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10961 CFLAGS="$xorg_testset_save_CFLAGS" 10962fi 10963 10964found="no" 10965 10966 if test $found = "no" ; then 10967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10969 fi 10970 10971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10973 fi 10974 10975 CFLAGS="$CFLAGS -pedantic" 10976 10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10978printf %s "checking if $CC supports -pedantic... " >&6; } 10979 cacheid=xorg_cv_cc_flag__pedantic 10980 if eval test \${$cacheid+y} 10981then : 10982 printf %s "(cached) " >&6 10983else $as_nop 10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10985/* end confdefs.h. */ 10986int i; 10987int 10988main (void) 10989{ 10990 10991 ; 10992 return 0; 10993} 10994_ACEOF 10995if ac_fn_c_try_link "$LINENO" 10996then : 10997 eval $cacheid=yes 10998else $as_nop 10999 eval $cacheid=no 11000fi 11001rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11002 conftest$ac_exeext conftest.$ac_ext 11003fi 11004 11005 11006 CFLAGS="$xorg_testset_save_CFLAGS" 11007 11008 eval supported=\$$cacheid 11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11010printf "%s\n" "$supported" >&6; } 11011 if test "$supported" = "yes" ; then 11012 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11013 found="yes" 11014 fi 11015 fi 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031xorg_testset_save_CFLAGS="$CFLAGS" 11032 11033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11037if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11038then : 11039 printf %s "(cached) " >&6 11040else $as_nop 11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042/* end confdefs.h. */ 11043int i; 11044_ACEOF 11045if ac_fn_c_try_compile "$LINENO" 11046then : 11047 xorg_cv_cc_flag_unknown_warning_option=yes 11048else $as_nop 11049 xorg_cv_cc_flag_unknown_warning_option=no 11050fi 11051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11052fi 11053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11054printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11056 CFLAGS="$xorg_testset_save_CFLAGS" 11057fi 11058 11059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11062 fi 11063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11065printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11066if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11067then : 11068 printf %s "(cached) " >&6 11069else $as_nop 11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11071/* end confdefs.h. */ 11072int i; 11073_ACEOF 11074if ac_fn_c_try_compile "$LINENO" 11075then : 11076 xorg_cv_cc_flag_unused_command_line_argument=yes 11077else $as_nop 11078 xorg_cv_cc_flag_unused_command_line_argument=no 11079fi 11080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11081fi 11082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11083printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11085 CFLAGS="$xorg_testset_save_CFLAGS" 11086fi 11087 11088found="no" 11089 11090 if test $found = "no" ; then 11091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11093 fi 11094 11095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11097 fi 11098 11099 CFLAGS="$CFLAGS -Werror" 11100 11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11102printf %s "checking if $CC supports -Werror... " >&6; } 11103 cacheid=xorg_cv_cc_flag__Werror 11104 if eval test \${$cacheid+y} 11105then : 11106 printf %s "(cached) " >&6 11107else $as_nop 11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11109/* end confdefs.h. */ 11110int i; 11111int 11112main (void) 11113{ 11114 11115 ; 11116 return 0; 11117} 11118_ACEOF 11119if ac_fn_c_try_link "$LINENO" 11120then : 11121 eval $cacheid=yes 11122else $as_nop 11123 eval $cacheid=no 11124fi 11125rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11126 conftest$ac_exeext conftest.$ac_ext 11127fi 11128 11129 11130 CFLAGS="$xorg_testset_save_CFLAGS" 11131 11132 eval supported=\$$cacheid 11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11134printf "%s\n" "$supported" >&6; } 11135 if test "$supported" = "yes" ; then 11136 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11137 found="yes" 11138 fi 11139 fi 11140 11141 if test $found = "no" ; then 11142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11144 fi 11145 11146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11148 fi 11149 11150 CFLAGS="$CFLAGS -errwarn" 11151 11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11153printf %s "checking if $CC supports -errwarn... " >&6; } 11154 cacheid=xorg_cv_cc_flag__errwarn 11155 if eval test \${$cacheid+y} 11156then : 11157 printf %s "(cached) " >&6 11158else $as_nop 11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11160/* end confdefs.h. */ 11161int i; 11162int 11163main (void) 11164{ 11165 11166 ; 11167 return 0; 11168} 11169_ACEOF 11170if ac_fn_c_try_link "$LINENO" 11171then : 11172 eval $cacheid=yes 11173else $as_nop 11174 eval $cacheid=no 11175fi 11176rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11177 conftest$ac_exeext conftest.$ac_ext 11178fi 11179 11180 11181 CFLAGS="$xorg_testset_save_CFLAGS" 11182 11183 eval supported=\$$cacheid 11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11185printf "%s\n" "$supported" >&6; } 11186 if test "$supported" = "yes" ; then 11187 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11188 found="yes" 11189 fi 11190 fi 11191 11192 11193 11194# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11195# activate it with -Werror, so we add it here explicitly. 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209xorg_testset_save_CFLAGS="$CFLAGS" 11210 11211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11214printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11215if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11216then : 11217 printf %s "(cached) " >&6 11218else $as_nop 11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11220/* end confdefs.h. */ 11221int i; 11222_ACEOF 11223if ac_fn_c_try_compile "$LINENO" 11224then : 11225 xorg_cv_cc_flag_unknown_warning_option=yes 11226else $as_nop 11227 xorg_cv_cc_flag_unknown_warning_option=no 11228fi 11229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11230fi 11231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11232printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11234 CFLAGS="$xorg_testset_save_CFLAGS" 11235fi 11236 11237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11240 fi 11241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11243printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11244if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11245then : 11246 printf %s "(cached) " >&6 11247else $as_nop 11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11249/* end confdefs.h. */ 11250int i; 11251_ACEOF 11252if ac_fn_c_try_compile "$LINENO" 11253then : 11254 xorg_cv_cc_flag_unused_command_line_argument=yes 11255else $as_nop 11256 xorg_cv_cc_flag_unused_command_line_argument=no 11257fi 11258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11259fi 11260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11263 CFLAGS="$xorg_testset_save_CFLAGS" 11264fi 11265 11266found="no" 11267 11268 if test $found = "no" ; then 11269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11271 fi 11272 11273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11275 fi 11276 11277 CFLAGS="$CFLAGS -Werror=attributes" 11278 11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11280printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11281 cacheid=xorg_cv_cc_flag__Werror_attributes 11282 if eval test \${$cacheid+y} 11283then : 11284 printf %s "(cached) " >&6 11285else $as_nop 11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11287/* end confdefs.h. */ 11288int i; 11289int 11290main (void) 11291{ 11292 11293 ; 11294 return 0; 11295} 11296_ACEOF 11297if ac_fn_c_try_link "$LINENO" 11298then : 11299 eval $cacheid=yes 11300else $as_nop 11301 eval $cacheid=no 11302fi 11303rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11304 conftest$ac_exeext conftest.$ac_ext 11305fi 11306 11307 11308 CFLAGS="$xorg_testset_save_CFLAGS" 11309 11310 eval supported=\$$cacheid 11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11312printf "%s\n" "$supported" >&6; } 11313 if test "$supported" = "yes" ; then 11314 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11315 found="yes" 11316 fi 11317 fi 11318 11319 11320 11321if test "x$STRICT_COMPILE" = "xyes"; then 11322 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11323 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11324fi 11325 11326 11327 11328 11329 11330 11331cat >>confdefs.h <<_ACEOF 11332#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11333_ACEOF 11334 11335 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11336 if test "x$PVM" = "x"; then 11337 PVM="0" 11338 fi 11339 11340printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11341 11342 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11343 if test "x$PVP" = "x"; then 11344 PVP="0" 11345 fi 11346 11347printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11348 11349 11350 11351CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11352mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11353|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11354touch \$(top_srcdir)/ChangeLog; \ 11355echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11356 11357 11358 11359 11360macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11361INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11362mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11363|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11364touch \$(top_srcdir)/INSTALL; \ 11365echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11366 11367 11368 11369 11370 11371 11372case $host_os in 11373 solaris*) 11374 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11375 # check for a man page file found in later versions that use 11376 # traditional section numbers instead 11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11378printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11379if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11380then : 11381 printf %s "(cached) " >&6 11382else $as_nop 11383 test "$cross_compiling" = yes && 11384 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11385if test -r "/usr/share/man/man7/attributes.7"; then 11386 ac_cv_file__usr_share_man_man7_attributes_7=yes 11387else 11388 ac_cv_file__usr_share_man_man7_attributes_7=no 11389fi 11390fi 11391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11392printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11393if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11394then : 11395 SYSV_MAN_SECTIONS=false 11396else $as_nop 11397 SYSV_MAN_SECTIONS=true 11398fi 11399 11400 ;; 11401 *) SYSV_MAN_SECTIONS=false ;; 11402esac 11403 11404if test x$APP_MAN_SUFFIX = x ; then 11405 APP_MAN_SUFFIX=1 11406fi 11407if test x$APP_MAN_DIR = x ; then 11408 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11409fi 11410 11411if test x$LIB_MAN_SUFFIX = x ; then 11412 LIB_MAN_SUFFIX=3 11413fi 11414if test x$LIB_MAN_DIR = x ; then 11415 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11416fi 11417 11418if test x$FILE_MAN_SUFFIX = x ; then 11419 case $SYSV_MAN_SECTIONS in 11420 true) FILE_MAN_SUFFIX=4 ;; 11421 *) FILE_MAN_SUFFIX=5 ;; 11422 esac 11423fi 11424if test x$FILE_MAN_DIR = x ; then 11425 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11426fi 11427 11428if test x$MISC_MAN_SUFFIX = x ; then 11429 case $SYSV_MAN_SECTIONS in 11430 true) MISC_MAN_SUFFIX=5 ;; 11431 *) MISC_MAN_SUFFIX=7 ;; 11432 esac 11433fi 11434if test x$MISC_MAN_DIR = x ; then 11435 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11436fi 11437 11438if test x$DRIVER_MAN_SUFFIX = x ; then 11439 case $SYSV_MAN_SECTIONS in 11440 true) DRIVER_MAN_SUFFIX=7 ;; 11441 *) DRIVER_MAN_SUFFIX=4 ;; 11442 esac 11443fi 11444if test x$DRIVER_MAN_DIR = x ; then 11445 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11446fi 11447 11448if test x$ADMIN_MAN_SUFFIX = x ; then 11449 case $SYSV_MAN_SECTIONS in 11450 true) ADMIN_MAN_SUFFIX=1m ;; 11451 *) ADMIN_MAN_SUFFIX=8 ;; 11452 esac 11453fi 11454if test x$ADMIN_MAN_DIR = x ; then 11455 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11456fi 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472XORG_MAN_PAGE="X Version 11" 11473 11474MAN_SUBSTS="\ 11475 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11476 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11477 -e 's|__xservername__|Xorg|g' \ 11478 -e 's|__xconfigfile__|xorg.conf|g' \ 11479 -e 's|__projectroot__|\$(prefix)|g' \ 11480 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11481 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11482 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11483 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11484 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11485 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11486 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11487 11488 11489 11490# Check whether --enable-silent-rules was given. 11491if test ${enable_silent_rules+y} 11492then : 11493 enableval=$enable_silent_rules; 11494fi 11495 11496case $enable_silent_rules in # ((( 11497 yes) AM_DEFAULT_VERBOSITY=0;; 11498 no) AM_DEFAULT_VERBOSITY=1;; 11499 *) AM_DEFAULT_VERBOSITY=0;; 11500esac 11501am_make=${MAKE-make} 11502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11503printf %s "checking whether $am_make supports nested variables... " >&6; } 11504if test ${am_cv_make_support_nested_variables+y} 11505then : 11506 printf %s "(cached) " >&6 11507else $as_nop 11508 if printf "%s\n" 'TRUE=$(BAR$(V)) 11509BAR0=false 11510BAR1=true 11511V=1 11512am__doit: 11513 @$(TRUE) 11514.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11515 am_cv_make_support_nested_variables=yes 11516else 11517 am_cv_make_support_nested_variables=no 11518fi 11519fi 11520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11521printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11522if test $am_cv_make_support_nested_variables = yes; then 11523 AM_V='$(V)' 11524 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11525else 11526 AM_V=$AM_DEFAULT_VERBOSITY 11527 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11528fi 11529AM_BACKSLASH='\' 11530 11531 11532 11533# Initialize libtool 11534# Check whether --enable-static was given. 11535if test ${enable_static+y} 11536then : 11537 enableval=$enable_static; p=${PACKAGE-default} 11538 case $enableval in 11539 yes) enable_static=yes ;; 11540 no) enable_static=no ;; 11541 *) 11542 enable_static=no 11543 # Look at the argument we got. We use all the common list separators. 11544 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11545 for pkg in $enableval; do 11546 IFS=$lt_save_ifs 11547 if test "X$pkg" = "X$p"; then 11548 enable_static=yes 11549 fi 11550 done 11551 IFS=$lt_save_ifs 11552 ;; 11553 esac 11554else $as_nop 11555 enable_static=no 11556fi 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567case `pwd` in 11568 *\ * | *\ *) 11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11570printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11571esac 11572 11573 11574 11575macro_version='2.4.7' 11576macro_revision='2.4.7' 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591ltmain=$ac_aux_dir/ltmain.sh 11592 11593# Backslashify metacharacters that are still active within 11594# double-quoted strings. 11595sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11596 11597# Same as above, but do not quote variable references. 11598double_quote_subst='s/\(["`\\]\)/\\\1/g' 11599 11600# Sed substitution to delay expansion of an escaped shell variable in a 11601# double_quote_subst'ed string. 11602delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11603 11604# Sed substitution to delay expansion of an escaped single quote. 11605delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11606 11607# Sed substitution to avoid accidental globbing in evaled expressions 11608no_glob_subst='s/\*/\\\*/g' 11609 11610ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11611ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11612ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11613 11614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11615printf %s "checking how to print strings... " >&6; } 11616# Test print first, because it will be a builtin if present. 11617if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11618 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11619 ECHO='print -r --' 11620elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11621 ECHO='printf %s\n' 11622else 11623 # Use this function as a fallback that always works. 11624 func_fallback_echo () 11625 { 11626 eval 'cat <<_LTECHO_EOF 11627$1 11628_LTECHO_EOF' 11629 } 11630 ECHO='func_fallback_echo' 11631fi 11632 11633# func_echo_all arg... 11634# Invoke $ECHO with all args, space-separated. 11635func_echo_all () 11636{ 11637 $ECHO "" 11638} 11639 11640case $ECHO in 11641 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11642printf "%s\n" "printf" >&6; } ;; 11643 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11644printf "%s\n" "print -r" >&6; } ;; 11645 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11646printf "%s\n" "cat" >&6; } ;; 11647esac 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11663printf %s "checking for a sed that does not truncate output... " >&6; } 11664if test ${ac_cv_path_SED+y} 11665then : 11666 printf %s "(cached) " >&6 11667else $as_nop 11668 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11669 for ac_i in 1 2 3 4 5 6 7; do 11670 ac_script="$ac_script$as_nl$ac_script" 11671 done 11672 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11673 { ac_script=; unset ac_script;} 11674 if test -z "$SED"; then 11675 ac_path_SED_found=false 11676 # Loop through the user's path and test for each of PROGNAME-LIST 11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11678for as_dir in $PATH 11679do 11680 IFS=$as_save_IFS 11681 case $as_dir in #((( 11682 '') as_dir=./ ;; 11683 */) ;; 11684 *) as_dir=$as_dir/ ;; 11685 esac 11686 for ac_prog in sed gsed 11687 do 11688 for ac_exec_ext in '' $ac_executable_extensions; do 11689 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11690 as_fn_executable_p "$ac_path_SED" || continue 11691# Check for GNU ac_path_SED and select it if it is found. 11692 # Check for GNU $ac_path_SED 11693case `"$ac_path_SED" --version 2>&1` in 11694*GNU*) 11695 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11696*) 11697 ac_count=0 11698 printf %s 0123456789 >"conftest.in" 11699 while : 11700 do 11701 cat "conftest.in" "conftest.in" >"conftest.tmp" 11702 mv "conftest.tmp" "conftest.in" 11703 cp "conftest.in" "conftest.nl" 11704 printf "%s\n" '' >> "conftest.nl" 11705 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11707 as_fn_arith $ac_count + 1 && ac_count=$as_val 11708 if test $ac_count -gt ${ac_path_SED_max-0}; then 11709 # Best one so far, save it but keep looking for a better one 11710 ac_cv_path_SED="$ac_path_SED" 11711 ac_path_SED_max=$ac_count 11712 fi 11713 # 10*(2^10) chars as input seems more than enough 11714 test $ac_count -gt 10 && break 11715 done 11716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11717esac 11718 11719 $ac_path_SED_found && break 3 11720 done 11721 done 11722 done 11723IFS=$as_save_IFS 11724 if test -z "$ac_cv_path_SED"; then 11725 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11726 fi 11727else 11728 ac_cv_path_SED=$SED 11729fi 11730 11731fi 11732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11733printf "%s\n" "$ac_cv_path_SED" >&6; } 11734 SED="$ac_cv_path_SED" 11735 rm -f conftest.sed 11736 11737test -z "$SED" && SED=sed 11738Xsed="$SED -e 1s/^X//" 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11751printf %s "checking for grep that handles long lines and -e... " >&6; } 11752if test ${ac_cv_path_GREP+y} 11753then : 11754 printf %s "(cached) " >&6 11755else $as_nop 11756 if test -z "$GREP"; then 11757 ac_path_GREP_found=false 11758 # Loop through the user's path and test for each of PROGNAME-LIST 11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11760for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11761do 11762 IFS=$as_save_IFS 11763 case $as_dir in #((( 11764 '') as_dir=./ ;; 11765 */) ;; 11766 *) as_dir=$as_dir/ ;; 11767 esac 11768 for ac_prog in grep ggrep 11769 do 11770 for ac_exec_ext in '' $ac_executable_extensions; do 11771 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11772 as_fn_executable_p "$ac_path_GREP" || continue 11773# Check for GNU ac_path_GREP and select it if it is found. 11774 # Check for GNU $ac_path_GREP 11775case `"$ac_path_GREP" --version 2>&1` in 11776*GNU*) 11777 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11778*) 11779 ac_count=0 11780 printf %s 0123456789 >"conftest.in" 11781 while : 11782 do 11783 cat "conftest.in" "conftest.in" >"conftest.tmp" 11784 mv "conftest.tmp" "conftest.in" 11785 cp "conftest.in" "conftest.nl" 11786 printf "%s\n" 'GREP' >> "conftest.nl" 11787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11789 as_fn_arith $ac_count + 1 && ac_count=$as_val 11790 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11791 # Best one so far, save it but keep looking for a better one 11792 ac_cv_path_GREP="$ac_path_GREP" 11793 ac_path_GREP_max=$ac_count 11794 fi 11795 # 10*(2^10) chars as input seems more than enough 11796 test $ac_count -gt 10 && break 11797 done 11798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11799esac 11800 11801 $ac_path_GREP_found && break 3 11802 done 11803 done 11804 done 11805IFS=$as_save_IFS 11806 if test -z "$ac_cv_path_GREP"; then 11807 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11808 fi 11809else 11810 ac_cv_path_GREP=$GREP 11811fi 11812 11813fi 11814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11815printf "%s\n" "$ac_cv_path_GREP" >&6; } 11816 GREP="$ac_cv_path_GREP" 11817 11818 11819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11820printf %s "checking for egrep... " >&6; } 11821if test ${ac_cv_path_EGREP+y} 11822then : 11823 printf %s "(cached) " >&6 11824else $as_nop 11825 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11826 then ac_cv_path_EGREP="$GREP -E" 11827 else 11828 if test -z "$EGREP"; then 11829 ac_path_EGREP_found=false 11830 # Loop through the user's path and test for each of PROGNAME-LIST 11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11832for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11833do 11834 IFS=$as_save_IFS 11835 case $as_dir in #((( 11836 '') as_dir=./ ;; 11837 */) ;; 11838 *) as_dir=$as_dir/ ;; 11839 esac 11840 for ac_prog in egrep 11841 do 11842 for ac_exec_ext in '' $ac_executable_extensions; do 11843 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11844 as_fn_executable_p "$ac_path_EGREP" || continue 11845# Check for GNU ac_path_EGREP and select it if it is found. 11846 # Check for GNU $ac_path_EGREP 11847case `"$ac_path_EGREP" --version 2>&1` in 11848*GNU*) 11849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11850*) 11851 ac_count=0 11852 printf %s 0123456789 >"conftest.in" 11853 while : 11854 do 11855 cat "conftest.in" "conftest.in" >"conftest.tmp" 11856 mv "conftest.tmp" "conftest.in" 11857 cp "conftest.in" "conftest.nl" 11858 printf "%s\n" 'EGREP' >> "conftest.nl" 11859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11861 as_fn_arith $ac_count + 1 && ac_count=$as_val 11862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11863 # Best one so far, save it but keep looking for a better one 11864 ac_cv_path_EGREP="$ac_path_EGREP" 11865 ac_path_EGREP_max=$ac_count 11866 fi 11867 # 10*(2^10) chars as input seems more than enough 11868 test $ac_count -gt 10 && break 11869 done 11870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11871esac 11872 11873 $ac_path_EGREP_found && break 3 11874 done 11875 done 11876 done 11877IFS=$as_save_IFS 11878 if test -z "$ac_cv_path_EGREP"; then 11879 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11880 fi 11881else 11882 ac_cv_path_EGREP=$EGREP 11883fi 11884 11885 fi 11886fi 11887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11888printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11889 EGREP="$ac_cv_path_EGREP" 11890 11891 11892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11893printf %s "checking for fgrep... " >&6; } 11894if test ${ac_cv_path_FGREP+y} 11895then : 11896 printf %s "(cached) " >&6 11897else $as_nop 11898 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11899 then ac_cv_path_FGREP="$GREP -F" 11900 else 11901 if test -z "$FGREP"; then 11902 ac_path_FGREP_found=false 11903 # Loop through the user's path and test for each of PROGNAME-LIST 11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11906do 11907 IFS=$as_save_IFS 11908 case $as_dir in #((( 11909 '') as_dir=./ ;; 11910 */) ;; 11911 *) as_dir=$as_dir/ ;; 11912 esac 11913 for ac_prog in fgrep 11914 do 11915 for ac_exec_ext in '' $ac_executable_extensions; do 11916 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11917 as_fn_executable_p "$ac_path_FGREP" || continue 11918# Check for GNU ac_path_FGREP and select it if it is found. 11919 # Check for GNU $ac_path_FGREP 11920case `"$ac_path_FGREP" --version 2>&1` in 11921*GNU*) 11922 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11923*) 11924 ac_count=0 11925 printf %s 0123456789 >"conftest.in" 11926 while : 11927 do 11928 cat "conftest.in" "conftest.in" >"conftest.tmp" 11929 mv "conftest.tmp" "conftest.in" 11930 cp "conftest.in" "conftest.nl" 11931 printf "%s\n" 'FGREP' >> "conftest.nl" 11932 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11934 as_fn_arith $ac_count + 1 && ac_count=$as_val 11935 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11936 # Best one so far, save it but keep looking for a better one 11937 ac_cv_path_FGREP="$ac_path_FGREP" 11938 ac_path_FGREP_max=$ac_count 11939 fi 11940 # 10*(2^10) chars as input seems more than enough 11941 test $ac_count -gt 10 && break 11942 done 11943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11944esac 11945 11946 $ac_path_FGREP_found && break 3 11947 done 11948 done 11949 done 11950IFS=$as_save_IFS 11951 if test -z "$ac_cv_path_FGREP"; then 11952 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11953 fi 11954else 11955 ac_cv_path_FGREP=$FGREP 11956fi 11957 11958 fi 11959fi 11960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11961printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11962 FGREP="$ac_cv_path_FGREP" 11963 11964 11965test -z "$GREP" && GREP=grep 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985# Check whether --with-gnu-ld was given. 11986if test ${with_gnu_ld+y} 11987then : 11988 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11989else $as_nop 11990 with_gnu_ld=no 11991fi 11992 11993ac_prog=ld 11994if test yes = "$GCC"; then 11995 # Check if gcc -print-prog-name=ld gives a path. 11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11997printf %s "checking for ld used by $CC... " >&6; } 11998 case $host in 11999 *-*-mingw*) 12000 # gcc leaves a trailing carriage return, which upsets mingw 12001 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12002 *) 12003 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12004 esac 12005 case $ac_prog in 12006 # Accept absolute paths. 12007 [\\/]* | ?:[\\/]*) 12008 re_direlt='/[^/][^/]*/\.\./' 12009 # Canonicalize the pathname of ld 12010 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12011 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12012 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12013 done 12014 test -z "$LD" && LD=$ac_prog 12015 ;; 12016 "") 12017 # If it fails, then pretend we aren't using GCC. 12018 ac_prog=ld 12019 ;; 12020 *) 12021 # If it is relative, then search for the first ld in PATH. 12022 with_gnu_ld=unknown 12023 ;; 12024 esac 12025elif test yes = "$with_gnu_ld"; then 12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12027printf %s "checking for GNU ld... " >&6; } 12028else 12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12030printf %s "checking for non-GNU ld... " >&6; } 12031fi 12032if test ${lt_cv_path_LD+y} 12033then : 12034 printf %s "(cached) " >&6 12035else $as_nop 12036 if test -z "$LD"; then 12037 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12038 for ac_dir in $PATH; do 12039 IFS=$lt_save_ifs 12040 test -z "$ac_dir" && ac_dir=. 12041 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12042 lt_cv_path_LD=$ac_dir/$ac_prog 12043 # Check to see if the program is GNU ld. I'd rather use --version, 12044 # but apparently some variants of GNU ld only accept -v. 12045 # Break only if it was the GNU/non-GNU ld that we prefer. 12046 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12047 *GNU* | *'with BFD'*) 12048 test no != "$with_gnu_ld" && break 12049 ;; 12050 *) 12051 test yes != "$with_gnu_ld" && break 12052 ;; 12053 esac 12054 fi 12055 done 12056 IFS=$lt_save_ifs 12057else 12058 lt_cv_path_LD=$LD # Let the user override the test with a path. 12059fi 12060fi 12061 12062LD=$lt_cv_path_LD 12063if test -n "$LD"; then 12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12065printf "%s\n" "$LD" >&6; } 12066else 12067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12068printf "%s\n" "no" >&6; } 12069fi 12070test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12072printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12073if test ${lt_cv_prog_gnu_ld+y} 12074then : 12075 printf %s "(cached) " >&6 12076else $as_nop 12077 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12078case `$LD -v 2>&1 </dev/null` in 12079*GNU* | *'with BFD'*) 12080 lt_cv_prog_gnu_ld=yes 12081 ;; 12082*) 12083 lt_cv_prog_gnu_ld=no 12084 ;; 12085esac 12086fi 12087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12088printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12089with_gnu_ld=$lt_cv_prog_gnu_ld 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12100printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12101if test ${lt_cv_path_NM+y} 12102then : 12103 printf %s "(cached) " >&6 12104else $as_nop 12105 if test -n "$NM"; then 12106 # Let the user override the test. 12107 lt_cv_path_NM=$NM 12108else 12109 lt_nm_to_check=${ac_tool_prefix}nm 12110 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12111 lt_nm_to_check="$lt_nm_to_check nm" 12112 fi 12113 for lt_tmp_nm in $lt_nm_to_check; do 12114 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12115 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12116 IFS=$lt_save_ifs 12117 test -z "$ac_dir" && ac_dir=. 12118 tmp_nm=$ac_dir/$lt_tmp_nm 12119 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12120 # Check to see if the nm accepts a BSD-compat flag. 12121 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12122 # nm: unknown option "B" ignored 12123 # Tru64's nm complains that /dev/null is an invalid object file 12124 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12125 case $build_os in 12126 mingw*) lt_bad_file=conftest.nm/nofile ;; 12127 *) lt_bad_file=/dev/null ;; 12128 esac 12129 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 12130 *$lt_bad_file* | *'Invalid file or object type'*) 12131 lt_cv_path_NM="$tmp_nm -B" 12132 break 2 12133 ;; 12134 *) 12135 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 12136 */dev/null*) 12137 lt_cv_path_NM="$tmp_nm -p" 12138 break 2 12139 ;; 12140 *) 12141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12142 continue # so that we can try to find one that supports BSD flags 12143 ;; 12144 esac 12145 ;; 12146 esac 12147 fi 12148 done 12149 IFS=$lt_save_ifs 12150 done 12151 : ${lt_cv_path_NM=no} 12152fi 12153fi 12154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12155printf "%s\n" "$lt_cv_path_NM" >&6; } 12156if test no != "$lt_cv_path_NM"; then 12157 NM=$lt_cv_path_NM 12158else 12159 # Didn't find any BSD compatible name lister, look for dumpbin. 12160 if test -n "$DUMPBIN"; then : 12161 # Let the user override the test. 12162 else 12163 if test -n "$ac_tool_prefix"; then 12164 for ac_prog in dumpbin "link -dump" 12165 do 12166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12167set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12169printf %s "checking for $ac_word... " >&6; } 12170if test ${ac_cv_prog_DUMPBIN+y} 12171then : 12172 printf %s "(cached) " >&6 12173else $as_nop 12174 if test -n "$DUMPBIN"; then 12175 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12176else 12177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12178for as_dir in $PATH 12179do 12180 IFS=$as_save_IFS 12181 case $as_dir in #((( 12182 '') as_dir=./ ;; 12183 */) ;; 12184 *) as_dir=$as_dir/ ;; 12185 esac 12186 for ac_exec_ext in '' $ac_executable_extensions; do 12187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12188 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12190 break 2 12191 fi 12192done 12193 done 12194IFS=$as_save_IFS 12195 12196fi 12197fi 12198DUMPBIN=$ac_cv_prog_DUMPBIN 12199if test -n "$DUMPBIN"; then 12200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12201printf "%s\n" "$DUMPBIN" >&6; } 12202else 12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12204printf "%s\n" "no" >&6; } 12205fi 12206 12207 12208 test -n "$DUMPBIN" && break 12209 done 12210fi 12211if test -z "$DUMPBIN"; then 12212 ac_ct_DUMPBIN=$DUMPBIN 12213 for ac_prog in dumpbin "link -dump" 12214do 12215 # Extract the first word of "$ac_prog", so it can be a program name with args. 12216set dummy $ac_prog; ac_word=$2 12217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12218printf %s "checking for $ac_word... " >&6; } 12219if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 12220then : 12221 printf %s "(cached) " >&6 12222else $as_nop 12223 if test -n "$ac_ct_DUMPBIN"; then 12224 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12225else 12226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12227for as_dir in $PATH 12228do 12229 IFS=$as_save_IFS 12230 case $as_dir in #((( 12231 '') as_dir=./ ;; 12232 */) ;; 12233 *) as_dir=$as_dir/ ;; 12234 esac 12235 for ac_exec_ext in '' $ac_executable_extensions; do 12236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12237 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12239 break 2 12240 fi 12241done 12242 done 12243IFS=$as_save_IFS 12244 12245fi 12246fi 12247ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12248if test -n "$ac_ct_DUMPBIN"; then 12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12250printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12251else 12252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12253printf "%s\n" "no" >&6; } 12254fi 12255 12256 12257 test -n "$ac_ct_DUMPBIN" && break 12258done 12259 12260 if test "x$ac_ct_DUMPBIN" = x; then 12261 DUMPBIN=":" 12262 else 12263 case $cross_compiling:$ac_tool_warned in 12264yes:) 12265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12267ac_tool_warned=yes ;; 12268esac 12269 DUMPBIN=$ac_ct_DUMPBIN 12270 fi 12271fi 12272 12273 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12274 *COFF*) 12275 DUMPBIN="$DUMPBIN -symbols -headers" 12276 ;; 12277 *) 12278 DUMPBIN=: 12279 ;; 12280 esac 12281 fi 12282 12283 if test : != "$DUMPBIN"; then 12284 NM=$DUMPBIN 12285 fi 12286fi 12287test -z "$NM" && NM=nm 12288 12289 12290 12291 12292 12293 12294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12295printf %s "checking the name lister ($NM) interface... " >&6; } 12296if test ${lt_cv_nm_interface+y} 12297then : 12298 printf %s "(cached) " >&6 12299else $as_nop 12300 lt_cv_nm_interface="BSD nm" 12301 echo "int some_variable = 0;" > conftest.$ac_ext 12302 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12303 (eval "$ac_compile" 2>conftest.err) 12304 cat conftest.err >&5 12305 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12306 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12307 cat conftest.err >&5 12308 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12309 cat conftest.out >&5 12310 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12311 lt_cv_nm_interface="MS dumpbin" 12312 fi 12313 rm -f conftest* 12314fi 12315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12316printf "%s\n" "$lt_cv_nm_interface" >&6; } 12317 12318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12319printf %s "checking whether ln -s works... " >&6; } 12320LN_S=$as_ln_s 12321if test "$LN_S" = "ln -s"; then 12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12323printf "%s\n" "yes" >&6; } 12324else 12325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12326printf "%s\n" "no, using $LN_S" >&6; } 12327fi 12328 12329# find the maximum length of command line arguments 12330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12331printf %s "checking the maximum length of command line arguments... " >&6; } 12332if test ${lt_cv_sys_max_cmd_len+y} 12333then : 12334 printf %s "(cached) " >&6 12335else $as_nop 12336 i=0 12337 teststring=ABCD 12338 12339 case $build_os in 12340 msdosdjgpp*) 12341 # On DJGPP, this test can blow up pretty badly due to problems in libc 12342 # (any single argument exceeding 2000 bytes causes a buffer overrun 12343 # during glob expansion). Even if it were fixed, the result of this 12344 # check would be larger than it should be. 12345 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12346 ;; 12347 12348 gnu*) 12349 # Under GNU Hurd, this test is not required because there is 12350 # no limit to the length of command line arguments. 12351 # Libtool will interpret -1 as no limit whatsoever 12352 lt_cv_sys_max_cmd_len=-1; 12353 ;; 12354 12355 cygwin* | mingw* | cegcc*) 12356 # On Win9x/ME, this test blows up -- it succeeds, but takes 12357 # about 5 minutes as the teststring grows exponentially. 12358 # Worse, since 9x/ME are not pre-emptively multitasking, 12359 # you end up with a "frozen" computer, even though with patience 12360 # the test eventually succeeds (with a max line length of 256k). 12361 # Instead, let's just punt: use the minimum linelength reported by 12362 # all of the supported platforms: 8192 (on NT/2K/XP). 12363 lt_cv_sys_max_cmd_len=8192; 12364 ;; 12365 12366 mint*) 12367 # On MiNT this can take a long time and run out of memory. 12368 lt_cv_sys_max_cmd_len=8192; 12369 ;; 12370 12371 amigaos*) 12372 # On AmigaOS with pdksh, this test takes hours, literally. 12373 # So we just punt and use a minimum line length of 8192. 12374 lt_cv_sys_max_cmd_len=8192; 12375 ;; 12376 12377 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12378 # This has been around since 386BSD, at least. Likely further. 12379 if test -x /sbin/sysctl; then 12380 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12381 elif test -x /usr/sbin/sysctl; then 12382 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12383 else 12384 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12385 fi 12386 # And add a safety zone 12387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12389 ;; 12390 12391 interix*) 12392 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12393 lt_cv_sys_max_cmd_len=196608 12394 ;; 12395 12396 os2*) 12397 # The test takes a long time on OS/2. 12398 lt_cv_sys_max_cmd_len=8192 12399 ;; 12400 12401 osf*) 12402 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12403 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12404 # nice to cause kernel panics so lets avoid the loop below. 12405 # First set a reasonable default. 12406 lt_cv_sys_max_cmd_len=16384 12407 # 12408 if test -x /sbin/sysconfig; then 12409 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12410 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12411 esac 12412 fi 12413 ;; 12414 sco3.2v5*) 12415 lt_cv_sys_max_cmd_len=102400 12416 ;; 12417 sysv5* | sco5v6* | sysv4.2uw2*) 12418 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12419 if test -n "$kargmax"; then 12420 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12421 else 12422 lt_cv_sys_max_cmd_len=32768 12423 fi 12424 ;; 12425 *) 12426 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12427 if test -n "$lt_cv_sys_max_cmd_len" && \ 12428 test undefined != "$lt_cv_sys_max_cmd_len"; then 12429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12431 else 12432 # Make teststring a little bigger before we do anything with it. 12433 # a 1K string should be a reasonable start. 12434 for i in 1 2 3 4 5 6 7 8; do 12435 teststring=$teststring$teststring 12436 done 12437 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12438 # If test is not a shell built-in, we'll probably end up computing a 12439 # maximum length that is only half of the actual maximum length, but 12440 # we can't tell. 12441 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12442 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12443 test 17 != "$i" # 1/2 MB should be enough 12444 do 12445 i=`expr $i + 1` 12446 teststring=$teststring$teststring 12447 done 12448 # Only check the string length outside the loop. 12449 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12450 teststring= 12451 # Add a significant safety factor because C++ compilers can tack on 12452 # massive amounts of additional arguments before passing them to the 12453 # linker. It appears as though 1/2 is a usable value. 12454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12455 fi 12456 ;; 12457 esac 12458 12459fi 12460 12461if test -n "$lt_cv_sys_max_cmd_len"; then 12462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12463printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12464else 12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12466printf "%s\n" "none" >&6; } 12467fi 12468max_cmd_len=$lt_cv_sys_max_cmd_len 12469 12470 12471 12472 12473 12474 12475: ${CP="cp -f"} 12476: ${MV="mv -f"} 12477: ${RM="rm -f"} 12478 12479if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12480 lt_unset=unset 12481else 12482 lt_unset=false 12483fi 12484 12485 12486 12487 12488 12489# test EBCDIC or ASCII 12490case `echo X|tr X '\101'` in 12491 A) # ASCII based system 12492 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12493 lt_SP2NL='tr \040 \012' 12494 lt_NL2SP='tr \015\012 \040\040' 12495 ;; 12496 *) # EBCDIC based system 12497 lt_SP2NL='tr \100 \n' 12498 lt_NL2SP='tr \r\n \100\100' 12499 ;; 12500esac 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12511printf %s "checking how to convert $build file names to $host format... " >&6; } 12512if test ${lt_cv_to_host_file_cmd+y} 12513then : 12514 printf %s "(cached) " >&6 12515else $as_nop 12516 case $host in 12517 *-*-mingw* ) 12518 case $build in 12519 *-*-mingw* ) # actually msys 12520 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12521 ;; 12522 *-*-cygwin* ) 12523 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12524 ;; 12525 * ) # otherwise, assume *nix 12526 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12527 ;; 12528 esac 12529 ;; 12530 *-*-cygwin* ) 12531 case $build in 12532 *-*-mingw* ) # actually msys 12533 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12534 ;; 12535 *-*-cygwin* ) 12536 lt_cv_to_host_file_cmd=func_convert_file_noop 12537 ;; 12538 * ) # otherwise, assume *nix 12539 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12540 ;; 12541 esac 12542 ;; 12543 * ) # unhandled hosts (and "normal" native builds) 12544 lt_cv_to_host_file_cmd=func_convert_file_noop 12545 ;; 12546esac 12547 12548fi 12549 12550to_host_file_cmd=$lt_cv_to_host_file_cmd 12551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12552printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12553 12554 12555 12556 12557 12558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12559printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12560if test ${lt_cv_to_tool_file_cmd+y} 12561then : 12562 printf %s "(cached) " >&6 12563else $as_nop 12564 #assume ordinary cross tools, or native build. 12565lt_cv_to_tool_file_cmd=func_convert_file_noop 12566case $host in 12567 *-*-mingw* ) 12568 case $build in 12569 *-*-mingw* ) # actually msys 12570 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12571 ;; 12572 esac 12573 ;; 12574esac 12575 12576fi 12577 12578to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12580printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12581 12582 12583 12584 12585 12586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12587printf %s "checking for $LD option to reload object files... " >&6; } 12588if test ${lt_cv_ld_reload_flag+y} 12589then : 12590 printf %s "(cached) " >&6 12591else $as_nop 12592 lt_cv_ld_reload_flag='-r' 12593fi 12594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12595printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12596reload_flag=$lt_cv_ld_reload_flag 12597case $reload_flag in 12598"" | " "*) ;; 12599*) reload_flag=" $reload_flag" ;; 12600esac 12601reload_cmds='$LD$reload_flag -o $output$reload_objs' 12602case $host_os in 12603 cygwin* | mingw* | pw32* | cegcc*) 12604 if test yes != "$GCC"; then 12605 reload_cmds=false 12606 fi 12607 ;; 12608 darwin*) 12609 if test yes = "$GCC"; then 12610 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12611 else 12612 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12613 fi 12614 ;; 12615esac 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625if test -n "$ac_tool_prefix"; then 12626 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12627set dummy ${ac_tool_prefix}file; ac_word=$2 12628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12629printf %s "checking for $ac_word... " >&6; } 12630if test ${ac_cv_prog_FILECMD+y} 12631then : 12632 printf %s "(cached) " >&6 12633else $as_nop 12634 if test -n "$FILECMD"; then 12635 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12636else 12637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12638for as_dir in $PATH 12639do 12640 IFS=$as_save_IFS 12641 case $as_dir in #((( 12642 '') as_dir=./ ;; 12643 */) ;; 12644 *) as_dir=$as_dir/ ;; 12645 esac 12646 for ac_exec_ext in '' $ac_executable_extensions; do 12647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12648 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12650 break 2 12651 fi 12652done 12653 done 12654IFS=$as_save_IFS 12655 12656fi 12657fi 12658FILECMD=$ac_cv_prog_FILECMD 12659if test -n "$FILECMD"; then 12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12661printf "%s\n" "$FILECMD" >&6; } 12662else 12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12664printf "%s\n" "no" >&6; } 12665fi 12666 12667 12668fi 12669if test -z "$ac_cv_prog_FILECMD"; then 12670 ac_ct_FILECMD=$FILECMD 12671 # Extract the first word of "file", so it can be a program name with args. 12672set dummy file; ac_word=$2 12673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12674printf %s "checking for $ac_word... " >&6; } 12675if test ${ac_cv_prog_ac_ct_FILECMD+y} 12676then : 12677 printf %s "(cached) " >&6 12678else $as_nop 12679 if test -n "$ac_ct_FILECMD"; then 12680 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12681else 12682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12683for as_dir in $PATH 12684do 12685 IFS=$as_save_IFS 12686 case $as_dir in #((( 12687 '') as_dir=./ ;; 12688 */) ;; 12689 *) as_dir=$as_dir/ ;; 12690 esac 12691 for ac_exec_ext in '' $ac_executable_extensions; do 12692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12693 ac_cv_prog_ac_ct_FILECMD="file" 12694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12695 break 2 12696 fi 12697done 12698 done 12699IFS=$as_save_IFS 12700 12701fi 12702fi 12703ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12704if test -n "$ac_ct_FILECMD"; then 12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12706printf "%s\n" "$ac_ct_FILECMD" >&6; } 12707else 12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12709printf "%s\n" "no" >&6; } 12710fi 12711 12712 if test "x$ac_ct_FILECMD" = x; then 12713 FILECMD=":" 12714 else 12715 case $cross_compiling:$ac_tool_warned in 12716yes:) 12717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12719ac_tool_warned=yes ;; 12720esac 12721 FILECMD=$ac_ct_FILECMD 12722 fi 12723else 12724 FILECMD="$ac_cv_prog_FILECMD" 12725fi 12726 12727 12728 12729 12730 12731 12732 12733if test -n "$ac_tool_prefix"; then 12734 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12735set dummy ${ac_tool_prefix}objdump; ac_word=$2 12736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12737printf %s "checking for $ac_word... " >&6; } 12738if test ${ac_cv_prog_OBJDUMP+y} 12739then : 12740 printf %s "(cached) " >&6 12741else $as_nop 12742 if test -n "$OBJDUMP"; then 12743 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12744else 12745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12746for as_dir in $PATH 12747do 12748 IFS=$as_save_IFS 12749 case $as_dir in #((( 12750 '') as_dir=./ ;; 12751 */) ;; 12752 *) as_dir=$as_dir/ ;; 12753 esac 12754 for ac_exec_ext in '' $ac_executable_extensions; do 12755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12756 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12758 break 2 12759 fi 12760done 12761 done 12762IFS=$as_save_IFS 12763 12764fi 12765fi 12766OBJDUMP=$ac_cv_prog_OBJDUMP 12767if test -n "$OBJDUMP"; then 12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12769printf "%s\n" "$OBJDUMP" >&6; } 12770else 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12772printf "%s\n" "no" >&6; } 12773fi 12774 12775 12776fi 12777if test -z "$ac_cv_prog_OBJDUMP"; then 12778 ac_ct_OBJDUMP=$OBJDUMP 12779 # Extract the first word of "objdump", so it can be a program name with args. 12780set dummy objdump; ac_word=$2 12781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12782printf %s "checking for $ac_word... " >&6; } 12783if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12784then : 12785 printf %s "(cached) " >&6 12786else $as_nop 12787 if test -n "$ac_ct_OBJDUMP"; then 12788 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12789else 12790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12791for as_dir in $PATH 12792do 12793 IFS=$as_save_IFS 12794 case $as_dir in #((( 12795 '') as_dir=./ ;; 12796 */) ;; 12797 *) as_dir=$as_dir/ ;; 12798 esac 12799 for ac_exec_ext in '' $ac_executable_extensions; do 12800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12801 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12803 break 2 12804 fi 12805done 12806 done 12807IFS=$as_save_IFS 12808 12809fi 12810fi 12811ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12812if test -n "$ac_ct_OBJDUMP"; then 12813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12814printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12815else 12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12817printf "%s\n" "no" >&6; } 12818fi 12819 12820 if test "x$ac_ct_OBJDUMP" = x; then 12821 OBJDUMP="false" 12822 else 12823 case $cross_compiling:$ac_tool_warned in 12824yes:) 12825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12826printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12827ac_tool_warned=yes ;; 12828esac 12829 OBJDUMP=$ac_ct_OBJDUMP 12830 fi 12831else 12832 OBJDUMP="$ac_cv_prog_OBJDUMP" 12833fi 12834 12835test -z "$OBJDUMP" && OBJDUMP=objdump 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12846printf %s "checking how to recognize dependent libraries... " >&6; } 12847if test ${lt_cv_deplibs_check_method+y} 12848then : 12849 printf %s "(cached) " >&6 12850else $as_nop 12851 lt_cv_file_magic_cmd='$MAGIC_CMD' 12852lt_cv_file_magic_test_file= 12853lt_cv_deplibs_check_method='unknown' 12854# Need to set the preceding variable on all platforms that support 12855# interlibrary dependencies. 12856# 'none' -- dependencies not supported. 12857# 'unknown' -- same as none, but documents that we really don't know. 12858# 'pass_all' -- all dependencies passed with no checks. 12859# 'test_compile' -- check by making test program. 12860# 'file_magic [[regex]]' -- check by looking for files in library path 12861# that responds to the $file_magic_cmd with a given extended regex. 12862# If you have 'file' or equivalent on your system and you're not sure 12863# whether 'pass_all' will *always* work, you probably want this one. 12864 12865case $host_os in 12866aix[4-9]*) 12867 lt_cv_deplibs_check_method=pass_all 12868 ;; 12869 12870beos*) 12871 lt_cv_deplibs_check_method=pass_all 12872 ;; 12873 12874bsdi[45]*) 12875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12876 lt_cv_file_magic_cmd='$FILECMD -L' 12877 lt_cv_file_magic_test_file=/shlib/libc.so 12878 ;; 12879 12880cygwin*) 12881 # func_win32_libid is a shell function defined in ltmain.sh 12882 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12883 lt_cv_file_magic_cmd='func_win32_libid' 12884 ;; 12885 12886mingw* | pw32*) 12887 # Base MSYS/MinGW do not provide the 'file' command needed by 12888 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12889 # unless we find 'file', for example because we are cross-compiling. 12890 if ( file / ) >/dev/null 2>&1; then 12891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12892 lt_cv_file_magic_cmd='func_win32_libid' 12893 else 12894 # Keep this pattern in sync with the one in func_win32_libid. 12895 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12896 lt_cv_file_magic_cmd='$OBJDUMP -f' 12897 fi 12898 ;; 12899 12900cegcc*) 12901 # use the weaker test based on 'objdump'. See mingw*. 12902 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12903 lt_cv_file_magic_cmd='$OBJDUMP -f' 12904 ;; 12905 12906darwin* | rhapsody*) 12907 lt_cv_deplibs_check_method=pass_all 12908 ;; 12909 12910freebsd* | dragonfly* | midnightbsd*) 12911 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12912 case $host_cpu in 12913 i*86 ) 12914 # Not sure whether the presence of OpenBSD here was a mistake. 12915 # Let's accept both of them until this is cleared up. 12916 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12917 lt_cv_file_magic_cmd=$FILECMD 12918 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12919 ;; 12920 esac 12921 else 12922 lt_cv_deplibs_check_method=pass_all 12923 fi 12924 ;; 12925 12926haiku*) 12927 lt_cv_deplibs_check_method=pass_all 12928 ;; 12929 12930hpux10.20* | hpux11*) 12931 lt_cv_file_magic_cmd=$FILECMD 12932 case $host_cpu in 12933 ia64*) 12934 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12935 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12936 ;; 12937 hppa*64*) 12938 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]' 12939 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12940 ;; 12941 *) 12942 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12943 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12944 ;; 12945 esac 12946 ;; 12947 12948interix[3-9]*) 12949 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12951 ;; 12952 12953irix5* | irix6* | nonstopux*) 12954 case $LD in 12955 *-32|*"-32 ") libmagic=32-bit;; 12956 *-n32|*"-n32 ") libmagic=N32;; 12957 *-64|*"-64 ") libmagic=64-bit;; 12958 *) libmagic=never-match;; 12959 esac 12960 lt_cv_deplibs_check_method=pass_all 12961 ;; 12962 12963# This must be glibc/ELF. 12964linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12965 lt_cv_deplibs_check_method=pass_all 12966 ;; 12967 12968netbsd*) 12969 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12971 else 12972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12973 fi 12974 ;; 12975 12976newos6*) 12977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12978 lt_cv_file_magic_cmd=$FILECMD 12979 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12980 ;; 12981 12982*nto* | *qnx*) 12983 lt_cv_deplibs_check_method=pass_all 12984 ;; 12985 12986openbsd* | bitrig*) 12987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12989 else 12990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12991 fi 12992 ;; 12993 12994osf3* | osf4* | osf5*) 12995 lt_cv_deplibs_check_method=pass_all 12996 ;; 12997 12998rdos*) 12999 lt_cv_deplibs_check_method=pass_all 13000 ;; 13001 13002solaris*) 13003 lt_cv_deplibs_check_method=pass_all 13004 ;; 13005 13006sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13007 lt_cv_deplibs_check_method=pass_all 13008 ;; 13009 13010sysv4 | sysv4.3*) 13011 case $host_vendor in 13012 motorola) 13013 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]' 13014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13015 ;; 13016 ncr) 13017 lt_cv_deplibs_check_method=pass_all 13018 ;; 13019 sequent) 13020 lt_cv_file_magic_cmd='/bin/file' 13021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13022 ;; 13023 sni) 13024 lt_cv_file_magic_cmd='/bin/file' 13025 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13026 lt_cv_file_magic_test_file=/lib/libc.so 13027 ;; 13028 siemens) 13029 lt_cv_deplibs_check_method=pass_all 13030 ;; 13031 pc) 13032 lt_cv_deplibs_check_method=pass_all 13033 ;; 13034 esac 13035 ;; 13036 13037tpf*) 13038 lt_cv_deplibs_check_method=pass_all 13039 ;; 13040os2*) 13041 lt_cv_deplibs_check_method=pass_all 13042 ;; 13043esac 13044 13045fi 13046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13047printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 13048 13049file_magic_glob= 13050want_nocaseglob=no 13051if test "$build" = "$host"; then 13052 case $host_os in 13053 mingw* | pw32*) 13054 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13055 want_nocaseglob=yes 13056 else 13057 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13058 fi 13059 ;; 13060 esac 13061fi 13062 13063file_magic_cmd=$lt_cv_file_magic_cmd 13064deplibs_check_method=$lt_cv_deplibs_check_method 13065test -z "$deplibs_check_method" && deplibs_check_method=unknown 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088if test -n "$ac_tool_prefix"; then 13089 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13090set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13092printf %s "checking for $ac_word... " >&6; } 13093if test ${ac_cv_prog_DLLTOOL+y} 13094then : 13095 printf %s "(cached) " >&6 13096else $as_nop 13097 if test -n "$DLLTOOL"; then 13098 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13099else 13100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13101for as_dir in $PATH 13102do 13103 IFS=$as_save_IFS 13104 case $as_dir in #((( 13105 '') as_dir=./ ;; 13106 */) ;; 13107 *) as_dir=$as_dir/ ;; 13108 esac 13109 for ac_exec_ext in '' $ac_executable_extensions; do 13110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13111 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13113 break 2 13114 fi 13115done 13116 done 13117IFS=$as_save_IFS 13118 13119fi 13120fi 13121DLLTOOL=$ac_cv_prog_DLLTOOL 13122if test -n "$DLLTOOL"; then 13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13124printf "%s\n" "$DLLTOOL" >&6; } 13125else 13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13127printf "%s\n" "no" >&6; } 13128fi 13129 13130 13131fi 13132if test -z "$ac_cv_prog_DLLTOOL"; then 13133 ac_ct_DLLTOOL=$DLLTOOL 13134 # Extract the first word of "dlltool", so it can be a program name with args. 13135set dummy dlltool; ac_word=$2 13136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13137printf %s "checking for $ac_word... " >&6; } 13138if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 13139then : 13140 printf %s "(cached) " >&6 13141else $as_nop 13142 if test -n "$ac_ct_DLLTOOL"; then 13143 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13144else 13145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13146for as_dir in $PATH 13147do 13148 IFS=$as_save_IFS 13149 case $as_dir in #((( 13150 '') as_dir=./ ;; 13151 */) ;; 13152 *) as_dir=$as_dir/ ;; 13153 esac 13154 for ac_exec_ext in '' $ac_executable_extensions; do 13155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13156 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13158 break 2 13159 fi 13160done 13161 done 13162IFS=$as_save_IFS 13163 13164fi 13165fi 13166ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13167if test -n "$ac_ct_DLLTOOL"; then 13168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13169printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 13170else 13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13172printf "%s\n" "no" >&6; } 13173fi 13174 13175 if test "x$ac_ct_DLLTOOL" = x; then 13176 DLLTOOL="false" 13177 else 13178 case $cross_compiling:$ac_tool_warned in 13179yes:) 13180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13181printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13182ac_tool_warned=yes ;; 13183esac 13184 DLLTOOL=$ac_ct_DLLTOOL 13185 fi 13186else 13187 DLLTOOL="$ac_cv_prog_DLLTOOL" 13188fi 13189 13190test -z "$DLLTOOL" && DLLTOOL=dlltool 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13202printf %s "checking how to associate runtime and link libraries... " >&6; } 13203if test ${lt_cv_sharedlib_from_linklib_cmd+y} 13204then : 13205 printf %s "(cached) " >&6 13206else $as_nop 13207 lt_cv_sharedlib_from_linklib_cmd='unknown' 13208 13209case $host_os in 13210cygwin* | mingw* | pw32* | cegcc*) 13211 # two different shell functions defined in ltmain.sh; 13212 # decide which one to use based on capabilities of $DLLTOOL 13213 case `$DLLTOOL --help 2>&1` in 13214 *--identify-strict*) 13215 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13216 ;; 13217 *) 13218 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13219 ;; 13220 esac 13221 ;; 13222*) 13223 # fallback: assume linklib IS sharedlib 13224 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13225 ;; 13226esac 13227 13228fi 13229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13230printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13231sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13232test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13233 13234 13235 13236 13237 13238 13239 13240if test -n "$ac_tool_prefix"; then 13241 for ac_prog in ar 13242 do 13243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13244set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13246printf %s "checking for $ac_word... " >&6; } 13247if test ${ac_cv_prog_AR+y} 13248then : 13249 printf %s "(cached) " >&6 13250else $as_nop 13251 if test -n "$AR"; then 13252 ac_cv_prog_AR="$AR" # Let the user override the test. 13253else 13254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13255for as_dir in $PATH 13256do 13257 IFS=$as_save_IFS 13258 case $as_dir in #((( 13259 '') as_dir=./ ;; 13260 */) ;; 13261 *) as_dir=$as_dir/ ;; 13262 esac 13263 for ac_exec_ext in '' $ac_executable_extensions; do 13264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13265 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13267 break 2 13268 fi 13269done 13270 done 13271IFS=$as_save_IFS 13272 13273fi 13274fi 13275AR=$ac_cv_prog_AR 13276if test -n "$AR"; then 13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13278printf "%s\n" "$AR" >&6; } 13279else 13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13281printf "%s\n" "no" >&6; } 13282fi 13283 13284 13285 test -n "$AR" && break 13286 done 13287fi 13288if test -z "$AR"; then 13289 ac_ct_AR=$AR 13290 for ac_prog in ar 13291do 13292 # Extract the first word of "$ac_prog", so it can be a program name with args. 13293set dummy $ac_prog; ac_word=$2 13294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13295printf %s "checking for $ac_word... " >&6; } 13296if test ${ac_cv_prog_ac_ct_AR+y} 13297then : 13298 printf %s "(cached) " >&6 13299else $as_nop 13300 if test -n "$ac_ct_AR"; then 13301 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13302else 13303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13304for as_dir in $PATH 13305do 13306 IFS=$as_save_IFS 13307 case $as_dir in #((( 13308 '') as_dir=./ ;; 13309 */) ;; 13310 *) as_dir=$as_dir/ ;; 13311 esac 13312 for ac_exec_ext in '' $ac_executable_extensions; do 13313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13314 ac_cv_prog_ac_ct_AR="$ac_prog" 13315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13316 break 2 13317 fi 13318done 13319 done 13320IFS=$as_save_IFS 13321 13322fi 13323fi 13324ac_ct_AR=$ac_cv_prog_ac_ct_AR 13325if test -n "$ac_ct_AR"; then 13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13327printf "%s\n" "$ac_ct_AR" >&6; } 13328else 13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13330printf "%s\n" "no" >&6; } 13331fi 13332 13333 13334 test -n "$ac_ct_AR" && break 13335done 13336 13337 if test "x$ac_ct_AR" = x; then 13338 AR="false" 13339 else 13340 case $cross_compiling:$ac_tool_warned in 13341yes:) 13342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13343printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13344ac_tool_warned=yes ;; 13345esac 13346 AR=$ac_ct_AR 13347 fi 13348fi 13349 13350: ${AR=ar} 13351 13352 13353 13354 13355 13356 13357# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13358# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13359# higher priority because thats what people were doing historically (setting 13360# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13361# variable obsoleted/removed. 13362 13363test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13364lt_ar_flags=$AR_FLAGS 13365 13366 13367 13368 13369 13370 13371# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13372# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13373 13374 13375 13376 13377 13378 13379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13380printf %s "checking for archiver @FILE support... " >&6; } 13381if test ${lt_cv_ar_at_file+y} 13382then : 13383 printf %s "(cached) " >&6 13384else $as_nop 13385 lt_cv_ar_at_file=no 13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13387/* end confdefs.h. */ 13388 13389int 13390main (void) 13391{ 13392 13393 ; 13394 return 0; 13395} 13396_ACEOF 13397if ac_fn_c_try_compile "$LINENO" 13398then : 13399 echo conftest.$ac_objext > conftest.lst 13400 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13402 (eval $lt_ar_try) 2>&5 13403 ac_status=$? 13404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13405 test $ac_status = 0; } 13406 if test 0 -eq "$ac_status"; then 13407 # Ensure the archiver fails upon bogus file names. 13408 rm -f conftest.$ac_objext libconftest.a 13409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13410 (eval $lt_ar_try) 2>&5 13411 ac_status=$? 13412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13413 test $ac_status = 0; } 13414 if test 0 -ne "$ac_status"; then 13415 lt_cv_ar_at_file=@ 13416 fi 13417 fi 13418 rm -f conftest.* libconftest.a 13419 13420fi 13421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13422 13423fi 13424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13425printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13426 13427if test no = "$lt_cv_ar_at_file"; then 13428 archiver_list_spec= 13429else 13430 archiver_list_spec=$lt_cv_ar_at_file 13431fi 13432 13433 13434 13435 13436 13437 13438 13439if test -n "$ac_tool_prefix"; then 13440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13441set dummy ${ac_tool_prefix}strip; ac_word=$2 13442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13443printf %s "checking for $ac_word... " >&6; } 13444if test ${ac_cv_prog_STRIP+y} 13445then : 13446 printf %s "(cached) " >&6 13447else $as_nop 13448 if test -n "$STRIP"; then 13449 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13450else 13451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13452for as_dir in $PATH 13453do 13454 IFS=$as_save_IFS 13455 case $as_dir in #((( 13456 '') as_dir=./ ;; 13457 */) ;; 13458 *) as_dir=$as_dir/ ;; 13459 esac 13460 for ac_exec_ext in '' $ac_executable_extensions; do 13461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13462 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13464 break 2 13465 fi 13466done 13467 done 13468IFS=$as_save_IFS 13469 13470fi 13471fi 13472STRIP=$ac_cv_prog_STRIP 13473if test -n "$STRIP"; then 13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13475printf "%s\n" "$STRIP" >&6; } 13476else 13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13478printf "%s\n" "no" >&6; } 13479fi 13480 13481 13482fi 13483if test -z "$ac_cv_prog_STRIP"; then 13484 ac_ct_STRIP=$STRIP 13485 # Extract the first word of "strip", so it can be a program name with args. 13486set dummy strip; ac_word=$2 13487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13488printf %s "checking for $ac_word... " >&6; } 13489if test ${ac_cv_prog_ac_ct_STRIP+y} 13490then : 13491 printf %s "(cached) " >&6 13492else $as_nop 13493 if test -n "$ac_ct_STRIP"; then 13494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13495else 13496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13497for as_dir in $PATH 13498do 13499 IFS=$as_save_IFS 13500 case $as_dir in #((( 13501 '') as_dir=./ ;; 13502 */) ;; 13503 *) as_dir=$as_dir/ ;; 13504 esac 13505 for ac_exec_ext in '' $ac_executable_extensions; do 13506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13507 ac_cv_prog_ac_ct_STRIP="strip" 13508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13509 break 2 13510 fi 13511done 13512 done 13513IFS=$as_save_IFS 13514 13515fi 13516fi 13517ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13518if test -n "$ac_ct_STRIP"; then 13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13520printf "%s\n" "$ac_ct_STRIP" >&6; } 13521else 13522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13523printf "%s\n" "no" >&6; } 13524fi 13525 13526 if test "x$ac_ct_STRIP" = x; then 13527 STRIP=":" 13528 else 13529 case $cross_compiling:$ac_tool_warned in 13530yes:) 13531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13532printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13533ac_tool_warned=yes ;; 13534esac 13535 STRIP=$ac_ct_STRIP 13536 fi 13537else 13538 STRIP="$ac_cv_prog_STRIP" 13539fi 13540 13541test -z "$STRIP" && STRIP=: 13542 13543 13544 13545 13546 13547 13548if test -n "$ac_tool_prefix"; then 13549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13550set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13552printf %s "checking for $ac_word... " >&6; } 13553if test ${ac_cv_prog_RANLIB+y} 13554then : 13555 printf %s "(cached) " >&6 13556else $as_nop 13557 if test -n "$RANLIB"; then 13558 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13559else 13560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13561for as_dir in $PATH 13562do 13563 IFS=$as_save_IFS 13564 case $as_dir in #((( 13565 '') as_dir=./ ;; 13566 */) ;; 13567 *) as_dir=$as_dir/ ;; 13568 esac 13569 for ac_exec_ext in '' $ac_executable_extensions; do 13570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13573 break 2 13574 fi 13575done 13576 done 13577IFS=$as_save_IFS 13578 13579fi 13580fi 13581RANLIB=$ac_cv_prog_RANLIB 13582if test -n "$RANLIB"; then 13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13584printf "%s\n" "$RANLIB" >&6; } 13585else 13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13587printf "%s\n" "no" >&6; } 13588fi 13589 13590 13591fi 13592if test -z "$ac_cv_prog_RANLIB"; then 13593 ac_ct_RANLIB=$RANLIB 13594 # Extract the first word of "ranlib", so it can be a program name with args. 13595set dummy ranlib; ac_word=$2 13596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13597printf %s "checking for $ac_word... " >&6; } 13598if test ${ac_cv_prog_ac_ct_RANLIB+y} 13599then : 13600 printf %s "(cached) " >&6 13601else $as_nop 13602 if test -n "$ac_ct_RANLIB"; then 13603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13604else 13605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13606for as_dir in $PATH 13607do 13608 IFS=$as_save_IFS 13609 case $as_dir in #((( 13610 '') as_dir=./ ;; 13611 */) ;; 13612 *) as_dir=$as_dir/ ;; 13613 esac 13614 for ac_exec_ext in '' $ac_executable_extensions; do 13615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13616 ac_cv_prog_ac_ct_RANLIB="ranlib" 13617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13618 break 2 13619 fi 13620done 13621 done 13622IFS=$as_save_IFS 13623 13624fi 13625fi 13626ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13627if test -n "$ac_ct_RANLIB"; then 13628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13629printf "%s\n" "$ac_ct_RANLIB" >&6; } 13630else 13631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13632printf "%s\n" "no" >&6; } 13633fi 13634 13635 if test "x$ac_ct_RANLIB" = x; then 13636 RANLIB=":" 13637 else 13638 case $cross_compiling:$ac_tool_warned in 13639yes:) 13640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13641printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13642ac_tool_warned=yes ;; 13643esac 13644 RANLIB=$ac_ct_RANLIB 13645 fi 13646else 13647 RANLIB="$ac_cv_prog_RANLIB" 13648fi 13649 13650test -z "$RANLIB" && RANLIB=: 13651 13652 13653 13654 13655 13656 13657# Determine commands to create old-style static archives. 13658old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13659old_postinstall_cmds='chmod 644 $oldlib' 13660old_postuninstall_cmds= 13661 13662if test -n "$RANLIB"; then 13663 case $host_os in 13664 bitrig* | openbsd*) 13665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13666 ;; 13667 *) 13668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13669 ;; 13670 esac 13671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13672fi 13673 13674case $host_os in 13675 darwin*) 13676 lock_old_archive_extraction=yes ;; 13677 *) 13678 lock_old_archive_extraction=no ;; 13679esac 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719# If no C compiler was specified, use CC. 13720LTCC=${LTCC-"$CC"} 13721 13722# If no C compiler flags were specified, use CFLAGS. 13723LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13724 13725# Allow CC to be a program name with arguments. 13726compiler=$CC 13727 13728 13729# Check for command to grab the raw symbol name followed by C symbol from nm. 13730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13731printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13732if test ${lt_cv_sys_global_symbol_pipe+y} 13733then : 13734 printf %s "(cached) " >&6 13735else $as_nop 13736 13737# These are sane defaults that work on at least a few old systems. 13738# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13739 13740# Character class describing NM global symbol codes. 13741symcode='[BCDEGRST]' 13742 13743# Regexp to match symbols that can be accessed directly from C. 13744sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13745 13746# Define system-specific variables. 13747case $host_os in 13748aix*) 13749 symcode='[BCDT]' 13750 ;; 13751cygwin* | mingw* | pw32* | cegcc*) 13752 symcode='[ABCDGISTW]' 13753 ;; 13754hpux*) 13755 if test ia64 = "$host_cpu"; then 13756 symcode='[ABCDEGRST]' 13757 fi 13758 ;; 13759irix* | nonstopux*) 13760 symcode='[BCDEGRST]' 13761 ;; 13762osf*) 13763 symcode='[BCDEGQRST]' 13764 ;; 13765solaris*) 13766 symcode='[BDRT]' 13767 ;; 13768sco3.2v5*) 13769 symcode='[DT]' 13770 ;; 13771sysv4.2uw2*) 13772 symcode='[DT]' 13773 ;; 13774sysv5* | sco5v6* | unixware* | OpenUNIX*) 13775 symcode='[ABDT]' 13776 ;; 13777sysv4) 13778 symcode='[DFNSTU]' 13779 ;; 13780esac 13781 13782# If we're using GNU nm, then use its standard symbol codes. 13783case `$NM -V 2>&1` in 13784*GNU* | *'with BFD'*) 13785 symcode='[ABCDGIRSTW]' ;; 13786esac 13787 13788if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13789 # Gets list of data symbols to import. 13790 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13791 # Adjust the below global symbol transforms to fixup imported variables. 13792 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13793 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13794 lt_c_name_lib_hook="\ 13795 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13796 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13797else 13798 # Disable hooks by default. 13799 lt_cv_sys_global_symbol_to_import= 13800 lt_cdecl_hook= 13801 lt_c_name_hook= 13802 lt_c_name_lib_hook= 13803fi 13804 13805# Transform an extracted symbol line into a proper C declaration. 13806# Some systems (esp. on ia64) link data and code symbols differently, 13807# so use this general approach. 13808lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13809$lt_cdecl_hook\ 13810" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13811" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13812 13813# Transform an extracted symbol line into symbol name and symbol address 13814lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13815$lt_c_name_hook\ 13816" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13817" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13818 13819# Transform an extracted symbol line into symbol name with lib prefix and 13820# symbol address. 13821lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13822$lt_c_name_lib_hook\ 13823" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13824" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13825" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13826 13827# Handle CRLF in mingw tool chain 13828opt_cr= 13829case $build_os in 13830mingw*) 13831 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13832 ;; 13833esac 13834 13835# Try without a prefix underscore, then with it. 13836for ac_symprfx in "" "_"; do 13837 13838 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13839 symxfrm="\\1 $ac_symprfx\\2 \\2" 13840 13841 # Write the raw and C identifiers. 13842 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13843 # Fake it for dumpbin and say T for any non-static function, 13844 # D for any global variable and I for any imported variable. 13845 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13846 # which start with @ or ?. 13847 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13848" {last_section=section; section=\$ 3};"\ 13849" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13850" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13851" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13852" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13853" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13854" \$ 0!~/External *\|/{next};"\ 13855" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13856" {if(hide[section]) next};"\ 13857" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13858" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13859" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13860" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13861" ' prfx=^$ac_symprfx" 13862 else 13863 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13864 fi 13865 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13866 13867 # Check to see that the pipe works correctly. 13868 pipe_works=no 13869 13870 rm -f conftest* 13871 cat > conftest.$ac_ext <<_LT_EOF 13872#ifdef __cplusplus 13873extern "C" { 13874#endif 13875char nm_test_var; 13876void nm_test_func(void); 13877void nm_test_func(void){} 13878#ifdef __cplusplus 13879} 13880#endif 13881int main(){nm_test_var='a';nm_test_func();return(0);} 13882_LT_EOF 13883 13884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13885 (eval $ac_compile) 2>&5 13886 ac_status=$? 13887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13888 test $ac_status = 0; }; then 13889 # Now try to grab the symbols. 13890 nlist=conftest.nm 13891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13892 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13893 ac_status=$? 13894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13895 test $ac_status = 0; } && test -s "$nlist"; then 13896 # Try sorting and uniquifying the output. 13897 if sort "$nlist" | uniq > "$nlist"T; then 13898 mv -f "$nlist"T "$nlist" 13899 else 13900 rm -f "$nlist"T 13901 fi 13902 13903 # Make sure that we snagged all the symbols we need. 13904 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13905 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13906 cat <<_LT_EOF > conftest.$ac_ext 13907/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13908#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13909/* DATA imports from DLLs on WIN32 can't be const, because runtime 13910 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13911# define LT_DLSYM_CONST 13912#elif defined __osf__ 13913/* This system does not cope well with relocations in const data. */ 13914# define LT_DLSYM_CONST 13915#else 13916# define LT_DLSYM_CONST const 13917#endif 13918 13919#ifdef __cplusplus 13920extern "C" { 13921#endif 13922 13923_LT_EOF 13924 # Now generate the symbol file. 13925 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13926 13927 cat <<_LT_EOF >> conftest.$ac_ext 13928 13929/* The mapping between symbol names and symbols. */ 13930LT_DLSYM_CONST struct { 13931 const char *name; 13932 void *address; 13933} 13934lt__PROGRAM__LTX_preloaded_symbols[] = 13935{ 13936 { "@PROGRAM@", (void *) 0 }, 13937_LT_EOF 13938 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13939 cat <<\_LT_EOF >> conftest.$ac_ext 13940 {0, (void *) 0} 13941}; 13942 13943/* This works around a problem in FreeBSD linker */ 13944#ifdef FREEBSD_WORKAROUND 13945static const void *lt_preloaded_setup() { 13946 return lt__PROGRAM__LTX_preloaded_symbols; 13947} 13948#endif 13949 13950#ifdef __cplusplus 13951} 13952#endif 13953_LT_EOF 13954 # Now try linking the two files. 13955 mv conftest.$ac_objext conftstm.$ac_objext 13956 lt_globsym_save_LIBS=$LIBS 13957 lt_globsym_save_CFLAGS=$CFLAGS 13958 LIBS=conftstm.$ac_objext 13959 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13961 (eval $ac_link) 2>&5 13962 ac_status=$? 13963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13964 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13965 pipe_works=yes 13966 fi 13967 LIBS=$lt_globsym_save_LIBS 13968 CFLAGS=$lt_globsym_save_CFLAGS 13969 else 13970 echo "cannot find nm_test_func in $nlist" >&5 13971 fi 13972 else 13973 echo "cannot find nm_test_var in $nlist" >&5 13974 fi 13975 else 13976 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13977 fi 13978 else 13979 echo "$progname: failed program was:" >&5 13980 cat conftest.$ac_ext >&5 13981 fi 13982 rm -rf conftest* conftst* 13983 13984 # Do not use the global_symbol_pipe unless it works. 13985 if test yes = "$pipe_works"; then 13986 break 13987 else 13988 lt_cv_sys_global_symbol_pipe= 13989 fi 13990done 13991 13992fi 13993 13994if test -z "$lt_cv_sys_global_symbol_pipe"; then 13995 lt_cv_sys_global_symbol_to_cdecl= 13996fi 13997if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13999printf "%s\n" "failed" >&6; } 14000else 14001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14002printf "%s\n" "ok" >&6; } 14003fi 14004 14005# Response file support. 14006if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14007 nm_file_list_spec='@' 14008elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14009 nm_file_list_spec='@' 14010fi 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14049printf %s "checking for sysroot... " >&6; } 14050 14051# Check whether --with-sysroot was given. 14052if test ${with_sysroot+y} 14053then : 14054 withval=$with_sysroot; 14055else $as_nop 14056 with_sysroot=no 14057fi 14058 14059 14060lt_sysroot= 14061case $with_sysroot in #( 14062 yes) 14063 if test yes = "$GCC"; then 14064 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14065 fi 14066 ;; #( 14067 /*) 14068 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 14069 ;; #( 14070 no|'') 14071 ;; #( 14072 *) 14073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14074printf "%s\n" "$with_sysroot" >&6; } 14075 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14076 ;; 14077esac 14078 14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14080printf "%s\n" "${lt_sysroot:-no}" >&6; } 14081 14082 14083 14084 14085 14086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14087printf %s "checking for a working dd... " >&6; } 14088if test ${ac_cv_path_lt_DD+y} 14089then : 14090 printf %s "(cached) " >&6 14091else $as_nop 14092 printf 0123456789abcdef0123456789abcdef >conftest.i 14093cat conftest.i conftest.i >conftest2.i 14094: ${lt_DD:=$DD} 14095if test -z "$lt_DD"; then 14096 ac_path_lt_DD_found=false 14097 # Loop through the user's path and test for each of PROGNAME-LIST 14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14099for as_dir in $PATH 14100do 14101 IFS=$as_save_IFS 14102 case $as_dir in #((( 14103 '') as_dir=./ ;; 14104 */) ;; 14105 *) as_dir=$as_dir/ ;; 14106 esac 14107 for ac_prog in dd 14108 do 14109 for ac_exec_ext in '' $ac_executable_extensions; do 14110 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 14111 as_fn_executable_p "$ac_path_lt_DD" || continue 14112if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14113 cmp -s conftest.i conftest.out \ 14114 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14115fi 14116 $ac_path_lt_DD_found && break 3 14117 done 14118 done 14119 done 14120IFS=$as_save_IFS 14121 if test -z "$ac_cv_path_lt_DD"; then 14122 : 14123 fi 14124else 14125 ac_cv_path_lt_DD=$lt_DD 14126fi 14127 14128rm -f conftest.i conftest2.i conftest.out 14129fi 14130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14131printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 14132 14133 14134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14135printf %s "checking how to truncate binary pipes... " >&6; } 14136if test ${lt_cv_truncate_bin+y} 14137then : 14138 printf %s "(cached) " >&6 14139else $as_nop 14140 printf 0123456789abcdef0123456789abcdef >conftest.i 14141cat conftest.i conftest.i >conftest2.i 14142lt_cv_truncate_bin= 14143if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14144 cmp -s conftest.i conftest.out \ 14145 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14146fi 14147rm -f conftest.i conftest2.i conftest.out 14148test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 14149fi 14150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14151printf "%s\n" "$lt_cv_truncate_bin" >&6; } 14152 14153 14154 14155 14156 14157 14158 14159# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14160func_cc_basename () 14161{ 14162 for cc_temp in $*""; do 14163 case $cc_temp in 14164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14166 \-*) ;; 14167 *) break;; 14168 esac 14169 done 14170 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14171} 14172 14173# Check whether --enable-libtool-lock was given. 14174if test ${enable_libtool_lock+y} 14175then : 14176 enableval=$enable_libtool_lock; 14177fi 14178 14179test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14180 14181# Some flags need to be propagated to the compiler or linker for good 14182# libtool support. 14183case $host in 14184ia64-*-hpux*) 14185 # Find out what ABI is being produced by ac_compile, and set mode 14186 # options accordingly. 14187 echo 'int i;' > conftest.$ac_ext 14188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14189 (eval $ac_compile) 2>&5 14190 ac_status=$? 14191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14192 test $ac_status = 0; }; then 14193 case `$FILECMD conftest.$ac_objext` in 14194 *ELF-32*) 14195 HPUX_IA64_MODE=32 14196 ;; 14197 *ELF-64*) 14198 HPUX_IA64_MODE=64 14199 ;; 14200 esac 14201 fi 14202 rm -rf conftest* 14203 ;; 14204*-*-irix6*) 14205 # Find out what ABI is being produced by ac_compile, and set linker 14206 # options accordingly. 14207 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14209 (eval $ac_compile) 2>&5 14210 ac_status=$? 14211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14212 test $ac_status = 0; }; then 14213 if test yes = "$lt_cv_prog_gnu_ld"; then 14214 case `$FILECMD conftest.$ac_objext` in 14215 *32-bit*) 14216 LD="${LD-ld} -melf32bsmip" 14217 ;; 14218 *N32*) 14219 LD="${LD-ld} -melf32bmipn32" 14220 ;; 14221 *64-bit*) 14222 LD="${LD-ld} -melf64bmip" 14223 ;; 14224 esac 14225 else 14226 case `$FILECMD conftest.$ac_objext` in 14227 *32-bit*) 14228 LD="${LD-ld} -32" 14229 ;; 14230 *N32*) 14231 LD="${LD-ld} -n32" 14232 ;; 14233 *64-bit*) 14234 LD="${LD-ld} -64" 14235 ;; 14236 esac 14237 fi 14238 fi 14239 rm -rf conftest* 14240 ;; 14241 14242mips64*-*linux*) 14243 # Find out what ABI is being produced by ac_compile, and set linker 14244 # options accordingly. 14245 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14247 (eval $ac_compile) 2>&5 14248 ac_status=$? 14249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14250 test $ac_status = 0; }; then 14251 emul=elf 14252 case `$FILECMD conftest.$ac_objext` in 14253 *32-bit*) 14254 emul="${emul}32" 14255 ;; 14256 *64-bit*) 14257 emul="${emul}64" 14258 ;; 14259 esac 14260 case `$FILECMD conftest.$ac_objext` in 14261 *MSB*) 14262 emul="${emul}btsmip" 14263 ;; 14264 *LSB*) 14265 emul="${emul}ltsmip" 14266 ;; 14267 esac 14268 case `$FILECMD conftest.$ac_objext` in 14269 *N32*) 14270 emul="${emul}n32" 14271 ;; 14272 esac 14273 LD="${LD-ld} -m $emul" 14274 fi 14275 rm -rf conftest* 14276 ;; 14277 14278x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14279s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14280 # Find out what ABI is being produced by ac_compile, and set linker 14281 # options accordingly. Note that the listed cases only cover the 14282 # situations where additional linker options are needed (such as when 14283 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14284 # vice versa); the common cases where no linker options are needed do 14285 # not appear in the list. 14286 echo 'int i;' > conftest.$ac_ext 14287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14288 (eval $ac_compile) 2>&5 14289 ac_status=$? 14290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14291 test $ac_status = 0; }; then 14292 case `$FILECMD conftest.o` in 14293 *32-bit*) 14294 case $host in 14295 x86_64-*kfreebsd*-gnu) 14296 LD="${LD-ld} -m elf_i386_fbsd" 14297 ;; 14298 x86_64-*linux*) 14299 case `$FILECMD conftest.o` in 14300 *x86-64*) 14301 LD="${LD-ld} -m elf32_x86_64" 14302 ;; 14303 *) 14304 LD="${LD-ld} -m elf_i386" 14305 ;; 14306 esac 14307 ;; 14308 powerpc64le-*linux*) 14309 LD="${LD-ld} -m elf32lppclinux" 14310 ;; 14311 powerpc64-*linux*) 14312 LD="${LD-ld} -m elf32ppclinux" 14313 ;; 14314 s390x-*linux*) 14315 LD="${LD-ld} -m elf_s390" 14316 ;; 14317 sparc64-*linux*) 14318 LD="${LD-ld} -m elf32_sparc" 14319 ;; 14320 esac 14321 ;; 14322 *64-bit*) 14323 case $host in 14324 x86_64-*kfreebsd*-gnu) 14325 LD="${LD-ld} -m elf_x86_64_fbsd" 14326 ;; 14327 x86_64-*linux*) 14328 LD="${LD-ld} -m elf_x86_64" 14329 ;; 14330 powerpcle-*linux*) 14331 LD="${LD-ld} -m elf64lppc" 14332 ;; 14333 powerpc-*linux*) 14334 LD="${LD-ld} -m elf64ppc" 14335 ;; 14336 s390*-*linux*|s390*-*tpf*) 14337 LD="${LD-ld} -m elf64_s390" 14338 ;; 14339 sparc*-*linux*) 14340 LD="${LD-ld} -m elf64_sparc" 14341 ;; 14342 esac 14343 ;; 14344 esac 14345 fi 14346 rm -rf conftest* 14347 ;; 14348 14349*-*-sco3.2v5*) 14350 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14351 SAVE_CFLAGS=$CFLAGS 14352 CFLAGS="$CFLAGS -belf" 14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14354printf %s "checking whether the C compiler needs -belf... " >&6; } 14355if test ${lt_cv_cc_needs_belf+y} 14356then : 14357 printf %s "(cached) " >&6 14358else $as_nop 14359 ac_ext=c 14360ac_cpp='$CPP $CPPFLAGS' 14361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14363ac_compiler_gnu=$ac_cv_c_compiler_gnu 14364 14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14366/* end confdefs.h. */ 14367 14368int 14369main (void) 14370{ 14371 14372 ; 14373 return 0; 14374} 14375_ACEOF 14376if ac_fn_c_try_link "$LINENO" 14377then : 14378 lt_cv_cc_needs_belf=yes 14379else $as_nop 14380 lt_cv_cc_needs_belf=no 14381fi 14382rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14383 conftest$ac_exeext conftest.$ac_ext 14384 ac_ext=c 14385ac_cpp='$CPP $CPPFLAGS' 14386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14388ac_compiler_gnu=$ac_cv_c_compiler_gnu 14389 14390fi 14391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14392printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14393 if test yes != "$lt_cv_cc_needs_belf"; then 14394 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14395 CFLAGS=$SAVE_CFLAGS 14396 fi 14397 ;; 14398*-*solaris*) 14399 # Find out what ABI is being produced by ac_compile, and set linker 14400 # options accordingly. 14401 echo 'int i;' > conftest.$ac_ext 14402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14403 (eval $ac_compile) 2>&5 14404 ac_status=$? 14405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14406 test $ac_status = 0; }; then 14407 case `$FILECMD conftest.o` in 14408 *64-bit*) 14409 case $lt_cv_prog_gnu_ld in 14410 yes*) 14411 case $host in 14412 i?86-*-solaris*|x86_64-*-solaris*) 14413 LD="${LD-ld} -m elf_x86_64" 14414 ;; 14415 sparc*-*-solaris*) 14416 LD="${LD-ld} -m elf64_sparc" 14417 ;; 14418 esac 14419 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14420 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14421 LD=${LD-ld}_sol2 14422 fi 14423 ;; 14424 *) 14425 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14426 LD="${LD-ld} -64" 14427 fi 14428 ;; 14429 esac 14430 ;; 14431 esac 14432 fi 14433 rm -rf conftest* 14434 ;; 14435esac 14436 14437need_locks=$enable_libtool_lock 14438 14439if test -n "$ac_tool_prefix"; then 14440 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14441set dummy ${ac_tool_prefix}mt; ac_word=$2 14442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14443printf %s "checking for $ac_word... " >&6; } 14444if test ${ac_cv_prog_MANIFEST_TOOL+y} 14445then : 14446 printf %s "(cached) " >&6 14447else $as_nop 14448 if test -n "$MANIFEST_TOOL"; then 14449 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14450else 14451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14452for as_dir in $PATH 14453do 14454 IFS=$as_save_IFS 14455 case $as_dir in #((( 14456 '') as_dir=./ ;; 14457 */) ;; 14458 *) as_dir=$as_dir/ ;; 14459 esac 14460 for ac_exec_ext in '' $ac_executable_extensions; do 14461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14462 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14464 break 2 14465 fi 14466done 14467 done 14468IFS=$as_save_IFS 14469 14470fi 14471fi 14472MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14473if test -n "$MANIFEST_TOOL"; then 14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14475printf "%s\n" "$MANIFEST_TOOL" >&6; } 14476else 14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14478printf "%s\n" "no" >&6; } 14479fi 14480 14481 14482fi 14483if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14484 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14485 # Extract the first word of "mt", so it can be a program name with args. 14486set dummy mt; ac_word=$2 14487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14488printf %s "checking for $ac_word... " >&6; } 14489if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14490then : 14491 printf %s "(cached) " >&6 14492else $as_nop 14493 if test -n "$ac_ct_MANIFEST_TOOL"; then 14494 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14495else 14496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14497for as_dir in $PATH 14498do 14499 IFS=$as_save_IFS 14500 case $as_dir in #((( 14501 '') as_dir=./ ;; 14502 */) ;; 14503 *) as_dir=$as_dir/ ;; 14504 esac 14505 for ac_exec_ext in '' $ac_executable_extensions; do 14506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14507 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14509 break 2 14510 fi 14511done 14512 done 14513IFS=$as_save_IFS 14514 14515fi 14516fi 14517ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14518if test -n "$ac_ct_MANIFEST_TOOL"; then 14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14520printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14521else 14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14523printf "%s\n" "no" >&6; } 14524fi 14525 14526 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14527 MANIFEST_TOOL=":" 14528 else 14529 case $cross_compiling:$ac_tool_warned in 14530yes:) 14531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14532printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14533ac_tool_warned=yes ;; 14534esac 14535 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14536 fi 14537else 14538 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14539fi 14540 14541test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14543printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14544if test ${lt_cv_path_mainfest_tool+y} 14545then : 14546 printf %s "(cached) " >&6 14547else $as_nop 14548 lt_cv_path_mainfest_tool=no 14549 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14550 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14551 cat conftest.err >&5 14552 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14553 lt_cv_path_mainfest_tool=yes 14554 fi 14555 rm -f conftest* 14556fi 14557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14558printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14559if test yes != "$lt_cv_path_mainfest_tool"; then 14560 MANIFEST_TOOL=: 14561fi 14562 14563 14564 14565 14566 14567 14568 case $host_os in 14569 rhapsody* | darwin*) 14570 if test -n "$ac_tool_prefix"; then 14571 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14572set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14574printf %s "checking for $ac_word... " >&6; } 14575if test ${ac_cv_prog_DSYMUTIL+y} 14576then : 14577 printf %s "(cached) " >&6 14578else $as_nop 14579 if test -n "$DSYMUTIL"; then 14580 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14581else 14582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14583for as_dir in $PATH 14584do 14585 IFS=$as_save_IFS 14586 case $as_dir in #((( 14587 '') as_dir=./ ;; 14588 */) ;; 14589 *) as_dir=$as_dir/ ;; 14590 esac 14591 for ac_exec_ext in '' $ac_executable_extensions; do 14592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14593 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14595 break 2 14596 fi 14597done 14598 done 14599IFS=$as_save_IFS 14600 14601fi 14602fi 14603DSYMUTIL=$ac_cv_prog_DSYMUTIL 14604if test -n "$DSYMUTIL"; then 14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14606printf "%s\n" "$DSYMUTIL" >&6; } 14607else 14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14609printf "%s\n" "no" >&6; } 14610fi 14611 14612 14613fi 14614if test -z "$ac_cv_prog_DSYMUTIL"; then 14615 ac_ct_DSYMUTIL=$DSYMUTIL 14616 # Extract the first word of "dsymutil", so it can be a program name with args. 14617set dummy dsymutil; ac_word=$2 14618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14619printf %s "checking for $ac_word... " >&6; } 14620if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14621then : 14622 printf %s "(cached) " >&6 14623else $as_nop 14624 if test -n "$ac_ct_DSYMUTIL"; then 14625 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14626else 14627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14628for as_dir in $PATH 14629do 14630 IFS=$as_save_IFS 14631 case $as_dir in #((( 14632 '') as_dir=./ ;; 14633 */) ;; 14634 *) as_dir=$as_dir/ ;; 14635 esac 14636 for ac_exec_ext in '' $ac_executable_extensions; do 14637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14638 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14640 break 2 14641 fi 14642done 14643 done 14644IFS=$as_save_IFS 14645 14646fi 14647fi 14648ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14649if test -n "$ac_ct_DSYMUTIL"; then 14650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14651printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14652else 14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14654printf "%s\n" "no" >&6; } 14655fi 14656 14657 if test "x$ac_ct_DSYMUTIL" = x; then 14658 DSYMUTIL=":" 14659 else 14660 case $cross_compiling:$ac_tool_warned in 14661yes:) 14662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14663printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14664ac_tool_warned=yes ;; 14665esac 14666 DSYMUTIL=$ac_ct_DSYMUTIL 14667 fi 14668else 14669 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14670fi 14671 14672 if test -n "$ac_tool_prefix"; then 14673 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14674set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14676printf %s "checking for $ac_word... " >&6; } 14677if test ${ac_cv_prog_NMEDIT+y} 14678then : 14679 printf %s "(cached) " >&6 14680else $as_nop 14681 if test -n "$NMEDIT"; then 14682 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14683else 14684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14685for as_dir in $PATH 14686do 14687 IFS=$as_save_IFS 14688 case $as_dir in #((( 14689 '') as_dir=./ ;; 14690 */) ;; 14691 *) as_dir=$as_dir/ ;; 14692 esac 14693 for ac_exec_ext in '' $ac_executable_extensions; do 14694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14695 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14697 break 2 14698 fi 14699done 14700 done 14701IFS=$as_save_IFS 14702 14703fi 14704fi 14705NMEDIT=$ac_cv_prog_NMEDIT 14706if test -n "$NMEDIT"; then 14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14708printf "%s\n" "$NMEDIT" >&6; } 14709else 14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14711printf "%s\n" "no" >&6; } 14712fi 14713 14714 14715fi 14716if test -z "$ac_cv_prog_NMEDIT"; then 14717 ac_ct_NMEDIT=$NMEDIT 14718 # Extract the first word of "nmedit", so it can be a program name with args. 14719set dummy nmedit; ac_word=$2 14720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14721printf %s "checking for $ac_word... " >&6; } 14722if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14723then : 14724 printf %s "(cached) " >&6 14725else $as_nop 14726 if test -n "$ac_ct_NMEDIT"; then 14727 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14728else 14729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14730for as_dir in $PATH 14731do 14732 IFS=$as_save_IFS 14733 case $as_dir in #((( 14734 '') as_dir=./ ;; 14735 */) ;; 14736 *) as_dir=$as_dir/ ;; 14737 esac 14738 for ac_exec_ext in '' $ac_executable_extensions; do 14739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14740 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14742 break 2 14743 fi 14744done 14745 done 14746IFS=$as_save_IFS 14747 14748fi 14749fi 14750ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14751if test -n "$ac_ct_NMEDIT"; then 14752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14753printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14754else 14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14756printf "%s\n" "no" >&6; } 14757fi 14758 14759 if test "x$ac_ct_NMEDIT" = x; then 14760 NMEDIT=":" 14761 else 14762 case $cross_compiling:$ac_tool_warned in 14763yes:) 14764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14765printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14766ac_tool_warned=yes ;; 14767esac 14768 NMEDIT=$ac_ct_NMEDIT 14769 fi 14770else 14771 NMEDIT="$ac_cv_prog_NMEDIT" 14772fi 14773 14774 if test -n "$ac_tool_prefix"; then 14775 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14776set dummy ${ac_tool_prefix}lipo; ac_word=$2 14777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14778printf %s "checking for $ac_word... " >&6; } 14779if test ${ac_cv_prog_LIPO+y} 14780then : 14781 printf %s "(cached) " >&6 14782else $as_nop 14783 if test -n "$LIPO"; then 14784 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14785else 14786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14787for as_dir in $PATH 14788do 14789 IFS=$as_save_IFS 14790 case $as_dir in #((( 14791 '') as_dir=./ ;; 14792 */) ;; 14793 *) as_dir=$as_dir/ ;; 14794 esac 14795 for ac_exec_ext in '' $ac_executable_extensions; do 14796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14797 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14799 break 2 14800 fi 14801done 14802 done 14803IFS=$as_save_IFS 14804 14805fi 14806fi 14807LIPO=$ac_cv_prog_LIPO 14808if test -n "$LIPO"; then 14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14810printf "%s\n" "$LIPO" >&6; } 14811else 14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14813printf "%s\n" "no" >&6; } 14814fi 14815 14816 14817fi 14818if test -z "$ac_cv_prog_LIPO"; then 14819 ac_ct_LIPO=$LIPO 14820 # Extract the first word of "lipo", so it can be a program name with args. 14821set dummy lipo; ac_word=$2 14822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14823printf %s "checking for $ac_word... " >&6; } 14824if test ${ac_cv_prog_ac_ct_LIPO+y} 14825then : 14826 printf %s "(cached) " >&6 14827else $as_nop 14828 if test -n "$ac_ct_LIPO"; then 14829 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14830else 14831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14832for as_dir in $PATH 14833do 14834 IFS=$as_save_IFS 14835 case $as_dir in #((( 14836 '') as_dir=./ ;; 14837 */) ;; 14838 *) as_dir=$as_dir/ ;; 14839 esac 14840 for ac_exec_ext in '' $ac_executable_extensions; do 14841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14842 ac_cv_prog_ac_ct_LIPO="lipo" 14843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14844 break 2 14845 fi 14846done 14847 done 14848IFS=$as_save_IFS 14849 14850fi 14851fi 14852ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14853if test -n "$ac_ct_LIPO"; then 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14855printf "%s\n" "$ac_ct_LIPO" >&6; } 14856else 14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14858printf "%s\n" "no" >&6; } 14859fi 14860 14861 if test "x$ac_ct_LIPO" = x; then 14862 LIPO=":" 14863 else 14864 case $cross_compiling:$ac_tool_warned in 14865yes:) 14866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14867printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14868ac_tool_warned=yes ;; 14869esac 14870 LIPO=$ac_ct_LIPO 14871 fi 14872else 14873 LIPO="$ac_cv_prog_LIPO" 14874fi 14875 14876 if test -n "$ac_tool_prefix"; then 14877 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14878set dummy ${ac_tool_prefix}otool; ac_word=$2 14879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14880printf %s "checking for $ac_word... " >&6; } 14881if test ${ac_cv_prog_OTOOL+y} 14882then : 14883 printf %s "(cached) " >&6 14884else $as_nop 14885 if test -n "$OTOOL"; then 14886 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14887else 14888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14889for as_dir in $PATH 14890do 14891 IFS=$as_save_IFS 14892 case $as_dir in #((( 14893 '') as_dir=./ ;; 14894 */) ;; 14895 *) as_dir=$as_dir/ ;; 14896 esac 14897 for ac_exec_ext in '' $ac_executable_extensions; do 14898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14899 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14901 break 2 14902 fi 14903done 14904 done 14905IFS=$as_save_IFS 14906 14907fi 14908fi 14909OTOOL=$ac_cv_prog_OTOOL 14910if test -n "$OTOOL"; then 14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14912printf "%s\n" "$OTOOL" >&6; } 14913else 14914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14915printf "%s\n" "no" >&6; } 14916fi 14917 14918 14919fi 14920if test -z "$ac_cv_prog_OTOOL"; then 14921 ac_ct_OTOOL=$OTOOL 14922 # Extract the first word of "otool", so it can be a program name with args. 14923set dummy otool; ac_word=$2 14924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14925printf %s "checking for $ac_word... " >&6; } 14926if test ${ac_cv_prog_ac_ct_OTOOL+y} 14927then : 14928 printf %s "(cached) " >&6 14929else $as_nop 14930 if test -n "$ac_ct_OTOOL"; then 14931 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14932else 14933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14934for as_dir in $PATH 14935do 14936 IFS=$as_save_IFS 14937 case $as_dir in #((( 14938 '') as_dir=./ ;; 14939 */) ;; 14940 *) as_dir=$as_dir/ ;; 14941 esac 14942 for ac_exec_ext in '' $ac_executable_extensions; do 14943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14944 ac_cv_prog_ac_ct_OTOOL="otool" 14945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14946 break 2 14947 fi 14948done 14949 done 14950IFS=$as_save_IFS 14951 14952fi 14953fi 14954ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14955if test -n "$ac_ct_OTOOL"; then 14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14957printf "%s\n" "$ac_ct_OTOOL" >&6; } 14958else 14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14960printf "%s\n" "no" >&6; } 14961fi 14962 14963 if test "x$ac_ct_OTOOL" = x; then 14964 OTOOL=":" 14965 else 14966 case $cross_compiling:$ac_tool_warned in 14967yes:) 14968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14969printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14970ac_tool_warned=yes ;; 14971esac 14972 OTOOL=$ac_ct_OTOOL 14973 fi 14974else 14975 OTOOL="$ac_cv_prog_OTOOL" 14976fi 14977 14978 if test -n "$ac_tool_prefix"; then 14979 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14980set dummy ${ac_tool_prefix}otool64; ac_word=$2 14981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14982printf %s "checking for $ac_word... " >&6; } 14983if test ${ac_cv_prog_OTOOL64+y} 14984then : 14985 printf %s "(cached) " >&6 14986else $as_nop 14987 if test -n "$OTOOL64"; then 14988 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14989else 14990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14991for as_dir in $PATH 14992do 14993 IFS=$as_save_IFS 14994 case $as_dir in #((( 14995 '') as_dir=./ ;; 14996 */) ;; 14997 *) as_dir=$as_dir/ ;; 14998 esac 14999 for ac_exec_ext in '' $ac_executable_extensions; do 15000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15001 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15003 break 2 15004 fi 15005done 15006 done 15007IFS=$as_save_IFS 15008 15009fi 15010fi 15011OTOOL64=$ac_cv_prog_OTOOL64 15012if test -n "$OTOOL64"; then 15013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15014printf "%s\n" "$OTOOL64" >&6; } 15015else 15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15017printf "%s\n" "no" >&6; } 15018fi 15019 15020 15021fi 15022if test -z "$ac_cv_prog_OTOOL64"; then 15023 ac_ct_OTOOL64=$OTOOL64 15024 # Extract the first word of "otool64", so it can be a program name with args. 15025set dummy otool64; ac_word=$2 15026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15027printf %s "checking for $ac_word... " >&6; } 15028if test ${ac_cv_prog_ac_ct_OTOOL64+y} 15029then : 15030 printf %s "(cached) " >&6 15031else $as_nop 15032 if test -n "$ac_ct_OTOOL64"; then 15033 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15034else 15035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15036for as_dir in $PATH 15037do 15038 IFS=$as_save_IFS 15039 case $as_dir in #((( 15040 '') as_dir=./ ;; 15041 */) ;; 15042 *) as_dir=$as_dir/ ;; 15043 esac 15044 for ac_exec_ext in '' $ac_executable_extensions; do 15045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15046 ac_cv_prog_ac_ct_OTOOL64="otool64" 15047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15048 break 2 15049 fi 15050done 15051 done 15052IFS=$as_save_IFS 15053 15054fi 15055fi 15056ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15057if test -n "$ac_ct_OTOOL64"; then 15058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15059printf "%s\n" "$ac_ct_OTOOL64" >&6; } 15060else 15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15062printf "%s\n" "no" >&6; } 15063fi 15064 15065 if test "x$ac_ct_OTOOL64" = x; then 15066 OTOOL64=":" 15067 else 15068 case $cross_compiling:$ac_tool_warned in 15069yes:) 15070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15071printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15072ac_tool_warned=yes ;; 15073esac 15074 OTOOL64=$ac_ct_OTOOL64 15075 fi 15076else 15077 OTOOL64="$ac_cv_prog_OTOOL64" 15078fi 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15107printf %s "checking for -single_module linker flag... " >&6; } 15108if test ${lt_cv_apple_cc_single_mod+y} 15109then : 15110 printf %s "(cached) " >&6 15111else $as_nop 15112 lt_cv_apple_cc_single_mod=no 15113 if test -z "$LT_MULTI_MODULE"; then 15114 # By default we will add the -single_module flag. You can override 15115 # by either setting the environment variable LT_MULTI_MODULE 15116 # non-empty at configure time, or by adding -multi_module to the 15117 # link flags. 15118 rm -rf libconftest.dylib* 15119 echo "int foo(void){return 1;}" > conftest.c 15120 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15121-dynamiclib -Wl,-single_module conftest.c" >&5 15122 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15123 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15124 _lt_result=$? 15125 # If there is a non-empty error log, and "single_module" 15126 # appears in it, assume the flag caused a linker warning 15127 if test -s conftest.err && $GREP single_module conftest.err; then 15128 cat conftest.err >&5 15129 # Otherwise, if the output was created with a 0 exit code from 15130 # the compiler, it worked. 15131 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15132 lt_cv_apple_cc_single_mod=yes 15133 else 15134 cat conftest.err >&5 15135 fi 15136 rm -rf libconftest.dylib* 15137 rm -f conftest.* 15138 fi 15139fi 15140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15141printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 15142 15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15144printf %s "checking for -exported_symbols_list linker flag... " >&6; } 15145if test ${lt_cv_ld_exported_symbols_list+y} 15146then : 15147 printf %s "(cached) " >&6 15148else $as_nop 15149 lt_cv_ld_exported_symbols_list=no 15150 save_LDFLAGS=$LDFLAGS 15151 echo "_main" > conftest.sym 15152 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15154/* end confdefs.h. */ 15155 15156int 15157main (void) 15158{ 15159 15160 ; 15161 return 0; 15162} 15163_ACEOF 15164if ac_fn_c_try_link "$LINENO" 15165then : 15166 lt_cv_ld_exported_symbols_list=yes 15167else $as_nop 15168 lt_cv_ld_exported_symbols_list=no 15169fi 15170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15171 conftest$ac_exeext conftest.$ac_ext 15172 LDFLAGS=$save_LDFLAGS 15173 15174fi 15175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15176printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 15177 15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15179printf %s "checking for -force_load linker flag... " >&6; } 15180if test ${lt_cv_ld_force_load+y} 15181then : 15182 printf %s "(cached) " >&6 15183else $as_nop 15184 lt_cv_ld_force_load=no 15185 cat > conftest.c << _LT_EOF 15186int forced_loaded() { return 2;} 15187_LT_EOF 15188 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15189 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15190 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 15191 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 15192 echo "$RANLIB libconftest.a" >&5 15193 $RANLIB libconftest.a 2>&5 15194 cat > conftest.c << _LT_EOF 15195int main() { return 0;} 15196_LT_EOF 15197 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15198 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15199 _lt_result=$? 15200 if test -s conftest.err && $GREP force_load conftest.err; then 15201 cat conftest.err >&5 15202 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15203 lt_cv_ld_force_load=yes 15204 else 15205 cat conftest.err >&5 15206 fi 15207 rm -f conftest.err libconftest.a conftest conftest.c 15208 rm -rf conftest.dSYM 15209 15210fi 15211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15212printf "%s\n" "$lt_cv_ld_force_load" >&6; } 15213 case $host_os in 15214 rhapsody* | darwin1.[012]) 15215 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15216 darwin1.*) 15217 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15218 darwin*) 15219 case $MACOSX_DEPLOYMENT_TARGET,$host in 15220 10.[012],*|,*powerpc*-darwin[5-8]*) 15221 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15222 *) 15223 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15224 esac 15225 ;; 15226 esac 15227 if test yes = "$lt_cv_apple_cc_single_mod"; then 15228 _lt_dar_single_mod='$single_module' 15229 fi 15230 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15231 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15232 else 15233 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15234 fi 15235 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15236 _lt_dsymutil='~$DSYMUTIL $lib || :' 15237 else 15238 _lt_dsymutil= 15239 fi 15240 ;; 15241 esac 15242 15243# func_munge_path_list VARIABLE PATH 15244# ----------------------------------- 15245# VARIABLE is name of variable containing _space_ separated list of 15246# directories to be munged by the contents of PATH, which is string 15247# having a format: 15248# "DIR[:DIR]:" 15249# string "DIR[ DIR]" will be prepended to VARIABLE 15250# ":DIR[:DIR]" 15251# string "DIR[ DIR]" will be appended to VARIABLE 15252# "DIRP[:DIRP]::[DIRA:]DIRA" 15253# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15254# "DIRA[ DIRA]" will be appended to VARIABLE 15255# "DIR[:DIR]" 15256# VARIABLE will be replaced by "DIR[ DIR]" 15257func_munge_path_list () 15258{ 15259 case x$2 in 15260 x) 15261 ;; 15262 *:) 15263 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15264 ;; 15265 x:*) 15266 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15267 ;; 15268 *::*) 15269 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15270 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15271 ;; 15272 *) 15273 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15274 ;; 15275 esac 15276} 15277 15278ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15279" 15280if test "x$ac_cv_header_dlfcn_h" = xyes 15281then : 15282 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15283 15284fi 15285 15286 15287 15288 15289 15290# Set options 15291 15292 15293 15294 enable_dlopen=no 15295 15296 15297 enable_win32_dll=no 15298 15299 15300 # Check whether --enable-shared was given. 15301if test ${enable_shared+y} 15302then : 15303 enableval=$enable_shared; p=${PACKAGE-default} 15304 case $enableval in 15305 yes) enable_shared=yes ;; 15306 no) enable_shared=no ;; 15307 *) 15308 enable_shared=no 15309 # Look at the argument we got. We use all the common list separators. 15310 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15311 for pkg in $enableval; do 15312 IFS=$lt_save_ifs 15313 if test "X$pkg" = "X$p"; then 15314 enable_shared=yes 15315 fi 15316 done 15317 IFS=$lt_save_ifs 15318 ;; 15319 esac 15320else $as_nop 15321 enable_shared=yes 15322fi 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334# Check whether --with-pic was given. 15335if test ${with_pic+y} 15336then : 15337 withval=$with_pic; lt_p=${PACKAGE-default} 15338 case $withval in 15339 yes|no) pic_mode=$withval ;; 15340 *) 15341 pic_mode=default 15342 # Look at the argument we got. We use all the common list separators. 15343 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15344 for lt_pkg in $withval; do 15345 IFS=$lt_save_ifs 15346 if test "X$lt_pkg" = "X$lt_p"; then 15347 pic_mode=yes 15348 fi 15349 done 15350 IFS=$lt_save_ifs 15351 ;; 15352 esac 15353else $as_nop 15354 pic_mode=default 15355fi 15356 15357 15358 15359 15360 15361 15362 15363 15364 # Check whether --enable-fast-install was given. 15365if test ${enable_fast_install+y} 15366then : 15367 enableval=$enable_fast_install; p=${PACKAGE-default} 15368 case $enableval in 15369 yes) enable_fast_install=yes ;; 15370 no) enable_fast_install=no ;; 15371 *) 15372 enable_fast_install=no 15373 # Look at the argument we got. We use all the common list separators. 15374 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15375 for pkg in $enableval; do 15376 IFS=$lt_save_ifs 15377 if test "X$pkg" = "X$p"; then 15378 enable_fast_install=yes 15379 fi 15380 done 15381 IFS=$lt_save_ifs 15382 ;; 15383 esac 15384else $as_nop 15385 enable_fast_install=yes 15386fi 15387 15388 15389 15390 15391 15392 15393 15394 15395 shared_archive_member_spec= 15396case $host,$enable_shared in 15397power*-*-aix[5-9]*,yes) 15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15399printf %s "checking which variant of shared library versioning to provide... " >&6; } 15400 15401# Check whether --with-aix-soname was given. 15402if test ${with_aix_soname+y} 15403then : 15404 withval=$with_aix_soname; case $withval in 15405 aix|svr4|both) 15406 ;; 15407 *) 15408 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15409 ;; 15410 esac 15411 lt_cv_with_aix_soname=$with_aix_soname 15412else $as_nop 15413 if test ${lt_cv_with_aix_soname+y} 15414then : 15415 printf %s "(cached) " >&6 15416else $as_nop 15417 lt_cv_with_aix_soname=aix 15418fi 15419 15420 with_aix_soname=$lt_cv_with_aix_soname 15421fi 15422 15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15424printf "%s\n" "$with_aix_soname" >&6; } 15425 if test aix != "$with_aix_soname"; then 15426 # For the AIX way of multilib, we name the shared archive member 15427 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15428 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15429 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15430 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15431 if test 64 = "${OBJECT_MODE-32}"; then 15432 shared_archive_member_spec=shr_64 15433 else 15434 shared_archive_member_spec=shr 15435 fi 15436 fi 15437 ;; 15438*) 15439 with_aix_soname=aix 15440 ;; 15441esac 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452# This can be used to rebuild libtool when needed 15453LIBTOOL_DEPS=$ltmain 15454 15455# Always use our own libtool. 15456LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487test -z "$LN_S" && LN_S="ln -s" 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502if test -n "${ZSH_VERSION+set}"; then 15503 setopt NO_GLOB_SUBST 15504fi 15505 15506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15507printf %s "checking for objdir... " >&6; } 15508if test ${lt_cv_objdir+y} 15509then : 15510 printf %s "(cached) " >&6 15511else $as_nop 15512 rm -f .libs 2>/dev/null 15513mkdir .libs 2>/dev/null 15514if test -d .libs; then 15515 lt_cv_objdir=.libs 15516else 15517 # MS-DOS does not allow filenames that begin with a dot. 15518 lt_cv_objdir=_libs 15519fi 15520rmdir .libs 2>/dev/null 15521fi 15522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15523printf "%s\n" "$lt_cv_objdir" >&6; } 15524objdir=$lt_cv_objdir 15525 15526 15527 15528 15529 15530printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15531 15532 15533 15534 15535case $host_os in 15536aix3*) 15537 # AIX sometimes has problems with the GCC collect2 program. For some 15538 # reason, if we set the COLLECT_NAMES environment variable, the problems 15539 # vanish in a puff of smoke. 15540 if test set != "${COLLECT_NAMES+set}"; then 15541 COLLECT_NAMES= 15542 export COLLECT_NAMES 15543 fi 15544 ;; 15545esac 15546 15547# Global variables: 15548ofile=libtool 15549can_build_shared=yes 15550 15551# All known linkers require a '.a' archive for static linking (except MSVC and 15552# ICC, which need '.lib'). 15553libext=a 15554 15555with_gnu_ld=$lt_cv_prog_gnu_ld 15556 15557old_CC=$CC 15558old_CFLAGS=$CFLAGS 15559 15560# Set sane defaults for various variables 15561test -z "$CC" && CC=cc 15562test -z "$LTCC" && LTCC=$CC 15563test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15564test -z "$LD" && LD=ld 15565test -z "$ac_objext" && ac_objext=o 15566 15567func_cc_basename $compiler 15568cc_basename=$func_cc_basename_result 15569 15570 15571# Only perform the check for file, if the check method requires it 15572test -z "$MAGIC_CMD" && MAGIC_CMD=file 15573case $deplibs_check_method in 15574file_magic*) 15575 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15577printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15578if test ${lt_cv_path_MAGIC_CMD+y} 15579then : 15580 printf %s "(cached) " >&6 15581else $as_nop 15582 case $MAGIC_CMD in 15583[\\/*] | ?:[\\/]*) 15584 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15585 ;; 15586*) 15587 lt_save_MAGIC_CMD=$MAGIC_CMD 15588 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15590 for ac_dir in $ac_dummy; do 15591 IFS=$lt_save_ifs 15592 test -z "$ac_dir" && ac_dir=. 15593 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15594 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15595 if test -n "$file_magic_test_file"; then 15596 case $deplibs_check_method in 15597 "file_magic "*) 15598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15599 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15601 $EGREP "$file_magic_regex" > /dev/null; then 15602 : 15603 else 15604 cat <<_LT_EOF 1>&2 15605 15606*** Warning: the command libtool uses to detect shared libraries, 15607*** $file_magic_cmd, produces output that libtool cannot recognize. 15608*** The result is that libtool may fail to recognize shared libraries 15609*** as such. This will affect the creation of libtool libraries that 15610*** depend on shared libraries, but programs linked with such libtool 15611*** libraries will work regardless of this problem. Nevertheless, you 15612*** may want to report the problem to your system manager and/or to 15613*** bug-libtool@gnu.org 15614 15615_LT_EOF 15616 fi ;; 15617 esac 15618 fi 15619 break 15620 fi 15621 done 15622 IFS=$lt_save_ifs 15623 MAGIC_CMD=$lt_save_MAGIC_CMD 15624 ;; 15625esac 15626fi 15627 15628MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15629if test -n "$MAGIC_CMD"; then 15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15631printf "%s\n" "$MAGIC_CMD" >&6; } 15632else 15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15634printf "%s\n" "no" >&6; } 15635fi 15636 15637 15638 15639 15640 15641if test -z "$lt_cv_path_MAGIC_CMD"; then 15642 if test -n "$ac_tool_prefix"; then 15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15644printf %s "checking for file... " >&6; } 15645if test ${lt_cv_path_MAGIC_CMD+y} 15646then : 15647 printf %s "(cached) " >&6 15648else $as_nop 15649 case $MAGIC_CMD in 15650[\\/*] | ?:[\\/]*) 15651 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15652 ;; 15653*) 15654 lt_save_MAGIC_CMD=$MAGIC_CMD 15655 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15656 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15657 for ac_dir in $ac_dummy; do 15658 IFS=$lt_save_ifs 15659 test -z "$ac_dir" && ac_dir=. 15660 if test -f "$ac_dir/file"; then 15661 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15662 if test -n "$file_magic_test_file"; then 15663 case $deplibs_check_method in 15664 "file_magic "*) 15665 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15666 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15667 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15668 $EGREP "$file_magic_regex" > /dev/null; then 15669 : 15670 else 15671 cat <<_LT_EOF 1>&2 15672 15673*** Warning: the command libtool uses to detect shared libraries, 15674*** $file_magic_cmd, produces output that libtool cannot recognize. 15675*** The result is that libtool may fail to recognize shared libraries 15676*** as such. This will affect the creation of libtool libraries that 15677*** depend on shared libraries, but programs linked with such libtool 15678*** libraries will work regardless of this problem. Nevertheless, you 15679*** may want to report the problem to your system manager and/or to 15680*** bug-libtool@gnu.org 15681 15682_LT_EOF 15683 fi ;; 15684 esac 15685 fi 15686 break 15687 fi 15688 done 15689 IFS=$lt_save_ifs 15690 MAGIC_CMD=$lt_save_MAGIC_CMD 15691 ;; 15692esac 15693fi 15694 15695MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15696if test -n "$MAGIC_CMD"; then 15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15698printf "%s\n" "$MAGIC_CMD" >&6; } 15699else 15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15701printf "%s\n" "no" >&6; } 15702fi 15703 15704 15705 else 15706 MAGIC_CMD=: 15707 fi 15708fi 15709 15710 fi 15711 ;; 15712esac 15713 15714# Use C for the default configuration in the libtool script 15715 15716lt_save_CC=$CC 15717ac_ext=c 15718ac_cpp='$CPP $CPPFLAGS' 15719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15721ac_compiler_gnu=$ac_cv_c_compiler_gnu 15722 15723 15724# Source file extension for C test sources. 15725ac_ext=c 15726 15727# Object file extension for compiled C test sources. 15728objext=o 15729objext=$objext 15730 15731# Code to be used in simple compile tests 15732lt_simple_compile_test_code="int some_variable = 0;" 15733 15734# Code to be used in simple link tests 15735lt_simple_link_test_code='int main(){return(0);}' 15736 15737 15738 15739 15740 15741 15742 15743# If no C compiler was specified, use CC. 15744LTCC=${LTCC-"$CC"} 15745 15746# If no C compiler flags were specified, use CFLAGS. 15747LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15748 15749# Allow CC to be a program name with arguments. 15750compiler=$CC 15751 15752# Save the default compiler, since it gets overwritten when the other 15753# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15754compiler_DEFAULT=$CC 15755 15756# save warnings/boilerplate of simple test code 15757ac_outfile=conftest.$ac_objext 15758echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15759eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15760_lt_compiler_boilerplate=`cat conftest.err` 15761$RM conftest* 15762 15763ac_outfile=conftest.$ac_objext 15764echo "$lt_simple_link_test_code" >conftest.$ac_ext 15765eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15766_lt_linker_boilerplate=`cat conftest.err` 15767$RM -r conftest* 15768 15769 15770if test -n "$compiler"; then 15771 15772lt_prog_compiler_no_builtin_flag= 15773 15774if test yes = "$GCC"; then 15775 case $cc_basename in 15776 nvcc*) 15777 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15778 *) 15779 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15780 esac 15781 15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15783printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15784if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15785then : 15786 printf %s "(cached) " >&6 15787else $as_nop 15788 lt_cv_prog_compiler_rtti_exceptions=no 15789 ac_outfile=conftest.$ac_objext 15790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15791 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15792 # Insert the option either (1) after the last *FLAGS variable, or 15793 # (2) before a word containing "conftest.", or (3) at the end. 15794 # Note that $ac_compile itself does not contain backslashes and begins 15795 # with a dollar sign (not a hyphen), so the echo should work correctly. 15796 # The option is referenced via a variable to avoid confusing sed. 15797 lt_compile=`echo "$ac_compile" | $SED \ 15798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15800 -e 's:$: $lt_compiler_flag:'` 15801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15802 (eval "$lt_compile" 2>conftest.err) 15803 ac_status=$? 15804 cat conftest.err >&5 15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15806 if (exit $ac_status) && test -s "$ac_outfile"; then 15807 # The compiler can only warn and ignore the option if not recognized 15808 # So say no if there are warnings other than the usual output. 15809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15812 lt_cv_prog_compiler_rtti_exceptions=yes 15813 fi 15814 fi 15815 $RM conftest* 15816 15817fi 15818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15819printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15820 15821if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15822 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15823else 15824 : 15825fi 15826 15827fi 15828 15829 15830 15831 15832 15833 15834 lt_prog_compiler_wl= 15835lt_prog_compiler_pic= 15836lt_prog_compiler_static= 15837 15838 15839 if test yes = "$GCC"; then 15840 lt_prog_compiler_wl='-Wl,' 15841 lt_prog_compiler_static='-static' 15842 15843 case $host_os in 15844 aix*) 15845 # All AIX code is PIC. 15846 if test ia64 = "$host_cpu"; then 15847 # AIX 5 now supports IA64 processor 15848 lt_prog_compiler_static='-Bstatic' 15849 fi 15850 lt_prog_compiler_pic='-fPIC' 15851 ;; 15852 15853 amigaos*) 15854 case $host_cpu in 15855 powerpc) 15856 # see comment about AmigaOS4 .so support 15857 lt_prog_compiler_pic='-fPIC' 15858 ;; 15859 m68k) 15860 # FIXME: we need at least 68020 code to build shared libraries, but 15861 # adding the '-m68020' flag to GCC prevents building anything better, 15862 # like '-m68040'. 15863 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15864 ;; 15865 esac 15866 ;; 15867 15868 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15869 # PIC is the default for these OSes. 15870 ;; 15871 15872 mingw* | cygwin* | pw32* | os2* | cegcc*) 15873 # This hack is so that the source file can tell whether it is being 15874 # built for inclusion in a dll (and should export symbols for example). 15875 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15876 # (--disable-auto-import) libraries 15877 lt_prog_compiler_pic='-DDLL_EXPORT' 15878 case $host_os in 15879 os2*) 15880 lt_prog_compiler_static='$wl-static' 15881 ;; 15882 esac 15883 ;; 15884 15885 darwin* | rhapsody*) 15886 # PIC is the default on this platform 15887 # Common symbols not allowed in MH_DYLIB files 15888 lt_prog_compiler_pic='-fno-common' 15889 ;; 15890 15891 haiku*) 15892 # PIC is the default for Haiku. 15893 # The "-static" flag exists, but is broken. 15894 lt_prog_compiler_static= 15895 ;; 15896 15897 hpux*) 15898 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15899 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15900 # sets the default TLS model and affects inlining. 15901 case $host_cpu in 15902 hppa*64*) 15903 # +Z the default 15904 ;; 15905 *) 15906 lt_prog_compiler_pic='-fPIC' 15907 ;; 15908 esac 15909 ;; 15910 15911 interix[3-9]*) 15912 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15913 # Instead, we relocate shared libraries at runtime. 15914 ;; 15915 15916 msdosdjgpp*) 15917 # Just because we use GCC doesn't mean we suddenly get shared libraries 15918 # on systems that don't support them. 15919 lt_prog_compiler_can_build_shared=no 15920 enable_shared=no 15921 ;; 15922 15923 *nto* | *qnx*) 15924 # QNX uses GNU C++, but need to define -shared option too, otherwise 15925 # it will coredump. 15926 lt_prog_compiler_pic='-fPIC -shared' 15927 ;; 15928 15929 sysv4*MP*) 15930 if test -d /usr/nec; then 15931 lt_prog_compiler_pic=-Kconform_pic 15932 fi 15933 ;; 15934 15935 *) 15936 lt_prog_compiler_pic='-fPIC' 15937 ;; 15938 esac 15939 15940 case $cc_basename in 15941 nvcc*) # Cuda Compiler Driver 2.2 15942 lt_prog_compiler_wl='-Xlinker ' 15943 if test -n "$lt_prog_compiler_pic"; then 15944 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15945 fi 15946 ;; 15947 esac 15948 else 15949 # PORTME Check for flag to pass linker flags through the system compiler. 15950 case $host_os in 15951 aix*) 15952 lt_prog_compiler_wl='-Wl,' 15953 if test ia64 = "$host_cpu"; then 15954 # AIX 5 now supports IA64 processor 15955 lt_prog_compiler_static='-Bstatic' 15956 else 15957 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15958 fi 15959 ;; 15960 15961 darwin* | rhapsody*) 15962 # PIC is the default on this platform 15963 # Common symbols not allowed in MH_DYLIB files 15964 lt_prog_compiler_pic='-fno-common' 15965 case $cc_basename in 15966 nagfor*) 15967 # NAG Fortran compiler 15968 lt_prog_compiler_wl='-Wl,-Wl,,' 15969 lt_prog_compiler_pic='-PIC' 15970 lt_prog_compiler_static='-Bstatic' 15971 ;; 15972 esac 15973 ;; 15974 15975 mingw* | cygwin* | pw32* | os2* | cegcc*) 15976 # This hack is so that the source file can tell whether it is being 15977 # built for inclusion in a dll (and should export symbols for example). 15978 lt_prog_compiler_pic='-DDLL_EXPORT' 15979 case $host_os in 15980 os2*) 15981 lt_prog_compiler_static='$wl-static' 15982 ;; 15983 esac 15984 ;; 15985 15986 hpux9* | hpux10* | hpux11*) 15987 lt_prog_compiler_wl='-Wl,' 15988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15989 # not for PA HP-UX. 15990 case $host_cpu in 15991 hppa*64*|ia64*) 15992 # +Z the default 15993 ;; 15994 *) 15995 lt_prog_compiler_pic='+Z' 15996 ;; 15997 esac 15998 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15999 lt_prog_compiler_static='$wl-a ${wl}archive' 16000 ;; 16001 16002 irix5* | irix6* | nonstopux*) 16003 lt_prog_compiler_wl='-Wl,' 16004 # PIC (with -KPIC) is the default. 16005 lt_prog_compiler_static='-non_shared' 16006 ;; 16007 16008 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16009 case $cc_basename in 16010 # old Intel for x86_64, which still supported -KPIC. 16011 ecc*) 16012 lt_prog_compiler_wl='-Wl,' 16013 lt_prog_compiler_pic='-KPIC' 16014 lt_prog_compiler_static='-static' 16015 ;; 16016 # icc used to be incompatible with GCC. 16017 # ICC 10 doesn't accept -KPIC any more. 16018 icc* | ifort*) 16019 lt_prog_compiler_wl='-Wl,' 16020 lt_prog_compiler_pic='-fPIC' 16021 lt_prog_compiler_static='-static' 16022 ;; 16023 # Lahey Fortran 8.1. 16024 lf95*) 16025 lt_prog_compiler_wl='-Wl,' 16026 lt_prog_compiler_pic='--shared' 16027 lt_prog_compiler_static='--static' 16028 ;; 16029 nagfor*) 16030 # NAG Fortran compiler 16031 lt_prog_compiler_wl='-Wl,-Wl,,' 16032 lt_prog_compiler_pic='-PIC' 16033 lt_prog_compiler_static='-Bstatic' 16034 ;; 16035 tcc*) 16036 # Fabrice Bellard et al's Tiny C Compiler 16037 lt_prog_compiler_wl='-Wl,' 16038 lt_prog_compiler_pic='-fPIC' 16039 lt_prog_compiler_static='-static' 16040 ;; 16041 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16042 # Portland Group compilers (*not* the Pentium gcc compiler, 16043 # which looks to be a dead project) 16044 lt_prog_compiler_wl='-Wl,' 16045 lt_prog_compiler_pic='-fpic' 16046 lt_prog_compiler_static='-Bstatic' 16047 ;; 16048 ccc*) 16049 lt_prog_compiler_wl='-Wl,' 16050 # All Alpha code is PIC. 16051 lt_prog_compiler_static='-non_shared' 16052 ;; 16053 xl* | bgxl* | bgf* | mpixl*) 16054 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16055 lt_prog_compiler_wl='-Wl,' 16056 lt_prog_compiler_pic='-qpic' 16057 lt_prog_compiler_static='-qstaticlink' 16058 ;; 16059 *) 16060 case `$CC -V 2>&1 | $SED 5q` in 16061 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16062 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16063 lt_prog_compiler_pic='-KPIC' 16064 lt_prog_compiler_static='-Bstatic' 16065 lt_prog_compiler_wl='' 16066 ;; 16067 *Sun\ F* | *Sun*Fortran*) 16068 lt_prog_compiler_pic='-KPIC' 16069 lt_prog_compiler_static='-Bstatic' 16070 lt_prog_compiler_wl='-Qoption ld ' 16071 ;; 16072 *Sun\ C*) 16073 # Sun C 5.9 16074 lt_prog_compiler_pic='-KPIC' 16075 lt_prog_compiler_static='-Bstatic' 16076 lt_prog_compiler_wl='-Wl,' 16077 ;; 16078 *Intel*\ [CF]*Compiler*) 16079 lt_prog_compiler_wl='-Wl,' 16080 lt_prog_compiler_pic='-fPIC' 16081 lt_prog_compiler_static='-static' 16082 ;; 16083 *Portland\ Group*) 16084 lt_prog_compiler_wl='-Wl,' 16085 lt_prog_compiler_pic='-fpic' 16086 lt_prog_compiler_static='-Bstatic' 16087 ;; 16088 esac 16089 ;; 16090 esac 16091 ;; 16092 16093 newsos6) 16094 lt_prog_compiler_pic='-KPIC' 16095 lt_prog_compiler_static='-Bstatic' 16096 ;; 16097 16098 *nto* | *qnx*) 16099 # QNX uses GNU C++, but need to define -shared option too, otherwise 16100 # it will coredump. 16101 lt_prog_compiler_pic='-fPIC -shared' 16102 ;; 16103 16104 osf3* | osf4* | osf5*) 16105 lt_prog_compiler_wl='-Wl,' 16106 # All OSF/1 code is PIC. 16107 lt_prog_compiler_static='-non_shared' 16108 ;; 16109 16110 rdos*) 16111 lt_prog_compiler_static='-non_shared' 16112 ;; 16113 16114 solaris*) 16115 lt_prog_compiler_pic='-KPIC' 16116 lt_prog_compiler_static='-Bstatic' 16117 case $cc_basename in 16118 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16119 lt_prog_compiler_wl='-Qoption ld ';; 16120 *) 16121 lt_prog_compiler_wl='-Wl,';; 16122 esac 16123 ;; 16124 16125 sunos4*) 16126 lt_prog_compiler_wl='-Qoption ld ' 16127 lt_prog_compiler_pic='-PIC' 16128 lt_prog_compiler_static='-Bstatic' 16129 ;; 16130 16131 sysv4 | sysv4.2uw2* | sysv4.3*) 16132 lt_prog_compiler_wl='-Wl,' 16133 lt_prog_compiler_pic='-KPIC' 16134 lt_prog_compiler_static='-Bstatic' 16135 ;; 16136 16137 sysv4*MP*) 16138 if test -d /usr/nec; then 16139 lt_prog_compiler_pic='-Kconform_pic' 16140 lt_prog_compiler_static='-Bstatic' 16141 fi 16142 ;; 16143 16144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16145 lt_prog_compiler_wl='-Wl,' 16146 lt_prog_compiler_pic='-KPIC' 16147 lt_prog_compiler_static='-Bstatic' 16148 ;; 16149 16150 unicos*) 16151 lt_prog_compiler_wl='-Wl,' 16152 lt_prog_compiler_can_build_shared=no 16153 ;; 16154 16155 uts4*) 16156 lt_prog_compiler_pic='-pic' 16157 lt_prog_compiler_static='-Bstatic' 16158 ;; 16159 16160 *) 16161 lt_prog_compiler_can_build_shared=no 16162 ;; 16163 esac 16164 fi 16165 16166case $host_os in 16167 # For platforms that do not support PIC, -DPIC is meaningless: 16168 *djgpp*) 16169 lt_prog_compiler_pic= 16170 ;; 16171 *) 16172 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16173 ;; 16174esac 16175 16176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16177printf %s "checking for $compiler option to produce PIC... " >&6; } 16178if test ${lt_cv_prog_compiler_pic+y} 16179then : 16180 printf %s "(cached) " >&6 16181else $as_nop 16182 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 16183fi 16184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16185printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16186lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16187 16188# 16189# Check to make sure the PIC flag actually works. 16190# 16191if test -n "$lt_prog_compiler_pic"; then 16192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16193printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16194if test ${lt_cv_prog_compiler_pic_works+y} 16195then : 16196 printf %s "(cached) " >&6 16197else $as_nop 16198 lt_cv_prog_compiler_pic_works=no 16199 ac_outfile=conftest.$ac_objext 16200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16201 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16202 # Insert the option either (1) after the last *FLAGS variable, or 16203 # (2) before a word containing "conftest.", or (3) at the end. 16204 # Note that $ac_compile itself does not contain backslashes and begins 16205 # with a dollar sign (not a hyphen), so the echo should work correctly. 16206 # The option is referenced via a variable to avoid confusing sed. 16207 lt_compile=`echo "$ac_compile" | $SED \ 16208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16210 -e 's:$: $lt_compiler_flag:'` 16211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16212 (eval "$lt_compile" 2>conftest.err) 16213 ac_status=$? 16214 cat conftest.err >&5 16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16216 if (exit $ac_status) && test -s "$ac_outfile"; then 16217 # The compiler can only warn and ignore the option if not recognized 16218 # So say no if there are warnings other than the usual output. 16219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16222 lt_cv_prog_compiler_pic_works=yes 16223 fi 16224 fi 16225 $RM conftest* 16226 16227fi 16228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16229printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16230 16231if test yes = "$lt_cv_prog_compiler_pic_works"; then 16232 case $lt_prog_compiler_pic in 16233 "" | " "*) ;; 16234 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16235 esac 16236else 16237 lt_prog_compiler_pic= 16238 lt_prog_compiler_can_build_shared=no 16239fi 16240 16241fi 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253# 16254# Check to make sure the static flag actually works. 16255# 16256wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16258printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16259if test ${lt_cv_prog_compiler_static_works+y} 16260then : 16261 printf %s "(cached) " >&6 16262else $as_nop 16263 lt_cv_prog_compiler_static_works=no 16264 save_LDFLAGS=$LDFLAGS 16265 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16266 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16267 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16268 # The linker can only warn and ignore the option if not recognized 16269 # So say no if there are warnings 16270 if test -s conftest.err; then 16271 # Append any errors to the config.log. 16272 cat conftest.err 1>&5 16273 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16275 if diff conftest.exp conftest.er2 >/dev/null; then 16276 lt_cv_prog_compiler_static_works=yes 16277 fi 16278 else 16279 lt_cv_prog_compiler_static_works=yes 16280 fi 16281 fi 16282 $RM -r conftest* 16283 LDFLAGS=$save_LDFLAGS 16284 16285fi 16286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16287printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16288 16289if test yes = "$lt_cv_prog_compiler_static_works"; then 16290 : 16291else 16292 lt_prog_compiler_static= 16293fi 16294 16295 16296 16297 16298 16299 16300 16301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16302printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16303if test ${lt_cv_prog_compiler_c_o+y} 16304then : 16305 printf %s "(cached) " >&6 16306else $as_nop 16307 lt_cv_prog_compiler_c_o=no 16308 $RM -r conftest 2>/dev/null 16309 mkdir conftest 16310 cd conftest 16311 mkdir out 16312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16313 16314 lt_compiler_flag="-o out/conftest2.$ac_objext" 16315 # Insert the option either (1) after the last *FLAGS variable, or 16316 # (2) before a word containing "conftest.", or (3) at the end. 16317 # Note that $ac_compile itself does not contain backslashes and begins 16318 # with a dollar sign (not a hyphen), so the echo should work correctly. 16319 lt_compile=`echo "$ac_compile" | $SED \ 16320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16322 -e 's:$: $lt_compiler_flag:'` 16323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16324 (eval "$lt_compile" 2>out/conftest.err) 16325 ac_status=$? 16326 cat out/conftest.err >&5 16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16329 then 16330 # The compiler can only warn and ignore the option if not recognized 16331 # So say no if there are warnings 16332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16335 lt_cv_prog_compiler_c_o=yes 16336 fi 16337 fi 16338 chmod u+w . 2>&5 16339 $RM conftest* 16340 # SGI C++ compiler will create directory out/ii_files/ for 16341 # template instantiation 16342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16343 $RM out/* && rmdir out 16344 cd .. 16345 $RM -r conftest 16346 $RM conftest* 16347 16348fi 16349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16350printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16351 16352 16353 16354 16355 16356 16357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16358printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16359if test ${lt_cv_prog_compiler_c_o+y} 16360then : 16361 printf %s "(cached) " >&6 16362else $as_nop 16363 lt_cv_prog_compiler_c_o=no 16364 $RM -r conftest 2>/dev/null 16365 mkdir conftest 16366 cd conftest 16367 mkdir out 16368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16369 16370 lt_compiler_flag="-o out/conftest2.$ac_objext" 16371 # Insert the option either (1) after the last *FLAGS variable, or 16372 # (2) before a word containing "conftest.", or (3) at the end. 16373 # Note that $ac_compile itself does not contain backslashes and begins 16374 # with a dollar sign (not a hyphen), so the echo should work correctly. 16375 lt_compile=`echo "$ac_compile" | $SED \ 16376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16378 -e 's:$: $lt_compiler_flag:'` 16379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16380 (eval "$lt_compile" 2>out/conftest.err) 16381 ac_status=$? 16382 cat out/conftest.err >&5 16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16384 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16385 then 16386 # The compiler can only warn and ignore the option if not recognized 16387 # So say no if there are warnings 16388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16391 lt_cv_prog_compiler_c_o=yes 16392 fi 16393 fi 16394 chmod u+w . 2>&5 16395 $RM conftest* 16396 # SGI C++ compiler will create directory out/ii_files/ for 16397 # template instantiation 16398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16399 $RM out/* && rmdir out 16400 cd .. 16401 $RM -r conftest 16402 $RM conftest* 16403 16404fi 16405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16406printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16407 16408 16409 16410 16411hard_links=nottested 16412if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16413 # do not overwrite the value of need_locks provided by the user 16414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16415printf %s "checking if we can lock with hard links... " >&6; } 16416 hard_links=yes 16417 $RM conftest* 16418 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16419 touch conftest.a 16420 ln conftest.a conftest.b 2>&5 || hard_links=no 16421 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16423printf "%s\n" "$hard_links" >&6; } 16424 if test no = "$hard_links"; then 16425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16426printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16427 need_locks=warn 16428 fi 16429else 16430 need_locks=no 16431fi 16432 16433 16434 16435 16436 16437 16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16439printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16440 16441 runpath_var= 16442 allow_undefined_flag= 16443 always_export_symbols=no 16444 archive_cmds= 16445 archive_expsym_cmds= 16446 compiler_needs_object=no 16447 enable_shared_with_static_runtimes=no 16448 export_dynamic_flag_spec= 16449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16450 hardcode_automatic=no 16451 hardcode_direct=no 16452 hardcode_direct_absolute=no 16453 hardcode_libdir_flag_spec= 16454 hardcode_libdir_separator= 16455 hardcode_minus_L=no 16456 hardcode_shlibpath_var=unsupported 16457 inherit_rpath=no 16458 link_all_deplibs=unknown 16459 module_cmds= 16460 module_expsym_cmds= 16461 old_archive_from_new_cmds= 16462 old_archive_from_expsyms_cmds= 16463 thread_safe_flag_spec= 16464 whole_archive_flag_spec= 16465 # include_expsyms should be a list of space-separated symbols to be *always* 16466 # included in the symbol list 16467 include_expsyms= 16468 # exclude_expsyms can be an extended regexp of symbols to exclude 16469 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16470 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16471 # as well as any symbol that contains 'd'. 16472 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16473 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16474 # platforms (ab)use it in PIC code, but their linkers get confused if 16475 # the symbol is explicitly referenced. Since portable code cannot 16476 # rely on this symbol name, it's probably fine to never include it in 16477 # preloaded symbol tables. 16478 # Exclude shared library initialization/finalization symbols. 16479 extract_expsyms_cmds= 16480 16481 case $host_os in 16482 cygwin* | mingw* | pw32* | cegcc*) 16483 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16484 # When not using gcc, we currently assume that we are using 16485 # Microsoft Visual C++ or Intel C++ Compiler. 16486 if test yes != "$GCC"; then 16487 with_gnu_ld=no 16488 fi 16489 ;; 16490 interix*) 16491 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16492 with_gnu_ld=yes 16493 ;; 16494 openbsd* | bitrig*) 16495 with_gnu_ld=no 16496 ;; 16497 esac 16498 16499 ld_shlibs=yes 16500 16501 # On some targets, GNU ld is compatible enough with the native linker 16502 # that we're better off using the native interface for both. 16503 lt_use_gnu_ld_interface=no 16504 if test yes = "$with_gnu_ld"; then 16505 case $host_os in 16506 aix*) 16507 # The AIX port of GNU ld has always aspired to compatibility 16508 # with the native linker. However, as the warning in the GNU ld 16509 # block says, versions before 2.19.5* couldn't really create working 16510 # shared libraries, regardless of the interface used. 16511 case `$LD -v 2>&1` in 16512 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16513 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16514 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16515 *) 16516 lt_use_gnu_ld_interface=yes 16517 ;; 16518 esac 16519 ;; 16520 *) 16521 lt_use_gnu_ld_interface=yes 16522 ;; 16523 esac 16524 fi 16525 16526 if test yes = "$lt_use_gnu_ld_interface"; then 16527 # If archive_cmds runs LD, not CC, wlarc should be empty 16528 wlarc='$wl' 16529 16530 # Set some defaults for GNU ld with shared library support. These 16531 # are reset later if shared libraries are not supported. Putting them 16532 # here allows them to be overridden if necessary. 16533 runpath_var=LD_RUN_PATH 16534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16535 export_dynamic_flag_spec='$wl--export-dynamic' 16536 # ancient GNU ld didn't support --whole-archive et. al. 16537 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16538 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16539 else 16540 whole_archive_flag_spec= 16541 fi 16542 supports_anon_versioning=no 16543 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16544 *GNU\ gold*) supports_anon_versioning=yes ;; 16545 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16546 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16547 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16548 *\ 2.11.*) ;; # other 2.11 versions 16549 *) supports_anon_versioning=yes ;; 16550 esac 16551 16552 # See if GNU ld supports shared libraries. 16553 case $host_os in 16554 aix[3-9]*) 16555 # On AIX/PPC, the GNU linker is very broken 16556 if test ia64 != "$host_cpu"; then 16557 ld_shlibs=no 16558 cat <<_LT_EOF 1>&2 16559 16560*** Warning: the GNU linker, at least up to release 2.19, is reported 16561*** to be unable to reliably create shared libraries on AIX. 16562*** Therefore, libtool is disabling shared libraries support. If you 16563*** really care for shared libraries, you may want to install binutils 16564*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16565*** You will then need to restart the configuration process. 16566 16567_LT_EOF 16568 fi 16569 ;; 16570 16571 amigaos*) 16572 case $host_cpu in 16573 powerpc) 16574 # see comment about AmigaOS4 .so support 16575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16576 archive_expsym_cmds='' 16577 ;; 16578 m68k) 16579 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)' 16580 hardcode_libdir_flag_spec='-L$libdir' 16581 hardcode_minus_L=yes 16582 ;; 16583 esac 16584 ;; 16585 16586 beos*) 16587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16588 allow_undefined_flag=unsupported 16589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16590 # support --undefined. This deserves some investigation. FIXME 16591 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16592 else 16593 ld_shlibs=no 16594 fi 16595 ;; 16596 16597 cygwin* | mingw* | pw32* | cegcc*) 16598 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16599 # as there is no search path for DLLs. 16600 hardcode_libdir_flag_spec='-L$libdir' 16601 export_dynamic_flag_spec='$wl--export-all-symbols' 16602 allow_undefined_flag=unsupported 16603 always_export_symbols=no 16604 enable_shared_with_static_runtimes=yes 16605 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' 16606 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16607 16608 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16610 # If the export-symbols file already is a .def file, use it as 16611 # is; otherwise, prepend EXPORTS... 16612 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16613 cp $export_symbols $output_objdir/$soname.def; 16614 else 16615 echo EXPORTS > $output_objdir/$soname.def; 16616 cat $export_symbols >> $output_objdir/$soname.def; 16617 fi~ 16618 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16619 else 16620 ld_shlibs=no 16621 fi 16622 ;; 16623 16624 haiku*) 16625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16626 link_all_deplibs=yes 16627 ;; 16628 16629 os2*) 16630 hardcode_libdir_flag_spec='-L$libdir' 16631 hardcode_minus_L=yes 16632 allow_undefined_flag=unsupported 16633 shrext_cmds=.dll 16634 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16635 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16636 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16637 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16638 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16639 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16640 emximp -o $lib $output_objdir/$libname.def' 16641 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16642 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16643 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16644 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16645 prefix_cmds="$SED"~ 16646 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16647 prefix_cmds="$prefix_cmds -e 1d"; 16648 fi~ 16649 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16650 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16651 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16652 emximp -o $lib $output_objdir/$libname.def' 16653 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16654 enable_shared_with_static_runtimes=yes 16655 file_list_spec='@' 16656 ;; 16657 16658 interix[3-9]*) 16659 hardcode_direct=no 16660 hardcode_shlibpath_var=no 16661 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16662 export_dynamic_flag_spec='$wl-E' 16663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16664 # Instead, shared libraries are loaded at an image base (0x10000000 by 16665 # default) and relocated if they conflict, which is a slow very memory 16666 # consuming and fragmenting process. To avoid this, we pick a random, 16667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16668 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16670 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' 16671 ;; 16672 16673 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16674 tmp_diet=no 16675 if test linux-dietlibc = "$host_os"; then 16676 case $cc_basename in 16677 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16678 esac 16679 fi 16680 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16681 && test no = "$tmp_diet" 16682 then 16683 tmp_addflag=' $pic_flag' 16684 tmp_sharedflag='-shared' 16685 case $cc_basename,$host_cpu in 16686 pgcc*) # Portland Group C compiler 16687 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' 16688 tmp_addflag=' $pic_flag' 16689 ;; 16690 pgf77* | pgf90* | pgf95* | pgfortran*) 16691 # Portland Group f77 and f90 compilers 16692 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' 16693 tmp_addflag=' $pic_flag -Mnomain' ;; 16694 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16695 tmp_addflag=' -i_dynamic' ;; 16696 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16697 tmp_addflag=' -i_dynamic -nofor_main' ;; 16698 ifc* | ifort*) # Intel Fortran compiler 16699 tmp_addflag=' -nofor_main' ;; 16700 lf95*) # Lahey Fortran 8.1 16701 whole_archive_flag_spec= 16702 tmp_sharedflag='--shared' ;; 16703 nagfor*) # NAGFOR 5.3 16704 tmp_sharedflag='-Wl,-shared' ;; 16705 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16706 tmp_sharedflag='-qmkshrobj' 16707 tmp_addflag= ;; 16708 nvcc*) # Cuda Compiler Driver 2.2 16709 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' 16710 compiler_needs_object=yes 16711 ;; 16712 esac 16713 case `$CC -V 2>&1 | $SED 5q` in 16714 *Sun\ C*) # Sun C 5.9 16715 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' 16716 compiler_needs_object=yes 16717 tmp_sharedflag='-G' ;; 16718 *Sun\ F*) # Sun Fortran 8.3 16719 tmp_sharedflag='-G' ;; 16720 esac 16721 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16722 16723 if test yes = "$supports_anon_versioning"; then 16724 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16725 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16726 echo "local: *; };" >> $output_objdir/$libname.ver~ 16727 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16728 fi 16729 16730 case $cc_basename in 16731 tcc*) 16732 export_dynamic_flag_spec='-rdynamic' 16733 ;; 16734 xlf* | bgf* | bgxlf* | mpixlf*) 16735 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16736 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16738 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16739 if test yes = "$supports_anon_versioning"; then 16740 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16741 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16742 echo "local: *; };" >> $output_objdir/$libname.ver~ 16743 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16744 fi 16745 ;; 16746 esac 16747 else 16748 ld_shlibs=no 16749 fi 16750 ;; 16751 16752 netbsd*) 16753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16754 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16755 wlarc= 16756 else 16757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16758 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16759 fi 16760 ;; 16761 16762 solaris*) 16763 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16764 ld_shlibs=no 16765 cat <<_LT_EOF 1>&2 16766 16767*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16768*** create shared libraries on Solaris systems. Therefore, libtool 16769*** is disabling shared libraries support. We urge you to upgrade GNU 16770*** binutils to release 2.9.1 or newer. Another option is to modify 16771*** your PATH or compiler configuration so that the native linker is 16772*** used, and then restart. 16773 16774_LT_EOF 16775 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16777 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16778 else 16779 ld_shlibs=no 16780 fi 16781 ;; 16782 16783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16784 case `$LD -v 2>&1` in 16785 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16786 ld_shlibs=no 16787 cat <<_LT_EOF 1>&2 16788 16789*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16790*** reliably create shared libraries on SCO systems. Therefore, libtool 16791*** is disabling shared libraries support. We urge you to upgrade GNU 16792*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16793*** your PATH or compiler configuration so that the native linker is 16794*** used, and then restart. 16795 16796_LT_EOF 16797 ;; 16798 *) 16799 # For security reasons, it is highly recommended that you always 16800 # use absolute paths for naming shared libraries, and exclude the 16801 # DT_RUNPATH tag from executables and libraries. But doing so 16802 # requires that you compile everything twice, which is a pain. 16803 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16804 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16807 else 16808 ld_shlibs=no 16809 fi 16810 ;; 16811 esac 16812 ;; 16813 16814 sunos4*) 16815 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16816 wlarc= 16817 hardcode_direct=yes 16818 hardcode_shlibpath_var=no 16819 ;; 16820 16821 *) 16822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16823 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16824 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16825 else 16826 ld_shlibs=no 16827 fi 16828 ;; 16829 esac 16830 16831 if test no = "$ld_shlibs"; then 16832 runpath_var= 16833 hardcode_libdir_flag_spec= 16834 export_dynamic_flag_spec= 16835 whole_archive_flag_spec= 16836 fi 16837 else 16838 # PORTME fill in a description of your system's linker (not GNU ld) 16839 case $host_os in 16840 aix3*) 16841 allow_undefined_flag=unsupported 16842 always_export_symbols=yes 16843 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' 16844 # Note: this linker hardcodes the directories in LIBPATH if there 16845 # are no directories specified by -L. 16846 hardcode_minus_L=yes 16847 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16848 # Neither direct hardcoding nor static linking is supported with a 16849 # broken collect2. 16850 hardcode_direct=unsupported 16851 fi 16852 ;; 16853 16854 aix[4-9]*) 16855 if test ia64 = "$host_cpu"; then 16856 # On IA64, the linker does run time linking by default, so we don't 16857 # have to do anything special. 16858 aix_use_runtimelinking=no 16859 exp_sym_flag='-Bexport' 16860 no_entry_flag= 16861 else 16862 # If we're using GNU nm, then we don't want the "-C" option. 16863 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16864 # Without the "-l" option, or with the "-B" option, AIX nm treats 16865 # weak defined symbols like other global defined symbols, whereas 16866 # GNU nm marks them as "W". 16867 # While the 'weak' keyword is ignored in the Export File, we need 16868 # it in the Import File for the 'aix-soname' feature, so we have 16869 # to replace the "-B" option with "-P" for AIX nm. 16870 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16871 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16872 else 16873 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16874 fi 16875 aix_use_runtimelinking=no 16876 16877 # Test if we are trying to use run time linking or normal 16878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16879 # have runtime linking enabled, and use it for executables. 16880 # For shared libraries, we enable/disable runtime linking 16881 # depending on the kind of the shared library created - 16882 # when "with_aix_soname,aix_use_runtimelinking" is: 16883 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16884 # "aix,yes" lib.so shared, rtl:yes, for executables 16885 # lib.a static archive 16886 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16887 # lib.a(lib.so.V) shared, rtl:no, for executables 16888 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16889 # lib.a(lib.so.V) shared, rtl:no 16890 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16891 # lib.a static archive 16892 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16893 for ld_flag in $LDFLAGS; do 16894 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16895 aix_use_runtimelinking=yes 16896 break 16897 fi 16898 done 16899 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16900 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16901 # so we don't have lib.a shared libs to link our executables. 16902 # We have to force runtime linking in this case. 16903 aix_use_runtimelinking=yes 16904 LDFLAGS="$LDFLAGS -Wl,-brtl" 16905 fi 16906 ;; 16907 esac 16908 16909 exp_sym_flag='-bexport' 16910 no_entry_flag='-bnoentry' 16911 fi 16912 16913 # When large executables or shared objects are built, AIX ld can 16914 # have problems creating the table of contents. If linking a library 16915 # or program results in "error TOC overflow" add -mminimal-toc to 16916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16918 16919 archive_cmds='' 16920 hardcode_direct=yes 16921 hardcode_direct_absolute=yes 16922 hardcode_libdir_separator=':' 16923 link_all_deplibs=yes 16924 file_list_spec='$wl-f,' 16925 case $with_aix_soname,$aix_use_runtimelinking in 16926 aix,*) ;; # traditional, no import file 16927 svr4,* | *,yes) # use import file 16928 # The Import File defines what to hardcode. 16929 hardcode_direct=no 16930 hardcode_direct_absolute=no 16931 ;; 16932 esac 16933 16934 if test yes = "$GCC"; then 16935 case $host_os in aix4.[012]|aix4.[012].*) 16936 # We only want to do this on AIX 4.2 and lower, the check 16937 # below for broken collect2 doesn't work under 4.3+ 16938 collect2name=`$CC -print-prog-name=collect2` 16939 if test -f "$collect2name" && 16940 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16941 then 16942 # We have reworked collect2 16943 : 16944 else 16945 # We have old collect2 16946 hardcode_direct=unsupported 16947 # It fails to find uninstalled libraries when the uninstalled 16948 # path is not listed in the libpath. Setting hardcode_minus_L 16949 # to unsupported forces relinking 16950 hardcode_minus_L=yes 16951 hardcode_libdir_flag_spec='-L$libdir' 16952 hardcode_libdir_separator= 16953 fi 16954 ;; 16955 esac 16956 shared_flag='-shared' 16957 if test yes = "$aix_use_runtimelinking"; then 16958 shared_flag="$shared_flag "'$wl-G' 16959 fi 16960 # Need to ensure runtime linking is disabled for the traditional 16961 # shared library, or the linker may eventually find shared libraries 16962 # /with/ Import File - we do not want to mix them. 16963 shared_flag_aix='-shared' 16964 shared_flag_svr4='-shared $wl-G' 16965 else 16966 # not using gcc 16967 if test ia64 = "$host_cpu"; then 16968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16969 # chokes on -Wl,-G. The following line is correct: 16970 shared_flag='-G' 16971 else 16972 if test yes = "$aix_use_runtimelinking"; then 16973 shared_flag='$wl-G' 16974 else 16975 shared_flag='$wl-bM:SRE' 16976 fi 16977 shared_flag_aix='$wl-bM:SRE' 16978 shared_flag_svr4='$wl-G' 16979 fi 16980 fi 16981 16982 export_dynamic_flag_spec='$wl-bexpall' 16983 # It seems that -bexpall does not export symbols beginning with 16984 # underscore (_), so it is better to generate a list of symbols to export. 16985 always_export_symbols=yes 16986 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16987 # Warning - without using the other runtime loading flags (-brtl), 16988 # -berok will link without error, but may produce a broken library. 16989 allow_undefined_flag='-berok' 16990 # Determine the default libpath from the value encoded in an 16991 # empty executable. 16992 if test set = "${lt_cv_aix_libpath+set}"; then 16993 aix_libpath=$lt_cv_aix_libpath 16994else 16995 if test ${lt_cv_aix_libpath_+y} 16996then : 16997 printf %s "(cached) " >&6 16998else $as_nop 16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17000/* end confdefs.h. */ 17001 17002int 17003main (void) 17004{ 17005 17006 ; 17007 return 0; 17008} 17009_ACEOF 17010if ac_fn_c_try_link "$LINENO" 17011then : 17012 17013 lt_aix_libpath_sed=' 17014 /Import File Strings/,/^$/ { 17015 /^0/ { 17016 s/^0 *\([^ ]*\) *$/\1/ 17017 p 17018 } 17019 }' 17020 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17021 # Check for a 64-bit object if we didn't find anything. 17022 if test -z "$lt_cv_aix_libpath_"; then 17023 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17024 fi 17025fi 17026rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17027 conftest$ac_exeext conftest.$ac_ext 17028 if test -z "$lt_cv_aix_libpath_"; then 17029 lt_cv_aix_libpath_=/usr/lib:/lib 17030 fi 17031 17032fi 17033 17034 aix_libpath=$lt_cv_aix_libpath_ 17035fi 17036 17037 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17038 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 17039 else 17040 if test ia64 = "$host_cpu"; then 17041 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17042 allow_undefined_flag="-z nodefs" 17043 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" 17044 else 17045 # Determine the default libpath from the value encoded in an 17046 # empty executable. 17047 if test set = "${lt_cv_aix_libpath+set}"; then 17048 aix_libpath=$lt_cv_aix_libpath 17049else 17050 if test ${lt_cv_aix_libpath_+y} 17051then : 17052 printf %s "(cached) " >&6 17053else $as_nop 17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055/* end confdefs.h. */ 17056 17057int 17058main (void) 17059{ 17060 17061 ; 17062 return 0; 17063} 17064_ACEOF 17065if ac_fn_c_try_link "$LINENO" 17066then : 17067 17068 lt_aix_libpath_sed=' 17069 /Import File Strings/,/^$/ { 17070 /^0/ { 17071 s/^0 *\([^ ]*\) *$/\1/ 17072 p 17073 } 17074 }' 17075 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17076 # Check for a 64-bit object if we didn't find anything. 17077 if test -z "$lt_cv_aix_libpath_"; then 17078 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17079 fi 17080fi 17081rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17082 conftest$ac_exeext conftest.$ac_ext 17083 if test -z "$lt_cv_aix_libpath_"; then 17084 lt_cv_aix_libpath_=/usr/lib:/lib 17085 fi 17086 17087fi 17088 17089 aix_libpath=$lt_cv_aix_libpath_ 17090fi 17091 17092 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17093 # Warning - without using the other run time loading flags, 17094 # -berok will link without error, but may produce a broken library. 17095 no_undefined_flag=' $wl-bernotok' 17096 allow_undefined_flag=' $wl-berok' 17097 if test yes = "$with_gnu_ld"; then 17098 # We only use this code for GNU lds that support --whole-archive. 17099 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17100 else 17101 # Exported symbols can be pulled into shared objects from archives 17102 whole_archive_flag_spec='$convenience' 17103 fi 17104 archive_cmds_need_lc=yes 17105 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17106 # -brtl affects multiple linker settings, -berok does not and is overridden later 17107 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17108 if test svr4 != "$with_aix_soname"; then 17109 # This is similar to how AIX traditionally builds its shared libraries. 17110 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 17111 fi 17112 if test aix != "$with_aix_soname"; then 17113 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 17114 else 17115 # used by -dlpreopen to get the symbols 17116 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17117 fi 17118 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17119 fi 17120 fi 17121 ;; 17122 17123 amigaos*) 17124 case $host_cpu in 17125 powerpc) 17126 # see comment about AmigaOS4 .so support 17127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17128 archive_expsym_cmds='' 17129 ;; 17130 m68k) 17131 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)' 17132 hardcode_libdir_flag_spec='-L$libdir' 17133 hardcode_minus_L=yes 17134 ;; 17135 esac 17136 ;; 17137 17138 bsdi[45]*) 17139 export_dynamic_flag_spec=-rdynamic 17140 ;; 17141 17142 cygwin* | mingw* | pw32* | cegcc*) 17143 # When not using gcc, we currently assume that we are using 17144 # Microsoft Visual C++ or Intel C++ Compiler. 17145 # hardcode_libdir_flag_spec is actually meaningless, as there is 17146 # no search path for DLLs. 17147 case $cc_basename in 17148 cl* | icl*) 17149 # Native MSVC or ICC 17150 hardcode_libdir_flag_spec=' ' 17151 allow_undefined_flag=unsupported 17152 always_export_symbols=yes 17153 file_list_spec='@' 17154 # Tell ltmain to make .lib files, not .a files. 17155 libext=lib 17156 # Tell ltmain to make .dll files, not .so files. 17157 shrext_cmds=.dll 17158 # FIXME: Setting linknames here is a bad hack. 17159 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17160 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17161 cp "$export_symbols" "$output_objdir/$soname.def"; 17162 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17163 else 17164 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17165 fi~ 17166 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17167 linknames=' 17168 # The linker will not automatically build a static lib if we build a DLL. 17169 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17170 enable_shared_with_static_runtimes=yes 17171 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17173 # Don't use ranlib 17174 old_postinstall_cmds='chmod 644 $oldlib' 17175 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17176 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17177 case $lt_outputfile in 17178 *.exe|*.EXE) ;; 17179 *) 17180 lt_outputfile=$lt_outputfile.exe 17181 lt_tool_outputfile=$lt_tool_outputfile.exe 17182 ;; 17183 esac~ 17184 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17185 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17186 $RM "$lt_outputfile.manifest"; 17187 fi' 17188 ;; 17189 *) 17190 # Assume MSVC and ICC wrapper 17191 hardcode_libdir_flag_spec=' ' 17192 allow_undefined_flag=unsupported 17193 # Tell ltmain to make .lib files, not .a files. 17194 libext=lib 17195 # Tell ltmain to make .dll files, not .so files. 17196 shrext_cmds=.dll 17197 # FIXME: Setting linknames here is a bad hack. 17198 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17199 # The linker will automatically build a .lib file if we build a DLL. 17200 old_archive_from_new_cmds='true' 17201 # FIXME: Should let the user specify the lib program. 17202 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17203 enable_shared_with_static_runtimes=yes 17204 ;; 17205 esac 17206 ;; 17207 17208 darwin* | rhapsody*) 17209 17210 17211 archive_cmds_need_lc=no 17212 hardcode_direct=no 17213 hardcode_automatic=yes 17214 hardcode_shlibpath_var=unsupported 17215 if test yes = "$lt_cv_ld_force_load"; then 17216 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\"`' 17217 17218 else 17219 whole_archive_flag_spec='' 17220 fi 17221 link_all_deplibs=yes 17222 allow_undefined_flag=$_lt_dar_allow_undefined 17223 case $cc_basename in 17224 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17225 *) _lt_dar_can_shared=$GCC ;; 17226 esac 17227 if test yes = "$_lt_dar_can_shared"; then 17228 output_verbose_link_cmd=func_echo_all 17229 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17230 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17231 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" 17232 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" 17233 17234 else 17235 ld_shlibs=no 17236 fi 17237 17238 ;; 17239 17240 dgux*) 17241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17242 hardcode_libdir_flag_spec='-L$libdir' 17243 hardcode_shlibpath_var=no 17244 ;; 17245 17246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17247 # support. Future versions do this automatically, but an explicit c++rt0.o 17248 # does not break anything, and helps significantly (at the cost of a little 17249 # extra space). 17250 freebsd2.2*) 17251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17252 hardcode_libdir_flag_spec='-R$libdir' 17253 hardcode_direct=yes 17254 hardcode_shlibpath_var=no 17255 ;; 17256 17257 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17258 freebsd2.*) 17259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17260 hardcode_direct=yes 17261 hardcode_minus_L=yes 17262 hardcode_shlibpath_var=no 17263 ;; 17264 17265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17266 freebsd* | dragonfly* | midnightbsd*) 17267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17268 hardcode_libdir_flag_spec='-R$libdir' 17269 hardcode_direct=yes 17270 hardcode_shlibpath_var=no 17271 ;; 17272 17273 hpux9*) 17274 if test yes = "$GCC"; then 17275 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 17276 else 17277 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 17278 fi 17279 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17280 hardcode_libdir_separator=: 17281 hardcode_direct=yes 17282 17283 # hardcode_minus_L: Not really in the search PATH, 17284 # but as the default location of the library. 17285 hardcode_minus_L=yes 17286 export_dynamic_flag_spec='$wl-E' 17287 ;; 17288 17289 hpux10*) 17290 if test yes,no = "$GCC,$with_gnu_ld"; then 17291 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17292 else 17293 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17294 fi 17295 if test no = "$with_gnu_ld"; then 17296 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17297 hardcode_libdir_separator=: 17298 hardcode_direct=yes 17299 hardcode_direct_absolute=yes 17300 export_dynamic_flag_spec='$wl-E' 17301 # hardcode_minus_L: Not really in the search PATH, 17302 # but as the default location of the library. 17303 hardcode_minus_L=yes 17304 fi 17305 ;; 17306 17307 hpux11*) 17308 if test yes,no = "$GCC,$with_gnu_ld"; then 17309 case $host_cpu in 17310 hppa*64*) 17311 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17312 ;; 17313 ia64*) 17314 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17315 ;; 17316 *) 17317 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17318 ;; 17319 esac 17320 else 17321 case $host_cpu in 17322 hppa*64*) 17323 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17324 ;; 17325 ia64*) 17326 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17327 ;; 17328 *) 17329 17330 # Older versions of the 11.00 compiler do not understand -b yet 17331 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17333printf %s "checking if $CC understands -b... " >&6; } 17334if test ${lt_cv_prog_compiler__b+y} 17335then : 17336 printf %s "(cached) " >&6 17337else $as_nop 17338 lt_cv_prog_compiler__b=no 17339 save_LDFLAGS=$LDFLAGS 17340 LDFLAGS="$LDFLAGS -b" 17341 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17343 # The linker can only warn and ignore the option if not recognized 17344 # So say no if there are warnings 17345 if test -s conftest.err; then 17346 # Append any errors to the config.log. 17347 cat conftest.err 1>&5 17348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17350 if diff conftest.exp conftest.er2 >/dev/null; then 17351 lt_cv_prog_compiler__b=yes 17352 fi 17353 else 17354 lt_cv_prog_compiler__b=yes 17355 fi 17356 fi 17357 $RM -r conftest* 17358 LDFLAGS=$save_LDFLAGS 17359 17360fi 17361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17362printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17363 17364if test yes = "$lt_cv_prog_compiler__b"; then 17365 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17366else 17367 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17368fi 17369 17370 ;; 17371 esac 17372 fi 17373 if test no = "$with_gnu_ld"; then 17374 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17375 hardcode_libdir_separator=: 17376 17377 case $host_cpu in 17378 hppa*64*|ia64*) 17379 hardcode_direct=no 17380 hardcode_shlibpath_var=no 17381 ;; 17382 *) 17383 hardcode_direct=yes 17384 hardcode_direct_absolute=yes 17385 export_dynamic_flag_spec='$wl-E' 17386 17387 # hardcode_minus_L: Not really in the search PATH, 17388 # but as the default location of the library. 17389 hardcode_minus_L=yes 17390 ;; 17391 esac 17392 fi 17393 ;; 17394 17395 irix5* | irix6* | nonstopux*) 17396 if test yes = "$GCC"; then 17397 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' 17398 # Try to use the -exported_symbol ld option, if it does not 17399 # work, assume that -exports_file does not work either and 17400 # implicitly export all symbols. 17401 # This should be the same for all languages, so no per-tag cache variable. 17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17403printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17404if test ${lt_cv_irix_exported_symbol+y} 17405then : 17406 printf %s "(cached) " >&6 17407else $as_nop 17408 save_LDFLAGS=$LDFLAGS 17409 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412int foo (void) { return 0; } 17413_ACEOF 17414if ac_fn_c_try_link "$LINENO" 17415then : 17416 lt_cv_irix_exported_symbol=yes 17417else $as_nop 17418 lt_cv_irix_exported_symbol=no 17419fi 17420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17421 conftest$ac_exeext conftest.$ac_ext 17422 LDFLAGS=$save_LDFLAGS 17423fi 17424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17425printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17426 if test yes = "$lt_cv_irix_exported_symbol"; then 17427 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' 17428 fi 17429 else 17430 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' 17431 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' 17432 fi 17433 archive_cmds_need_lc='no' 17434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17435 hardcode_libdir_separator=: 17436 inherit_rpath=yes 17437 link_all_deplibs=yes 17438 ;; 17439 17440 linux*) 17441 case $cc_basename in 17442 tcc*) 17443 # Fabrice Bellard et al's Tiny C Compiler 17444 ld_shlibs=yes 17445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17446 ;; 17447 esac 17448 ;; 17449 17450 netbsd*) 17451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17453 else 17454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17455 fi 17456 hardcode_libdir_flag_spec='-R$libdir' 17457 hardcode_direct=yes 17458 hardcode_shlibpath_var=no 17459 ;; 17460 17461 newsos6) 17462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17463 hardcode_direct=yes 17464 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17465 hardcode_libdir_separator=: 17466 hardcode_shlibpath_var=no 17467 ;; 17468 17469 *nto* | *qnx*) 17470 ;; 17471 17472 openbsd* | bitrig*) 17473 if test -f /usr/libexec/ld.so; then 17474 hardcode_direct=yes 17475 hardcode_shlibpath_var=no 17476 hardcode_direct_absolute=yes 17477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17480 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17481 export_dynamic_flag_spec='$wl-E' 17482 else 17483 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17484 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17485 fi 17486 else 17487 ld_shlibs=no 17488 fi 17489 ;; 17490 17491 os2*) 17492 hardcode_libdir_flag_spec='-L$libdir' 17493 hardcode_minus_L=yes 17494 allow_undefined_flag=unsupported 17495 shrext_cmds=.dll 17496 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17497 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17498 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17499 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17500 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17501 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17502 emximp -o $lib $output_objdir/$libname.def' 17503 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17504 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17505 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17506 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17507 prefix_cmds="$SED"~ 17508 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17509 prefix_cmds="$prefix_cmds -e 1d"; 17510 fi~ 17511 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17512 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17514 emximp -o $lib $output_objdir/$libname.def' 17515 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17516 enable_shared_with_static_runtimes=yes 17517 file_list_spec='@' 17518 ;; 17519 17520 osf3*) 17521 if test yes = "$GCC"; then 17522 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17523 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' 17524 else 17525 allow_undefined_flag=' -expect_unresolved \*' 17526 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' 17527 fi 17528 archive_cmds_need_lc='no' 17529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17530 hardcode_libdir_separator=: 17531 ;; 17532 17533 osf4* | osf5*) # as osf3* with the addition of -msym flag 17534 if test yes = "$GCC"; then 17535 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17536 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' 17537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17538 else 17539 allow_undefined_flag=' -expect_unresolved \*' 17540 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' 17541 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~ 17542 $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' 17543 17544 # Both c and cxx compiler support -rpath directly 17545 hardcode_libdir_flag_spec='-rpath $libdir' 17546 fi 17547 archive_cmds_need_lc='no' 17548 hardcode_libdir_separator=: 17549 ;; 17550 17551 solaris*) 17552 no_undefined_flag=' -z defs' 17553 if test yes = "$GCC"; then 17554 wlarc='$wl' 17555 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17557 $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' 17558 else 17559 case `$CC -V 2>&1` in 17560 *"Compilers 5.0"*) 17561 wlarc='' 17562 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17564 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17565 ;; 17566 *) 17567 wlarc='$wl' 17568 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17570 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17571 ;; 17572 esac 17573 fi 17574 hardcode_libdir_flag_spec='-R$libdir' 17575 hardcode_shlibpath_var=no 17576 case $host_os in 17577 solaris2.[0-5] | solaris2.[0-5].*) ;; 17578 *) 17579 # The compiler driver will combine and reorder linker options, 17580 # but understands '-z linker_flag'. GCC discards it without '$wl', 17581 # but is careful enough not to reorder. 17582 # Supported since Solaris 2.6 (maybe 2.5.1?) 17583 if test yes = "$GCC"; then 17584 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17585 else 17586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17587 fi 17588 ;; 17589 esac 17590 link_all_deplibs=yes 17591 ;; 17592 17593 sunos4*) 17594 if test sequent = "$host_vendor"; then 17595 # Use $CC to link under sequent, because it throws in some extra .o 17596 # files that make .init and .fini sections work. 17597 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17598 else 17599 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17600 fi 17601 hardcode_libdir_flag_spec='-L$libdir' 17602 hardcode_direct=yes 17603 hardcode_minus_L=yes 17604 hardcode_shlibpath_var=no 17605 ;; 17606 17607 sysv4) 17608 case $host_vendor in 17609 sni) 17610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17611 hardcode_direct=yes # is this really true??? 17612 ;; 17613 siemens) 17614 ## LD is ld it makes a PLAMLIB 17615 ## CC just makes a GrossModule. 17616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17617 reload_cmds='$CC -r -o $output$reload_objs' 17618 hardcode_direct=no 17619 ;; 17620 motorola) 17621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17622 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17623 ;; 17624 esac 17625 runpath_var='LD_RUN_PATH' 17626 hardcode_shlibpath_var=no 17627 ;; 17628 17629 sysv4.3*) 17630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17631 hardcode_shlibpath_var=no 17632 export_dynamic_flag_spec='-Bexport' 17633 ;; 17634 17635 sysv4*MP*) 17636 if test -d /usr/nec; then 17637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17638 hardcode_shlibpath_var=no 17639 runpath_var=LD_RUN_PATH 17640 hardcode_runpath_var=yes 17641 ld_shlibs=yes 17642 fi 17643 ;; 17644 17645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17646 no_undefined_flag='$wl-z,text' 17647 archive_cmds_need_lc=no 17648 hardcode_shlibpath_var=no 17649 runpath_var='LD_RUN_PATH' 17650 17651 if test yes = "$GCC"; then 17652 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17653 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17654 else 17655 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17656 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17657 fi 17658 ;; 17659 17660 sysv5* | sco3.2v5* | sco5v6*) 17661 # Note: We CANNOT use -z defs as we might desire, because we do not 17662 # link with -lc, and that would cause any symbols used from libc to 17663 # always be unresolved, which means just about no library would 17664 # ever link correctly. If we're not using GNU ld we use -z text 17665 # though, which does catch some bad symbols but isn't as heavy-handed 17666 # as -z defs. 17667 no_undefined_flag='$wl-z,text' 17668 allow_undefined_flag='$wl-z,nodefs' 17669 archive_cmds_need_lc=no 17670 hardcode_shlibpath_var=no 17671 hardcode_libdir_flag_spec='$wl-R,$libdir' 17672 hardcode_libdir_separator=':' 17673 link_all_deplibs=yes 17674 export_dynamic_flag_spec='$wl-Bexport' 17675 runpath_var='LD_RUN_PATH' 17676 17677 if test yes = "$GCC"; then 17678 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17679 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17680 else 17681 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17682 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17683 fi 17684 ;; 17685 17686 uts4*) 17687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17688 hardcode_libdir_flag_spec='-L$libdir' 17689 hardcode_shlibpath_var=no 17690 ;; 17691 17692 *) 17693 ld_shlibs=no 17694 ;; 17695 esac 17696 17697 if test sni = "$host_vendor"; then 17698 case $host in 17699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17700 export_dynamic_flag_spec='$wl-Blargedynsym' 17701 ;; 17702 esac 17703 fi 17704 fi 17705 17706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17707printf "%s\n" "$ld_shlibs" >&6; } 17708test no = "$ld_shlibs" && can_build_shared=no 17709 17710with_gnu_ld=$with_gnu_ld 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726# 17727# Do we need to explicitly link libc? 17728# 17729case "x$archive_cmds_need_lc" in 17730x|xyes) 17731 # Assume -lc should be added 17732 archive_cmds_need_lc=yes 17733 17734 if test yes,yes = "$GCC,$enable_shared"; then 17735 case $archive_cmds in 17736 *'~'*) 17737 # FIXME: we may have to deal with multi-command sequences. 17738 ;; 17739 '$CC '*) 17740 # Test whether the compiler implicitly links with -lc since on some 17741 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17742 # to ld, don't add -lc before -lgcc. 17743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17744printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17745if test ${lt_cv_archive_cmds_need_lc+y} 17746then : 17747 printf %s "(cached) " >&6 17748else $as_nop 17749 $RM conftest* 17750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17751 17752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17753 (eval $ac_compile) 2>&5 17754 ac_status=$? 17755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17756 test $ac_status = 0; } 2>conftest.err; then 17757 soname=conftest 17758 lib=conftest 17759 libobjs=conftest.$ac_objext 17760 deplibs= 17761 wl=$lt_prog_compiler_wl 17762 pic_flag=$lt_prog_compiler_pic 17763 compiler_flags=-v 17764 linker_flags=-v 17765 verstring= 17766 output_objdir=. 17767 libname=conftest 17768 lt_save_allow_undefined_flag=$allow_undefined_flag 17769 allow_undefined_flag= 17770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17771 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17772 ac_status=$? 17773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17774 test $ac_status = 0; } 17775 then 17776 lt_cv_archive_cmds_need_lc=no 17777 else 17778 lt_cv_archive_cmds_need_lc=yes 17779 fi 17780 allow_undefined_flag=$lt_save_allow_undefined_flag 17781 else 17782 cat conftest.err 1>&5 17783 fi 17784 $RM conftest* 17785 17786fi 17787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17788printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17789 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17790 ;; 17791 esac 17792 fi 17793 ;; 17794esac 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17948printf %s "checking dynamic linker characteristics... " >&6; } 17949 17950if test yes = "$GCC"; then 17951 case $host_os in 17952 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17953 *) lt_awk_arg='/^libraries:/' ;; 17954 esac 17955 case $host_os in 17956 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17957 *) lt_sed_strip_eq='s|=/|/|g' ;; 17958 esac 17959 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17960 case $lt_search_path_spec in 17961 *\;*) 17962 # if the path contains ";" then we assume it to be the separator 17963 # otherwise default to the standard path separator (i.e. ":") - it is 17964 # assumed that no part of a normal pathname contains ";" but that should 17965 # okay in the real world where ";" in dirpaths is itself problematic. 17966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17967 ;; 17968 *) 17969 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17970 ;; 17971 esac 17972 # Ok, now we have the path, separated by spaces, we can step through it 17973 # and add multilib dir if necessary... 17974 lt_tmp_lt_search_path_spec= 17975 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17976 # ...but if some path component already ends with the multilib dir we assume 17977 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17978 case "$lt_multi_os_dir; $lt_search_path_spec " in 17979 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17980 lt_multi_os_dir= 17981 ;; 17982 esac 17983 for lt_sys_path in $lt_search_path_spec; do 17984 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17985 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17986 elif test -n "$lt_multi_os_dir"; then 17987 test -d "$lt_sys_path" && \ 17988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17989 fi 17990 done 17991 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17992BEGIN {RS = " "; FS = "/|\n";} { 17993 lt_foo = ""; 17994 lt_count = 0; 17995 for (lt_i = NF; lt_i > 0; lt_i--) { 17996 if ($lt_i != "" && $lt_i != ".") { 17997 if ($lt_i == "..") { 17998 lt_count++; 17999 } else { 18000 if (lt_count == 0) { 18001 lt_foo = "/" $lt_i lt_foo; 18002 } else { 18003 lt_count--; 18004 } 18005 } 18006 } 18007 } 18008 if (lt_foo != "") { lt_freq[lt_foo]++; } 18009 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18010}'` 18011 # AWK program above erroneously prepends '/' to C:/dos/paths 18012 # for these hosts. 18013 case $host_os in 18014 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18015 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18016 esac 18017 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18018else 18019 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18020fi 18021library_names_spec= 18022libname_spec='lib$name' 18023soname_spec= 18024shrext_cmds=.so 18025postinstall_cmds= 18026postuninstall_cmds= 18027finish_cmds= 18028finish_eval= 18029shlibpath_var= 18030shlibpath_overrides_runpath=unknown 18031version_type=none 18032dynamic_linker="$host_os ld.so" 18033sys_lib_dlsearch_path_spec="/lib /usr/lib" 18034need_lib_prefix=unknown 18035hardcode_into_libs=no 18036 18037# when you set need_version to no, make sure it does not cause -set_version 18038# flags to be left without arguments 18039need_version=unknown 18040 18041 18042 18043case $host_os in 18044aix3*) 18045 version_type=linux # correct to gnu/linux during the next big refactor 18046 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18047 shlibpath_var=LIBPATH 18048 18049 # AIX 3 has no versioning support, so we append a major version to the name. 18050 soname_spec='$libname$release$shared_ext$major' 18051 ;; 18052 18053aix[4-9]*) 18054 version_type=linux # correct to gnu/linux during the next big refactor 18055 need_lib_prefix=no 18056 need_version=no 18057 hardcode_into_libs=yes 18058 if test ia64 = "$host_cpu"; then 18059 # AIX 5 supports IA64 18060 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18061 shlibpath_var=LD_LIBRARY_PATH 18062 else 18063 # With GCC up to 2.95.x, collect2 would create an import file 18064 # for dependence libraries. The import file would start with 18065 # the line '#! .'. This would cause the generated library to 18066 # depend on '.', always an invalid library. This was fixed in 18067 # development snapshots of GCC prior to 3.0. 18068 case $host_os in 18069 aix4 | aix4.[01] | aix4.[01].*) 18070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18071 echo ' yes ' 18072 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18073 : 18074 else 18075 can_build_shared=no 18076 fi 18077 ;; 18078 esac 18079 # Using Import Files as archive members, it is possible to support 18080 # filename-based versioning of shared library archives on AIX. While 18081 # this would work for both with and without runtime linking, it will 18082 # prevent static linking of such archives. So we do filename-based 18083 # shared library versioning with .so extension only, which is used 18084 # when both runtime linking and shared linking is enabled. 18085 # Unfortunately, runtime linking may impact performance, so we do 18086 # not want this to be the default eventually. Also, we use the 18087 # versioned .so libs for executables only if there is the -brtl 18088 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18089 # To allow for filename-based versioning support, we need to create 18090 # libNAME.so.V as an archive file, containing: 18091 # *) an Import File, referring to the versioned filename of the 18092 # archive as well as the shared archive member, telling the 18093 # bitwidth (32 or 64) of that shared object, and providing the 18094 # list of exported symbols of that shared object, eventually 18095 # decorated with the 'weak' keyword 18096 # *) the shared object with the F_LOADONLY flag set, to really avoid 18097 # it being seen by the linker. 18098 # At run time we better use the real file rather than another symlink, 18099 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18100 18101 case $with_aix_soname,$aix_use_runtimelinking in 18102 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18103 # soname into executable. Probably we can add versioning support to 18104 # collect2, so additional links can be useful in future. 18105 aix,yes) # traditional libtool 18106 dynamic_linker='AIX unversionable lib.so' 18107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18108 # instead of lib<name>.a to let people know that these are not 18109 # typical AIX shared libraries. 18110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18111 ;; 18112 aix,no) # traditional AIX only 18113 dynamic_linker='AIX lib.a(lib.so.V)' 18114 # We preserve .a as extension for shared libraries through AIX4.2 18115 # and later when we are not doing run time linking. 18116 library_names_spec='$libname$release.a $libname.a' 18117 soname_spec='$libname$release$shared_ext$major' 18118 ;; 18119 svr4,*) # full svr4 only 18120 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18121 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18122 # We do not specify a path in Import Files, so LIBPATH fires. 18123 shlibpath_overrides_runpath=yes 18124 ;; 18125 *,yes) # both, prefer svr4 18126 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18127 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18128 # unpreferred sharedlib libNAME.a needs extra handling 18129 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 18130 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 18131 # We do not specify a path in Import Files, so LIBPATH fires. 18132 shlibpath_overrides_runpath=yes 18133 ;; 18134 *,no) # both, prefer aix 18135 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18136 library_names_spec='$libname$release.a $libname.a' 18137 soname_spec='$libname$release$shared_ext$major' 18138 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18139 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 18140 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 18141 ;; 18142 esac 18143 shlibpath_var=LIBPATH 18144 fi 18145 ;; 18146 18147amigaos*) 18148 case $host_cpu in 18149 powerpc) 18150 # Since July 2007 AmigaOS4 officially supports .so libraries. 18151 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18153 ;; 18154 m68k) 18155 library_names_spec='$libname.ixlibrary $libname.a' 18156 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18157 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18158 ;; 18159 esac 18160 ;; 18161 18162beos*) 18163 library_names_spec='$libname$shared_ext' 18164 dynamic_linker="$host_os ld.so" 18165 shlibpath_var=LIBRARY_PATH 18166 ;; 18167 18168bsdi[45]*) 18169 version_type=linux # correct to gnu/linux during the next big refactor 18170 need_version=no 18171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18172 soname_spec='$libname$release$shared_ext$major' 18173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18174 shlibpath_var=LD_LIBRARY_PATH 18175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18177 # the default ld.so.conf also contains /usr/contrib/lib and 18178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18179 # libtool to hard-code these into programs 18180 ;; 18181 18182cygwin* | mingw* | pw32* | cegcc*) 18183 version_type=windows 18184 shrext_cmds=.dll 18185 need_version=no 18186 need_lib_prefix=no 18187 18188 case $GCC,$cc_basename in 18189 yes,*) 18190 # gcc 18191 library_names_spec='$libname.dll.a' 18192 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18193 postinstall_cmds='base_file=`basename \$file`~ 18194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18195 dldir=$destdir/`dirname \$dlpath`~ 18196 test -d \$dldir || mkdir -p \$dldir~ 18197 $install_prog $dir/$dlname \$dldir/$dlname~ 18198 chmod a+x \$dldir/$dlname~ 18199 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18200 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18201 fi' 18202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18203 dlpath=$dir/\$dldll~ 18204 $RM \$dlpath' 18205 shlibpath_overrides_runpath=yes 18206 18207 case $host_os in 18208 cygwin*) 18209 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18210 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18211 18212 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18213 ;; 18214 mingw* | cegcc*) 18215 # MinGW DLLs use traditional 'lib' prefix 18216 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18217 ;; 18218 pw32*) 18219 # pw32 DLLs use 'pw' prefix rather than 'lib' 18220 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18221 ;; 18222 esac 18223 dynamic_linker='Win32 ld.exe' 18224 ;; 18225 18226 *,cl* | *,icl*) 18227 # Native MSVC or ICC 18228 libname_spec='$name' 18229 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18230 library_names_spec='$libname.dll.lib' 18231 18232 case $build_os in 18233 mingw*) 18234 sys_lib_search_path_spec= 18235 lt_save_ifs=$IFS 18236 IFS=';' 18237 for lt_path in $LIB 18238 do 18239 IFS=$lt_save_ifs 18240 # Let DOS variable expansion print the short 8.3 style file name. 18241 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18242 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18243 done 18244 IFS=$lt_save_ifs 18245 # Convert to MSYS style. 18246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18247 ;; 18248 cygwin*) 18249 # Convert to unix form, then to dos form, then back to unix form 18250 # but this time dos style (no spaces!) so that the unix form looks 18251 # like /cygdrive/c/PROGRA~1:/cygdr... 18252 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18253 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18254 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18255 ;; 18256 *) 18257 sys_lib_search_path_spec=$LIB 18258 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18259 # It is most probably a Windows format PATH. 18260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18261 else 18262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18263 fi 18264 # FIXME: find the short name or the path components, as spaces are 18265 # common. (e.g. "Program Files" -> "PROGRA~1") 18266 ;; 18267 esac 18268 18269 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18270 postinstall_cmds='base_file=`basename \$file`~ 18271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18272 dldir=$destdir/`dirname \$dlpath`~ 18273 test -d \$dldir || mkdir -p \$dldir~ 18274 $install_prog $dir/$dlname \$dldir/$dlname' 18275 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18276 dlpath=$dir/\$dldll~ 18277 $RM \$dlpath' 18278 shlibpath_overrides_runpath=yes 18279 dynamic_linker='Win32 link.exe' 18280 ;; 18281 18282 *) 18283 # Assume MSVC and ICC wrapper 18284 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18285 dynamic_linker='Win32 ld.exe' 18286 ;; 18287 esac 18288 # FIXME: first we should search . and the directory the executable is in 18289 shlibpath_var=PATH 18290 ;; 18291 18292darwin* | rhapsody*) 18293 dynamic_linker="$host_os dyld" 18294 version_type=darwin 18295 need_lib_prefix=no 18296 need_version=no 18297 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18298 soname_spec='$libname$release$major$shared_ext' 18299 shlibpath_overrides_runpath=yes 18300 shlibpath_var=DYLD_LIBRARY_PATH 18301 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18302 18303 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18304 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18305 ;; 18306 18307dgux*) 18308 version_type=linux # correct to gnu/linux during the next big refactor 18309 need_lib_prefix=no 18310 need_version=no 18311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18312 soname_spec='$libname$release$shared_ext$major' 18313 shlibpath_var=LD_LIBRARY_PATH 18314 ;; 18315 18316freebsd* | dragonfly* | midnightbsd*) 18317 # DragonFly does not have aout. When/if they implement a new 18318 # versioning mechanism, adjust this. 18319 if test -x /usr/bin/objformat; then 18320 objformat=`/usr/bin/objformat` 18321 else 18322 case $host_os in 18323 freebsd[23].*) objformat=aout ;; 18324 *) objformat=elf ;; 18325 esac 18326 fi 18327 version_type=freebsd-$objformat 18328 case $version_type in 18329 freebsd-elf*) 18330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18331 soname_spec='$libname$release$shared_ext$major' 18332 need_version=no 18333 need_lib_prefix=no 18334 ;; 18335 freebsd-*) 18336 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18337 need_version=yes 18338 ;; 18339 esac 18340 shlibpath_var=LD_LIBRARY_PATH 18341 case $host_os in 18342 freebsd2.*) 18343 shlibpath_overrides_runpath=yes 18344 ;; 18345 freebsd3.[01]* | freebsdelf3.[01]*) 18346 shlibpath_overrides_runpath=yes 18347 hardcode_into_libs=yes 18348 ;; 18349 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18350 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18351 shlibpath_overrides_runpath=no 18352 hardcode_into_libs=yes 18353 ;; 18354 *) # from 4.6 on, and DragonFly 18355 shlibpath_overrides_runpath=yes 18356 hardcode_into_libs=yes 18357 ;; 18358 esac 18359 ;; 18360 18361haiku*) 18362 version_type=linux # correct to gnu/linux during the next big refactor 18363 need_lib_prefix=no 18364 need_version=no 18365 dynamic_linker="$host_os runtime_loader" 18366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18367 soname_spec='$libname$release$shared_ext$major' 18368 shlibpath_var=LIBRARY_PATH 18369 shlibpath_overrides_runpath=no 18370 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18371 hardcode_into_libs=yes 18372 ;; 18373 18374hpux9* | hpux10* | hpux11*) 18375 # Give a soname corresponding to the major version so that dld.sl refuses to 18376 # link against other versions. 18377 version_type=sunos 18378 need_lib_prefix=no 18379 need_version=no 18380 case $host_cpu in 18381 ia64*) 18382 shrext_cmds='.so' 18383 hardcode_into_libs=yes 18384 dynamic_linker="$host_os dld.so" 18385 shlibpath_var=LD_LIBRARY_PATH 18386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18388 soname_spec='$libname$release$shared_ext$major' 18389 if test 32 = "$HPUX_IA64_MODE"; then 18390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18391 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18392 else 18393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18394 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18395 fi 18396 ;; 18397 hppa*64*) 18398 shrext_cmds='.sl' 18399 hardcode_into_libs=yes 18400 dynamic_linker="$host_os dld.sl" 18401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18404 soname_spec='$libname$release$shared_ext$major' 18405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18407 ;; 18408 *) 18409 shrext_cmds='.sl' 18410 dynamic_linker="$host_os dld.sl" 18411 shlibpath_var=SHLIB_PATH 18412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18414 soname_spec='$libname$release$shared_ext$major' 18415 ;; 18416 esac 18417 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18418 postinstall_cmds='chmod 555 $lib' 18419 # or fails outright, so override atomically: 18420 install_override_mode=555 18421 ;; 18422 18423interix[3-9]*) 18424 version_type=linux # correct to gnu/linux during the next big refactor 18425 need_lib_prefix=no 18426 need_version=no 18427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18428 soname_spec='$libname$release$shared_ext$major' 18429 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18430 shlibpath_var=LD_LIBRARY_PATH 18431 shlibpath_overrides_runpath=no 18432 hardcode_into_libs=yes 18433 ;; 18434 18435irix5* | irix6* | nonstopux*) 18436 case $host_os in 18437 nonstopux*) version_type=nonstopux ;; 18438 *) 18439 if test yes = "$lt_cv_prog_gnu_ld"; then 18440 version_type=linux # correct to gnu/linux during the next big refactor 18441 else 18442 version_type=irix 18443 fi ;; 18444 esac 18445 need_lib_prefix=no 18446 need_version=no 18447 soname_spec='$libname$release$shared_ext$major' 18448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18449 case $host_os in 18450 irix5* | nonstopux*) 18451 libsuff= shlibsuff= 18452 ;; 18453 *) 18454 case $LD in # libtool.m4 will add one of these switches to LD 18455 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18456 libsuff= shlibsuff= libmagic=32-bit;; 18457 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18458 libsuff=32 shlibsuff=N32 libmagic=N32;; 18459 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18460 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18461 *) libsuff= shlibsuff= libmagic=never-match;; 18462 esac 18463 ;; 18464 esac 18465 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18466 shlibpath_overrides_runpath=no 18467 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18468 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18469 hardcode_into_libs=yes 18470 ;; 18471 18472# No shared lib support for Linux oldld, aout, or coff. 18473linux*oldld* | linux*aout* | linux*coff*) 18474 dynamic_linker=no 18475 ;; 18476 18477linux*android*) 18478 version_type=none # Android doesn't support versioned libraries. 18479 need_lib_prefix=no 18480 need_version=no 18481 library_names_spec='$libname$release$shared_ext' 18482 soname_spec='$libname$release$shared_ext' 18483 finish_cmds= 18484 shlibpath_var=LD_LIBRARY_PATH 18485 shlibpath_overrides_runpath=yes 18486 18487 # This implies no fast_install, which is unacceptable. 18488 # Some rework will be needed to allow for fast_install 18489 # before this can be enabled. 18490 hardcode_into_libs=yes 18491 18492 dynamic_linker='Android linker' 18493 # Don't embed -rpath directories since the linker doesn't support them. 18494 hardcode_libdir_flag_spec='-L$libdir' 18495 ;; 18496 18497# This must be glibc/ELF. 18498linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18499 version_type=linux # correct to gnu/linux during the next big refactor 18500 need_lib_prefix=no 18501 need_version=no 18502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18503 soname_spec='$libname$release$shared_ext$major' 18504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18505 shlibpath_var=LD_LIBRARY_PATH 18506 shlibpath_overrides_runpath=no 18507 18508 # Some binutils ld are patched to set DT_RUNPATH 18509 if test ${lt_cv_shlibpath_overrides_runpath+y} 18510then : 18511 printf %s "(cached) " >&6 18512else $as_nop 18513 lt_cv_shlibpath_overrides_runpath=no 18514 save_LDFLAGS=$LDFLAGS 18515 save_libdir=$libdir 18516 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18517 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18519/* end confdefs.h. */ 18520 18521int 18522main (void) 18523{ 18524 18525 ; 18526 return 0; 18527} 18528_ACEOF 18529if ac_fn_c_try_link "$LINENO" 18530then : 18531 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18532then : 18533 lt_cv_shlibpath_overrides_runpath=yes 18534fi 18535fi 18536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18537 conftest$ac_exeext conftest.$ac_ext 18538 LDFLAGS=$save_LDFLAGS 18539 libdir=$save_libdir 18540 18541fi 18542 18543 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18544 18545 # This implies no fast_install, which is unacceptable. 18546 # Some rework will be needed to allow for fast_install 18547 # before this can be enabled. 18548 hardcode_into_libs=yes 18549 18550 # Add ABI-specific directories to the system library path. 18551 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 18552 18553 # Ideally, we could use ldconfig to report *all* directores which are 18554 # searched for libraries, however this is still not possible. Aside from not 18555 # being certain /sbin/ldconfig is available, command 18556 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18557 # even though it is searched at run-time. Try to do the best guess by 18558 # appending ld.so.conf contents (and includes) to the search path. 18559 if test -f /etc/ld.so.conf; then 18560 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' ' '` 18561 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18562 fi 18563 18564 # We used to test for /lib/ld.so.1 and disable shared libraries on 18565 # powerpc, because MkLinux only supported shared libraries with the 18566 # GNU dynamic linker. Since this was broken with cross compilers, 18567 # most powerpc-linux boxes support dynamic linking these days and 18568 # people can always --disable-shared, the test was removed, and we 18569 # assume the GNU/Linux dynamic linker is in use. 18570 dynamic_linker='GNU/Linux ld.so' 18571 ;; 18572 18573netbsd*) 18574 version_type=sunos 18575 need_lib_prefix=no 18576 need_version=no 18577 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18578 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18580 dynamic_linker='NetBSD (a.out) ld.so' 18581 else 18582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18583 soname_spec='$libname$release$shared_ext$major' 18584 dynamic_linker='NetBSD ld.elf_so' 18585 fi 18586 shlibpath_var=LD_LIBRARY_PATH 18587 shlibpath_overrides_runpath=yes 18588 hardcode_into_libs=yes 18589 ;; 18590 18591newsos6) 18592 version_type=linux # correct to gnu/linux during the next big refactor 18593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18594 shlibpath_var=LD_LIBRARY_PATH 18595 shlibpath_overrides_runpath=yes 18596 ;; 18597 18598*nto* | *qnx*) 18599 version_type=qnx 18600 need_lib_prefix=no 18601 need_version=no 18602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18603 soname_spec='$libname$release$shared_ext$major' 18604 shlibpath_var=LD_LIBRARY_PATH 18605 shlibpath_overrides_runpath=no 18606 hardcode_into_libs=yes 18607 dynamic_linker='ldqnx.so' 18608 ;; 18609 18610openbsd* | bitrig*) 18611 version_type=sunos 18612 sys_lib_dlsearch_path_spec=/usr/lib 18613 need_lib_prefix=no 18614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18615 need_version=no 18616 else 18617 need_version=yes 18618 fi 18619 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18621 shlibpath_var=LD_LIBRARY_PATH 18622 shlibpath_overrides_runpath=yes 18623 ;; 18624 18625os2*) 18626 libname_spec='$name' 18627 version_type=windows 18628 shrext_cmds=.dll 18629 need_version=no 18630 need_lib_prefix=no 18631 # OS/2 can only load a DLL with a base name of 8 characters or less. 18632 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18633 v=$($ECHO $release$versuffix | tr -d .-); 18634 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18635 $ECHO $n$v`$shared_ext' 18636 library_names_spec='${libname}_dll.$libext' 18637 dynamic_linker='OS/2 ld.exe' 18638 shlibpath_var=BEGINLIBPATH 18639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18641 postinstall_cmds='base_file=`basename \$file`~ 18642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18643 dldir=$destdir/`dirname \$dlpath`~ 18644 test -d \$dldir || mkdir -p \$dldir~ 18645 $install_prog $dir/$dlname \$dldir/$dlname~ 18646 chmod a+x \$dldir/$dlname~ 18647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18649 fi' 18650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18651 dlpath=$dir/\$dldll~ 18652 $RM \$dlpath' 18653 ;; 18654 18655osf3* | osf4* | osf5*) 18656 version_type=osf 18657 need_lib_prefix=no 18658 need_version=no 18659 soname_spec='$libname$release$shared_ext$major' 18660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18661 shlibpath_var=LD_LIBRARY_PATH 18662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18664 ;; 18665 18666rdos*) 18667 dynamic_linker=no 18668 ;; 18669 18670solaris*) 18671 version_type=linux # correct to gnu/linux during the next big refactor 18672 need_lib_prefix=no 18673 need_version=no 18674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18675 soname_spec='$libname$release$shared_ext$major' 18676 shlibpath_var=LD_LIBRARY_PATH 18677 shlibpath_overrides_runpath=yes 18678 hardcode_into_libs=yes 18679 # ldd complains unless libraries are executable 18680 postinstall_cmds='chmod +x $lib' 18681 ;; 18682 18683sunos4*) 18684 version_type=sunos 18685 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18687 shlibpath_var=LD_LIBRARY_PATH 18688 shlibpath_overrides_runpath=yes 18689 if test yes = "$with_gnu_ld"; then 18690 need_lib_prefix=no 18691 fi 18692 need_version=yes 18693 ;; 18694 18695sysv4 | sysv4.3*) 18696 version_type=linux # correct to gnu/linux during the next big refactor 18697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18698 soname_spec='$libname$release$shared_ext$major' 18699 shlibpath_var=LD_LIBRARY_PATH 18700 case $host_vendor in 18701 sni) 18702 shlibpath_overrides_runpath=no 18703 need_lib_prefix=no 18704 runpath_var=LD_RUN_PATH 18705 ;; 18706 siemens) 18707 need_lib_prefix=no 18708 ;; 18709 motorola) 18710 need_lib_prefix=no 18711 need_version=no 18712 shlibpath_overrides_runpath=no 18713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18714 ;; 18715 esac 18716 ;; 18717 18718sysv4*MP*) 18719 if test -d /usr/nec; then 18720 version_type=linux # correct to gnu/linux during the next big refactor 18721 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18722 soname_spec='$libname$shared_ext.$major' 18723 shlibpath_var=LD_LIBRARY_PATH 18724 fi 18725 ;; 18726 18727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18728 version_type=sco 18729 need_lib_prefix=no 18730 need_version=no 18731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18732 soname_spec='$libname$release$shared_ext$major' 18733 shlibpath_var=LD_LIBRARY_PATH 18734 shlibpath_overrides_runpath=yes 18735 hardcode_into_libs=yes 18736 if test yes = "$with_gnu_ld"; then 18737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18738 else 18739 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18740 case $host_os in 18741 sco3.2v5*) 18742 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18743 ;; 18744 esac 18745 fi 18746 sys_lib_dlsearch_path_spec='/usr/lib' 18747 ;; 18748 18749tpf*) 18750 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18751 version_type=linux # correct to gnu/linux during the next big refactor 18752 need_lib_prefix=no 18753 need_version=no 18754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18755 shlibpath_var=LD_LIBRARY_PATH 18756 shlibpath_overrides_runpath=no 18757 hardcode_into_libs=yes 18758 ;; 18759 18760uts4*) 18761 version_type=linux # correct to gnu/linux during the next big refactor 18762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18763 soname_spec='$libname$release$shared_ext$major' 18764 shlibpath_var=LD_LIBRARY_PATH 18765 ;; 18766 18767*) 18768 dynamic_linker=no 18769 ;; 18770esac 18771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18772printf "%s\n" "$dynamic_linker" >&6; } 18773test no = "$dynamic_linker" && can_build_shared=no 18774 18775variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18776if test yes = "$GCC"; then 18777 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18778fi 18779 18780if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18781 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18782fi 18783 18784if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18785 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18786fi 18787 18788# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18789configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18790 18791# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18792func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18793 18794# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18795configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18894printf %s "checking how to hardcode library paths into programs... " >&6; } 18895hardcode_action= 18896if test -n "$hardcode_libdir_flag_spec" || 18897 test -n "$runpath_var" || 18898 test yes = "$hardcode_automatic"; then 18899 18900 # We can hardcode non-existent directories. 18901 if test no != "$hardcode_direct" && 18902 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18903 # have to relink, otherwise we might link with an installed library 18904 # when we should be linking with a yet-to-be-installed one 18905 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18906 test no != "$hardcode_minus_L"; then 18907 # Linking always hardcodes the temporary library directory. 18908 hardcode_action=relink 18909 else 18910 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18911 hardcode_action=immediate 18912 fi 18913else 18914 # We cannot hardcode anything, or else we can only hardcode existing 18915 # directories. 18916 hardcode_action=unsupported 18917fi 18918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18919printf "%s\n" "$hardcode_action" >&6; } 18920 18921if test relink = "$hardcode_action" || 18922 test yes = "$inherit_rpath"; then 18923 # Fast installation is not supported 18924 enable_fast_install=no 18925elif test yes = "$shlibpath_overrides_runpath" || 18926 test no = "$enable_shared"; then 18927 # Fast installation is not necessary 18928 enable_fast_install=needless 18929fi 18930 18931 18932 18933 18934 18935 18936 if test yes != "$enable_dlopen"; then 18937 enable_dlopen=unknown 18938 enable_dlopen_self=unknown 18939 enable_dlopen_self_static=unknown 18940else 18941 lt_cv_dlopen=no 18942 lt_cv_dlopen_libs= 18943 18944 case $host_os in 18945 beos*) 18946 lt_cv_dlopen=load_add_on 18947 lt_cv_dlopen_libs= 18948 lt_cv_dlopen_self=yes 18949 ;; 18950 18951 mingw* | pw32* | cegcc*) 18952 lt_cv_dlopen=LoadLibrary 18953 lt_cv_dlopen_libs= 18954 ;; 18955 18956 cygwin*) 18957 lt_cv_dlopen=dlopen 18958 lt_cv_dlopen_libs= 18959 ;; 18960 18961 darwin*) 18962 # if libdl is installed we need to link against it 18963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18964printf %s "checking for dlopen in -ldl... " >&6; } 18965if test ${ac_cv_lib_dl_dlopen+y} 18966then : 18967 printf %s "(cached) " >&6 18968else $as_nop 18969 ac_check_lib_save_LIBS=$LIBS 18970LIBS="-ldl $LIBS" 18971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18972/* end confdefs.h. */ 18973 18974/* Override any GCC internal prototype to avoid an error. 18975 Use char because int might match the return type of a GCC 18976 builtin and then its argument prototype would still apply. */ 18977char dlopen (); 18978int 18979main (void) 18980{ 18981return dlopen (); 18982 ; 18983 return 0; 18984} 18985_ACEOF 18986if ac_fn_c_try_link "$LINENO" 18987then : 18988 ac_cv_lib_dl_dlopen=yes 18989else $as_nop 18990 ac_cv_lib_dl_dlopen=no 18991fi 18992rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18993 conftest$ac_exeext conftest.$ac_ext 18994LIBS=$ac_check_lib_save_LIBS 18995fi 18996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18997printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18998if test "x$ac_cv_lib_dl_dlopen" = xyes 18999then : 19000 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19001else $as_nop 19002 19003 lt_cv_dlopen=dyld 19004 lt_cv_dlopen_libs= 19005 lt_cv_dlopen_self=yes 19006 19007fi 19008 19009 ;; 19010 19011 tpf*) 19012 # Don't try to run any link tests for TPF. We know it's impossible 19013 # because TPF is a cross-compiler, and we know how we open DSOs. 19014 lt_cv_dlopen=dlopen 19015 lt_cv_dlopen_libs= 19016 lt_cv_dlopen_self=no 19017 ;; 19018 19019 *) 19020 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19021if test "x$ac_cv_func_shl_load" = xyes 19022then : 19023 lt_cv_dlopen=shl_load 19024else $as_nop 19025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19026printf %s "checking for shl_load in -ldld... " >&6; } 19027if test ${ac_cv_lib_dld_shl_load+y} 19028then : 19029 printf %s "(cached) " >&6 19030else $as_nop 19031 ac_check_lib_save_LIBS=$LIBS 19032LIBS="-ldld $LIBS" 19033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19034/* end confdefs.h. */ 19035 19036/* Override any GCC internal prototype to avoid an error. 19037 Use char because int might match the return type of a GCC 19038 builtin and then its argument prototype would still apply. */ 19039char shl_load (); 19040int 19041main (void) 19042{ 19043return shl_load (); 19044 ; 19045 return 0; 19046} 19047_ACEOF 19048if ac_fn_c_try_link "$LINENO" 19049then : 19050 ac_cv_lib_dld_shl_load=yes 19051else $as_nop 19052 ac_cv_lib_dld_shl_load=no 19053fi 19054rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19055 conftest$ac_exeext conftest.$ac_ext 19056LIBS=$ac_check_lib_save_LIBS 19057fi 19058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19059printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 19060if test "x$ac_cv_lib_dld_shl_load" = xyes 19061then : 19062 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19063else $as_nop 19064 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19065if test "x$ac_cv_func_dlopen" = xyes 19066then : 19067 lt_cv_dlopen=dlopen 19068else $as_nop 19069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19070printf %s "checking for dlopen in -ldl... " >&6; } 19071if test ${ac_cv_lib_dl_dlopen+y} 19072then : 19073 printf %s "(cached) " >&6 19074else $as_nop 19075 ac_check_lib_save_LIBS=$LIBS 19076LIBS="-ldl $LIBS" 19077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19078/* end confdefs.h. */ 19079 19080/* Override any GCC internal prototype to avoid an error. 19081 Use char because int might match the return type of a GCC 19082 builtin and then its argument prototype would still apply. */ 19083char dlopen (); 19084int 19085main (void) 19086{ 19087return dlopen (); 19088 ; 19089 return 0; 19090} 19091_ACEOF 19092if ac_fn_c_try_link "$LINENO" 19093then : 19094 ac_cv_lib_dl_dlopen=yes 19095else $as_nop 19096 ac_cv_lib_dl_dlopen=no 19097fi 19098rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19099 conftest$ac_exeext conftest.$ac_ext 19100LIBS=$ac_check_lib_save_LIBS 19101fi 19102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19103printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19104if test "x$ac_cv_lib_dl_dlopen" = xyes 19105then : 19106 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19107else $as_nop 19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19109printf %s "checking for dlopen in -lsvld... " >&6; } 19110if test ${ac_cv_lib_svld_dlopen+y} 19111then : 19112 printf %s "(cached) " >&6 19113else $as_nop 19114 ac_check_lib_save_LIBS=$LIBS 19115LIBS="-lsvld $LIBS" 19116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19117/* end confdefs.h. */ 19118 19119/* Override any GCC internal prototype to avoid an error. 19120 Use char because int might match the return type of a GCC 19121 builtin and then its argument prototype would still apply. */ 19122char dlopen (); 19123int 19124main (void) 19125{ 19126return dlopen (); 19127 ; 19128 return 0; 19129} 19130_ACEOF 19131if ac_fn_c_try_link "$LINENO" 19132then : 19133 ac_cv_lib_svld_dlopen=yes 19134else $as_nop 19135 ac_cv_lib_svld_dlopen=no 19136fi 19137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19138 conftest$ac_exeext conftest.$ac_ext 19139LIBS=$ac_check_lib_save_LIBS 19140fi 19141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19142printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 19143if test "x$ac_cv_lib_svld_dlopen" = xyes 19144then : 19145 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19146else $as_nop 19147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19148printf %s "checking for dld_link in -ldld... " >&6; } 19149if test ${ac_cv_lib_dld_dld_link+y} 19150then : 19151 printf %s "(cached) " >&6 19152else $as_nop 19153 ac_check_lib_save_LIBS=$LIBS 19154LIBS="-ldld $LIBS" 19155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19156/* end confdefs.h. */ 19157 19158/* Override any GCC internal prototype to avoid an error. 19159 Use char because int might match the return type of a GCC 19160 builtin and then its argument prototype would still apply. */ 19161char dld_link (); 19162int 19163main (void) 19164{ 19165return dld_link (); 19166 ; 19167 return 0; 19168} 19169_ACEOF 19170if ac_fn_c_try_link "$LINENO" 19171then : 19172 ac_cv_lib_dld_dld_link=yes 19173else $as_nop 19174 ac_cv_lib_dld_dld_link=no 19175fi 19176rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19177 conftest$ac_exeext conftest.$ac_ext 19178LIBS=$ac_check_lib_save_LIBS 19179fi 19180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19181printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 19182if test "x$ac_cv_lib_dld_dld_link" = xyes 19183then : 19184 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19185fi 19186 19187 19188fi 19189 19190 19191fi 19192 19193 19194fi 19195 19196 19197fi 19198 19199 19200fi 19201 19202 ;; 19203 esac 19204 19205 if test no = "$lt_cv_dlopen"; then 19206 enable_dlopen=no 19207 else 19208 enable_dlopen=yes 19209 fi 19210 19211 case $lt_cv_dlopen in 19212 dlopen) 19213 save_CPPFLAGS=$CPPFLAGS 19214 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19215 19216 save_LDFLAGS=$LDFLAGS 19217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19218 19219 save_LIBS=$LIBS 19220 LIBS="$lt_cv_dlopen_libs $LIBS" 19221 19222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19223printf %s "checking whether a program can dlopen itself... " >&6; } 19224if test ${lt_cv_dlopen_self+y} 19225then : 19226 printf %s "(cached) " >&6 19227else $as_nop 19228 if test yes = "$cross_compiling"; then : 19229 lt_cv_dlopen_self=cross 19230else 19231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19232 lt_status=$lt_dlunknown 19233 cat > conftest.$ac_ext <<_LT_EOF 19234#line $LINENO "configure" 19235#include "confdefs.h" 19236 19237#if HAVE_DLFCN_H 19238#include <dlfcn.h> 19239#endif 19240 19241#include <stdio.h> 19242 19243#ifdef RTLD_GLOBAL 19244# define LT_DLGLOBAL RTLD_GLOBAL 19245#else 19246# ifdef DL_GLOBAL 19247# define LT_DLGLOBAL DL_GLOBAL 19248# else 19249# define LT_DLGLOBAL 0 19250# endif 19251#endif 19252 19253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19254 find out it does not work in some platform. */ 19255#ifndef LT_DLLAZY_OR_NOW 19256# ifdef RTLD_LAZY 19257# define LT_DLLAZY_OR_NOW RTLD_LAZY 19258# else 19259# ifdef DL_LAZY 19260# define LT_DLLAZY_OR_NOW DL_LAZY 19261# else 19262# ifdef RTLD_NOW 19263# define LT_DLLAZY_OR_NOW RTLD_NOW 19264# else 19265# ifdef DL_NOW 19266# define LT_DLLAZY_OR_NOW DL_NOW 19267# else 19268# define LT_DLLAZY_OR_NOW 0 19269# endif 19270# endif 19271# endif 19272# endif 19273#endif 19274 19275/* When -fvisibility=hidden is used, assume the code has been annotated 19276 correspondingly for the symbols needed. */ 19277#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19278int fnord () __attribute__((visibility("default"))); 19279#endif 19280 19281int fnord () { return 42; } 19282int main () 19283{ 19284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19285 int status = $lt_dlunknown; 19286 19287 if (self) 19288 { 19289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19290 else 19291 { 19292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19293 else puts (dlerror ()); 19294 } 19295 /* dlclose (self); */ 19296 } 19297 else 19298 puts (dlerror ()); 19299 19300 return status; 19301} 19302_LT_EOF 19303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19304 (eval $ac_link) 2>&5 19305 ac_status=$? 19306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19307 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19308 (./conftest; exit; ) >&5 2>/dev/null 19309 lt_status=$? 19310 case x$lt_status in 19311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19313 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19314 esac 19315 else : 19316 # compilation failed 19317 lt_cv_dlopen_self=no 19318 fi 19319fi 19320rm -fr conftest* 19321 19322 19323fi 19324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19325printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19326 19327 if test yes = "$lt_cv_dlopen_self"; then 19328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19330printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19331if test ${lt_cv_dlopen_self_static+y} 19332then : 19333 printf %s "(cached) " >&6 19334else $as_nop 19335 if test yes = "$cross_compiling"; then : 19336 lt_cv_dlopen_self_static=cross 19337else 19338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19339 lt_status=$lt_dlunknown 19340 cat > conftest.$ac_ext <<_LT_EOF 19341#line $LINENO "configure" 19342#include "confdefs.h" 19343 19344#if HAVE_DLFCN_H 19345#include <dlfcn.h> 19346#endif 19347 19348#include <stdio.h> 19349 19350#ifdef RTLD_GLOBAL 19351# define LT_DLGLOBAL RTLD_GLOBAL 19352#else 19353# ifdef DL_GLOBAL 19354# define LT_DLGLOBAL DL_GLOBAL 19355# else 19356# define LT_DLGLOBAL 0 19357# endif 19358#endif 19359 19360/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19361 find out it does not work in some platform. */ 19362#ifndef LT_DLLAZY_OR_NOW 19363# ifdef RTLD_LAZY 19364# define LT_DLLAZY_OR_NOW RTLD_LAZY 19365# else 19366# ifdef DL_LAZY 19367# define LT_DLLAZY_OR_NOW DL_LAZY 19368# else 19369# ifdef RTLD_NOW 19370# define LT_DLLAZY_OR_NOW RTLD_NOW 19371# else 19372# ifdef DL_NOW 19373# define LT_DLLAZY_OR_NOW DL_NOW 19374# else 19375# define LT_DLLAZY_OR_NOW 0 19376# endif 19377# endif 19378# endif 19379# endif 19380#endif 19381 19382/* When -fvisibility=hidden is used, assume the code has been annotated 19383 correspondingly for the symbols needed. */ 19384#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19385int fnord () __attribute__((visibility("default"))); 19386#endif 19387 19388int fnord () { return 42; } 19389int main () 19390{ 19391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19392 int status = $lt_dlunknown; 19393 19394 if (self) 19395 { 19396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19397 else 19398 { 19399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19400 else puts (dlerror ()); 19401 } 19402 /* dlclose (self); */ 19403 } 19404 else 19405 puts (dlerror ()); 19406 19407 return status; 19408} 19409_LT_EOF 19410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19411 (eval $ac_link) 2>&5 19412 ac_status=$? 19413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19414 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19415 (./conftest; exit; ) >&5 2>/dev/null 19416 lt_status=$? 19417 case x$lt_status in 19418 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19419 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19420 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19421 esac 19422 else : 19423 # compilation failed 19424 lt_cv_dlopen_self_static=no 19425 fi 19426fi 19427rm -fr conftest* 19428 19429 19430fi 19431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19432printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19433 fi 19434 19435 CPPFLAGS=$save_CPPFLAGS 19436 LDFLAGS=$save_LDFLAGS 19437 LIBS=$save_LIBS 19438 ;; 19439 esac 19440 19441 case $lt_cv_dlopen_self in 19442 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19443 *) enable_dlopen_self=unknown ;; 19444 esac 19445 19446 case $lt_cv_dlopen_self_static in 19447 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19448 *) enable_dlopen_self_static=unknown ;; 19449 esac 19450fi 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468striplib= 19469old_striplib= 19470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19471printf %s "checking whether stripping libraries is possible... " >&6; } 19472if test -z "$STRIP"; then 19473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19474printf "%s\n" "no" >&6; } 19475else 19476 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19477 old_striplib="$STRIP --strip-debug" 19478 striplib="$STRIP --strip-unneeded" 19479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19480printf "%s\n" "yes" >&6; } 19481 else 19482 case $host_os in 19483 darwin*) 19484 # FIXME - insert some real tests, host_os isn't really good enough 19485 striplib="$STRIP -x" 19486 old_striplib="$STRIP -S" 19487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19488printf "%s\n" "yes" >&6; } 19489 ;; 19490 freebsd*) 19491 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19492 old_striplib="$STRIP --strip-debug" 19493 striplib="$STRIP --strip-unneeded" 19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19495printf "%s\n" "yes" >&6; } 19496 else 19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19498printf "%s\n" "no" >&6; } 19499 fi 19500 ;; 19501 *) 19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19503printf "%s\n" "no" >&6; } 19504 ;; 19505 esac 19506 fi 19507fi 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 # Report what library types will actually be built 19521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19522printf %s "checking if libtool supports shared libraries... " >&6; } 19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19524printf "%s\n" "$can_build_shared" >&6; } 19525 19526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19527printf %s "checking whether to build shared libraries... " >&6; } 19528 test no = "$can_build_shared" && enable_shared=no 19529 19530 # On AIX, shared libraries and static libraries use the same namespace, and 19531 # are all built from PIC. 19532 case $host_os in 19533 aix3*) 19534 test yes = "$enable_shared" && enable_static=no 19535 if test -n "$RANLIB"; then 19536 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19537 postinstall_cmds='$RANLIB $lib' 19538 fi 19539 ;; 19540 19541 aix[4-9]*) 19542 if test ia64 != "$host_cpu"; then 19543 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19544 yes,aix,yes) ;; # shared object as lib.so file only 19545 yes,svr4,*) ;; # shared object as lib.so archive member only 19546 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19547 esac 19548 fi 19549 ;; 19550 esac 19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19552printf "%s\n" "$enable_shared" >&6; } 19553 19554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19555printf %s "checking whether to build static libraries... " >&6; } 19556 # Make sure either enable_shared or enable_static is yes. 19557 test yes = "$enable_shared" || enable_static=yes 19558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19559printf "%s\n" "$enable_static" >&6; } 19560 19561 19562 19563 19564fi 19565ac_ext=c 19566ac_cpp='$CPP $CPPFLAGS' 19567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19569ac_compiler_gnu=$ac_cv_c_compiler_gnu 19570 19571CC=$lt_save_CC 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 ac_config_commands="$ac_config_commands libtool" 19588 19589 19590 19591 19592# Only expand once: 19593 19594 19595 19596 19597 19598# Define a configure option for an alternate module directory 19599 19600# Check whether --with-xorg-module-dir was given. 19601if test ${with_xorg_module_dir+y} 19602then : 19603 withval=$with_xorg_module_dir; moduledir="$withval" 19604else $as_nop 19605 moduledir="$libdir/xorg/modules" 19606fi 19607 19608 19609 19610# Store the list of server defined optional extensions in REQUIRED_MODULES 19611 19612 19613 SAVE_CFLAGS="$CFLAGS" 19614 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19616/* end confdefs.h. */ 19617 19618#include "xorg-server.h" 19619#if !defined RANDR 19620#error RANDR not defined 19621#endif 19622 19623int 19624main (void) 19625{ 19626 19627 ; 19628 return 0; 19629} 19630_ACEOF 19631if ac_fn_c_try_compile "$LINENO" 19632then : 19633 _EXT_CHECK=yes 19634else $as_nop 19635 _EXT_CHECK=no 19636fi 19637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19638 CFLAGS="$SAVE_CFLAGS" 19639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19640printf %s "checking if RANDR is defined... " >&6; } 19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19642printf "%s\n" "$_EXT_CHECK" >&6; } 19643 if test "$_EXT_CHECK" != no; then 19644 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19645 fi 19646 19647 19648 19649 SAVE_CFLAGS="$CFLAGS" 19650 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19652/* end confdefs.h. */ 19653 19654#include "xorg-server.h" 19655#if !defined RENDER 19656#error RENDER not defined 19657#endif 19658 19659int 19660main (void) 19661{ 19662 19663 ; 19664 return 0; 19665} 19666_ACEOF 19667if ac_fn_c_try_compile "$LINENO" 19668then : 19669 _EXT_CHECK=yes 19670else $as_nop 19671 _EXT_CHECK=no 19672fi 19673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19674 CFLAGS="$SAVE_CFLAGS" 19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19676printf %s "checking if RENDER is defined... " >&6; } 19677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19678printf "%s\n" "$_EXT_CHECK" >&6; } 19679 if test "$_EXT_CHECK" != no; then 19680 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19681 fi 19682 19683 19684 19685 SAVE_CFLAGS="$CFLAGS" 19686 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19688/* end confdefs.h. */ 19689 19690#include "xorg-server.h" 19691#if !defined XV 19692#error XV not defined 19693#endif 19694 19695int 19696main (void) 19697{ 19698 19699 ; 19700 return 0; 19701} 19702_ACEOF 19703if ac_fn_c_try_compile "$LINENO" 19704then : 19705 _EXT_CHECK=yes 19706else $as_nop 19707 _EXT_CHECK=no 19708fi 19709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19710 CFLAGS="$SAVE_CFLAGS" 19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19712printf %s "checking if XV is defined... " >&6; } 19713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19714printf "%s\n" "$_EXT_CHECK" >&6; } 19715 if test "$_EXT_CHECK" != no; then 19716 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19717 fi 19718 19719 19720 19721 SAVE_CFLAGS="$CFLAGS" 19722 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19724/* end confdefs.h. */ 19725 19726#include "xorg-server.h" 19727#if !defined XFreeXDGA 19728#error XFreeXDGA not defined 19729#endif 19730 19731int 19732main (void) 19733{ 19734 19735 ; 19736 return 0; 19737} 19738_ACEOF 19739if ac_fn_c_try_compile "$LINENO" 19740then : 19741 _EXT_CHECK=yes 19742else $as_nop 19743 _EXT_CHECK=no 19744fi 19745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19746 CFLAGS="$SAVE_CFLAGS" 19747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5 19748printf %s "checking if XFreeXDGA is defined... " >&6; } 19749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19750printf "%s\n" "$_EXT_CHECK" >&6; } 19751 if test "$_EXT_CHECK" != no; then 19752 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto" 19753 fi 19754 19755 19756# We can use either version 1 or version 2 of libXfont 19757if test -n "$PKG_CONFIG" && \ 19758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfont2\""; } >&5 19759 ($PKG_CONFIG --exists --print-errors "xfont2") 2>&5 19760 ac_status=$? 19761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19762 test $ac_status = 0; }; then 19763 xfont_pc=xfont2 19764 19765printf "%s\n" "#define HAVE_XFONT2 1" >>confdefs.h 19766 19767else 19768 xfont_pc=xfont 19769fi 19770 19771# Obtain compiler/linker options for the driver dependencies 19772 19773pkg_failed=no 19774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19775printf %s "checking for XORG... " >&6; } 19776 19777if test -n "$XORG_CFLAGS"; then 19778 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19779 elif test -n "$PKG_CONFIG"; then 19780 if test -n "$PKG_CONFIG" && \ 19781 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$xfont_pc \$REQUIRED_MODULES\""; } >&5 19782 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES") 2>&5 19783 ac_status=$? 19784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19785 test $ac_status = 0; }; then 19786 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES" 2>/dev/null` 19787 test "x$?" != "x0" && pkg_failed=yes 19788else 19789 pkg_failed=yes 19790fi 19791 else 19792 pkg_failed=untried 19793fi 19794if test -n "$XORG_LIBS"; then 19795 pkg_cv_XORG_LIBS="$XORG_LIBS" 19796 elif test -n "$PKG_CONFIG"; then 19797 if test -n "$PKG_CONFIG" && \ 19798 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$xfont_pc \$REQUIRED_MODULES\""; } >&5 19799 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES") 2>&5 19800 ac_status=$? 19801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19802 test $ac_status = 0; }; then 19803 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES" 2>/dev/null` 19804 test "x$?" != "x0" && pkg_failed=yes 19805else 19806 pkg_failed=yes 19807fi 19808 else 19809 pkg_failed=untried 19810fi 19811 19812 19813 19814if test $pkg_failed = yes; then 19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19816printf "%s\n" "no" >&6; } 19817 19818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19819 _pkg_short_errors_supported=yes 19820else 19821 _pkg_short_errors_supported=no 19822fi 19823 if test $_pkg_short_errors_supported = yes; then 19824 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES" 2>&1` 19825 else 19826 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES" 2>&1` 19827 fi 19828 # Put the nasty error message in config.log where it belongs 19829 echo "$XORG_PKG_ERRORS" >&5 19830 19831 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES) were not met: 19832 19833$XORG_PKG_ERRORS 19834 19835Consider adjusting the PKG_CONFIG_PATH environment variable if you 19836installed software in a non-standard prefix. 19837 19838Alternatively, you may set the environment variables XORG_CFLAGS 19839and XORG_LIBS to avoid the need to call pkg-config. 19840See the pkg-config man page for more details." "$LINENO" 5 19841elif test $pkg_failed = untried; then 19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19843printf "%s\n" "no" >&6; } 19844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19845printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19846as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19847is in your PATH or set the PKG_CONFIG environment variable to the full 19848path to pkg-config. 19849 19850Alternatively, you may set the environment variables XORG_CFLAGS 19851and XORG_LIBS to avoid the need to call pkg-config. 19852See the pkg-config man page for more details. 19853 19854To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19855See \`config.log' for more details" "$LINENO" 5; } 19856else 19857 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19858 XORG_LIBS=$pkg_cv_XORG_LIBS 19859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19860printf "%s\n" "yes" >&6; } 19861 19862fi 19863 19864save_CFLAGS="$CFLAGS" 19865CFLAGS="$XORG_CFLAGS" 19866ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19867" "$ac_c_undeclared_builtin_options" "CFLAGS" 19868if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19869then : 19870 XSERVER_LIBPCIACCESS=yes 19871else $as_nop 19872 XSERVER_LIBPCIACCESS=no 19873fi 19874CFLAGS="$save_CFLAGS" 19875 19876# Check whether --enable-kms was given. 19877if test ${enable_kms+y} 19878then : 19879 enableval=$enable_kms; DRM_MODE="$enableval" 19880else $as_nop 19881 DRM_MODE=yes 19882fi 19883 19884 19885# Checks for libraries. 19886if test "x$DRM_MODE" = xyes; then 19887 # require support for kms cursor hotspot 19888 19889pkg_failed=no 19890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5 19891printf %s "checking for DRM... " >&6; } 19892 19893if test -n "$DRM_CFLAGS"; then 19894 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS" 19895 elif test -n "$PKG_CONFIG"; then 19896 if test -n "$PKG_CONFIG" && \ 19897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5 19898 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5 19899 ac_status=$? 19900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19901 test $ac_status = 0; }; then 19902 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null` 19903 test "x$?" != "x0" && pkg_failed=yes 19904else 19905 pkg_failed=yes 19906fi 19907 else 19908 pkg_failed=untried 19909fi 19910if test -n "$DRM_LIBS"; then 19911 pkg_cv_DRM_LIBS="$DRM_LIBS" 19912 elif test -n "$PKG_CONFIG"; then 19913 if test -n "$PKG_CONFIG" && \ 19914 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5 19915 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5 19916 ac_status=$? 19917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19918 test $ac_status = 0; }; then 19919 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null` 19920 test "x$?" != "x0" && pkg_failed=yes 19921else 19922 pkg_failed=yes 19923fi 19924 else 19925 pkg_failed=untried 19926fi 19927 19928 19929 19930if test $pkg_failed = yes; then 19931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19932printf "%s\n" "no" >&6; } 19933 19934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19935 _pkg_short_errors_supported=yes 19936else 19937 _pkg_short_errors_supported=no 19938fi 19939 if test $_pkg_short_errors_supported = yes; then 19940 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.46" 2>&1` 19941 else 19942 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.46" 2>&1` 19943 fi 19944 # Put the nasty error message in config.log where it belongs 19945 echo "$DRM_PKG_ERRORS" >&5 19946 19947 as_fn_error $? "Package requirements (libdrm >= 2.4.46) were not met: 19948 19949$DRM_PKG_ERRORS 19950 19951Consider adjusting the PKG_CONFIG_PATH environment variable if you 19952installed software in a non-standard prefix. 19953 19954Alternatively, you may set the environment variables DRM_CFLAGS 19955and DRM_LIBS to avoid the need to call pkg-config. 19956See the pkg-config man page for more details." "$LINENO" 5 19957elif test $pkg_failed = untried; then 19958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19959printf "%s\n" "no" >&6; } 19960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19961printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19962as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19963is in your PATH or set the PKG_CONFIG environment variable to the full 19964path to pkg-config. 19965 19966Alternatively, you may set the environment variables DRM_CFLAGS 19967and DRM_LIBS to avoid the need to call pkg-config. 19968See the pkg-config man page for more details. 19969 19970To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19971See \`config.log' for more details" "$LINENO" 5; } 19972else 19973 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS 19974 DRM_LIBS=$pkg_cv_DRM_LIBS 19975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19976printf "%s\n" "yes" >&6; } 19977 19978fi 19979else 19980 DRM_MODE=no 19981fi 19982 19983if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19984 19985pkg_failed=no 19986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19987printf %s "checking for PCIACCESS... " >&6; } 19988 19989if test -n "$PCIACCESS_CFLAGS"; then 19990 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19991 elif test -n "$PKG_CONFIG"; then 19992 if test -n "$PKG_CONFIG" && \ 19993 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 19994 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 19995 ac_status=$? 19996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19997 test $ac_status = 0; }; then 19998 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 19999 test "x$?" != "x0" && pkg_failed=yes 20000else 20001 pkg_failed=yes 20002fi 20003 else 20004 pkg_failed=untried 20005fi 20006if test -n "$PCIACCESS_LIBS"; then 20007 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20008 elif test -n "$PKG_CONFIG"; then 20009 if test -n "$PKG_CONFIG" && \ 20010 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 20011 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 20012 ac_status=$? 20013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20014 test $ac_status = 0; }; then 20015 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 20016 test "x$?" != "x0" && pkg_failed=yes 20017else 20018 pkg_failed=yes 20019fi 20020 else 20021 pkg_failed=untried 20022fi 20023 20024 20025 20026if test $pkg_failed = yes; then 20027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20028printf "%s\n" "no" >&6; } 20029 20030if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20031 _pkg_short_errors_supported=yes 20032else 20033 _pkg_short_errors_supported=no 20034fi 20035 if test $_pkg_short_errors_supported = yes; then 20036 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20037 else 20038 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20039 fi 20040 # Put the nasty error message in config.log where it belongs 20041 echo "$PCIACCESS_PKG_ERRORS" >&5 20042 20043 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met: 20044 20045$PCIACCESS_PKG_ERRORS 20046 20047Consider adjusting the PKG_CONFIG_PATH environment variable if you 20048installed software in a non-standard prefix. 20049 20050Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20051and PCIACCESS_LIBS to avoid the need to call pkg-config. 20052See the pkg-config man page for more details." "$LINENO" 5 20053elif test $pkg_failed = untried; then 20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20055printf "%s\n" "no" >&6; } 20056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20057printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20058as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20059is in your PATH or set the PKG_CONFIG environment variable to the full 20060path to pkg-config. 20061 20062Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20063and PCIACCESS_LIBS to avoid the need to call pkg-config. 20064See the pkg-config man page for more details. 20065 20066To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20067See \`config.log' for more details" "$LINENO" 5; } 20068else 20069 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20070 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20072printf "%s\n" "yes" >&6; } 20073 20074fi 20075fi 20076 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20077 XSERVER_LIBPCIACCESS_TRUE= 20078 XSERVER_LIBPCIACCESS_FALSE='#' 20079else 20080 XSERVER_LIBPCIACCESS_TRUE='#' 20081 XSERVER_LIBPCIACCESS_FALSE= 20082fi 20083 20084save_CFLAGS="$CFLAGS" 20085CFLAGS="$DRM_CFLAGS $CFLAGS" 20086if test "x$DRM_MODE" = xyes; then 20087 ac_fn_c_check_header_compile "$LINENO" "xf86drmMode.h" "ac_cv_header_xf86drmMode_h" "#include <stdint.h> 20088#include <stdlib.h> 20089" 20090if test "x$ac_cv_header_xf86drmMode_h" = xyes 20091then : 20092 DRM_MODE=yes 20093else $as_nop 20094 DRM_MODE=no 20095fi 20096 20097 if test "x$DRM_MODE" = xyes; then 20098 20099printf "%s\n" "#define XF86DRM_MODE 1" >>confdefs.h 20100 20101 else 20102 DRM_MODE=no 20103 fi 20104fi 20105CFLAGS="$save_CFLAGS" 20106 if test x$DRM_MODE = xyes; then 20107 DRM_MODE_TRUE= 20108 DRM_MODE_FALSE='#' 20109else 20110 DRM_MODE_TRUE='#' 20111 DRM_MODE_FALSE= 20112fi 20113 20114 20115enable_qxl=yes 20116# Check whether --enable-xspice was given. 20117if test ${enable_xspice+y} 20118then : 20119 enableval=$enable_xspice; if test "x$enableval" = "xyes"; then 20120 enable_xspice=yes 20121 elif test "x$enableval" = "xonly"; then 20122 enable_xspice=yes 20123 enable_qxl=no 20124 else 20125 enable_xspice=no 20126 fi 20127 20128fi 20129 20130 20131if test "x$enable_xspice" = "xyes"; then 20132 ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" 20133if test "x$ac_cv_header_sys_inotify_h" = xyes 20134then : 20135 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h 20136 20137fi 20138 20139 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1" 20140if test "x$ac_cv_func_inotify_init1" = xyes 20141then : 20142 printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h 20143 20144fi 20145 20146 20147pkg_failed=no 20148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SPICE" >&5 20149printf %s "checking for SPICE... " >&6; } 20150 20151if test -n "$SPICE_CFLAGS"; then 20152 pkg_cv_SPICE_CFLAGS="$SPICE_CFLAGS" 20153 elif test -n "$PKG_CONFIG"; then 20154 if test -n "$PKG_CONFIG" && \ 20155 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-server >= 0.6.3\""; } >&5 20156 ($PKG_CONFIG --exists --print-errors "spice-server >= 0.6.3") 2>&5 20157 ac_status=$? 20158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20159 test $ac_status = 0; }; then 20160 pkg_cv_SPICE_CFLAGS=`$PKG_CONFIG --cflags "spice-server >= 0.6.3" 2>/dev/null` 20161 test "x$?" != "x0" && pkg_failed=yes 20162else 20163 pkg_failed=yes 20164fi 20165 else 20166 pkg_failed=untried 20167fi 20168if test -n "$SPICE_LIBS"; then 20169 pkg_cv_SPICE_LIBS="$SPICE_LIBS" 20170 elif test -n "$PKG_CONFIG"; then 20171 if test -n "$PKG_CONFIG" && \ 20172 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-server >= 0.6.3\""; } >&5 20173 ($PKG_CONFIG --exists --print-errors "spice-server >= 0.6.3") 2>&5 20174 ac_status=$? 20175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20176 test $ac_status = 0; }; then 20177 pkg_cv_SPICE_LIBS=`$PKG_CONFIG --libs "spice-server >= 0.6.3" 2>/dev/null` 20178 test "x$?" != "x0" && pkg_failed=yes 20179else 20180 pkg_failed=yes 20181fi 20182 else 20183 pkg_failed=untried 20184fi 20185 20186 20187 20188if test $pkg_failed = yes; then 20189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20190printf "%s\n" "no" >&6; } 20191 20192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20193 _pkg_short_errors_supported=yes 20194else 20195 _pkg_short_errors_supported=no 20196fi 20197 if test $_pkg_short_errors_supported = yes; then 20198 SPICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "spice-server >= 0.6.3" 2>&1` 20199 else 20200 SPICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "spice-server >= 0.6.3" 2>&1` 20201 fi 20202 # Put the nasty error message in config.log where it belongs 20203 echo "$SPICE_PKG_ERRORS" >&5 20204 20205 as_fn_error $? "Package requirements (spice-server >= 0.6.3) were not met: 20206 20207$SPICE_PKG_ERRORS 20208 20209Consider adjusting the PKG_CONFIG_PATH environment variable if you 20210installed software in a non-standard prefix. 20211 20212Alternatively, you may set the environment variables SPICE_CFLAGS 20213and SPICE_LIBS to avoid the need to call pkg-config. 20214See the pkg-config man page for more details." "$LINENO" 5 20215elif test $pkg_failed = untried; then 20216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20217printf "%s\n" "no" >&6; } 20218 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20219printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20220as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20221is in your PATH or set the PKG_CONFIG environment variable to the full 20222path to pkg-config. 20223 20224Alternatively, you may set the environment variables SPICE_CFLAGS 20225and SPICE_LIBS to avoid the need to call pkg-config. 20226See the pkg-config man page for more details. 20227 20228To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20229See \`config.log' for more details" "$LINENO" 5; } 20230else 20231 SPICE_CFLAGS=$pkg_cv_SPICE_CFLAGS 20232 SPICE_LIBS=$pkg_cv_SPICE_LIBS 20233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20234printf "%s\n" "yes" >&6; } 20235 20236 20237 20238 20239fi 20240else 20241 enable_xspice=no 20242fi 20243 20244# Check whether --enable-ccid was given. 20245if test ${enable_ccid+y} 20246then : 20247 enableval=$enable_ccid; enable_ccid=$enableval 20248else $as_nop 20249 enable_ccid=no 20250fi 20251 20252 20253# Check whether --with-ccid-module-dir was given. 20254if test ${with_ccid_module_dir+y} 20255then : 20256 withval=$with_ccid_module_dir; cciddir="$withval" 20257else $as_nop 20258 cciddir="$libdir/pcsc/drivers/serial" 20259fi 20260 20261 20262if test "x$enable_ccid" != "xno"; then 20263 20264pkg_failed=no 20265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBPCSCLITE" >&5 20266printf %s "checking for LIBPCSCLITE... " >&6; } 20267 20268if test -n "$LIBPCSCLITE_CFLAGS"; then 20269 pkg_cv_LIBPCSCLITE_CFLAGS="$LIBPCSCLITE_CFLAGS" 20270 elif test -n "$PKG_CONFIG"; then 20271 if test -n "$PKG_CONFIG" && \ 20272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5 20273 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5 20274 ac_status=$? 20275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20276 test $ac_status = 0; }; then 20277 pkg_cv_LIBPCSCLITE_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite" 2>/dev/null` 20278 test "x$?" != "x0" && pkg_failed=yes 20279else 20280 pkg_failed=yes 20281fi 20282 else 20283 pkg_failed=untried 20284fi 20285if test -n "$LIBPCSCLITE_LIBS"; then 20286 pkg_cv_LIBPCSCLITE_LIBS="$LIBPCSCLITE_LIBS" 20287 elif test -n "$PKG_CONFIG"; then 20288 if test -n "$PKG_CONFIG" && \ 20289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5 20290 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5 20291 ac_status=$? 20292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20293 test $ac_status = 0; }; then 20294 pkg_cv_LIBPCSCLITE_LIBS=`$PKG_CONFIG --libs "libpcsclite" 2>/dev/null` 20295 test "x$?" != "x0" && pkg_failed=yes 20296else 20297 pkg_failed=yes 20298fi 20299 else 20300 pkg_failed=untried 20301fi 20302 20303 20304 20305if test $pkg_failed = yes; then 20306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20307printf "%s\n" "no" >&6; } 20308 20309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20310 _pkg_short_errors_supported=yes 20311else 20312 _pkg_short_errors_supported=no 20313fi 20314 if test $_pkg_short_errors_supported = yes; then 20315 LIBPCSCLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcsclite" 2>&1` 20316 else 20317 LIBPCSCLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcsclite" 2>&1` 20318 fi 20319 # Put the nasty error message in config.log where it belongs 20320 echo "$LIBPCSCLITE_PKG_ERRORS" >&5 20321 20322 as_fn_error $? "Package requirements (libpcsclite) were not met: 20323 20324$LIBPCSCLITE_PKG_ERRORS 20325 20326Consider adjusting the PKG_CONFIG_PATH environment variable if you 20327installed software in a non-standard prefix. 20328 20329Alternatively, you may set the environment variables LIBPCSCLITE_CFLAGS 20330and LIBPCSCLITE_LIBS to avoid the need to call pkg-config. 20331See the pkg-config man page for more details." "$LINENO" 5 20332elif test $pkg_failed = untried; then 20333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20334printf "%s\n" "no" >&6; } 20335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20336printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20337as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20338is in your PATH or set the PKG_CONFIG environment variable to the full 20339path to pkg-config. 20340 20341Alternatively, you may set the environment variables LIBPCSCLITE_CFLAGS 20342and LIBPCSCLITE_LIBS to avoid the need to call pkg-config. 20343See the pkg-config man page for more details. 20344 20345To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20346See \`config.log' for more details" "$LINENO" 5; } 20347else 20348 LIBPCSCLITE_CFLAGS=$pkg_cv_LIBPCSCLITE_CFLAGS 20349 LIBPCSCLITE_LIBS=$pkg_cv_LIBPCSCLITE_LIBS 20350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20351printf "%s\n" "yes" >&6; } 20352 20353fi 20354 20355pkg_failed=no 20356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBCACARD" >&5 20357printf %s "checking for LIBCACARD... " >&6; } 20358 20359if test -n "$LIBCACARD_CFLAGS"; then 20360 pkg_cv_LIBCACARD_CFLAGS="$LIBCACARD_CFLAGS" 20361 elif test -n "$PKG_CONFIG"; then 20362 if test -n "$PKG_CONFIG" && \ 20363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard\""; } >&5 20364 ($PKG_CONFIG --exists --print-errors "libcacard") 2>&5 20365 ac_status=$? 20366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20367 test $ac_status = 0; }; then 20368 pkg_cv_LIBCACARD_CFLAGS=`$PKG_CONFIG --cflags "libcacard" 2>/dev/null` 20369 test "x$?" != "x0" && pkg_failed=yes 20370else 20371 pkg_failed=yes 20372fi 20373 else 20374 pkg_failed=untried 20375fi 20376if test -n "$LIBCACARD_LIBS"; then 20377 pkg_cv_LIBCACARD_LIBS="$LIBCACARD_LIBS" 20378 elif test -n "$PKG_CONFIG"; then 20379 if test -n "$PKG_CONFIG" && \ 20380 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard\""; } >&5 20381 ($PKG_CONFIG --exists --print-errors "libcacard") 2>&5 20382 ac_status=$? 20383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20384 test $ac_status = 0; }; then 20385 pkg_cv_LIBCACARD_LIBS=`$PKG_CONFIG --libs "libcacard" 2>/dev/null` 20386 test "x$?" != "x0" && pkg_failed=yes 20387else 20388 pkg_failed=yes 20389fi 20390 else 20391 pkg_failed=untried 20392fi 20393 20394 20395 20396if test $pkg_failed = yes; then 20397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20398printf "%s\n" "no" >&6; } 20399 20400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20401 _pkg_short_errors_supported=yes 20402else 20403 _pkg_short_errors_supported=no 20404fi 20405 if test $_pkg_short_errors_supported = yes; then 20406 LIBCACARD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcacard" 2>&1` 20407 else 20408 LIBCACARD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcacard" 2>&1` 20409 fi 20410 # Put the nasty error message in config.log where it belongs 20411 echo "$LIBCACARD_PKG_ERRORS" >&5 20412 20413 as_fn_error $? "Package requirements (libcacard) were not met: 20414 20415$LIBCACARD_PKG_ERRORS 20416 20417Consider adjusting the PKG_CONFIG_PATH environment variable if you 20418installed software in a non-standard prefix. 20419 20420Alternatively, you may set the environment variables LIBCACARD_CFLAGS 20421and LIBCACARD_LIBS to avoid the need to call pkg-config. 20422See the pkg-config man page for more details." "$LINENO" 5 20423elif test $pkg_failed = untried; then 20424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20425printf "%s\n" "no" >&6; } 20426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20427printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20428as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20429is in your PATH or set the PKG_CONFIG environment variable to the full 20430path to pkg-config. 20431 20432Alternatively, you may set the environment variables LIBCACARD_CFLAGS 20433and LIBCACARD_LIBS to avoid the need to call pkg-config. 20434See the pkg-config man page for more details. 20435 20436To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20437See \`config.log' for more details" "$LINENO" 5; } 20438else 20439 LIBCACARD_CFLAGS=$pkg_cv_LIBCACARD_CFLAGS 20440 LIBCACARD_LIBS=$pkg_cv_LIBCACARD_LIBS 20441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20442printf "%s\n" "yes" >&6; } 20443 20444fi 20445 20446 if test "x$enable_xspice" = "xno"; then 20447 as_fn_error $? "Building with ccid requires xspice, but xspice is not enabled" "$LINENO" 5 20448 fi 20449fi 20450 20451 20452 if test "x$enable_xspice" = "xyes"; then 20453 BUILD_XSPICE_TRUE= 20454 BUILD_XSPICE_FALSE='#' 20455else 20456 BUILD_XSPICE_TRUE='#' 20457 BUILD_XSPICE_FALSE= 20458fi 20459 20460 if test "x$enable_qxl" = "xyes"; then 20461 BUILD_QXL_TRUE= 20462 BUILD_QXL_FALSE='#' 20463else 20464 BUILD_QXL_TRUE='#' 20465 BUILD_QXL_FALSE= 20466fi 20467 20468 if test "x$enable_ccid" = "xyes"; then 20469 BUILD_SPICECCID_TRUE= 20470 BUILD_SPICECCID_FALSE='#' 20471else 20472 BUILD_SPICECCID_TRUE='#' 20473 BUILD_SPICECCID_FALSE= 20474fi 20475 20476 20477# Check whether --enable-udev was given. 20478if test ${enable_udev+y} 20479then : 20480 enableval=$enable_udev; enable_udev="$enableval" 20481else $as_nop 20482 enable_udev=auto 20483fi 20484 20485if test "x$enable_udev" != "xno"; then 20486 20487pkg_failed=no 20488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 20489printf %s "checking for LIBUDEV... " >&6; } 20490 20491if test -n "$LIBUDEV_CFLAGS"; then 20492 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 20493 elif test -n "$PKG_CONFIG"; then 20494 if test -n "$PKG_CONFIG" && \ 20495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 20496 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 20497 ac_status=$? 20498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20499 test $ac_status = 0; }; then 20500 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 20501 test "x$?" != "x0" && pkg_failed=yes 20502else 20503 pkg_failed=yes 20504fi 20505 else 20506 pkg_failed=untried 20507fi 20508if test -n "$LIBUDEV_LIBS"; then 20509 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 20510 elif test -n "$PKG_CONFIG"; then 20511 if test -n "$PKG_CONFIG" && \ 20512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 20513 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 20514 ac_status=$? 20515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20516 test $ac_status = 0; }; then 20517 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 20518 test "x$?" != "x0" && pkg_failed=yes 20519else 20520 pkg_failed=yes 20521fi 20522 else 20523 pkg_failed=untried 20524fi 20525 20526 20527 20528if test $pkg_failed = yes; then 20529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20530printf "%s\n" "no" >&6; } 20531 20532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20533 _pkg_short_errors_supported=yes 20534else 20535 _pkg_short_errors_supported=no 20536fi 20537 if test $_pkg_short_errors_supported = yes; then 20538 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 20539 else 20540 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 20541 fi 20542 # Put the nasty error message in config.log where it belongs 20543 echo "$LIBUDEV_PKG_ERRORS" >&5 20544 20545 LIBUDEV=no 20546elif test $pkg_failed = untried; then 20547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20548printf "%s\n" "no" >&6; } 20549 LIBUDEV=no 20550else 20551 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 20552 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 20553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20554printf "%s\n" "yes" >&6; } 20555 LIBUDEV=yes 20556fi 20557 if test "x$LIBUDEV" = xyes; then 20558 20559printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h 20560 20561 elif test "x$enable_udev" != "xauto"; then 20562 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5 20563 fi 20564fi 20565 if test x$LIBUDEV = xyes; then 20566 LIBUDEV_TRUE= 20567 LIBUDEV_FALSE='#' 20568else 20569 LIBUDEV_TRUE='#' 20570 LIBUDEV_FALSE= 20571fi 20572 20573 20574 20575pkg_failed=no 20576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SPICE_PROTOCOL" >&5 20577printf %s "checking for SPICE_PROTOCOL... " >&6; } 20578 20579if test -n "$SPICE_PROTOCOL_CFLAGS"; then 20580 pkg_cv_SPICE_PROTOCOL_CFLAGS="$SPICE_PROTOCOL_CFLAGS" 20581 elif test -n "$PKG_CONFIG"; then 20582 if test -n "$PKG_CONFIG" && \ 20583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-protocol >= 0.12.0\""; } >&5 20584 ($PKG_CONFIG --exists --print-errors "spice-protocol >= 0.12.0") 2>&5 20585 ac_status=$? 20586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20587 test $ac_status = 0; }; then 20588 pkg_cv_SPICE_PROTOCOL_CFLAGS=`$PKG_CONFIG --cflags "spice-protocol >= 0.12.0" 2>/dev/null` 20589 test "x$?" != "x0" && pkg_failed=yes 20590else 20591 pkg_failed=yes 20592fi 20593 else 20594 pkg_failed=untried 20595fi 20596if test -n "$SPICE_PROTOCOL_LIBS"; then 20597 pkg_cv_SPICE_PROTOCOL_LIBS="$SPICE_PROTOCOL_LIBS" 20598 elif test -n "$PKG_CONFIG"; then 20599 if test -n "$PKG_CONFIG" && \ 20600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-protocol >= 0.12.0\""; } >&5 20601 ($PKG_CONFIG --exists --print-errors "spice-protocol >= 0.12.0") 2>&5 20602 ac_status=$? 20603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20604 test $ac_status = 0; }; then 20605 pkg_cv_SPICE_PROTOCOL_LIBS=`$PKG_CONFIG --libs "spice-protocol >= 0.12.0" 2>/dev/null` 20606 test "x$?" != "x0" && pkg_failed=yes 20607else 20608 pkg_failed=yes 20609fi 20610 else 20611 pkg_failed=untried 20612fi 20613 20614 20615 20616if test $pkg_failed = yes; then 20617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20618printf "%s\n" "no" >&6; } 20619 20620if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20621 _pkg_short_errors_supported=yes 20622else 20623 _pkg_short_errors_supported=no 20624fi 20625 if test $_pkg_short_errors_supported = yes; then 20626 SPICE_PROTOCOL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "spice-protocol >= 0.12.0" 2>&1` 20627 else 20628 SPICE_PROTOCOL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "spice-protocol >= 0.12.0" 2>&1` 20629 fi 20630 # Put the nasty error message in config.log where it belongs 20631 echo "$SPICE_PROTOCOL_PKG_ERRORS" >&5 20632 20633 as_fn_error $? "Package requirements (spice-protocol >= 0.12.0) were not met: 20634 20635$SPICE_PROTOCOL_PKG_ERRORS 20636 20637Consider adjusting the PKG_CONFIG_PATH environment variable if you 20638installed software in a non-standard prefix. 20639 20640Alternatively, you may set the environment variables SPICE_PROTOCOL_CFLAGS 20641and SPICE_PROTOCOL_LIBS to avoid the need to call pkg-config. 20642See the pkg-config man page for more details." "$LINENO" 5 20643elif test $pkg_failed = untried; then 20644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20645printf "%s\n" "no" >&6; } 20646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20647printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20648as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20649is in your PATH or set the PKG_CONFIG environment variable to the full 20650path to pkg-config. 20651 20652Alternatively, you may set the environment variables SPICE_PROTOCOL_CFLAGS 20653and SPICE_PROTOCOL_LIBS to avoid the need to call pkg-config. 20654See the pkg-config man page for more details. 20655 20656To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20657See \`config.log' for more details" "$LINENO" 5; } 20658else 20659 SPICE_PROTOCOL_CFLAGS=$pkg_cv_SPICE_PROTOCOL_CFLAGS 20660 SPICE_PROTOCOL_LIBS=$pkg_cv_SPICE_PROTOCOL_LIBS 20661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20662printf "%s\n" "yes" >&6; } 20663 20664fi 20665 20666# AC_CHECK_FILE is not supported when cross compiling 20667if test "$cross_compiling" = "no" ; then 20668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .git" >&5 20669printf %s "checking for .git... " >&6; } 20670if test ${ac_cv_file__git+y} 20671then : 20672 printf %s "(cached) " >&6 20673else $as_nop 20674 test "$cross_compiling" = yes && 20675 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20676if test -r ".git"; then 20677 ac_cv_file__git=yes 20678else 20679 ac_cv_file__git=no 20680fi 20681fi 20682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__git" >&5 20683printf "%s\n" "$ac_cv_file__git" >&6; } 20684if test "x$ac_cv_file__git" = xyes 20685then : 20686 20687 GIT_VERSION=`git log -1 --format=%h` 20688 20689printf "%s\n" "#define GIT_VERSION \"$GIT_VERSION\"" >>confdefs.h 20690 20691 20692 20693fi 20694 20695fi 20696 20697ac_config_files="$ac_config_files Makefile src/Makefile src/spiceccid/Makefile src/uxa/Makefile scripts/Makefile examples/Makefile" 20698 20699cat >confcache <<\_ACEOF 20700# This file is a shell script that caches the results of configure 20701# tests run on this system so they can be shared between configure 20702# scripts and configure runs, see configure's option --config-cache. 20703# It is not useful on other systems. If it contains results you don't 20704# want to keep, you may remove or edit it. 20705# 20706# config.status only pays attention to the cache file if you give it 20707# the --recheck option to rerun configure. 20708# 20709# `ac_cv_env_foo' variables (set or unset) will be overridden when 20710# loading this file, other *unset* `ac_cv_foo' will be assigned the 20711# following values. 20712 20713_ACEOF 20714 20715# The following way of writing the cache mishandles newlines in values, 20716# but we know of no workaround that is simple, portable, and efficient. 20717# So, we kill variables containing newlines. 20718# Ultrix sh set writes to stderr and can't be redirected directly, 20719# and sets the high bit in the cache file unless we assign to the vars. 20720( 20721 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20722 eval ac_val=\$$ac_var 20723 case $ac_val in #( 20724 *${as_nl}*) 20725 case $ac_var in #( 20726 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20727printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20728 esac 20729 case $ac_var in #( 20730 _ | IFS | as_nl) ;; #( 20731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20732 *) { eval $ac_var=; unset $ac_var;} ;; 20733 esac ;; 20734 esac 20735 done 20736 20737 (set) 2>&1 | 20738 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20739 *${as_nl}ac_space=\ *) 20740 # `set' does not quote correctly, so add quotes: double-quote 20741 # substitution turns \\\\ into \\, and sed turns \\ into \. 20742 sed -n \ 20743 "s/'/'\\\\''/g; 20744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20745 ;; #( 20746 *) 20747 # `set' quotes correctly as required by POSIX, so do not add quotes. 20748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20749 ;; 20750 esac | 20751 sort 20752) | 20753 sed ' 20754 /^ac_cv_env_/b end 20755 t clear 20756 :clear 20757 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20758 t end 20759 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20760 :end' >>confcache 20761if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20762 if test -w "$cache_file"; then 20763 if test "x$cache_file" != "x/dev/null"; then 20764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20765printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20766 if test ! -f "$cache_file" || test -h "$cache_file"; then 20767 cat confcache >"$cache_file" 20768 else 20769 case $cache_file in #( 20770 */* | ?:*) 20771 mv -f confcache "$cache_file"$$ && 20772 mv -f "$cache_file"$$ "$cache_file" ;; #( 20773 *) 20774 mv -f confcache "$cache_file" ;; 20775 esac 20776 fi 20777 fi 20778 else 20779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20780printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20781 fi 20782fi 20783rm -f confcache 20784 20785test "x$prefix" = xNONE && prefix=$ac_default_prefix 20786# Let make expand exec_prefix. 20787test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20788 20789DEFS=-DHAVE_CONFIG_H 20790 20791ac_libobjs= 20792ac_ltlibobjs= 20793U= 20794for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20795 # 1. Remove the extension, and $U if already installed. 20796 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20797 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20798 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20799 # will be set to the directory where LIBOBJS objects are built. 20800 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20801 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20802done 20803LIBOBJS=$ac_libobjs 20804 20805LTLIBOBJS=$ac_ltlibobjs 20806 20807 20808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20809printf %s "checking that generated files are newer than configure... " >&6; } 20810 if test -n "$am_sleep_pid"; then 20811 # Hide warnings about reused PIDs. 20812 wait $am_sleep_pid 2>/dev/null 20813 fi 20814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20815printf "%s\n" "done" >&6; } 20816 if test -n "$EXEEXT"; then 20817 am__EXEEXT_TRUE= 20818 am__EXEEXT_FALSE='#' 20819else 20820 am__EXEEXT_TRUE='#' 20821 am__EXEEXT_FALSE= 20822fi 20823 20824if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20825 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20826Usually this means the macro was only invoked conditionally." "$LINENO" 5 20827fi 20828if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20829 as_fn_error $? "conditional \"AMDEP\" was never defined. 20830Usually this means the macro was only invoked conditionally." "$LINENO" 5 20831fi 20832if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20833 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20834Usually this means the macro was only invoked conditionally." "$LINENO" 5 20835fi 20836if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 20837 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 20838Usually this means the macro was only invoked conditionally." "$LINENO" 5 20839fi 20840if test -z "${DRM_MODE_TRUE}" && test -z "${DRM_MODE_FALSE}"; then 20841 as_fn_error $? "conditional \"DRM_MODE\" was never defined. 20842Usually this means the macro was only invoked conditionally." "$LINENO" 5 20843fi 20844if test -z "${BUILD_XSPICE_TRUE}" && test -z "${BUILD_XSPICE_FALSE}"; then 20845 as_fn_error $? "conditional \"BUILD_XSPICE\" was never defined. 20846Usually this means the macro was only invoked conditionally." "$LINENO" 5 20847fi 20848if test -z "${BUILD_QXL_TRUE}" && test -z "${BUILD_QXL_FALSE}"; then 20849 as_fn_error $? "conditional \"BUILD_QXL\" was never defined. 20850Usually this means the macro was only invoked conditionally." "$LINENO" 5 20851fi 20852if test -z "${BUILD_SPICECCID_TRUE}" && test -z "${BUILD_SPICECCID_FALSE}"; then 20853 as_fn_error $? "conditional \"BUILD_SPICECCID\" was never defined. 20854Usually this means the macro was only invoked conditionally." "$LINENO" 5 20855fi 20856if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20857 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20858Usually this means the macro was only invoked conditionally." "$LINENO" 5 20859fi 20860 20861: "${CONFIG_STATUS=./config.status}" 20862ac_write_fail=0 20863ac_clean_files_save=$ac_clean_files 20864ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20866printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20867as_write_fail=0 20868cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20869#! $SHELL 20870# Generated by $as_me. 20871# Run this file to recreate the current configuration. 20872# Compiler output produced by configure, useful for debugging 20873# configure, is in config.log if it exists. 20874 20875debug=false 20876ac_cs_recheck=false 20877ac_cs_silent=false 20878 20879SHELL=\${CONFIG_SHELL-$SHELL} 20880export SHELL 20881_ASEOF 20882cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20883## -------------------- ## 20884## M4sh Initialization. ## 20885## -------------------- ## 20886 20887# Be more Bourne compatible 20888DUALCASE=1; export DUALCASE # for MKS sh 20889as_nop=: 20890if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20891then : 20892 emulate sh 20893 NULLCMD=: 20894 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20895 # is contrary to our usage. Disable this feature. 20896 alias -g '${1+"$@"}'='"$@"' 20897 setopt NO_GLOB_SUBST 20898else $as_nop 20899 case `(set -o) 2>/dev/null` in #( 20900 *posix*) : 20901 set -o posix ;; #( 20902 *) : 20903 ;; 20904esac 20905fi 20906 20907 20908 20909# Reset variables that may have inherited troublesome values from 20910# the environment. 20911 20912# IFS needs to be set, to space, tab, and newline, in precisely that order. 20913# (If _AS_PATH_WALK were called with IFS unset, it would have the 20914# side effect of setting IFS to empty, thus disabling word splitting.) 20915# Quoting is to prevent editors from complaining about space-tab. 20916as_nl=' 20917' 20918export as_nl 20919IFS=" "" $as_nl" 20920 20921PS1='$ ' 20922PS2='> ' 20923PS4='+ ' 20924 20925# Ensure predictable behavior from utilities with locale-dependent output. 20926LC_ALL=C 20927export LC_ALL 20928LANGUAGE=C 20929export LANGUAGE 20930 20931# We cannot yet rely on "unset" to work, but we need these variables 20932# to be unset--not just set to an empty or harmless value--now, to 20933# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20934# also avoids known problems related to "unset" and subshell syntax 20935# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20936for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20937do eval test \${$as_var+y} \ 20938 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20939done 20940 20941# Ensure that fds 0, 1, and 2 are open. 20942if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20943if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20944if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20945 20946# The user is always right. 20947if ${PATH_SEPARATOR+false} :; then 20948 PATH_SEPARATOR=: 20949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20951 PATH_SEPARATOR=';' 20952 } 20953fi 20954 20955 20956# Find who we are. Look in the path if we contain no directory separator. 20957as_myself= 20958case $0 in #(( 20959 *[\\/]* ) as_myself=$0 ;; 20960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20961for as_dir in $PATH 20962do 20963 IFS=$as_save_IFS 20964 case $as_dir in #((( 20965 '') as_dir=./ ;; 20966 */) ;; 20967 *) as_dir=$as_dir/ ;; 20968 esac 20969 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20970 done 20971IFS=$as_save_IFS 20972 20973 ;; 20974esac 20975# We did not find ourselves, most probably we were run as `sh COMMAND' 20976# in which case we are not to be found in the path. 20977if test "x$as_myself" = x; then 20978 as_myself=$0 20979fi 20980if test ! -f "$as_myself"; then 20981 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20982 exit 1 20983fi 20984 20985 20986 20987# as_fn_error STATUS ERROR [LINENO LOG_FD] 20988# ---------------------------------------- 20989# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20990# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20991# script with STATUS, using 1 if that was 0. 20992as_fn_error () 20993{ 20994 as_status=$1; test $as_status -eq 0 && as_status=1 20995 if test "$4"; then 20996 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20998 fi 20999 printf "%s\n" "$as_me: error: $2" >&2 21000 as_fn_exit $as_status 21001} # as_fn_error 21002 21003 21004 21005# as_fn_set_status STATUS 21006# ----------------------- 21007# Set $? to STATUS, without forking. 21008as_fn_set_status () 21009{ 21010 return $1 21011} # as_fn_set_status 21012 21013# as_fn_exit STATUS 21014# ----------------- 21015# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21016as_fn_exit () 21017{ 21018 set +e 21019 as_fn_set_status $1 21020 exit $1 21021} # as_fn_exit 21022 21023# as_fn_unset VAR 21024# --------------- 21025# Portably unset VAR. 21026as_fn_unset () 21027{ 21028 { eval $1=; unset $1;} 21029} 21030as_unset=as_fn_unset 21031 21032# as_fn_append VAR VALUE 21033# ---------------------- 21034# Append the text in VALUE to the end of the definition contained in VAR. Take 21035# advantage of any shell optimizations that allow amortized linear growth over 21036# repeated appends, instead of the typical quadratic growth present in naive 21037# implementations. 21038if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21039then : 21040 eval 'as_fn_append () 21041 { 21042 eval $1+=\$2 21043 }' 21044else $as_nop 21045 as_fn_append () 21046 { 21047 eval $1=\$$1\$2 21048 } 21049fi # as_fn_append 21050 21051# as_fn_arith ARG... 21052# ------------------ 21053# Perform arithmetic evaluation on the ARGs, and store the result in the 21054# global $as_val. Take advantage of shells that can avoid forks. The arguments 21055# must be portable across $(()) and expr. 21056if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21057then : 21058 eval 'as_fn_arith () 21059 { 21060 as_val=$(( $* )) 21061 }' 21062else $as_nop 21063 as_fn_arith () 21064 { 21065 as_val=`expr "$@" || test $? -eq 1` 21066 } 21067fi # as_fn_arith 21068 21069 21070if expr a : '\(a\)' >/dev/null 2>&1 && 21071 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21072 as_expr=expr 21073else 21074 as_expr=false 21075fi 21076 21077if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21078 as_basename=basename 21079else 21080 as_basename=false 21081fi 21082 21083if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21084 as_dirname=dirname 21085else 21086 as_dirname=false 21087fi 21088 21089as_me=`$as_basename -- "$0" || 21090$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21091 X"$0" : 'X\(//\)$' \| \ 21092 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21093printf "%s\n" X/"$0" | 21094 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21095 s//\1/ 21096 q 21097 } 21098 /^X\/\(\/\/\)$/{ 21099 s//\1/ 21100 q 21101 } 21102 /^X\/\(\/\).*/{ 21103 s//\1/ 21104 q 21105 } 21106 s/.*/./; q'` 21107 21108# Avoid depending upon Character Ranges. 21109as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21110as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21111as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21112as_cr_digits='0123456789' 21113as_cr_alnum=$as_cr_Letters$as_cr_digits 21114 21115 21116# Determine whether it's possible to make 'echo' print without a newline. 21117# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21118# for compatibility with existing Makefiles. 21119ECHO_C= ECHO_N= ECHO_T= 21120case `echo -n x` in #((((( 21121-n*) 21122 case `echo 'xy\c'` in 21123 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21124 xy) ECHO_C='\c';; 21125 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21126 ECHO_T=' ';; 21127 esac;; 21128*) 21129 ECHO_N='-n';; 21130esac 21131 21132# For backward compatibility with old third-party macros, we provide 21133# the shell variables $as_echo and $as_echo_n. New code should use 21134# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21135as_echo='printf %s\n' 21136as_echo_n='printf %s' 21137 21138rm -f conf$$ conf$$.exe conf$$.file 21139if test -d conf$$.dir; then 21140 rm -f conf$$.dir/conf$$.file 21141else 21142 rm -f conf$$.dir 21143 mkdir conf$$.dir 2>/dev/null 21144fi 21145if (echo >conf$$.file) 2>/dev/null; then 21146 if ln -s conf$$.file conf$$ 2>/dev/null; then 21147 as_ln_s='ln -s' 21148 # ... but there are two gotchas: 21149 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21150 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21151 # In both cases, we have to default to `cp -pR'. 21152 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21153 as_ln_s='cp -pR' 21154 elif ln conf$$.file conf$$ 2>/dev/null; then 21155 as_ln_s=ln 21156 else 21157 as_ln_s='cp -pR' 21158 fi 21159else 21160 as_ln_s='cp -pR' 21161fi 21162rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21163rmdir conf$$.dir 2>/dev/null 21164 21165 21166# as_fn_mkdir_p 21167# ------------- 21168# Create "$as_dir" as a directory, including parents if necessary. 21169as_fn_mkdir_p () 21170{ 21171 21172 case $as_dir in #( 21173 -*) as_dir=./$as_dir;; 21174 esac 21175 test -d "$as_dir" || eval $as_mkdir_p || { 21176 as_dirs= 21177 while :; do 21178 case $as_dir in #( 21179 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21180 *) as_qdir=$as_dir;; 21181 esac 21182 as_dirs="'$as_qdir' $as_dirs" 21183 as_dir=`$as_dirname -- "$as_dir" || 21184$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21185 X"$as_dir" : 'X\(//\)[^/]' \| \ 21186 X"$as_dir" : 'X\(//\)$' \| \ 21187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21188printf "%s\n" X"$as_dir" | 21189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21190 s//\1/ 21191 q 21192 } 21193 /^X\(\/\/\)[^/].*/{ 21194 s//\1/ 21195 q 21196 } 21197 /^X\(\/\/\)$/{ 21198 s//\1/ 21199 q 21200 } 21201 /^X\(\/\).*/{ 21202 s//\1/ 21203 q 21204 } 21205 s/.*/./; q'` 21206 test -d "$as_dir" && break 21207 done 21208 test -z "$as_dirs" || eval "mkdir $as_dirs" 21209 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21210 21211 21212} # as_fn_mkdir_p 21213if mkdir -p . 2>/dev/null; then 21214 as_mkdir_p='mkdir -p "$as_dir"' 21215else 21216 test -d ./-p && rmdir ./-p 21217 as_mkdir_p=false 21218fi 21219 21220 21221# as_fn_executable_p FILE 21222# ----------------------- 21223# Test if FILE is an executable regular file. 21224as_fn_executable_p () 21225{ 21226 test -f "$1" && test -x "$1" 21227} # as_fn_executable_p 21228as_test_x='test -x' 21229as_executable_p=as_fn_executable_p 21230 21231# Sed expression to map a string onto a valid CPP name. 21232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21233 21234# Sed expression to map a string onto a valid variable name. 21235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21236 21237 21238exec 6>&1 21239## ----------------------------------- ## 21240## Main body of $CONFIG_STATUS script. ## 21241## ----------------------------------- ## 21242_ASEOF 21243test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21244 21245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21246# Save the log message, to keep $0 and so on meaningful, and to 21247# report actual input values of CONFIG_FILES etc. instead of their 21248# values after options handling. 21249ac_log=" 21250This file was extended by xf86-video-qxl $as_me 0.1.6, which was 21251generated by GNU Autoconf 2.71. Invocation command line was 21252 21253 CONFIG_FILES = $CONFIG_FILES 21254 CONFIG_HEADERS = $CONFIG_HEADERS 21255 CONFIG_LINKS = $CONFIG_LINKS 21256 CONFIG_COMMANDS = $CONFIG_COMMANDS 21257 $ $0 $@ 21258 21259on `(hostname || uname -n) 2>/dev/null | sed 1q` 21260" 21261 21262_ACEOF 21263 21264case $ac_config_files in *" 21265"*) set x $ac_config_files; shift; ac_config_files=$*;; 21266esac 21267 21268case $ac_config_headers in *" 21269"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21270esac 21271 21272 21273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21274# Files that config.status was made for. 21275config_files="$ac_config_files" 21276config_headers="$ac_config_headers" 21277config_commands="$ac_config_commands" 21278 21279_ACEOF 21280 21281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21282ac_cs_usage="\ 21283\`$as_me' instantiates files and other configuration actions 21284from templates according to the current configuration. Unless the files 21285and actions are specified as TAGs, all are instantiated by default. 21286 21287Usage: $0 [OPTION]... [TAG]... 21288 21289 -h, --help print this help, then exit 21290 -V, --version print version number and configuration settings, then exit 21291 --config print configuration, then exit 21292 -q, --quiet, --silent 21293 do not print progress messages 21294 -d, --debug don't remove temporary files 21295 --recheck update $as_me by reconfiguring in the same conditions 21296 --file=FILE[:TEMPLATE] 21297 instantiate the configuration file FILE 21298 --header=FILE[:TEMPLATE] 21299 instantiate the configuration header FILE 21300 21301Configuration files: 21302$config_files 21303 21304Configuration headers: 21305$config_headers 21306 21307Configuration commands: 21308$config_commands 21309 21310Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/issues>." 21311 21312_ACEOF 21313ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21314ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21316ac_cs_config='$ac_cs_config_escaped' 21317ac_cs_version="\\ 21318xf86-video-qxl config.status 0.1.6 21319configured by $0, generated by GNU Autoconf 2.71, 21320 with options \\"\$ac_cs_config\\" 21321 21322Copyright (C) 2021 Free Software Foundation, Inc. 21323This config.status script is free software; the Free Software Foundation 21324gives unlimited permission to copy, distribute and modify it." 21325 21326ac_pwd='$ac_pwd' 21327srcdir='$srcdir' 21328INSTALL='$INSTALL' 21329MKDIR_P='$MKDIR_P' 21330AWK='$AWK' 21331test -n "\$AWK" || AWK=awk 21332_ACEOF 21333 21334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21335# The default lists apply if the user does not specify any file. 21336ac_need_defaults=: 21337while test $# != 0 21338do 21339 case $1 in 21340 --*=?*) 21341 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21342 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21343 ac_shift=: 21344 ;; 21345 --*=) 21346 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21347 ac_optarg= 21348 ac_shift=: 21349 ;; 21350 *) 21351 ac_option=$1 21352 ac_optarg=$2 21353 ac_shift=shift 21354 ;; 21355 esac 21356 21357 case $ac_option in 21358 # Handling of the options. 21359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21360 ac_cs_recheck=: ;; 21361 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21362 printf "%s\n" "$ac_cs_version"; exit ;; 21363 --config | --confi | --conf | --con | --co | --c ) 21364 printf "%s\n" "$ac_cs_config"; exit ;; 21365 --debug | --debu | --deb | --de | --d | -d ) 21366 debug=: ;; 21367 --file | --fil | --fi | --f ) 21368 $ac_shift 21369 case $ac_optarg in 21370 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21371 '') as_fn_error $? "missing file argument" ;; 21372 esac 21373 as_fn_append CONFIG_FILES " '$ac_optarg'" 21374 ac_need_defaults=false;; 21375 --header | --heade | --head | --hea ) 21376 $ac_shift 21377 case $ac_optarg in 21378 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21379 esac 21380 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21381 ac_need_defaults=false;; 21382 --he | --h) 21383 # Conflict between --help and --header 21384 as_fn_error $? "ambiguous option: \`$1' 21385Try \`$0 --help' for more information.";; 21386 --help | --hel | -h ) 21387 printf "%s\n" "$ac_cs_usage"; exit ;; 21388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21389 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21390 ac_cs_silent=: ;; 21391 21392 # This is an error. 21393 -*) as_fn_error $? "unrecognized option: \`$1' 21394Try \`$0 --help' for more information." ;; 21395 21396 *) as_fn_append ac_config_targets " $1" 21397 ac_need_defaults=false ;; 21398 21399 esac 21400 shift 21401done 21402 21403ac_configure_extra_args= 21404 21405if $ac_cs_silent; then 21406 exec 6>/dev/null 21407 ac_configure_extra_args="$ac_configure_extra_args --silent" 21408fi 21409 21410_ACEOF 21411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21412if \$ac_cs_recheck; then 21413 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21414 shift 21415 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21416 CONFIG_SHELL='$SHELL' 21417 export CONFIG_SHELL 21418 exec "\$@" 21419fi 21420 21421_ACEOF 21422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21423exec 5>>config.log 21424{ 21425 echo 21426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21427## Running $as_me. ## 21428_ASBOX 21429 printf "%s\n" "$ac_log" 21430} >&5 21431 21432_ACEOF 21433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21434# 21435# INIT-COMMANDS 21436# 21437AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21438 21439 21440# The HP-UX ksh and POSIX shell print the target directory to stdout 21441# if CDPATH is set. 21442(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21443 21444sed_quote_subst='$sed_quote_subst' 21445double_quote_subst='$double_quote_subst' 21446delay_variable_subst='$delay_variable_subst' 21447enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21448macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21449macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21450enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21451pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21452enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21453shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21454SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21455ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21456PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21457host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21458host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21459host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21460build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21461build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21462build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21463SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21464Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21465GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21466EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21467FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21468LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21469NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21470LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21471max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21472ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21473exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21474lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21475lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21476lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21477lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21478lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21479reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21480reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21481FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21482OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21483deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21484file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21485file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21486want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21487DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21488sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21489AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21490lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21491AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21492archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21493STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21494RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21495old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21496old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21497old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21498lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21499CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21500CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21501compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21502GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21503lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21504lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21505lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21506lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21507lt_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"`' 21508lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21509nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21510lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21511lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21512objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21513MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21514lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21515lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21516lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21517lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21518lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21519need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21520MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21521DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21522NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21523LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21524OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21525OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21526libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21527shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21528extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21529archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21530enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21531export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21532whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21533compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21534old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21535old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21536archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21537archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21538module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21539module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21540with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21541allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21542no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21543hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21544hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21545hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21546hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21547hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21548hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21549hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21550inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21551link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21552always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21553export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21554exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21555include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21556prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21557postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21558file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21559variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21560need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21561need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21562version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21563runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21564shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21565shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21566libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21567library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21568soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21569install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21570postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21571postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21572finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21573finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21574hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21575sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21576configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21577configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21578hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21579enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21580enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21581enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21582old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21583striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21584 21585LTCC='$LTCC' 21586LTCFLAGS='$LTCFLAGS' 21587compiler='$compiler_DEFAULT' 21588 21589# A function that is used when there is no print builtin or printf. 21590func_fallback_echo () 21591{ 21592 eval 'cat <<_LTECHO_EOF 21593\$1 21594_LTECHO_EOF' 21595} 21596 21597# Quote evaled strings. 21598for var in SHELL \ 21599ECHO \ 21600PATH_SEPARATOR \ 21601SED \ 21602GREP \ 21603EGREP \ 21604FGREP \ 21605LD \ 21606NM \ 21607LN_S \ 21608lt_SP2NL \ 21609lt_NL2SP \ 21610reload_flag \ 21611FILECMD \ 21612OBJDUMP \ 21613deplibs_check_method \ 21614file_magic_cmd \ 21615file_magic_glob \ 21616want_nocaseglob \ 21617DLLTOOL \ 21618sharedlib_from_linklib_cmd \ 21619AR \ 21620archiver_list_spec \ 21621STRIP \ 21622RANLIB \ 21623CC \ 21624CFLAGS \ 21625compiler \ 21626lt_cv_sys_global_symbol_pipe \ 21627lt_cv_sys_global_symbol_to_cdecl \ 21628lt_cv_sys_global_symbol_to_import \ 21629lt_cv_sys_global_symbol_to_c_name_address \ 21630lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21631lt_cv_nm_interface \ 21632nm_file_list_spec \ 21633lt_cv_truncate_bin \ 21634lt_prog_compiler_no_builtin_flag \ 21635lt_prog_compiler_pic \ 21636lt_prog_compiler_wl \ 21637lt_prog_compiler_static \ 21638lt_cv_prog_compiler_c_o \ 21639need_locks \ 21640MANIFEST_TOOL \ 21641DSYMUTIL \ 21642NMEDIT \ 21643LIPO \ 21644OTOOL \ 21645OTOOL64 \ 21646shrext_cmds \ 21647export_dynamic_flag_spec \ 21648whole_archive_flag_spec \ 21649compiler_needs_object \ 21650with_gnu_ld \ 21651allow_undefined_flag \ 21652no_undefined_flag \ 21653hardcode_libdir_flag_spec \ 21654hardcode_libdir_separator \ 21655exclude_expsyms \ 21656include_expsyms \ 21657file_list_spec \ 21658variables_saved_for_relink \ 21659libname_spec \ 21660library_names_spec \ 21661soname_spec \ 21662install_override_mode \ 21663finish_eval \ 21664old_striplib \ 21665striplib; do 21666 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21667 *[\\\\\\\`\\"\\\$]*) 21668 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21669 ;; 21670 *) 21671 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21672 ;; 21673 esac 21674done 21675 21676# Double-quote double-evaled strings. 21677for var in reload_cmds \ 21678old_postinstall_cmds \ 21679old_postuninstall_cmds \ 21680old_archive_cmds \ 21681extract_expsyms_cmds \ 21682old_archive_from_new_cmds \ 21683old_archive_from_expsyms_cmds \ 21684archive_cmds \ 21685archive_expsym_cmds \ 21686module_cmds \ 21687module_expsym_cmds \ 21688export_symbols_cmds \ 21689prelink_cmds \ 21690postlink_cmds \ 21691postinstall_cmds \ 21692postuninstall_cmds \ 21693finish_cmds \ 21694sys_lib_search_path_spec \ 21695configure_time_dlsearch_path \ 21696configure_time_lt_sys_library_path; do 21697 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21698 *[\\\\\\\`\\"\\\$]*) 21699 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21700 ;; 21701 *) 21702 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21703 ;; 21704 esac 21705done 21706 21707ac_aux_dir='$ac_aux_dir' 21708 21709# See if we are running on zsh, and set the options that allow our 21710# commands through without removal of \ escapes INIT. 21711if test -n "\${ZSH_VERSION+set}"; then 21712 setopt NO_GLOB_SUBST 21713fi 21714 21715 21716 PACKAGE='$PACKAGE' 21717 VERSION='$VERSION' 21718 RM='$RM' 21719 ofile='$ofile' 21720 21721 21722 21723 21724_ACEOF 21725 21726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21727 21728# Handling of arguments. 21729for ac_config_target in $ac_config_targets 21730do 21731 case $ac_config_target in 21732 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21733 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21734 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21735 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21736 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21737 "src/spiceccid/Makefile") CONFIG_FILES="$CONFIG_FILES src/spiceccid/Makefile" ;; 21738 "src/uxa/Makefile") CONFIG_FILES="$CONFIG_FILES src/uxa/Makefile" ;; 21739 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 21740 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 21741 21742 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21743 esac 21744done 21745 21746 21747# If the user did not use the arguments to specify the items to instantiate, 21748# then the envvar interface is used. Set only those that are not. 21749# We use the long form for the default assignment because of an extremely 21750# bizarre bug on SunOS 4.1.3. 21751if $ac_need_defaults; then 21752 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21753 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21754 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21755fi 21756 21757# Have a temporary directory for convenience. Make it in the build tree 21758# simply because there is no reason against having it here, and in addition, 21759# creating and moving files from /tmp can sometimes cause problems. 21760# Hook for its removal unless debugging. 21761# Note that there is a small window in which the directory will not be cleaned: 21762# after its creation but before its name has been assigned to `$tmp'. 21763$debug || 21764{ 21765 tmp= ac_tmp= 21766 trap 'exit_status=$? 21767 : "${ac_tmp:=$tmp}" 21768 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21769' 0 21770 trap 'as_fn_exit 1' 1 2 13 15 21771} 21772# Create a (secure) tmp directory for tmp files. 21773 21774{ 21775 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21776 test -d "$tmp" 21777} || 21778{ 21779 tmp=./conf$$-$RANDOM 21780 (umask 077 && mkdir "$tmp") 21781} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21782ac_tmp=$tmp 21783 21784# Set up the scripts for CONFIG_FILES section. 21785# No need to generate them if there are no CONFIG_FILES. 21786# This happens for instance with `./config.status config.h'. 21787if test -n "$CONFIG_FILES"; then 21788 21789 21790ac_cr=`echo X | tr X '\015'` 21791# On cygwin, bash can eat \r inside `` if the user requested igncr. 21792# But we know of no other shell where ac_cr would be empty at this 21793# point, so we can use a bashism as a fallback. 21794if test "x$ac_cr" = x; then 21795 eval ac_cr=\$\'\\r\' 21796fi 21797ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21798if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21799 ac_cs_awk_cr='\\r' 21800else 21801 ac_cs_awk_cr=$ac_cr 21802fi 21803 21804echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21805_ACEOF 21806 21807 21808{ 21809 echo "cat >conf$$subs.awk <<_ACEOF" && 21810 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21811 echo "_ACEOF" 21812} >conf$$subs.sh || 21813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21814ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21815ac_delim='%!_!# ' 21816for ac_last_try in false false false false false :; do 21817 . ./conf$$subs.sh || 21818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21819 21820 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21821 if test $ac_delim_n = $ac_delim_num; then 21822 break 21823 elif $ac_last_try; then 21824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21825 else 21826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21827 fi 21828done 21829rm -f conf$$subs.sh 21830 21831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21832cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21833_ACEOF 21834sed -n ' 21835h 21836s/^/S["/; s/!.*/"]=/ 21837p 21838g 21839s/^[^!]*!// 21840:repl 21841t repl 21842s/'"$ac_delim"'$// 21843t delim 21844:nl 21845h 21846s/\(.\{148\}\)..*/\1/ 21847t more1 21848s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21849p 21850n 21851b repl 21852:more1 21853s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21854p 21855g 21856s/.\{148\}// 21857t nl 21858:delim 21859h 21860s/\(.\{148\}\)..*/\1/ 21861t more2 21862s/["\\]/\\&/g; s/^/"/; s/$/"/ 21863p 21864b 21865:more2 21866s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21867p 21868g 21869s/.\{148\}// 21870t delim 21871' <conf$$subs.awk | sed ' 21872/^[^""]/{ 21873 N 21874 s/\n// 21875} 21876' >>$CONFIG_STATUS || ac_write_fail=1 21877rm -f conf$$subs.awk 21878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21879_ACAWK 21880cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21881 for (key in S) S_is_set[key] = 1 21882 FS = "" 21883 21884} 21885{ 21886 line = $ 0 21887 nfields = split(line, field, "@") 21888 substed = 0 21889 len = length(field[1]) 21890 for (i = 2; i < nfields; i++) { 21891 key = field[i] 21892 keylen = length(key) 21893 if (S_is_set[key]) { 21894 value = S[key] 21895 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21896 len += length(value) + length(field[++i]) 21897 substed = 1 21898 } else 21899 len += 1 + keylen 21900 } 21901 21902 print line 21903} 21904 21905_ACAWK 21906_ACEOF 21907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21908if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21909 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21910else 21911 cat 21912fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21913 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21914_ACEOF 21915 21916# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21917# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21918# trailing colons and then remove the whole line if VPATH becomes empty 21919# (actually we leave an empty line to preserve line numbers). 21920if test "x$srcdir" = x.; then 21921 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21922h 21923s/// 21924s/^/:/ 21925s/[ ]*$/:/ 21926s/:\$(srcdir):/:/g 21927s/:\${srcdir}:/:/g 21928s/:@srcdir@:/:/g 21929s/^:*// 21930s/:*$// 21931x 21932s/\(=[ ]*\).*/\1/ 21933G 21934s/\n// 21935s/^[^=]*=[ ]*$// 21936}' 21937fi 21938 21939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21940fi # test -n "$CONFIG_FILES" 21941 21942# Set up the scripts for CONFIG_HEADERS section. 21943# No need to generate them if there are no CONFIG_HEADERS. 21944# This happens for instance with `./config.status Makefile'. 21945if test -n "$CONFIG_HEADERS"; then 21946cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21947BEGIN { 21948_ACEOF 21949 21950# Transform confdefs.h into an awk script `defines.awk', embedded as 21951# here-document in config.status, that substitutes the proper values into 21952# config.h.in to produce config.h. 21953 21954# Create a delimiter string that does not exist in confdefs.h, to ease 21955# handling of long lines. 21956ac_delim='%!_!# ' 21957for ac_last_try in false false :; do 21958 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21959 if test -z "$ac_tt"; then 21960 break 21961 elif $ac_last_try; then 21962 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21963 else 21964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21965 fi 21966done 21967 21968# For the awk script, D is an array of macro values keyed by name, 21969# likewise P contains macro parameters if any. Preserve backslash 21970# newline sequences. 21971 21972ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21973sed -n ' 21974s/.\{148\}/&'"$ac_delim"'/g 21975t rset 21976:rset 21977s/^[ ]*#[ ]*define[ ][ ]*/ / 21978t def 21979d 21980:def 21981s/\\$// 21982t bsnl 21983s/["\\]/\\&/g 21984s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21985D["\1"]=" \3"/p 21986s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21987d 21988:bsnl 21989s/["\\]/\\&/g 21990s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21991D["\1"]=" \3\\\\\\n"\\/p 21992t cont 21993s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21994t cont 21995d 21996:cont 21997n 21998s/.\{148\}/&'"$ac_delim"'/g 21999t clear 22000:clear 22001s/\\$// 22002t bsnlc 22003s/["\\]/\\&/g; s/^/"/; s/$/"/p 22004d 22005:bsnlc 22006s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22007b cont 22008' <confdefs.h | sed ' 22009s/'"$ac_delim"'/"\\\ 22010"/g' >>$CONFIG_STATUS || ac_write_fail=1 22011 22012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22013 for (key in D) D_is_set[key] = 1 22014 FS = "" 22015} 22016/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22017 line = \$ 0 22018 split(line, arg, " ") 22019 if (arg[1] == "#") { 22020 defundef = arg[2] 22021 mac1 = arg[3] 22022 } else { 22023 defundef = substr(arg[1], 2) 22024 mac1 = arg[2] 22025 } 22026 split(mac1, mac2, "(") #) 22027 macro = mac2[1] 22028 prefix = substr(line, 1, index(line, defundef) - 1) 22029 if (D_is_set[macro]) { 22030 # Preserve the white space surrounding the "#". 22031 print prefix "define", macro P[macro] D[macro] 22032 next 22033 } else { 22034 # Replace #undef with comments. This is necessary, for example, 22035 # in the case of _POSIX_SOURCE, which is predefined and required 22036 # on some systems where configure will not decide to define it. 22037 if (defundef == "undef") { 22038 print "/*", prefix defundef, macro, "*/" 22039 next 22040 } 22041 } 22042} 22043{ print } 22044_ACAWK 22045_ACEOF 22046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22047 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22048fi # test -n "$CONFIG_HEADERS" 22049 22050 22051eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22052shift 22053for ac_tag 22054do 22055 case $ac_tag in 22056 :[FHLC]) ac_mode=$ac_tag; continue;; 22057 esac 22058 case $ac_mode$ac_tag in 22059 :[FHL]*:*);; 22060 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22061 :[FH]-) ac_tag=-:-;; 22062 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22063 esac 22064 ac_save_IFS=$IFS 22065 IFS=: 22066 set x $ac_tag 22067 IFS=$ac_save_IFS 22068 shift 22069 ac_file=$1 22070 shift 22071 22072 case $ac_mode in 22073 :L) ac_source=$1;; 22074 :[FH]) 22075 ac_file_inputs= 22076 for ac_f 22077 do 22078 case $ac_f in 22079 -) ac_f="$ac_tmp/stdin";; 22080 *) # Look for the file first in the build tree, then in the source tree 22081 # (if the path is not absolute). The absolute path cannot be DOS-style, 22082 # because $ac_f cannot contain `:'. 22083 test -f "$ac_f" || 22084 case $ac_f in 22085 [\\/$]*) false;; 22086 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22087 esac || 22088 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22089 esac 22090 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22091 as_fn_append ac_file_inputs " '$ac_f'" 22092 done 22093 22094 # Let's still pretend it is `configure' which instantiates (i.e., don't 22095 # use $as_me), people would be surprised to read: 22096 # /* config.h. Generated by config.status. */ 22097 configure_input='Generated from '` 22098 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22099 `' by configure.' 22100 if test x"$ac_file" != x-; then 22101 configure_input="$ac_file. $configure_input" 22102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22103printf "%s\n" "$as_me: creating $ac_file" >&6;} 22104 fi 22105 # Neutralize special characters interpreted by sed in replacement strings. 22106 case $configure_input in #( 22107 *\&* | *\|* | *\\* ) 22108 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22109 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22110 *) ac_sed_conf_input=$configure_input;; 22111 esac 22112 22113 case $ac_tag in 22114 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22116 esac 22117 ;; 22118 esac 22119 22120 ac_dir=`$as_dirname -- "$ac_file" || 22121$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22122 X"$ac_file" : 'X\(//\)[^/]' \| \ 22123 X"$ac_file" : 'X\(//\)$' \| \ 22124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22125printf "%s\n" X"$ac_file" | 22126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22127 s//\1/ 22128 q 22129 } 22130 /^X\(\/\/\)[^/].*/{ 22131 s//\1/ 22132 q 22133 } 22134 /^X\(\/\/\)$/{ 22135 s//\1/ 22136 q 22137 } 22138 /^X\(\/\).*/{ 22139 s//\1/ 22140 q 22141 } 22142 s/.*/./; q'` 22143 as_dir="$ac_dir"; as_fn_mkdir_p 22144 ac_builddir=. 22145 22146case "$ac_dir" in 22147.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22148*) 22149 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22150 # A ".." for each directory in $ac_dir_suffix. 22151 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22152 case $ac_top_builddir_sub in 22153 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22154 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22155 esac ;; 22156esac 22157ac_abs_top_builddir=$ac_pwd 22158ac_abs_builddir=$ac_pwd$ac_dir_suffix 22159# for backward compatibility: 22160ac_top_builddir=$ac_top_build_prefix 22161 22162case $srcdir in 22163 .) # We are building in place. 22164 ac_srcdir=. 22165 ac_top_srcdir=$ac_top_builddir_sub 22166 ac_abs_top_srcdir=$ac_pwd ;; 22167 [\\/]* | ?:[\\/]* ) # Absolute name. 22168 ac_srcdir=$srcdir$ac_dir_suffix; 22169 ac_top_srcdir=$srcdir 22170 ac_abs_top_srcdir=$srcdir ;; 22171 *) # Relative name. 22172 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22173 ac_top_srcdir=$ac_top_build_prefix$srcdir 22174 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22175esac 22176ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22177 22178 22179 case $ac_mode in 22180 :F) 22181 # 22182 # CONFIG_FILE 22183 # 22184 22185 case $INSTALL in 22186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22187 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22188 esac 22189 ac_MKDIR_P=$MKDIR_P 22190 case $MKDIR_P in 22191 [\\/$]* | ?:[\\/]* ) ;; 22192 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22193 esac 22194_ACEOF 22195 22196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22197# If the template does not know about datarootdir, expand it. 22198# FIXME: This hack should be removed a few years after 2.60. 22199ac_datarootdir_hack=; ac_datarootdir_seen= 22200ac_sed_dataroot=' 22201/datarootdir/ { 22202 p 22203 q 22204} 22205/@datadir@/p 22206/@docdir@/p 22207/@infodir@/p 22208/@localedir@/p 22209/@mandir@/p' 22210case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22211*datarootdir*) ac_datarootdir_seen=yes;; 22212*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22214printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22215_ACEOF 22216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22217 ac_datarootdir_hack=' 22218 s&@datadir@&$datadir&g 22219 s&@docdir@&$docdir&g 22220 s&@infodir@&$infodir&g 22221 s&@localedir@&$localedir&g 22222 s&@mandir@&$mandir&g 22223 s&\\\${datarootdir}&$datarootdir&g' ;; 22224esac 22225_ACEOF 22226 22227# Neutralize VPATH when `$srcdir' = `.'. 22228# Shell code in configure.ac might set extrasub. 22229# FIXME: do we really want to maintain this feature? 22230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22231ac_sed_extra="$ac_vpsub 22232$extrasub 22233_ACEOF 22234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22235:t 22236/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22237s|@configure_input@|$ac_sed_conf_input|;t t 22238s&@top_builddir@&$ac_top_builddir_sub&;t t 22239s&@top_build_prefix@&$ac_top_build_prefix&;t t 22240s&@srcdir@&$ac_srcdir&;t t 22241s&@abs_srcdir@&$ac_abs_srcdir&;t t 22242s&@top_srcdir@&$ac_top_srcdir&;t t 22243s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22244s&@builddir@&$ac_builddir&;t t 22245s&@abs_builddir@&$ac_abs_builddir&;t t 22246s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22247s&@INSTALL@&$ac_INSTALL&;t t 22248s&@MKDIR_P@&$ac_MKDIR_P&;t t 22249$ac_datarootdir_hack 22250" 22251eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22252 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22253 22254test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22255 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22257 "$ac_tmp/out"`; test -z "$ac_out"; } && 22258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22259which seems to be undefined. Please make sure it is defined" >&5 22260printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22261which seems to be undefined. Please make sure it is defined" >&2;} 22262 22263 rm -f "$ac_tmp/stdin" 22264 case $ac_file in 22265 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22266 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22267 esac \ 22268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22269 ;; 22270 :H) 22271 # 22272 # CONFIG_HEADER 22273 # 22274 if test x"$ac_file" != x-; then 22275 { 22276 printf "%s\n" "/* $configure_input */" >&1 \ 22277 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22278 } >"$ac_tmp/config.h" \ 22279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22280 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22282printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22283 else 22284 rm -f "$ac_file" 22285 mv "$ac_tmp/config.h" "$ac_file" \ 22286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22287 fi 22288 else 22289 printf "%s\n" "/* $configure_input */" >&1 \ 22290 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22291 || as_fn_error $? "could not create -" "$LINENO" 5 22292 fi 22293# Compute "$ac_file"'s index in $config_headers. 22294_am_arg="$ac_file" 22295_am_stamp_count=1 22296for _am_header in $config_headers :; do 22297 case $_am_header in 22298 $_am_arg | $_am_arg:* ) 22299 break ;; 22300 * ) 22301 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22302 esac 22303done 22304echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22305$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22306 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22307 X"$_am_arg" : 'X\(//\)$' \| \ 22308 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22309printf "%s\n" X"$_am_arg" | 22310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22311 s//\1/ 22312 q 22313 } 22314 /^X\(\/\/\)[^/].*/{ 22315 s//\1/ 22316 q 22317 } 22318 /^X\(\/\/\)$/{ 22319 s//\1/ 22320 q 22321 } 22322 /^X\(\/\).*/{ 22323 s//\1/ 22324 q 22325 } 22326 s/.*/./; q'`/stamp-h$_am_stamp_count 22327 ;; 22328 22329 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22330printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22331 ;; 22332 esac 22333 22334 22335 case $ac_file$ac_mode in 22336 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22337 # Older Autoconf quotes --file arguments for eval, but not when files 22338 # are listed without --file. Let's play safe and only enable the eval 22339 # if we detect the quoting. 22340 # TODO: see whether this extra hack can be removed once we start 22341 # requiring Autoconf 2.70 or later. 22342 case $CONFIG_FILES in #( 22343 *\'*) : 22344 eval set x "$CONFIG_FILES" ;; #( 22345 *) : 22346 set x $CONFIG_FILES ;; #( 22347 *) : 22348 ;; 22349esac 22350 shift 22351 # Used to flag and report bootstrapping failures. 22352 am_rc=0 22353 for am_mf 22354 do 22355 # Strip MF so we end up with the name of the file. 22356 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22357 # Check whether this is an Automake generated Makefile which includes 22358 # dependency-tracking related rules and includes. 22359 # Grep'ing the whole file directly is not great: AIX grep has a line 22360 # limit of 2048, but all sed's we know have understand at least 4000. 22361 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22362 || continue 22363 am_dirpart=`$as_dirname -- "$am_mf" || 22364$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22365 X"$am_mf" : 'X\(//\)[^/]' \| \ 22366 X"$am_mf" : 'X\(//\)$' \| \ 22367 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22368printf "%s\n" X"$am_mf" | 22369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22370 s//\1/ 22371 q 22372 } 22373 /^X\(\/\/\)[^/].*/{ 22374 s//\1/ 22375 q 22376 } 22377 /^X\(\/\/\)$/{ 22378 s//\1/ 22379 q 22380 } 22381 /^X\(\/\).*/{ 22382 s//\1/ 22383 q 22384 } 22385 s/.*/./; q'` 22386 am_filepart=`$as_basename -- "$am_mf" || 22387$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22388 X"$am_mf" : 'X\(//\)$' \| \ 22389 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22390printf "%s\n" X/"$am_mf" | 22391 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22392 s//\1/ 22393 q 22394 } 22395 /^X\/\(\/\/\)$/{ 22396 s//\1/ 22397 q 22398 } 22399 /^X\/\(\/\).*/{ 22400 s//\1/ 22401 q 22402 } 22403 s/.*/./; q'` 22404 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22405 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22406 | $MAKE -f - am--depfiles" >&5 22407 (cd "$am_dirpart" \ 22408 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22409 | $MAKE -f - am--depfiles) >&5 2>&5 22410 ac_status=$? 22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22412 (exit $ac_status); } || am_rc=$? 22413 done 22414 if test $am_rc -ne 0; then 22415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22416printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22417as_fn_error $? "Something went wrong bootstrapping makefile fragments 22418 for automatic dependency tracking. If GNU make was not used, consider 22419 re-running the configure script with MAKE=\"gmake\" (or whatever is 22420 necessary). You can also try re-running configure with the 22421 '--disable-dependency-tracking' option to at least be able to build 22422 the package (albeit without support for automatic dependency tracking). 22423See \`config.log' for more details" "$LINENO" 5; } 22424 fi 22425 { am_dirpart=; unset am_dirpart;} 22426 { am_filepart=; unset am_filepart;} 22427 { am_mf=; unset am_mf;} 22428 { am_rc=; unset am_rc;} 22429 rm -f conftest-deps.mk 22430} 22431 ;; 22432 "libtool":C) 22433 22434 # See if we are running on zsh, and set the options that allow our 22435 # commands through without removal of \ escapes. 22436 if test -n "${ZSH_VERSION+set}"; then 22437 setopt NO_GLOB_SUBST 22438 fi 22439 22440 cfgfile=${ofile}T 22441 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22442 $RM "$cfgfile" 22443 22444 cat <<_LT_EOF >> "$cfgfile" 22445#! $SHELL 22446# Generated automatically by $as_me ($PACKAGE) $VERSION 22447# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22448# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22449 22450# Provide generalized library-building support services. 22451# Written by Gordon Matzigkeit, 1996 22452 22453# Copyright (C) 2014 Free Software Foundation, Inc. 22454# This is free software; see the source for copying conditions. There is NO 22455# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22456 22457# GNU Libtool is free software; you can redistribute it and/or modify 22458# it under the terms of the GNU General Public License as published by 22459# the Free Software Foundation; either version 2 of of the License, or 22460# (at your option) any later version. 22461# 22462# As a special exception to the GNU General Public License, if you 22463# distribute this file as part of a program or library that is built 22464# using GNU Libtool, you may include this file under the same 22465# distribution terms that you use for the rest of that program. 22466# 22467# GNU Libtool is distributed in the hope that it will be useful, but 22468# WITHOUT ANY WARRANTY; without even the implied warranty of 22469# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22470# GNU General Public License for more details. 22471# 22472# You should have received a copy of the GNU General Public License 22473# along with this program. If not, see <http://www.gnu.org/licenses/>. 22474 22475 22476# The names of the tagged configurations supported by this script. 22477available_tags='' 22478 22479# Configured defaults for sys_lib_dlsearch_path munging. 22480: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22481 22482# ### BEGIN LIBTOOL CONFIG 22483 22484# Whether or not to build static libraries. 22485build_old_libs=$enable_static 22486 22487# Which release of libtool.m4 was used? 22488macro_version=$macro_version 22489macro_revision=$macro_revision 22490 22491# Whether or not to build shared libraries. 22492build_libtool_libs=$enable_shared 22493 22494# What type of objects to build. 22495pic_mode=$pic_mode 22496 22497# Whether or not to optimize for fast installation. 22498fast_install=$enable_fast_install 22499 22500# Shared archive member basename,for filename based shared library versioning on AIX. 22501shared_archive_member_spec=$shared_archive_member_spec 22502 22503# Shell to use when invoking shell scripts. 22504SHELL=$lt_SHELL 22505 22506# An echo program that protects backslashes. 22507ECHO=$lt_ECHO 22508 22509# The PATH separator for the build system. 22510PATH_SEPARATOR=$lt_PATH_SEPARATOR 22511 22512# The host system. 22513host_alias=$host_alias 22514host=$host 22515host_os=$host_os 22516 22517# The build system. 22518build_alias=$build_alias 22519build=$build 22520build_os=$build_os 22521 22522# A sed program that does not truncate output. 22523SED=$lt_SED 22524 22525# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22526Xsed="\$SED -e 1s/^X//" 22527 22528# A grep program that handles long lines. 22529GREP=$lt_GREP 22530 22531# An ERE matcher. 22532EGREP=$lt_EGREP 22533 22534# A literal string matcher. 22535FGREP=$lt_FGREP 22536 22537# A BSD- or MS-compatible name lister. 22538NM=$lt_NM 22539 22540# Whether we need soft or hard links. 22541LN_S=$lt_LN_S 22542 22543# What is the maximum length of a command? 22544max_cmd_len=$max_cmd_len 22545 22546# Object file suffix (normally "o"). 22547objext=$ac_objext 22548 22549# Executable file suffix (normally ""). 22550exeext=$exeext 22551 22552# whether the shell understands "unset". 22553lt_unset=$lt_unset 22554 22555# turn spaces into newlines. 22556SP2NL=$lt_lt_SP2NL 22557 22558# turn newlines into spaces. 22559NL2SP=$lt_lt_NL2SP 22560 22561# convert \$build file names to \$host format. 22562to_host_file_cmd=$lt_cv_to_host_file_cmd 22563 22564# convert \$build files to toolchain format. 22565to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22566 22567# A file(cmd) program that detects file types. 22568FILECMD=$lt_FILECMD 22569 22570# An object symbol dumper. 22571OBJDUMP=$lt_OBJDUMP 22572 22573# Method to check whether dependent libraries are shared objects. 22574deplibs_check_method=$lt_deplibs_check_method 22575 22576# Command to use when deplibs_check_method = "file_magic". 22577file_magic_cmd=$lt_file_magic_cmd 22578 22579# How to find potential files when deplibs_check_method = "file_magic". 22580file_magic_glob=$lt_file_magic_glob 22581 22582# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22583want_nocaseglob=$lt_want_nocaseglob 22584 22585# DLL creation program. 22586DLLTOOL=$lt_DLLTOOL 22587 22588# Command to associate shared and link libraries. 22589sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22590 22591# The archiver. 22592AR=$lt_AR 22593 22594# Flags to create an archive (by configure). 22595lt_ar_flags=$lt_ar_flags 22596 22597# Flags to create an archive. 22598AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22599 22600# How to feed a file listing to the archiver. 22601archiver_list_spec=$lt_archiver_list_spec 22602 22603# A symbol stripping program. 22604STRIP=$lt_STRIP 22605 22606# Commands used to install an old-style archive. 22607RANLIB=$lt_RANLIB 22608old_postinstall_cmds=$lt_old_postinstall_cmds 22609old_postuninstall_cmds=$lt_old_postuninstall_cmds 22610 22611# Whether to use a lock for old archive extraction. 22612lock_old_archive_extraction=$lock_old_archive_extraction 22613 22614# A C compiler. 22615LTCC=$lt_CC 22616 22617# LTCC compiler flags. 22618LTCFLAGS=$lt_CFLAGS 22619 22620# Take the output of nm and produce a listing of raw symbols and C names. 22621global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22622 22623# Transform the output of nm in a proper C declaration. 22624global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22625 22626# Transform the output of nm into a list of symbols to manually relocate. 22627global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22628 22629# Transform the output of nm in a C name address pair. 22630global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22631 22632# Transform the output of nm in a C name address pair when lib prefix is needed. 22633global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22634 22635# The name lister interface. 22636nm_interface=$lt_lt_cv_nm_interface 22637 22638# Specify filename containing input files for \$NM. 22639nm_file_list_spec=$lt_nm_file_list_spec 22640 22641# The root where to search for dependent libraries,and where our libraries should be installed. 22642lt_sysroot=$lt_sysroot 22643 22644# Command to truncate a binary pipe. 22645lt_truncate_bin=$lt_lt_cv_truncate_bin 22646 22647# The name of the directory that contains temporary libtool files. 22648objdir=$objdir 22649 22650# Used to examine libraries when file_magic_cmd begins with "file". 22651MAGIC_CMD=$MAGIC_CMD 22652 22653# Must we lock files when doing compilation? 22654need_locks=$lt_need_locks 22655 22656# Manifest tool. 22657MANIFEST_TOOL=$lt_MANIFEST_TOOL 22658 22659# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22660DSYMUTIL=$lt_DSYMUTIL 22661 22662# Tool to change global to local symbols on Mac OS X. 22663NMEDIT=$lt_NMEDIT 22664 22665# Tool to manipulate fat objects and archives on Mac OS X. 22666LIPO=$lt_LIPO 22667 22668# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22669OTOOL=$lt_OTOOL 22670 22671# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22672OTOOL64=$lt_OTOOL64 22673 22674# Old archive suffix (normally "a"). 22675libext=$libext 22676 22677# Shared library suffix (normally ".so"). 22678shrext_cmds=$lt_shrext_cmds 22679 22680# The commands to extract the exported symbol list from a shared archive. 22681extract_expsyms_cmds=$lt_extract_expsyms_cmds 22682 22683# Variables whose values should be saved in libtool wrapper scripts and 22684# restored at link time. 22685variables_saved_for_relink=$lt_variables_saved_for_relink 22686 22687# Do we need the "lib" prefix for modules? 22688need_lib_prefix=$need_lib_prefix 22689 22690# Do we need a version for libraries? 22691need_version=$need_version 22692 22693# Library versioning type. 22694version_type=$version_type 22695 22696# Shared library runtime path variable. 22697runpath_var=$runpath_var 22698 22699# Shared library path variable. 22700shlibpath_var=$shlibpath_var 22701 22702# Is shlibpath searched before the hard-coded library search path? 22703shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22704 22705# Format of library name prefix. 22706libname_spec=$lt_libname_spec 22707 22708# List of archive names. First name is the real one, the rest are links. 22709# The last name is the one that the linker finds with -lNAME 22710library_names_spec=$lt_library_names_spec 22711 22712# The coded name of the library, if different from the real name. 22713soname_spec=$lt_soname_spec 22714 22715# Permission mode override for installation of shared libraries. 22716install_override_mode=$lt_install_override_mode 22717 22718# Command to use after installation of a shared archive. 22719postinstall_cmds=$lt_postinstall_cmds 22720 22721# Command to use after uninstallation of a shared archive. 22722postuninstall_cmds=$lt_postuninstall_cmds 22723 22724# Commands used to finish a libtool library installation in a directory. 22725finish_cmds=$lt_finish_cmds 22726 22727# As "finish_cmds", except a single script fragment to be evaled but 22728# not shown. 22729finish_eval=$lt_finish_eval 22730 22731# Whether we should hardcode library paths into libraries. 22732hardcode_into_libs=$hardcode_into_libs 22733 22734# Compile-time system search path for libraries. 22735sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22736 22737# Detected run-time system search path for libraries. 22738sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22739 22740# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22741configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22742 22743# Whether dlopen is supported. 22744dlopen_support=$enable_dlopen 22745 22746# Whether dlopen of programs is supported. 22747dlopen_self=$enable_dlopen_self 22748 22749# Whether dlopen of statically linked programs is supported. 22750dlopen_self_static=$enable_dlopen_self_static 22751 22752# Commands to strip libraries. 22753old_striplib=$lt_old_striplib 22754striplib=$lt_striplib 22755 22756 22757# The linker used to build libraries. 22758LD=$lt_LD 22759 22760# How to create reloadable object files. 22761reload_flag=$lt_reload_flag 22762reload_cmds=$lt_reload_cmds 22763 22764# Commands used to build an old-style archive. 22765old_archive_cmds=$lt_old_archive_cmds 22766 22767# A language specific compiler. 22768CC=$lt_compiler 22769 22770# Is the compiler the GNU compiler? 22771with_gcc=$GCC 22772 22773# Compiler flag to turn off builtin functions. 22774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22775 22776# Additional compiler flags for building library objects. 22777pic_flag=$lt_lt_prog_compiler_pic 22778 22779# How to pass a linker flag through the compiler. 22780wl=$lt_lt_prog_compiler_wl 22781 22782# Compiler flag to prevent dynamic linking. 22783link_static_flag=$lt_lt_prog_compiler_static 22784 22785# Does compiler simultaneously support -c and -o options? 22786compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22787 22788# Whether or not to add -lc for building shared libraries. 22789build_libtool_need_lc=$archive_cmds_need_lc 22790 22791# Whether or not to disallow shared libs when runtime libs are static. 22792allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22793 22794# Compiler flag to allow reflexive dlopens. 22795export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22796 22797# Compiler flag to generate shared objects directly from archives. 22798whole_archive_flag_spec=$lt_whole_archive_flag_spec 22799 22800# Whether the compiler copes with passing no objects directly. 22801compiler_needs_object=$lt_compiler_needs_object 22802 22803# Create an old-style archive from a shared archive. 22804old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22805 22806# Create a temporary old-style archive to link instead of a shared archive. 22807old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22808 22809# Commands used to build a shared archive. 22810archive_cmds=$lt_archive_cmds 22811archive_expsym_cmds=$lt_archive_expsym_cmds 22812 22813# Commands used to build a loadable module if different from building 22814# a shared archive. 22815module_cmds=$lt_module_cmds 22816module_expsym_cmds=$lt_module_expsym_cmds 22817 22818# Whether we are building with GNU ld or not. 22819with_gnu_ld=$lt_with_gnu_ld 22820 22821# Flag that allows shared libraries with undefined symbols to be built. 22822allow_undefined_flag=$lt_allow_undefined_flag 22823 22824# Flag that enforces no undefined symbols. 22825no_undefined_flag=$lt_no_undefined_flag 22826 22827# Flag to hardcode \$libdir into a binary during linking. 22828# This must work even if \$libdir does not exist 22829hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22830 22831# Whether we need a single "-rpath" flag with a separated argument. 22832hardcode_libdir_separator=$lt_hardcode_libdir_separator 22833 22834# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22835# DIR into the resulting binary. 22836hardcode_direct=$hardcode_direct 22837 22838# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22839# DIR into the resulting binary and the resulting library dependency is 22840# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22841# library is relocated. 22842hardcode_direct_absolute=$hardcode_direct_absolute 22843 22844# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22845# into the resulting binary. 22846hardcode_minus_L=$hardcode_minus_L 22847 22848# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22849# into the resulting binary. 22850hardcode_shlibpath_var=$hardcode_shlibpath_var 22851 22852# Set to "yes" if building a shared library automatically hardcodes DIR 22853# into the library and all subsequent libraries and executables linked 22854# against it. 22855hardcode_automatic=$hardcode_automatic 22856 22857# Set to yes if linker adds runtime paths of dependent libraries 22858# to runtime path list. 22859inherit_rpath=$inherit_rpath 22860 22861# Whether libtool must link a program against all its dependency libraries. 22862link_all_deplibs=$link_all_deplibs 22863 22864# Set to "yes" if exported symbols are required. 22865always_export_symbols=$always_export_symbols 22866 22867# The commands to list exported symbols. 22868export_symbols_cmds=$lt_export_symbols_cmds 22869 22870# Symbols that should not be listed in the preloaded symbols. 22871exclude_expsyms=$lt_exclude_expsyms 22872 22873# Symbols that must always be exported. 22874include_expsyms=$lt_include_expsyms 22875 22876# Commands necessary for linking programs (against libraries) with templates. 22877prelink_cmds=$lt_prelink_cmds 22878 22879# Commands necessary for finishing linking programs. 22880postlink_cmds=$lt_postlink_cmds 22881 22882# Specify filename containing input files. 22883file_list_spec=$lt_file_list_spec 22884 22885# How to hardcode a shared library path into an executable. 22886hardcode_action=$hardcode_action 22887 22888# ### END LIBTOOL CONFIG 22889 22890_LT_EOF 22891 22892 cat <<'_LT_EOF' >> "$cfgfile" 22893 22894# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22895 22896# func_munge_path_list VARIABLE PATH 22897# ----------------------------------- 22898# VARIABLE is name of variable containing _space_ separated list of 22899# directories to be munged by the contents of PATH, which is string 22900# having a format: 22901# "DIR[:DIR]:" 22902# string "DIR[ DIR]" will be prepended to VARIABLE 22903# ":DIR[:DIR]" 22904# string "DIR[ DIR]" will be appended to VARIABLE 22905# "DIRP[:DIRP]::[DIRA:]DIRA" 22906# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22907# "DIRA[ DIRA]" will be appended to VARIABLE 22908# "DIR[:DIR]" 22909# VARIABLE will be replaced by "DIR[ DIR]" 22910func_munge_path_list () 22911{ 22912 case x$2 in 22913 x) 22914 ;; 22915 *:) 22916 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22917 ;; 22918 x:*) 22919 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22920 ;; 22921 *::*) 22922 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22923 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22924 ;; 22925 *) 22926 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22927 ;; 22928 esac 22929} 22930 22931 22932# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22933func_cc_basename () 22934{ 22935 for cc_temp in $*""; do 22936 case $cc_temp in 22937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22939 \-*) ;; 22940 *) break;; 22941 esac 22942 done 22943 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22944} 22945 22946 22947# ### END FUNCTIONS SHARED WITH CONFIGURE 22948 22949_LT_EOF 22950 22951 case $host_os in 22952 aix3*) 22953 cat <<\_LT_EOF >> "$cfgfile" 22954# AIX sometimes has problems with the GCC collect2 program. For some 22955# reason, if we set the COLLECT_NAMES environment variable, the problems 22956# vanish in a puff of smoke. 22957if test set != "${COLLECT_NAMES+set}"; then 22958 COLLECT_NAMES= 22959 export COLLECT_NAMES 22960fi 22961_LT_EOF 22962 ;; 22963 esac 22964 22965 22966 22967ltmain=$ac_aux_dir/ltmain.sh 22968 22969 22970 # We use sed instead of cat because bash on DJGPP gets confused if 22971 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22972 # text mode, it properly converts lines to CR/LF. This bash problem 22973 # is reportedly fixed, but why not run on old versions too? 22974 $SED '$q' "$ltmain" >> "$cfgfile" \ 22975 || (rm -f "$cfgfile"; exit 1) 22976 22977 mv -f "$cfgfile" "$ofile" || 22978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22979 chmod +x "$ofile" 22980 22981 ;; 22982 22983 esac 22984done # for ac_tag 22985 22986 22987as_fn_exit 0 22988_ACEOF 22989ac_clean_files=$ac_clean_files_save 22990 22991test $ac_write_fail = 0 || 22992 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22993 22994 22995# configure is writing to config.log, and then calls config.status. 22996# config.status does its own redirection, appending to config.log. 22997# Unfortunately, on DOS this fails, as config.log is still kept open 22998# by configure, so config.status won't be able to write to it; its 22999# output is simply discarded. So we exec the FD to /dev/null, 23000# effectively closing config.log, so it can be properly (re)opened and 23001# appended to by config.status. When coming back to configure, we 23002# need to make the FD available again. 23003if test "$no_create" != yes; then 23004 ac_cs_success=: 23005 ac_config_status_args= 23006 test "$silent" = yes && 23007 ac_config_status_args="$ac_config_status_args --quiet" 23008 exec 5>/dev/null 23009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23010 exec 5>>config.log 23011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23012 # would make configure fail if this is the last instruction. 23013 $ac_cs_success || as_fn_exit 1 23014fi 23015if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23017printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23018fi 23019 23020 23021echo " 23022 23023 xf86-video-qxl $VERSION 23024 ===================== 23025 23026 prefix: ${prefix} 23027 c compiler: ${CC} 23028 23029 drm: ${DRM_CFLAGS} 23030 KMS: ${DRM_MODE} 23031 Build qxl: ${enable_qxl} 23032 Build xspice: ${enable_xspice} 23033 Build spiceccid: ${enable_ccid} 23034" 23035 23036