1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-amdgpu 23.0.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/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-amdgpu/-/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-amdgpu' 624PACKAGE_TARNAME='xf86-video-amdgpu' 625PACKAGE_VERSION='23.0.0' 626PACKAGE_STRING='xf86-video-amdgpu 23.0.0' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/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 667DRIVER_NAME 668moduledir 669GLAMOR_FALSE 670GLAMOR_TRUE 671LIBGLAMOR_EGL_LIBS 672LIBGLAMOR_EGL_CFLAGS 673LIBGLAMOR_LIBS 674LIBGLAMOR_CFLAGS 675LIBGL_LIBS 676LIBGL_CFLAGS 677LIBUDEV_FALSE 678LIBUDEV_TRUE 679LIBUDEV_LIBS 680LIBUDEV_CFLAGS 681configdir 682HAS_XORG_CONF_DIR_FALSE 683HAS_XORG_CONF_DIR_TRUE 684HAVE_XEXTPROTO_71_FALSE 685HAVE_XEXTPROTO_71_TRUE 686XEXT_LIBS 687XEXT_CFLAGS 688XORG_LIBS 689XORG_CFLAGS 690GBM_LIBS 691GBM_CFLAGS 692LIBDRM_AMDGPU_LIBS 693LIBDRM_AMDGPU_CFLAGS 694LIBDRM_LIBS 695LIBDRM_CFLAGS 696LT_SYS_LIBRARY_PATH 697OTOOL64 698OTOOL 699LIPO 700NMEDIT 701DSYMUTIL 702MANIFEST_TOOL 703RANLIB 704ac_ct_AR 705AR 706DLLTOOL 707OBJDUMP 708LN_S 709NM 710ac_ct_DUMPBIN 711DUMPBIN 712LD 713FGREP 714EGREP 715GREP 716LIBTOOL 717MAN_SUBSTS 718XORG_MAN_PAGE 719ADMIN_MAN_DIR 720DRIVER_MAN_DIR 721MISC_MAN_DIR 722FILE_MAN_DIR 723LIB_MAN_DIR 724APP_MAN_DIR 725ADMIN_MAN_SUFFIX 726DRIVER_MAN_SUFFIX 727MISC_MAN_SUFFIX 728FILE_MAN_SUFFIX 729LIB_MAN_SUFFIX 730APP_MAN_SUFFIX 731SED 732host_os 733host_vendor 734host_cpu 735host 736build_os 737build_vendor 738build_cpu 739build 740INSTALL_CMD 741PKG_CONFIG_LIBDIR 742PKG_CONFIG_PATH 743PKG_CONFIG 744CHANGELOG_CMD 745STRICT_CFLAGS 746CWARNFLAGS 747BASE_CFLAGS 748am__fastdepCC_FALSE 749am__fastdepCC_TRUE 750CCDEPMODE 751am__nodep 752AMDEPBACKSLASH 753AMDEP_FALSE 754AMDEP_TRUE 755am__include 756DEPDIR 757OBJEXT 758EXEEXT 759ac_ct_CC 760CPPFLAGS 761LDFLAGS 762CFLAGS 763CC 764AM_BACKSLASH 765AM_DEFAULT_VERBOSITY 766AM_DEFAULT_V 767AM_V 768CSCOPE 769ETAGS 770CTAGS 771am__untar 772am__tar 773AMTAR 774am__leading_dot 775SET_MAKE 776AWK 777mkdir_p 778MKDIR_P 779INSTALL_STRIP_PROGRAM 780STRIP 781install_sh 782MAKEINFO 783AUTOHEADER 784AUTOMAKE 785AUTOCONF 786ACLOCAL 787VERSION 788PACKAGE 789CYGPATH_W 790am__isrc 791INSTALL_DATA 792INSTALL_SCRIPT 793INSTALL_PROGRAM 794target_alias 795host_alias 796build_alias 797LIBS 798ECHO_T 799ECHO_N 800ECHO_C 801DEFS 802mandir 803localedir 804libdir 805psdir 806pdfdir 807dvidir 808htmldir 809infodir 810docdir 811oldincludedir 812includedir 813runstatedir 814localstatedir 815sharedstatedir 816sysconfdir 817datadir 818datarootdir 819libexecdir 820sbindir 821bindir 822program_transform_name 823prefix 824exec_prefix 825PACKAGE_URL 826PACKAGE_BUGREPORT 827PACKAGE_STRING 828PACKAGE_VERSION 829PACKAGE_TARNAME 830PACKAGE_NAME 831PATH_SEPARATOR 832SHELL 833am__quote' 834ac_subst_files='' 835ac_user_opts=' 836enable_option_checking 837enable_silent_rules 838enable_largefile 839enable_dependency_tracking 840enable_selective_werror 841enable_strict_compilation 842enable_static 843enable_shared 844with_pic 845enable_fast_install 846with_aix_soname 847with_gnu_ld 848with_sysroot 849enable_libtool_lock 850with_xorg_module_dir 851with_xorg_conf_dir 852enable_udev 853enable_glamor 854' 855 ac_precious_vars='build_alias 856host_alias 857target_alias 858CC 859CFLAGS 860LDFLAGS 861LIBS 862CPPFLAGS 863PKG_CONFIG 864PKG_CONFIG_PATH 865PKG_CONFIG_LIBDIR 866LT_SYS_LIBRARY_PATH 867LIBDRM_CFLAGS 868LIBDRM_LIBS 869LIBDRM_AMDGPU_CFLAGS 870LIBDRM_AMDGPU_LIBS 871GBM_CFLAGS 872GBM_LIBS 873XORG_CFLAGS 874XORG_LIBS 875XEXT_CFLAGS 876XEXT_LIBS 877LIBUDEV_CFLAGS 878LIBUDEV_LIBS 879LIBGL_CFLAGS 880LIBGL_LIBS 881LIBGLAMOR_CFLAGS 882LIBGLAMOR_LIBS 883LIBGLAMOR_EGL_CFLAGS 884LIBGLAMOR_EGL_LIBS' 885 886 887# Initialize some variables set by options. 888ac_init_help= 889ac_init_version=false 890ac_unrecognized_opts= 891ac_unrecognized_sep= 892# The variables have the same names as the options, with 893# dashes changed to underlines. 894cache_file=/dev/null 895exec_prefix=NONE 896no_create= 897no_recursion= 898prefix=NONE 899program_prefix=NONE 900program_suffix=NONE 901program_transform_name=s,x,x, 902silent= 903site= 904srcdir= 905verbose= 906x_includes=NONE 907x_libraries=NONE 908 909# Installation directory options. 910# These are left unexpanded so users can "make install exec_prefix=/foo" 911# and all the variables that are supposed to be based on exec_prefix 912# by default will actually change. 913# Use braces instead of parens because sh, perl, etc. also accept them. 914# (The list follows the same order as the GNU Coding Standards.) 915bindir='${exec_prefix}/bin' 916sbindir='${exec_prefix}/sbin' 917libexecdir='${exec_prefix}/libexec' 918datarootdir='${prefix}/share' 919datadir='${datarootdir}' 920sysconfdir='${prefix}/etc' 921sharedstatedir='${prefix}/com' 922localstatedir='${prefix}/var' 923runstatedir='${localstatedir}/run' 924includedir='${prefix}/include' 925oldincludedir='/usr/include' 926docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 927infodir='${datarootdir}/info' 928htmldir='${docdir}' 929dvidir='${docdir}' 930pdfdir='${docdir}' 931psdir='${docdir}' 932libdir='${exec_prefix}/lib' 933localedir='${datarootdir}/locale' 934mandir='${datarootdir}/man' 935 936ac_prev= 937ac_dashdash= 938for ac_option 939do 940 # If the previous option needs an argument, assign it. 941 if test -n "$ac_prev"; then 942 eval $ac_prev=\$ac_option 943 ac_prev= 944 continue 945 fi 946 947 case $ac_option in 948 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 949 *=) ac_optarg= ;; 950 *) ac_optarg=yes ;; 951 esac 952 953 case $ac_dashdash$ac_option in 954 --) 955 ac_dashdash=yes ;; 956 957 -bindir | --bindir | --bindi | --bind | --bin | --bi) 958 ac_prev=bindir ;; 959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 960 bindir=$ac_optarg ;; 961 962 -build | --build | --buil | --bui | --bu) 963 ac_prev=build_alias ;; 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 965 build_alias=$ac_optarg ;; 966 967 -cache-file | --cache-file | --cache-fil | --cache-fi \ 968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 969 ac_prev=cache_file ;; 970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 972 cache_file=$ac_optarg ;; 973 974 --config-cache | -C) 975 cache_file=config.cache ;; 976 977 -datadir | --datadir | --datadi | --datad) 978 ac_prev=datadir ;; 979 -datadir=* | --datadir=* | --datadi=* | --datad=*) 980 datadir=$ac_optarg ;; 981 982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 983 | --dataroo | --dataro | --datar) 984 ac_prev=datarootdir ;; 985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 987 datarootdir=$ac_optarg ;; 988 989 -disable-* | --disable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: \`$ac_useropt'" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=no ;; 1004 1005 -docdir | --docdir | --docdi | --doc | --do) 1006 ac_prev=docdir ;; 1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1008 docdir=$ac_optarg ;; 1009 1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1011 ac_prev=dvidir ;; 1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1013 dvidir=$ac_optarg ;; 1014 1015 -enable-* | --enable-*) 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1019 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1020 ac_useropt_orig=$ac_useropt 1021 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1022 case $ac_user_opts in 1023 *" 1024"enable_$ac_useropt" 1025"*) ;; 1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1027 ac_unrecognized_sep=', ';; 1028 esac 1029 eval enable_$ac_useropt=\$ac_optarg ;; 1030 1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1033 | --exec | --exe | --ex) 1034 ac_prev=exec_prefix ;; 1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1037 | --exec=* | --exe=* | --ex=*) 1038 exec_prefix=$ac_optarg ;; 1039 1040 -gas | --gas | --ga | --g) 1041 # Obsolete; use --with-gas. 1042 with_gas=yes ;; 1043 1044 -help | --help | --hel | --he | -h) 1045 ac_init_help=long ;; 1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1047 ac_init_help=recursive ;; 1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1049 ac_init_help=short ;; 1050 1051 -host | --host | --hos | --ho) 1052 ac_prev=host_alias ;; 1053 -host=* | --host=* | --hos=* | --ho=*) 1054 host_alias=$ac_optarg ;; 1055 1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1057 ac_prev=htmldir ;; 1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1059 | --ht=*) 1060 htmldir=$ac_optarg ;; 1061 1062 -includedir | --includedir | --includedi | --included | --include \ 1063 | --includ | --inclu | --incl | --inc) 1064 ac_prev=includedir ;; 1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1066 | --includ=* | --inclu=* | --incl=* | --inc=*) 1067 includedir=$ac_optarg ;; 1068 1069 -infodir | --infodir | --infodi | --infod | --info | --inf) 1070 ac_prev=infodir ;; 1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1072 infodir=$ac_optarg ;; 1073 1074 -libdir | --libdir | --libdi | --libd) 1075 ac_prev=libdir ;; 1076 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1077 libdir=$ac_optarg ;; 1078 1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1080 | --libexe | --libex | --libe) 1081 ac_prev=libexecdir ;; 1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1083 | --libexe=* | --libex=* | --libe=*) 1084 libexecdir=$ac_optarg ;; 1085 1086 -localedir | --localedir | --localedi | --localed | --locale) 1087 ac_prev=localedir ;; 1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1089 localedir=$ac_optarg ;; 1090 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1092 | --localstate | --localstat | --localsta | --localst | --locals) 1093 ac_prev=localstatedir ;; 1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1096 localstatedir=$ac_optarg ;; 1097 1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1099 ac_prev=mandir ;; 1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1101 mandir=$ac_optarg ;; 1102 1103 -nfp | --nfp | --nf) 1104 # Obsolete; use --without-fp. 1105 with_fp=no ;; 1106 1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1108 | --no-cr | --no-c | -n) 1109 no_create=yes ;; 1110 1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1113 no_recursion=yes ;; 1114 1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1117 | --oldin | --oldi | --old | --ol | --o) 1118 ac_prev=oldincludedir ;; 1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1122 oldincludedir=$ac_optarg ;; 1123 1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1125 ac_prev=prefix ;; 1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1127 prefix=$ac_optarg ;; 1128 1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1130 | --program-pre | --program-pr | --program-p) 1131 ac_prev=program_prefix ;; 1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1134 program_prefix=$ac_optarg ;; 1135 1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1137 | --program-suf | --program-su | --program-s) 1138 ac_prev=program_suffix ;; 1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1141 program_suffix=$ac_optarg ;; 1142 1143 -program-transform-name | --program-transform-name \ 1144 | --program-transform-nam | --program-transform-na \ 1145 | --program-transform-n | --program-transform- \ 1146 | --program-transform | --program-transfor \ 1147 | --program-transfo | --program-transf \ 1148 | --program-trans | --program-tran \ 1149 | --progr-tra | --program-tr | --program-t) 1150 ac_prev=program_transform_name ;; 1151 -program-transform-name=* | --program-transform-name=* \ 1152 | --program-transform-nam=* | --program-transform-na=* \ 1153 | --program-transform-n=* | --program-transform-=* \ 1154 | --program-transform=* | --program-transfor=* \ 1155 | --program-transfo=* | --program-transf=* \ 1156 | --program-trans=* | --program-tran=* \ 1157 | --progr-tra=* | --program-tr=* | --program-t=*) 1158 program_transform_name=$ac_optarg ;; 1159 1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1161 ac_prev=pdfdir ;; 1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1163 pdfdir=$ac_optarg ;; 1164 1165 -psdir | --psdir | --psdi | --psd | --ps) 1166 ac_prev=psdir ;; 1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1168 psdir=$ac_optarg ;; 1169 1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1171 | -silent | --silent | --silen | --sile | --sil) 1172 silent=yes ;; 1173 1174 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1175 | --runstate | --runstat | --runsta | --runst | --runs \ 1176 | --run | --ru | --r) 1177 ac_prev=runstatedir ;; 1178 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1179 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1180 | --run=* | --ru=* | --r=*) 1181 runstatedir=$ac_optarg ;; 1182 1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1184 ac_prev=sbindir ;; 1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1186 | --sbi=* | --sb=*) 1187 sbindir=$ac_optarg ;; 1188 1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1191 | --sharedst | --shareds | --shared | --share | --shar \ 1192 | --sha | --sh) 1193 ac_prev=sharedstatedir ;; 1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1197 | --sha=* | --sh=*) 1198 sharedstatedir=$ac_optarg ;; 1199 1200 -site | --site | --sit) 1201 ac_prev=site ;; 1202 -site=* | --site=* | --sit=*) 1203 site=$ac_optarg ;; 1204 1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1206 ac_prev=srcdir ;; 1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1208 srcdir=$ac_optarg ;; 1209 1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1211 | --syscon | --sysco | --sysc | --sys | --sy) 1212 ac_prev=sysconfdir ;; 1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1215 sysconfdir=$ac_optarg ;; 1216 1217 -target | --target | --targe | --targ | --tar | --ta | --t) 1218 ac_prev=target_alias ;; 1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1220 target_alias=$ac_optarg ;; 1221 1222 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1223 verbose=yes ;; 1224 1225 -version | --version | --versio | --versi | --vers | -V) 1226 ac_init_version=: ;; 1227 1228 -with-* | --with-*) 1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1230 # Reject names that are not valid shell variable names. 1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1232 as_fn_error $? "invalid package name: \`$ac_useropt'" 1233 ac_useropt_orig=$ac_useropt 1234 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1235 case $ac_user_opts in 1236 *" 1237"with_$ac_useropt" 1238"*) ;; 1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1240 ac_unrecognized_sep=', ';; 1241 esac 1242 eval with_$ac_useropt=\$ac_optarg ;; 1243 1244 -without-* | --without-*) 1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1246 # Reject names that are not valid shell variable names. 1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1248 as_fn_error $? "invalid package name: \`$ac_useropt'" 1249 ac_useropt_orig=$ac_useropt 1250 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1251 case $ac_user_opts in 1252 *" 1253"with_$ac_useropt" 1254"*) ;; 1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1256 ac_unrecognized_sep=', ';; 1257 esac 1258 eval with_$ac_useropt=no ;; 1259 1260 --x) 1261 # Obsolete; use --with-x. 1262 with_x=yes ;; 1263 1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1265 | --x-incl | --x-inc | --x-in | --x-i) 1266 ac_prev=x_includes ;; 1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1269 x_includes=$ac_optarg ;; 1270 1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1273 ac_prev=x_libraries ;; 1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1276 x_libraries=$ac_optarg ;; 1277 1278 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1279Try \`$0 --help' for more information" 1280 ;; 1281 1282 *=*) 1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1284 # Reject names that are not valid shell variable names. 1285 case $ac_envvar in #( 1286 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1288 esac 1289 eval $ac_envvar=\$ac_optarg 1290 export $ac_envvar ;; 1291 1292 *) 1293 # FIXME: should be removed in autoconf 3.0. 1294 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1296 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1298 ;; 1299 1300 esac 1301done 1302 1303if test -n "$ac_prev"; then 1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1305 as_fn_error $? "missing argument to $ac_option" 1306fi 1307 1308if test -n "$ac_unrecognized_opts"; then 1309 case $enable_option_checking in 1310 no) ;; 1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1312 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1313 esac 1314fi 1315 1316# Check all directory arguments for consistency. 1317for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1318 datadir sysconfdir sharedstatedir localstatedir includedir \ 1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1320 libdir localedir mandir runstatedir 1321do 1322 eval ac_val=\$$ac_var 1323 # Remove trailing slashes. 1324 case $ac_val in 1325 */ ) 1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1327 eval $ac_var=\$ac_val;; 1328 esac 1329 # Be sure to have absolute directory names. 1330 case $ac_val in 1331 [\\/$]* | ?:[\\/]* ) continue;; 1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1333 esac 1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1335done 1336 1337# There might be people who depend on the old broken behavior: `$host' 1338# used to hold the argument of --host etc. 1339# FIXME: To remove some day. 1340build=$build_alias 1341host=$host_alias 1342target=$target_alias 1343 1344# FIXME: To remove some day. 1345if test "x$host_alias" != x; then 1346 if test "x$build_alias" = x; then 1347 cross_compiling=maybe 1348 elif test "x$build_alias" != "x$host_alias"; then 1349 cross_compiling=yes 1350 fi 1351fi 1352 1353ac_tool_prefix= 1354test -n "$host_alias" && ac_tool_prefix=$host_alias- 1355 1356test "$silent" = yes && exec 6>/dev/null 1357 1358 1359ac_pwd=`pwd` && test -n "$ac_pwd" && 1360ac_ls_di=`ls -di .` && 1361ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1362 as_fn_error $? "working directory cannot be determined" 1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1364 as_fn_error $? "pwd does not report name of working directory" 1365 1366 1367# Find the source files, if location was not specified. 1368if test -z "$srcdir"; then 1369 ac_srcdir_defaulted=yes 1370 # Try the directory containing this script, then the parent directory. 1371 ac_confdir=`$as_dirname -- "$as_myself" || 1372$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1373 X"$as_myself" : 'X\(//\)[^/]' \| \ 1374 X"$as_myself" : 'X\(//\)$' \| \ 1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1376printf "%s\n" X"$as_myself" | 1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1378 s//\1/ 1379 q 1380 } 1381 /^X\(\/\/\)[^/].*/{ 1382 s//\1/ 1383 q 1384 } 1385 /^X\(\/\/\)$/{ 1386 s//\1/ 1387 q 1388 } 1389 /^X\(\/\).*/{ 1390 s//\1/ 1391 q 1392 } 1393 s/.*/./; q'` 1394 srcdir=$ac_confdir 1395 if test ! -r "$srcdir/$ac_unique_file"; then 1396 srcdir=.. 1397 fi 1398else 1399 ac_srcdir_defaulted=no 1400fi 1401if test ! -r "$srcdir/$ac_unique_file"; then 1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1403 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1404fi 1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1406ac_abs_confdir=`( 1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1408 pwd)` 1409# When building in place, set srcdir=. 1410if test "$ac_abs_confdir" = "$ac_pwd"; then 1411 srcdir=. 1412fi 1413# Remove unnecessary trailing slashes from srcdir. 1414# Double slashes in file names in object file debugging info 1415# mess up M-x gdb in Emacs. 1416case $srcdir in 1417*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1418esac 1419for ac_var in $ac_precious_vars; do 1420 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1421 eval ac_env_${ac_var}_value=\$${ac_var} 1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1423 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1424done 1425 1426# 1427# Report the --help message. 1428# 1429if test "$ac_init_help" = "long"; then 1430 # Omit some internal or obsolete options to make the list less imposing. 1431 # This message is too long to be a string in the A/UX 3.1 sh. 1432 cat <<_ACEOF 1433\`configure' configures xf86-video-amdgpu 23.0.0 to adapt to many kinds of systems. 1434 1435Usage: $0 [OPTION]... [VAR=VALUE]... 1436 1437To assign environment variables (e.g., CC, CFLAGS...), specify them as 1438VAR=VALUE. See below for descriptions of some of the useful variables. 1439 1440Defaults for the options are specified in brackets. 1441 1442Configuration: 1443 -h, --help display this help and exit 1444 --help=short display options specific to this package 1445 --help=recursive display the short help of all the included packages 1446 -V, --version display version information and exit 1447 -q, --quiet, --silent do not print \`checking ...' messages 1448 --cache-file=FILE cache test results in FILE [disabled] 1449 -C, --config-cache alias for \`--cache-file=config.cache' 1450 -n, --no-create do not create output files 1451 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1452 1453Installation directories: 1454 --prefix=PREFIX install architecture-independent files in PREFIX 1455 [$ac_default_prefix] 1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1457 [PREFIX] 1458 1459By default, \`make install' will install all the files in 1460\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1461an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1462for instance \`--prefix=\$HOME'. 1463 1464For better control, use the options below. 1465 1466Fine tuning of the installation directories: 1467 --bindir=DIR user executables [EPREFIX/bin] 1468 --sbindir=DIR system admin executables [EPREFIX/sbin] 1469 --libexecdir=DIR program executables [EPREFIX/libexec] 1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1473 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1474 --libdir=DIR object code libraries [EPREFIX/lib] 1475 --includedir=DIR C header files [PREFIX/include] 1476 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1479 --infodir=DIR info documentation [DATAROOTDIR/info] 1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1481 --mandir=DIR man documentation [DATAROOTDIR/man] 1482 --docdir=DIR documentation root 1483 [DATAROOTDIR/doc/xf86-video-amdgpu] 1484 --htmldir=DIR html documentation [DOCDIR] 1485 --dvidir=DIR dvi documentation [DOCDIR] 1486 --pdfdir=DIR pdf documentation [DOCDIR] 1487 --psdir=DIR ps documentation [DOCDIR] 1488_ACEOF 1489 1490 cat <<\_ACEOF 1491 1492Program names: 1493 --program-prefix=PREFIX prepend PREFIX to installed program names 1494 --program-suffix=SUFFIX append SUFFIX to installed program names 1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1496 1497System types: 1498 --build=BUILD configure for building on BUILD [guessed] 1499 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1500_ACEOF 1501fi 1502 1503if test -n "$ac_init_help"; then 1504 case $ac_init_help in 1505 short | recursive ) echo "Configuration of xf86-video-amdgpu 23.0.0:";; 1506 esac 1507 cat <<\_ACEOF 1508 1509Optional Features: 1510 --disable-option-checking ignore unrecognized --enable/--with options 1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1513 --enable-silent-rules less verbose build output (undo: "make V=1") 1514 --disable-silent-rules verbose build output (undo: "make V=0") 1515 --disable-largefile omit support for large files 1516 --enable-dependency-tracking 1517 do not reject slow dependency extractors 1518 --disable-dependency-tracking 1519 speeds up one-time build 1520 --disable-selective-werror 1521 Turn off selective compiler errors. (default: 1522 enabled) 1523 --enable-strict-compilation 1524 Enable all warnings from compiler and make them 1525 errors (default: disabled) 1526 --enable-static[=PKGS] build static libraries [default=no] 1527 --enable-shared[=PKGS] build shared libraries [default=yes] 1528 --enable-fast-install[=PKGS] 1529 optimize for fast installation [default=yes] 1530 --disable-libtool-lock avoid locking (might break parallel builds) 1531 --disable-udev Disable libudev support [default=auto] 1532 --disable-glamor Disable glamor, a new GL-based acceleration 1533 [default=enabled] 1534 1535Optional Packages: 1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1538 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1539 both] 1540 --with-aix-soname=aix|svr4|both 1541 shared library versioning (aka "SONAME") variant to 1542 provide on AIX, [default=aix]. 1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1544 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1545 compiler's sysroot if not specified). 1546 --with-xorg-module-dir=DIR 1547 Default xorg module directory 1548 [[default=$libdir/xorg/modules]] 1549 --with-xorg-conf-dir=DIR 1550 Default xorg.conf.d directory 1551 [[default=${prefix}/share/X11/xorg.conf.d]] 1552 1553Some influential environment variables: 1554 CC C compiler command 1555 CFLAGS C compiler flags 1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1557 nonstandard directory <lib dir> 1558 LIBS libraries to pass to the linker, e.g. -l<library> 1559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1560 you have headers in a nonstandard directory <include dir> 1561 PKG_CONFIG path to pkg-config utility 1562 PKG_CONFIG_PATH 1563 directories to add to pkg-config's search path 1564 PKG_CONFIG_LIBDIR 1565 path overriding pkg-config's built-in search path 1566 LT_SYS_LIBRARY_PATH 1567 User-defined run-time library search path. 1568 LIBDRM_CFLAGS 1569 C compiler flags for LIBDRM, overriding pkg-config 1570 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1571 LIBDRM_AMDGPU_CFLAGS 1572 C compiler flags for LIBDRM_AMDGPU, overriding pkg-config 1573 LIBDRM_AMDGPU_LIBS 1574 linker flags for LIBDRM_AMDGPU, overriding pkg-config 1575 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 1576 GBM_LIBS linker flags for GBM, overriding pkg-config 1577 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1578 XORG_LIBS linker flags for XORG, overriding pkg-config 1579 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1580 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1581 LIBUDEV_CFLAGS 1582 C compiler flags for LIBUDEV, overriding pkg-config 1583 LIBUDEV_LIBS 1584 linker flags for LIBUDEV, overriding pkg-config 1585 LIBGL_CFLAGS 1586 C compiler flags for LIBGL, overriding pkg-config 1587 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config 1588 LIBGLAMOR_CFLAGS 1589 C compiler flags for LIBGLAMOR, overriding pkg-config 1590 LIBGLAMOR_LIBS 1591 linker flags for LIBGLAMOR, overriding pkg-config 1592 LIBGLAMOR_EGL_CFLAGS 1593 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config 1594 LIBGLAMOR_EGL_LIBS 1595 linker flags for LIBGLAMOR_EGL, overriding pkg-config 1596 1597Use these variables to override the choices made by `configure' or to help 1598it to find libraries and programs with nonstandard names/locations. 1599 1600Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/issues>. 1601_ACEOF 1602ac_status=$? 1603fi 1604 1605if test "$ac_init_help" = "recursive"; then 1606 # If there are subdirs, report their specific --help. 1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1608 test -d "$ac_dir" || 1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1610 continue 1611 ac_builddir=. 1612 1613case "$ac_dir" in 1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1615*) 1616 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1617 # A ".." for each directory in $ac_dir_suffix. 1618 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1619 case $ac_top_builddir_sub in 1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1622 esac ;; 1623esac 1624ac_abs_top_builddir=$ac_pwd 1625ac_abs_builddir=$ac_pwd$ac_dir_suffix 1626# for backward compatibility: 1627ac_top_builddir=$ac_top_build_prefix 1628 1629case $srcdir in 1630 .) # We are building in place. 1631 ac_srcdir=. 1632 ac_top_srcdir=$ac_top_builddir_sub 1633 ac_abs_top_srcdir=$ac_pwd ;; 1634 [\\/]* | ?:[\\/]* ) # Absolute name. 1635 ac_srcdir=$srcdir$ac_dir_suffix; 1636 ac_top_srcdir=$srcdir 1637 ac_abs_top_srcdir=$srcdir ;; 1638 *) # Relative name. 1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1640 ac_top_srcdir=$ac_top_build_prefix$srcdir 1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1642esac 1643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1644 1645 cd "$ac_dir" || { ac_status=$?; continue; } 1646 # Check for configure.gnu first; this name is used for a wrapper for 1647 # Metaconfig's "Configure" on case-insensitive file systems. 1648 if test -f "$ac_srcdir/configure.gnu"; then 1649 echo && 1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1651 elif test -f "$ac_srcdir/configure"; then 1652 echo && 1653 $SHELL "$ac_srcdir/configure" --help=recursive 1654 else 1655 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1656 fi || ac_status=$? 1657 cd "$ac_pwd" || { ac_status=$?; break; } 1658 done 1659fi 1660 1661test -n "$ac_init_help" && exit $ac_status 1662if $ac_init_version; then 1663 cat <<\_ACEOF 1664xf86-video-amdgpu configure 23.0.0 1665generated by GNU Autoconf 2.71 1666 1667Copyright (C) 2021 Free Software Foundation, Inc. 1668This configure script is free software; the Free Software Foundation 1669gives unlimited permission to copy, distribute and modify it. 1670_ACEOF 1671 exit 1672fi 1673 1674## ------------------------ ## 1675## Autoconf initialization. ## 1676## ------------------------ ## 1677 1678# ac_fn_c_try_compile LINENO 1679# -------------------------- 1680# Try to compile conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_compile () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 rm -f conftest.$ac_objext conftest.beam 1685 if { { ac_try="$ac_compile" 1686case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691printf "%s\n" "$ac_try_echo"; } >&5 1692 (eval "$ac_compile") 2>conftest.err 1693 ac_status=$? 1694 if test -s conftest.err; then 1695 grep -v '^ *+' conftest.err >conftest.er1 1696 cat conftest.er1 >&5 1697 mv -f conftest.er1 conftest.err 1698 fi 1699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } && { 1701 test -z "$ac_c_werror_flag" || 1702 test ! -s conftest.err 1703 } && test -s conftest.$ac_objext 1704then : 1705 ac_retval=0 1706else $as_nop 1707 printf "%s\n" "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711fi 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715} # ac_fn_c_try_compile 1716 1717# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1718# ------------------------------------------------------------------ 1719# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1720# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1721ac_fn_check_decl () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 as_decl_name=`echo $2|sed 's/ *(.*//'` 1725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1726printf %s "checking whether $as_decl_name is declared... " >&6; } 1727if eval test \${$3+y} 1728then : 1729 printf %s "(cached) " >&6 1730else $as_nop 1731 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1732 eval ac_save_FLAGS=\$$6 1733 as_fn_append $6 " $5" 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736$4 1737int 1738main (void) 1739{ 1740#ifndef $as_decl_name 1741#ifdef __cplusplus 1742 (void) $as_decl_use; 1743#else 1744 (void) $as_decl_name; 1745#endif 1746#endif 1747 1748 ; 1749 return 0; 1750} 1751_ACEOF 1752if ac_fn_c_try_compile "$LINENO" 1753then : 1754 eval "$3=yes" 1755else $as_nop 1756 eval "$3=no" 1757fi 1758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1759 eval $6=\$ac_save_FLAGS 1760 1761fi 1762eval ac_res=\$$3 1763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1764printf "%s\n" "$ac_res" >&6; } 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 1767} # ac_fn_check_decl 1768 1769# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1770# ------------------------------------------------------- 1771# Tests whether HEADER exists and can be compiled using the include files in 1772# INCLUDES, setting the cache variable VAR accordingly. 1773ac_fn_c_check_header_compile () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1777printf %s "checking for $2... " >&6; } 1778if eval test \${$3+y} 1779then : 1780 printf %s "(cached) " >&6 1781else $as_nop 1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1783/* end confdefs.h. */ 1784$4 1785#include <$2> 1786_ACEOF 1787if ac_fn_c_try_compile "$LINENO" 1788then : 1789 eval "$3=yes" 1790else $as_nop 1791 eval "$3=no" 1792fi 1793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797printf "%s\n" "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_header_compile 1801 1802# ac_fn_c_try_link LINENO 1803# ----------------------- 1804# Try to link conftest.$ac_ext, and return whether this succeeded. 1805ac_fn_c_try_link () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1809 if { { ac_try="$ac_link" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815printf "%s\n" "$ac_try_echo"; } >&5 1816 (eval "$ac_link") 2>conftest.err 1817 ac_status=$? 1818 if test -s conftest.err; then 1819 grep -v '^ *+' conftest.err >conftest.er1 1820 cat conftest.er1 >&5 1821 mv -f conftest.er1 conftest.err 1822 fi 1823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { 1825 test -z "$ac_c_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest$ac_exeext && { 1828 test "$cross_compiling" = yes || 1829 test -x conftest$ac_exeext 1830 } 1831then : 1832 ac_retval=0 1833else $as_nop 1834 printf "%s\n" "$as_me: failed program was:" >&5 1835sed 's/^/| /' conftest.$ac_ext >&5 1836 1837 ac_retval=1 1838fi 1839 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1840 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1841 # interfere with the next link command; also delete a directory that is 1842 # left behind by Apple's compiler. We do this before executing the actions. 1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 as_fn_set_status $ac_retval 1846 1847} # ac_fn_c_try_link 1848 1849# ac_fn_c_check_func LINENO FUNC VAR 1850# ---------------------------------- 1851# Tests whether FUNC exists, setting the cache variable VAR accordingly 1852ac_fn_c_check_func () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856printf %s "checking for $2... " >&6; } 1857if eval test \${$3+y} 1858then : 1859 printf %s "(cached) " >&6 1860else $as_nop 1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1862/* end confdefs.h. */ 1863/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1864 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1865#define $2 innocuous_$2 1866 1867/* System header to define __stub macros and hopefully few prototypes, 1868 which can conflict with char $2 (); below. */ 1869 1870#include <limits.h> 1871#undef $2 1872 1873/* Override any GCC internal prototype to avoid an error. 1874 Use char because int might match the return type of a GCC 1875 builtin and then its argument prototype would still apply. */ 1876#ifdef __cplusplus 1877extern "C" 1878#endif 1879char $2 (); 1880/* The GNU C library defines this for functions which it implements 1881 to always fail with ENOSYS. Some functions are actually named 1882 something starting with __ and the normal name is an alias. */ 1883#if defined __stub_$2 || defined __stub___$2 1884choke me 1885#endif 1886 1887int 1888main (void) 1889{ 1890return $2 (); 1891 ; 1892 return 0; 1893} 1894_ACEOF 1895if ac_fn_c_try_link "$LINENO" 1896then : 1897 eval "$3=yes" 1898else $as_nop 1899 eval "$3=no" 1900fi 1901rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1902 conftest$ac_exeext conftest.$ac_ext 1903fi 1904eval ac_res=\$$3 1905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1906printf "%s\n" "$ac_res" >&6; } 1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1908 1909} # ac_fn_c_check_func 1910ac_configure_args_raw= 1911for ac_arg 1912do 1913 case $ac_arg in 1914 *\'*) 1915 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1916 esac 1917 as_fn_append ac_configure_args_raw " '$ac_arg'" 1918done 1919 1920case $ac_configure_args_raw in 1921 *$as_nl*) 1922 ac_safe_unquote= ;; 1923 *) 1924 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1925 ac_unsafe_a="$ac_unsafe_z#~" 1926 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1927 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1928esac 1929 1930cat >config.log <<_ACEOF 1931This file contains any messages produced by compilers while 1932running configure, to aid debugging if configure makes a mistake. 1933 1934It was created by xf86-video-amdgpu $as_me 23.0.0, which was 1935generated by GNU Autoconf 2.71. Invocation command line was 1936 1937 $ $0$ac_configure_args_raw 1938 1939_ACEOF 1940exec 5>>config.log 1941{ 1942cat <<_ASUNAME 1943## --------- ## 1944## Platform. ## 1945## --------- ## 1946 1947hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1948uname -m = `(uname -m) 2>/dev/null || echo unknown` 1949uname -r = `(uname -r) 2>/dev/null || echo unknown` 1950uname -s = `(uname -s) 2>/dev/null || echo unknown` 1951uname -v = `(uname -v) 2>/dev/null || echo unknown` 1952 1953/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1954/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1955 1956/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1957/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1958/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1959/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1960/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1961/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1962/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1963 1964_ASUNAME 1965 1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1967for as_dir in $PATH 1968do 1969 IFS=$as_save_IFS 1970 case $as_dir in #((( 1971 '') as_dir=./ ;; 1972 */) ;; 1973 *) as_dir=$as_dir/ ;; 1974 esac 1975 printf "%s\n" "PATH: $as_dir" 1976 done 1977IFS=$as_save_IFS 1978 1979} >&5 1980 1981cat >&5 <<_ACEOF 1982 1983 1984## ----------- ## 1985## Core tests. ## 1986## ----------- ## 1987 1988_ACEOF 1989 1990 1991# Keep a trace of the command line. 1992# Strip out --no-create and --no-recursion so they do not pile up. 1993# Strip out --silent because we don't want to record it for future runs. 1994# Also quote any args containing shell meta-characters. 1995# Make two passes to allow for proper duplicate-argument suppression. 1996ac_configure_args= 1997ac_configure_args0= 1998ac_configure_args1= 1999ac_must_keep_next=false 2000for ac_pass in 1 2 2001do 2002 for ac_arg 2003 do 2004 case $ac_arg in 2005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2007 | -silent | --silent | --silen | --sile | --sil) 2008 continue ;; 2009 *\'*) 2010 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2011 esac 2012 case $ac_pass in 2013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2014 2) 2015 as_fn_append ac_configure_args1 " '$ac_arg'" 2016 if test $ac_must_keep_next = true; then 2017 ac_must_keep_next=false # Got value, back to normal. 2018 else 2019 case $ac_arg in 2020 *=* | --config-cache | -C | -disable-* | --disable-* \ 2021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2023 | -with-* | --with-* | -without-* | --without-* | --x) 2024 case "$ac_configure_args0 " in 2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2026 esac 2027 ;; 2028 -* ) ac_must_keep_next=true ;; 2029 esac 2030 fi 2031 as_fn_append ac_configure_args " '$ac_arg'" 2032 ;; 2033 esac 2034 done 2035done 2036{ ac_configure_args0=; unset ac_configure_args0;} 2037{ ac_configure_args1=; unset ac_configure_args1;} 2038 2039# When interrupted or exit'd, cleanup temporary files, and complete 2040# config.log. We remove comments because anyway the quotes in there 2041# would cause problems or look ugly. 2042# WARNING: Use '\'' to represent an apostrophe within the trap. 2043# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2044trap 'exit_status=$? 2045 # Sanitize IFS. 2046 IFS=" "" $as_nl" 2047 # Save into config.log some information that might help in debugging. 2048 { 2049 echo 2050 2051 printf "%s\n" "## ---------------- ## 2052## Cache variables. ## 2053## ---------------- ##" 2054 echo 2055 # The following way of writing the cache mishandles newlines in values, 2056( 2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2058 eval ac_val=\$$ac_var 2059 case $ac_val in #( 2060 *${as_nl}*) 2061 case $ac_var in #( 2062 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2063printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2064 esac 2065 case $ac_var in #( 2066 _ | IFS | as_nl) ;; #( 2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2068 *) { eval $ac_var=; unset $ac_var;} ;; 2069 esac ;; 2070 esac 2071 done 2072 (set) 2>&1 | 2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2074 *${as_nl}ac_space=\ *) 2075 sed -n \ 2076 "s/'\''/'\''\\\\'\'''\''/g; 2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2078 ;; #( 2079 *) 2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2081 ;; 2082 esac | 2083 sort 2084) 2085 echo 2086 2087 printf "%s\n" "## ----------------- ## 2088## Output variables. ## 2089## ----------------- ##" 2090 echo 2091 for ac_var in $ac_subst_vars 2092 do 2093 eval ac_val=\$$ac_var 2094 case $ac_val in 2095 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2096 esac 2097 printf "%s\n" "$ac_var='\''$ac_val'\''" 2098 done | sort 2099 echo 2100 2101 if test -n "$ac_subst_files"; then 2102 printf "%s\n" "## ------------------- ## 2103## File substitutions. ## 2104## ------------------- ##" 2105 echo 2106 for ac_var in $ac_subst_files 2107 do 2108 eval ac_val=\$$ac_var 2109 case $ac_val in 2110 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2111 esac 2112 printf "%s\n" "$ac_var='\''$ac_val'\''" 2113 done | sort 2114 echo 2115 fi 2116 2117 if test -s confdefs.h; then 2118 printf "%s\n" "## ----------- ## 2119## confdefs.h. ## 2120## ----------- ##" 2121 echo 2122 cat confdefs.h 2123 echo 2124 fi 2125 test "$ac_signal" != 0 && 2126 printf "%s\n" "$as_me: caught signal $ac_signal" 2127 printf "%s\n" "$as_me: exit $exit_status" 2128 } >&5 2129 rm -f core *.core core.conftest.* && 2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2131 exit $exit_status 2132' 0 2133for ac_signal in 1 2 13 15; do 2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2135done 2136ac_signal=0 2137 2138# confdefs.h avoids OS command line length limits that DEFS can exceed. 2139rm -f -r conftest* confdefs.h 2140 2141printf "%s\n" "/* confdefs.h */" > confdefs.h 2142 2143# Predefined preprocessor variables. 2144 2145printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2146 2147printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2148 2149printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2150 2151printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2152 2153printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2154 2155printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2156 2157 2158# Let the site file select an alternate cache file if it wants to. 2159# Prefer an explicitly selected file to automatically selected ones. 2160if test -n "$CONFIG_SITE"; then 2161 ac_site_files="$CONFIG_SITE" 2162elif test "x$prefix" != xNONE; then 2163 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2164else 2165 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2166fi 2167 2168for ac_site_file in $ac_site_files 2169do 2170 case $ac_site_file in #( 2171 */*) : 2172 ;; #( 2173 *) : 2174 ac_site_file=./$ac_site_file ;; 2175esac 2176 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2178printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2179 sed 's/^/| /' "$ac_site_file" >&5 2180 . "$ac_site_file" \ 2181 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2182printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2183as_fn_error $? "failed to load site script $ac_site_file 2184See \`config.log' for more details" "$LINENO" 5; } 2185 fi 2186done 2187 2188if test -r "$cache_file"; then 2189 # Some versions of bash will fail to source /dev/null (special files 2190 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2191 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2193printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2194 case $cache_file in 2195 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2196 *) . "./$cache_file";; 2197 esac 2198 fi 2199else 2200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2201printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2202 >$cache_file 2203fi 2204 2205# Test code for whether the C compiler supports C89 (global declarations) 2206ac_c_conftest_c89_globals=' 2207/* Does the compiler advertise C89 conformance? 2208 Do not test the value of __STDC__, because some compilers set it to 0 2209 while being otherwise adequately conformant. */ 2210#if !defined __STDC__ 2211# error "Compiler does not advertise C89 conformance" 2212#endif 2213 2214#include <stddef.h> 2215#include <stdarg.h> 2216struct stat; 2217/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2218struct buf { int x; }; 2219struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2220static char *e (p, i) 2221 char **p; 2222 int i; 2223{ 2224 return p[i]; 2225} 2226static char *f (char * (*g) (char **, int), char **p, ...) 2227{ 2228 char *s; 2229 va_list v; 2230 va_start (v,p); 2231 s = g (p, va_arg (v,int)); 2232 va_end (v); 2233 return s; 2234} 2235 2236/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2237 function prototypes and stuff, but not \xHH hex character constants. 2238 These do not provoke an error unfortunately, instead are silently treated 2239 as an "x". The following induces an error, until -std is added to get 2240 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2241 array size at least. It is necessary to write \x00 == 0 to get something 2242 that is true only with -std. */ 2243int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2244 2245/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2246 inside strings and character constants. */ 2247#define FOO(x) '\''x'\'' 2248int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2249 2250int test (int i, double x); 2251struct s1 {int (*f) (int a);}; 2252struct s2 {int (*f) (double a);}; 2253int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2254 int, int);' 2255 2256# Test code for whether the C compiler supports C89 (body of main). 2257ac_c_conftest_c89_main=' 2258ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2259' 2260 2261# Test code for whether the C compiler supports C99 (global declarations) 2262ac_c_conftest_c99_globals=' 2263// Does the compiler advertise C99 conformance? 2264#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2265# error "Compiler does not advertise C99 conformance" 2266#endif 2267 2268#include <stdbool.h> 2269extern int puts (const char *); 2270extern int printf (const char *, ...); 2271extern int dprintf (int, const char *, ...); 2272extern void *malloc (size_t); 2273 2274// Check varargs macros. These examples are taken from C99 6.10.3.5. 2275// dprintf is used instead of fprintf to avoid needing to declare 2276// FILE and stderr. 2277#define debug(...) dprintf (2, __VA_ARGS__) 2278#define showlist(...) puts (#__VA_ARGS__) 2279#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2280static void 2281test_varargs_macros (void) 2282{ 2283 int x = 1234; 2284 int y = 5678; 2285 debug ("Flag"); 2286 debug ("X = %d\n", x); 2287 showlist (The first, second, and third items.); 2288 report (x>y, "x is %d but y is %d", x, y); 2289} 2290 2291// Check long long types. 2292#define BIG64 18446744073709551615ull 2293#define BIG32 4294967295ul 2294#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2295#if !BIG_OK 2296 #error "your preprocessor is broken" 2297#endif 2298#if BIG_OK 2299#else 2300 #error "your preprocessor is broken" 2301#endif 2302static long long int bignum = -9223372036854775807LL; 2303static unsigned long long int ubignum = BIG64; 2304 2305struct incomplete_array 2306{ 2307 int datasize; 2308 double data[]; 2309}; 2310 2311struct named_init { 2312 int number; 2313 const wchar_t *name; 2314 double average; 2315}; 2316 2317typedef const char *ccp; 2318 2319static inline int 2320test_restrict (ccp restrict text) 2321{ 2322 // See if C++-style comments work. 2323 // Iterate through items via the restricted pointer. 2324 // Also check for declarations in for loops. 2325 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2326 continue; 2327 return 0; 2328} 2329 2330// Check varargs and va_copy. 2331static bool 2332test_varargs (const char *format, ...) 2333{ 2334 va_list args; 2335 va_start (args, format); 2336 va_list args_copy; 2337 va_copy (args_copy, args); 2338 2339 const char *str = ""; 2340 int number = 0; 2341 float fnumber = 0; 2342 2343 while (*format) 2344 { 2345 switch (*format++) 2346 { 2347 case '\''s'\'': // string 2348 str = va_arg (args_copy, const char *); 2349 break; 2350 case '\''d'\'': // int 2351 number = va_arg (args_copy, int); 2352 break; 2353 case '\''f'\'': // float 2354 fnumber = va_arg (args_copy, double); 2355 break; 2356 default: 2357 break; 2358 } 2359 } 2360 va_end (args_copy); 2361 va_end (args); 2362 2363 return *str && number && fnumber; 2364} 2365' 2366 2367# Test code for whether the C compiler supports C99 (body of main). 2368ac_c_conftest_c99_main=' 2369 // Check bool. 2370 _Bool success = false; 2371 success |= (argc != 0); 2372 2373 // Check restrict. 2374 if (test_restrict ("String literal") == 0) 2375 success = true; 2376 char *restrict newvar = "Another string"; 2377 2378 // Check varargs. 2379 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2380 test_varargs_macros (); 2381 2382 // Check flexible array members. 2383 struct incomplete_array *ia = 2384 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2385 ia->datasize = 10; 2386 for (int i = 0; i < ia->datasize; ++i) 2387 ia->data[i] = i * 1.234; 2388 2389 // Check named initializers. 2390 struct named_init ni = { 2391 .number = 34, 2392 .name = L"Test wide string", 2393 .average = 543.34343, 2394 }; 2395 2396 ni.number = 58; 2397 2398 int dynamic_array[ni.number]; 2399 dynamic_array[0] = argv[0][0]; 2400 dynamic_array[ni.number - 1] = 543; 2401 2402 // work around unused variable warnings 2403 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2404 || dynamic_array[ni.number - 1] != 543); 2405' 2406 2407# Test code for whether the C compiler supports C11 (global declarations) 2408ac_c_conftest_c11_globals=' 2409// Does the compiler advertise C11 conformance? 2410#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2411# error "Compiler does not advertise C11 conformance" 2412#endif 2413 2414// Check _Alignas. 2415char _Alignas (double) aligned_as_double; 2416char _Alignas (0) no_special_alignment; 2417extern char aligned_as_int; 2418char _Alignas (0) _Alignas (int) aligned_as_int; 2419 2420// Check _Alignof. 2421enum 2422{ 2423 int_alignment = _Alignof (int), 2424 int_array_alignment = _Alignof (int[100]), 2425 char_alignment = _Alignof (char) 2426}; 2427_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2428 2429// Check _Noreturn. 2430int _Noreturn does_not_return (void) { for (;;) continue; } 2431 2432// Check _Static_assert. 2433struct test_static_assert 2434{ 2435 int x; 2436 _Static_assert (sizeof (int) <= sizeof (long int), 2437 "_Static_assert does not work in struct"); 2438 long int y; 2439}; 2440 2441// Check UTF-8 literals. 2442#define u8 syntax error! 2443char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2444 2445// Check duplicate typedefs. 2446typedef long *long_ptr; 2447typedef long int *long_ptr; 2448typedef long_ptr long_ptr; 2449 2450// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2451struct anonymous 2452{ 2453 union { 2454 struct { int i; int j; }; 2455 struct { int k; long int l; } w; 2456 }; 2457 int m; 2458} v1; 2459' 2460 2461# Test code for whether the C compiler supports C11 (body of main). 2462ac_c_conftest_c11_main=' 2463 _Static_assert ((offsetof (struct anonymous, i) 2464 == offsetof (struct anonymous, w.k)), 2465 "Anonymous union alignment botch"); 2466 v1.i = 2; 2467 v1.w.k = 5; 2468 ok |= v1.i != 5; 2469' 2470 2471# Test code for whether the C compiler supports C11 (complete). 2472ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2473${ac_c_conftest_c99_globals} 2474${ac_c_conftest_c11_globals} 2475 2476int 2477main (int argc, char **argv) 2478{ 2479 int ok = 0; 2480 ${ac_c_conftest_c89_main} 2481 ${ac_c_conftest_c99_main} 2482 ${ac_c_conftest_c11_main} 2483 return ok; 2484} 2485" 2486 2487# Test code for whether the C compiler supports C99 (complete). 2488ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2489${ac_c_conftest_c99_globals} 2490 2491int 2492main (int argc, char **argv) 2493{ 2494 int ok = 0; 2495 ${ac_c_conftest_c89_main} 2496 ${ac_c_conftest_c99_main} 2497 return ok; 2498} 2499" 2500 2501# Test code for whether the C compiler supports C89 (complete). 2502ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2503 2504int 2505main (int argc, char **argv) 2506{ 2507 int ok = 0; 2508 ${ac_c_conftest_c89_main} 2509 return ok; 2510} 2511" 2512 2513as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2514as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2515as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2516as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2517as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2518as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2519as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2520as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2521as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2522 2523# Auxiliary files required by this configure script. 2524ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2525 2526# Locations in which to look for auxiliary files. 2527ac_aux_dir_candidates="${srcdir}/." 2528 2529# Search for a directory containing all of the required auxiliary files, 2530# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2531# If we don't find one directory that contains all the files we need, 2532# we report the set of missing files from the *first* directory in 2533# $ac_aux_dir_candidates and give up. 2534ac_missing_aux_files="" 2535ac_first_candidate=: 2536printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538as_found=false 2539for as_dir in $ac_aux_dir_candidates 2540do 2541 IFS=$as_save_IFS 2542 case $as_dir in #((( 2543 '') as_dir=./ ;; 2544 */) ;; 2545 *) as_dir=$as_dir/ ;; 2546 esac 2547 as_found=: 2548 2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2550 ac_aux_dir_found=yes 2551 ac_install_sh= 2552 for ac_aux in $ac_aux_files 2553 do 2554 # As a special case, if "install-sh" is required, that requirement 2555 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2556 # and $ac_install_sh is set appropriately for whichever one is found. 2557 if test x"$ac_aux" = x"install-sh" 2558 then 2559 if test -f "${as_dir}install-sh"; then 2560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2561 ac_install_sh="${as_dir}install-sh -c" 2562 elif test -f "${as_dir}install.sh"; then 2563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2564 ac_install_sh="${as_dir}install.sh -c" 2565 elif test -f "${as_dir}shtool"; then 2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2567 ac_install_sh="${as_dir}shtool install -c" 2568 else 2569 ac_aux_dir_found=no 2570 if $ac_first_candidate; then 2571 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2572 else 2573 break 2574 fi 2575 fi 2576 else 2577 if test -f "${as_dir}${ac_aux}"; then 2578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2579 else 2580 ac_aux_dir_found=no 2581 if $ac_first_candidate; then 2582 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2583 else 2584 break 2585 fi 2586 fi 2587 fi 2588 done 2589 if test "$ac_aux_dir_found" = yes; then 2590 ac_aux_dir="$as_dir" 2591 break 2592 fi 2593 ac_first_candidate=false 2594 2595 as_found=false 2596done 2597IFS=$as_save_IFS 2598if $as_found 2599then : 2600 2601else $as_nop 2602 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2603fi 2604 2605 2606# These three variables are undocumented and unsupported, 2607# and are intended to be withdrawn in a future Autoconf release. 2608# They can cause serious problems if a builder's source tree is in a directory 2609# whose full name contains unusual characters. 2610if test -f "${ac_aux_dir}config.guess"; then 2611 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2612fi 2613if test -f "${ac_aux_dir}config.sub"; then 2614 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2615fi 2616if test -f "$ac_aux_dir/configure"; then 2617 ac_configure="$SHELL ${ac_aux_dir}configure" 2618fi 2619 2620# Check that the precious variables saved in the cache have kept the same 2621# value. 2622ac_cache_corrupted=false 2623for ac_var in $ac_precious_vars; do 2624 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2625 eval ac_new_set=\$ac_env_${ac_var}_set 2626 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2627 eval ac_new_val=\$ac_env_${ac_var}_value 2628 case $ac_old_set,$ac_new_set in 2629 set,) 2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2631printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2632 ac_cache_corrupted=: ;; 2633 ,set) 2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2635printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2636 ac_cache_corrupted=: ;; 2637 ,);; 2638 *) 2639 if test "x$ac_old_val" != "x$ac_new_val"; then 2640 # differences in whitespace do not lead to failure. 2641 ac_old_val_w=`echo x $ac_old_val` 2642 ac_new_val_w=`echo x $ac_new_val` 2643 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2645printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2646 ac_cache_corrupted=: 2647 else 2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2649printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2650 eval $ac_var=\$ac_old_val 2651 fi 2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2653printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2655printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2656 fi;; 2657 esac 2658 # Pass precious variables to config.status. 2659 if test "$ac_new_set" = set; then 2660 case $ac_new_val in 2661 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2662 *) ac_arg=$ac_var=$ac_new_val ;; 2663 esac 2664 case " $ac_configure_args " in 2665 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2666 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2667 esac 2668 fi 2669done 2670if $ac_cache_corrupted; then 2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2672printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2674printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2675 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2676 and start over" "$LINENO" 5 2677fi 2678## -------------------- ## 2679## Main body of script. ## 2680## -------------------- ## 2681 2682ac_ext=c 2683ac_cpp='$CPP $CPPFLAGS' 2684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2686ac_compiler_gnu=$ac_cv_c_compiler_gnu 2687 2688 2689 2690 2691ac_config_headers="$ac_config_headers config.h" 2692 2693 2694 2695 2696 2697# Initialize Automake 2698am__api_version='1.16' 2699 2700 2701 2702 # Find a good install program. We prefer a C program (faster), 2703# so one script is as good as another. But avoid the broken or 2704# incompatible versions: 2705# SysV /etc/install, /usr/sbin/install 2706# SunOS /usr/etc/install 2707# IRIX /sbin/install 2708# AIX /bin/install 2709# AmigaOS /C/install, which installs bootblocks on floppy discs 2710# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2711# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2712# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2713# OS/2's system install, which has a completely different semantic 2714# ./install, which can be erroneously created by make from ./install.sh. 2715# Reject install programs that cannot install multiple files. 2716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2717printf %s "checking for a BSD-compatible install... " >&6; } 2718if test -z "$INSTALL"; then 2719if test ${ac_cv_path_install+y} 2720then : 2721 printf %s "(cached) " >&6 2722else $as_nop 2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 case $as_dir in #((( 2728 '') as_dir=./ ;; 2729 */) ;; 2730 *) as_dir=$as_dir/ ;; 2731 esac 2732 # Account for fact that we put trailing slashes in our PATH walk. 2733case $as_dir in #(( 2734 ./ | /[cC]/* | \ 2735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2736 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2737 /usr/ucb/* ) ;; 2738 *) 2739 # OSF1 and SCO ODT 3.0 have their own names for install. 2740 # Don't use installbsd from OSF since it installs stuff as root 2741 # by default. 2742 for ac_prog in ginstall scoinst install; do 2743 for ac_exec_ext in '' $ac_executable_extensions; do 2744 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2745 if test $ac_prog = install && 2746 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2747 # AIX install. It has an incompatible calling convention. 2748 : 2749 elif test $ac_prog = install && 2750 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2751 # program-specific install script used by HP pwplus--don't use. 2752 : 2753 else 2754 rm -rf conftest.one conftest.two conftest.dir 2755 echo one > conftest.one 2756 echo two > conftest.two 2757 mkdir conftest.dir 2758 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2759 test -s conftest.one && test -s conftest.two && 2760 test -s conftest.dir/conftest.one && 2761 test -s conftest.dir/conftest.two 2762 then 2763 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2764 break 3 2765 fi 2766 fi 2767 fi 2768 done 2769 done 2770 ;; 2771esac 2772 2773 done 2774IFS=$as_save_IFS 2775 2776rm -rf conftest.one conftest.two conftest.dir 2777 2778fi 2779 if test ${ac_cv_path_install+y}; then 2780 INSTALL=$ac_cv_path_install 2781 else 2782 # As a last resort, use the slow shell script. Don't cache a 2783 # value for INSTALL within a source directory, because that will 2784 # break other packages using the cache if that directory is 2785 # removed, or if the value is a relative name. 2786 INSTALL=$ac_install_sh 2787 fi 2788fi 2789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2790printf "%s\n" "$INSTALL" >&6; } 2791 2792# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2793# It thinks the first close brace ends the variable substitution. 2794test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2795 2796test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2797 2798test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2799 2800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2801printf %s "checking whether build environment is sane... " >&6; } 2802# Reject unsafe characters in $srcdir or the absolute working directory 2803# name. Accept space and tab only in the latter. 2804am_lf=' 2805' 2806case `pwd` in 2807 *[\\\"\#\$\&\'\`$am_lf]*) 2808 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2809esac 2810case $srcdir in 2811 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2812 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2813esac 2814 2815# Do 'set' in a subshell so we don't clobber the current shell's 2816# arguments. Must try -L first in case configure is actually a 2817# symlink; some systems play weird games with the mod time of symlinks 2818# (eg FreeBSD returns the mod time of the symlink's containing 2819# directory). 2820if ( 2821 am_has_slept=no 2822 for am_try in 1 2; do 2823 echo "timestamp, slept: $am_has_slept" > conftest.file 2824 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2825 if test "$*" = "X"; then 2826 # -L didn't work. 2827 set X `ls -t "$srcdir/configure" conftest.file` 2828 fi 2829 if test "$*" != "X $srcdir/configure conftest.file" \ 2830 && test "$*" != "X conftest.file $srcdir/configure"; then 2831 2832 # If neither matched, then we have a broken ls. This can happen 2833 # if, for instance, CONFIG_SHELL is bash and it inherits a 2834 # broken ls alias from the environment. This has actually 2835 # happened. Such a system could not be considered "sane". 2836 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2837 alias in your environment" "$LINENO" 5 2838 fi 2839 if test "$2" = conftest.file || test $am_try -eq 2; then 2840 break 2841 fi 2842 # Just in case. 2843 sleep 1 2844 am_has_slept=yes 2845 done 2846 test "$2" = conftest.file 2847 ) 2848then 2849 # Ok. 2850 : 2851else 2852 as_fn_error $? "newly created file is older than distributed files! 2853Check your system clock" "$LINENO" 5 2854fi 2855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2856printf "%s\n" "yes" >&6; } 2857# If we didn't sleep, we still need to ensure time stamps of config.status and 2858# generated files are strictly newer. 2859am_sleep_pid= 2860if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2861 ( sleep 1 ) & 2862 am_sleep_pid=$! 2863fi 2864 2865rm -f conftest.file 2866 2867test "$program_prefix" != NONE && 2868 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2869# Use a double $ so make ignores it. 2870test "$program_suffix" != NONE && 2871 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2872# Double any \ or $. 2873# By default was `s,x,x', remove it if useless. 2874ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2875program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2876 2877 2878# Expand $ac_aux_dir to an absolute path. 2879am_aux_dir=`cd "$ac_aux_dir" && pwd` 2880 2881 2882 if test x"${MISSING+set}" != xset; then 2883 MISSING="\${SHELL} '$am_aux_dir/missing'" 2884fi 2885# Use eval to expand $SHELL 2886if eval "$MISSING --is-lightweight"; then 2887 am_missing_run="$MISSING " 2888else 2889 am_missing_run= 2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2891printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2892fi 2893 2894if test x"${install_sh+set}" != xset; then 2895 case $am_aux_dir in 2896 *\ * | *\ *) 2897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2898 *) 2899 install_sh="\${SHELL} $am_aux_dir/install-sh" 2900 esac 2901fi 2902 2903# Installed binaries are usually stripped using 'strip' when the user 2904# run "make install-strip". However 'strip' might not be the right 2905# tool to use in cross-compilation environments, therefore Automake 2906# will honor the 'STRIP' environment variable to overrule this program. 2907if test "$cross_compiling" != no; then 2908 if test -n "$ac_tool_prefix"; then 2909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2910set dummy ${ac_tool_prefix}strip; ac_word=$2 2911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2912printf %s "checking for $ac_word... " >&6; } 2913if test ${ac_cv_prog_STRIP+y} 2914then : 2915 printf %s "(cached) " >&6 2916else $as_nop 2917 if test -n "$STRIP"; then 2918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2919else 2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2921for as_dir in $PATH 2922do 2923 IFS=$as_save_IFS 2924 case $as_dir in #((( 2925 '') as_dir=./ ;; 2926 */) ;; 2927 *) as_dir=$as_dir/ ;; 2928 esac 2929 for ac_exec_ext in '' $ac_executable_extensions; do 2930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2931 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2933 break 2 2934 fi 2935done 2936 done 2937IFS=$as_save_IFS 2938 2939fi 2940fi 2941STRIP=$ac_cv_prog_STRIP 2942if test -n "$STRIP"; then 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2944printf "%s\n" "$STRIP" >&6; } 2945else 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2947printf "%s\n" "no" >&6; } 2948fi 2949 2950 2951fi 2952if test -z "$ac_cv_prog_STRIP"; then 2953 ac_ct_STRIP=$STRIP 2954 # Extract the first word of "strip", so it can be a program name with args. 2955set dummy strip; ac_word=$2 2956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2957printf %s "checking for $ac_word... " >&6; } 2958if test ${ac_cv_prog_ac_ct_STRIP+y} 2959then : 2960 printf %s "(cached) " >&6 2961else $as_nop 2962 if test -n "$ac_ct_STRIP"; then 2963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2964else 2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2966for as_dir in $PATH 2967do 2968 IFS=$as_save_IFS 2969 case $as_dir in #((( 2970 '') as_dir=./ ;; 2971 */) ;; 2972 *) as_dir=$as_dir/ ;; 2973 esac 2974 for ac_exec_ext in '' $ac_executable_extensions; do 2975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2976 ac_cv_prog_ac_ct_STRIP="strip" 2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2978 break 2 2979 fi 2980done 2981 done 2982IFS=$as_save_IFS 2983 2984fi 2985fi 2986ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2987if test -n "$ac_ct_STRIP"; then 2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2989printf "%s\n" "$ac_ct_STRIP" >&6; } 2990else 2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2992printf "%s\n" "no" >&6; } 2993fi 2994 2995 if test "x$ac_ct_STRIP" = x; then 2996 STRIP=":" 2997 else 2998 case $cross_compiling:$ac_tool_warned in 2999yes:) 3000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3001printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3002ac_tool_warned=yes ;; 3003esac 3004 STRIP=$ac_ct_STRIP 3005 fi 3006else 3007 STRIP="$ac_cv_prog_STRIP" 3008fi 3009 3010fi 3011INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3012 3013 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3015printf %s "checking for a race-free mkdir -p... " >&6; } 3016if test -z "$MKDIR_P"; then 3017 if test ${ac_cv_path_mkdir+y} 3018then : 3019 printf %s "(cached) " >&6 3020else $as_nop 3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3022for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3023do 3024 IFS=$as_save_IFS 3025 case $as_dir in #((( 3026 '') as_dir=./ ;; 3027 */) ;; 3028 *) as_dir=$as_dir/ ;; 3029 esac 3030 for ac_prog in mkdir gmkdir; do 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3033 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3034 'mkdir ('*'coreutils) '* | \ 3035 'BusyBox '* | \ 3036 'mkdir (fileutils) '4.1*) 3037 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3038 break 3;; 3039 esac 3040 done 3041 done 3042 done 3043IFS=$as_save_IFS 3044 3045fi 3046 3047 test -d ./--version && rmdir ./--version 3048 if test ${ac_cv_path_mkdir+y}; then 3049 MKDIR_P="$ac_cv_path_mkdir -p" 3050 else 3051 # As a last resort, use the slow shell script. Don't cache a 3052 # value for MKDIR_P within a source directory, because that will 3053 # break other packages using the cache if that directory is 3054 # removed, or if the value is a relative name. 3055 MKDIR_P="$ac_install_sh -d" 3056 fi 3057fi 3058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3059printf "%s\n" "$MKDIR_P" >&6; } 3060 3061for ac_prog in gawk mawk nawk awk 3062do 3063 # Extract the first word of "$ac_prog", so it can be a program name with args. 3064set dummy $ac_prog; ac_word=$2 3065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3066printf %s "checking for $ac_word... " >&6; } 3067if test ${ac_cv_prog_AWK+y} 3068then : 3069 printf %s "(cached) " >&6 3070else $as_nop 3071 if test -n "$AWK"; then 3072 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3073else 3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3075for as_dir in $PATH 3076do 3077 IFS=$as_save_IFS 3078 case $as_dir in #((( 3079 '') as_dir=./ ;; 3080 */) ;; 3081 *) as_dir=$as_dir/ ;; 3082 esac 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_AWK="$ac_prog" 3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090 done 3091IFS=$as_save_IFS 3092 3093fi 3094fi 3095AWK=$ac_cv_prog_AWK 3096if test -n "$AWK"; then 3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3098printf "%s\n" "$AWK" >&6; } 3099else 3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101printf "%s\n" "no" >&6; } 3102fi 3103 3104 3105 test -n "$AWK" && break 3106done 3107 3108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3109printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3110set x ${MAKE-make} 3111ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3112if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3113then : 3114 printf %s "(cached) " >&6 3115else $as_nop 3116 cat >conftest.make <<\_ACEOF 3117SHELL = /bin/sh 3118all: 3119 @echo '@@@%%%=$(MAKE)=@@@%%%' 3120_ACEOF 3121# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3122case `${MAKE-make} -f conftest.make 2>/dev/null` in 3123 *@@@%%%=?*=@@@%%%*) 3124 eval ac_cv_prog_make_${ac_make}_set=yes;; 3125 *) 3126 eval ac_cv_prog_make_${ac_make}_set=no;; 3127esac 3128rm -f conftest.make 3129fi 3130if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3132printf "%s\n" "yes" >&6; } 3133 SET_MAKE= 3134else 3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136printf "%s\n" "no" >&6; } 3137 SET_MAKE="MAKE=${MAKE-make}" 3138fi 3139 3140rm -rf .tst 2>/dev/null 3141mkdir .tst 2>/dev/null 3142if test -d .tst; then 3143 am__leading_dot=. 3144else 3145 am__leading_dot=_ 3146fi 3147rmdir .tst 2>/dev/null 3148 3149# Check whether --enable-silent-rules was given. 3150if test ${enable_silent_rules+y} 3151then : 3152 enableval=$enable_silent_rules; 3153fi 3154 3155case $enable_silent_rules in # ((( 3156 yes) AM_DEFAULT_VERBOSITY=0;; 3157 no) AM_DEFAULT_VERBOSITY=1;; 3158 *) AM_DEFAULT_VERBOSITY=1;; 3159esac 3160am_make=${MAKE-make} 3161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3162printf %s "checking whether $am_make supports nested variables... " >&6; } 3163if test ${am_cv_make_support_nested_variables+y} 3164then : 3165 printf %s "(cached) " >&6 3166else $as_nop 3167 if printf "%s\n" 'TRUE=$(BAR$(V)) 3168BAR0=false 3169BAR1=true 3170V=1 3171am__doit: 3172 @$(TRUE) 3173.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3174 am_cv_make_support_nested_variables=yes 3175else 3176 am_cv_make_support_nested_variables=no 3177fi 3178fi 3179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3180printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3181if test $am_cv_make_support_nested_variables = yes; then 3182 AM_V='$(V)' 3183 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3184else 3185 AM_V=$AM_DEFAULT_VERBOSITY 3186 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3187fi 3188AM_BACKSLASH='\' 3189 3190if test "`cd $srcdir && pwd`" != "`pwd`"; then 3191 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3192 # is not polluted with repeated "-I." 3193 am__isrc=' -I$(srcdir)' 3194 # test to see if srcdir already configured 3195 if test -f $srcdir/config.status; then 3196 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3197 fi 3198fi 3199 3200# test whether we have cygpath 3201if test -z "$CYGPATH_W"; then 3202 if (cygpath --version) >/dev/null 2>/dev/null; then 3203 CYGPATH_W='cygpath -w' 3204 else 3205 CYGPATH_W=echo 3206 fi 3207fi 3208 3209 3210# Define the identity of the package. 3211 PACKAGE='xf86-video-amdgpu' 3212 VERSION='23.0.0' 3213 3214 3215printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3216 3217 3218printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3219 3220# Some tools Automake needs. 3221 3222ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3223 3224 3225AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3226 3227 3228AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3229 3230 3231AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3232 3233 3234MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3235 3236# For better backward compatibility. To be removed once Automake 1.9.x 3237# dies out for good. For more background, see: 3238# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3239# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3240mkdir_p='$(MKDIR_P)' 3241 3242# We need awk for the "check" target (and possibly the TAP driver). The 3243# system "awk" is bad on some platforms. 3244# Always define AMTAR for backward compatibility. Yes, it's still used 3245# in the wild :-( We should find a proper way to deprecate it ... 3246AMTAR='$${TAR-tar}' 3247 3248 3249# We'll loop over all known methods to create a tar archive until one works. 3250_am_tools='gnutar pax cpio none' 3251 3252am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3253 3254 3255 3256 3257 3258# Variables for tags utilities; see am/tags.am 3259if test -z "$CTAGS"; then 3260 CTAGS=ctags 3261fi 3262 3263if test -z "$ETAGS"; then 3264 ETAGS=etags 3265fi 3266 3267if test -z "$CSCOPE"; then 3268 CSCOPE=cscope 3269fi 3270 3271 3272 3273# POSIX will say in a future version that running "rm -f" with no argument 3274# is OK; and we want to be able to make that assumption in our Makefile 3275# recipes. So use an aggressive probe to check that the usage we want is 3276# actually supported "in the wild" to an acceptable degree. 3277# See automake bug#10828. 3278# To make any issue more visible, cause the running configure to be aborted 3279# by default if the 'rm' program in use doesn't match our expectations; the 3280# user can still override this though. 3281if rm -f && rm -fr && rm -rf; then : OK; else 3282 cat >&2 <<'END' 3283Oops! 3284 3285Your 'rm' program seems unable to run without file operands specified 3286on the command line, even when the '-f' option is present. This is contrary 3287to the behaviour of most rm programs out there, and not conforming with 3288the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3289 3290Please tell bug-automake@gnu.org about your system, including the value 3291of your $PATH and any error possibly output before this message. This 3292can help us improve future automake versions. 3293 3294END 3295 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3296 echo 'Configuration will proceed anyway, since you have set the' >&2 3297 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3298 echo >&2 3299 else 3300 cat >&2 <<'END' 3301Aborting the configuration process, to ensure you take notice of the issue. 3302 3303You can download and install GNU coreutils to get an 'rm' implementation 3304that behaves properly: <https://www.gnu.org/software/coreutils/>. 3305 3306If you want to complete the configuration process using your problematic 3307'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3308to "yes", and re-run configure. 3309 3310END 3311 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3312 fi 3313fi 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324DEPDIR="${am__leading_dot}deps" 3325 3326ac_config_commands="$ac_config_commands depfiles" 3327 3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3329printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3330cat > confinc.mk << 'END' 3331am__doit: 3332 @echo this is the am__doit target >confinc.out 3333.PHONY: am__doit 3334END 3335am__include="#" 3336am__quote= 3337# BSD make does it like this. 3338echo '.include "confinc.mk" # ignored' > confmf.BSD 3339# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3340echo 'include confinc.mk # ignored' > confmf.GNU 3341_am_result=no 3342for s in GNU BSD; do 3343 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3344 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3345 ac_status=$? 3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3347 (exit $ac_status); } 3348 case $?:`cat confinc.out 2>/dev/null` in #( 3349 '0:this is the am__doit target') : 3350 case $s in #( 3351 BSD) : 3352 am__include='.include' am__quote='"' ;; #( 3353 *) : 3354 am__include='include' am__quote='' ;; 3355esac ;; #( 3356 *) : 3357 ;; 3358esac 3359 if test "$am__include" != "#"; then 3360 _am_result="yes ($s style)" 3361 break 3362 fi 3363done 3364rm -f confinc.* confmf.* 3365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3366printf "%s\n" "${_am_result}" >&6; } 3367 3368# Check whether --enable-dependency-tracking was given. 3369if test ${enable_dependency_tracking+y} 3370then : 3371 enableval=$enable_dependency_tracking; 3372fi 3373 3374if test "x$enable_dependency_tracking" != xno; then 3375 am_depcomp="$ac_aux_dir/depcomp" 3376 AMDEPBACKSLASH='\' 3377 am__nodep='_no' 3378fi 3379 if test "x$enable_dependency_tracking" != xno; then 3380 AMDEP_TRUE= 3381 AMDEP_FALSE='#' 3382else 3383 AMDEP_TRUE='#' 3384 AMDEP_FALSE= 3385fi 3386 3387 3388ac_ext=c 3389ac_cpp='$CPP $CPPFLAGS' 3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3392ac_compiler_gnu=$ac_cv_c_compiler_gnu 3393if test -n "$ac_tool_prefix"; then 3394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3395set dummy ${ac_tool_prefix}gcc; ac_word=$2 3396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3397printf %s "checking for $ac_word... " >&6; } 3398if test ${ac_cv_prog_CC+y} 3399then : 3400 printf %s "(cached) " >&6 3401else $as_nop 3402 if test -n "$CC"; then 3403 ac_cv_prog_CC="$CC" # Let the user override the test. 3404else 3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3406for as_dir in $PATH 3407do 3408 IFS=$as_save_IFS 3409 case $as_dir in #((( 3410 '') as_dir=./ ;; 3411 */) ;; 3412 *) as_dir=$as_dir/ ;; 3413 esac 3414 for ac_exec_ext in '' $ac_executable_extensions; do 3415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3416 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3418 break 2 3419 fi 3420done 3421 done 3422IFS=$as_save_IFS 3423 3424fi 3425fi 3426CC=$ac_cv_prog_CC 3427if test -n "$CC"; then 3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3429printf "%s\n" "$CC" >&6; } 3430else 3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3432printf "%s\n" "no" >&6; } 3433fi 3434 3435 3436fi 3437if test -z "$ac_cv_prog_CC"; then 3438 ac_ct_CC=$CC 3439 # Extract the first word of "gcc", so it can be a program name with args. 3440set dummy gcc; ac_word=$2 3441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3442printf %s "checking for $ac_word... " >&6; } 3443if test ${ac_cv_prog_ac_ct_CC+y} 3444then : 3445 printf %s "(cached) " >&6 3446else $as_nop 3447 if test -n "$ac_ct_CC"; then 3448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3449else 3450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3451for as_dir in $PATH 3452do 3453 IFS=$as_save_IFS 3454 case $as_dir in #((( 3455 '') as_dir=./ ;; 3456 */) ;; 3457 *) as_dir=$as_dir/ ;; 3458 esac 3459 for ac_exec_ext in '' $ac_executable_extensions; do 3460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3461 ac_cv_prog_ac_ct_CC="gcc" 3462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3463 break 2 3464 fi 3465done 3466 done 3467IFS=$as_save_IFS 3468 3469fi 3470fi 3471ac_ct_CC=$ac_cv_prog_ac_ct_CC 3472if test -n "$ac_ct_CC"; then 3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3474printf "%s\n" "$ac_ct_CC" >&6; } 3475else 3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3477printf "%s\n" "no" >&6; } 3478fi 3479 3480 if test "x$ac_ct_CC" = x; then 3481 CC="" 3482 else 3483 case $cross_compiling:$ac_tool_warned in 3484yes:) 3485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3486printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3487ac_tool_warned=yes ;; 3488esac 3489 CC=$ac_ct_CC 3490 fi 3491else 3492 CC="$ac_cv_prog_CC" 3493fi 3494 3495if test -z "$CC"; then 3496 if test -n "$ac_tool_prefix"; then 3497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3498set dummy ${ac_tool_prefix}cc; ac_word=$2 3499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3500printf %s "checking for $ac_word... " >&6; } 3501if test ${ac_cv_prog_CC+y} 3502then : 3503 printf %s "(cached) " >&6 3504else $as_nop 3505 if test -n "$CC"; then 3506 ac_cv_prog_CC="$CC" # Let the user override the test. 3507else 3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH 3510do 3511 IFS=$as_save_IFS 3512 case $as_dir in #((( 3513 '') as_dir=./ ;; 3514 */) ;; 3515 *) as_dir=$as_dir/ ;; 3516 esac 3517 for ac_exec_ext in '' $ac_executable_extensions; do 3518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3519 ac_cv_prog_CC="${ac_tool_prefix}cc" 3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3521 break 2 3522 fi 3523done 3524 done 3525IFS=$as_save_IFS 3526 3527fi 3528fi 3529CC=$ac_cv_prog_CC 3530if test -n "$CC"; then 3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3532printf "%s\n" "$CC" >&6; } 3533else 3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3535printf "%s\n" "no" >&6; } 3536fi 3537 3538 3539 fi 3540fi 3541if test -z "$CC"; then 3542 # Extract the first word of "cc", so it can be a program name with args. 3543set dummy cc; ac_word=$2 3544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3545printf %s "checking for $ac_word... " >&6; } 3546if test ${ac_cv_prog_CC+y} 3547then : 3548 printf %s "(cached) " >&6 3549else $as_nop 3550 if test -n "$CC"; then 3551 ac_cv_prog_CC="$CC" # Let the user override the test. 3552else 3553 ac_prog_rejected=no 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 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3566 ac_prog_rejected=yes 3567 continue 3568 fi 3569 ac_cv_prog_CC="cc" 3570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3571 break 2 3572 fi 3573done 3574 done 3575IFS=$as_save_IFS 3576 3577if test $ac_prog_rejected = yes; then 3578 # We found a bogon in the path, so make sure we never use it. 3579 set dummy $ac_cv_prog_CC 3580 shift 3581 if test $# != 0; then 3582 # We chose a different compiler from the bogus one. 3583 # However, it has the same basename, so the bogon will be chosen 3584 # first if we set CC to just the basename; use the full file name. 3585 shift 3586 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3587 fi 3588fi 3589fi 3590fi 3591CC=$ac_cv_prog_CC 3592if test -n "$CC"; then 3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3594printf "%s\n" "$CC" >&6; } 3595else 3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3597printf "%s\n" "no" >&6; } 3598fi 3599 3600 3601fi 3602if test -z "$CC"; then 3603 if test -n "$ac_tool_prefix"; then 3604 for ac_prog in cl.exe 3605 do 3606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3607set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3609printf %s "checking for $ac_word... " >&6; } 3610if test ${ac_cv_prog_CC+y} 3611then : 3612 printf %s "(cached) " >&6 3613else $as_nop 3614 if test -n "$CC"; then 3615 ac_cv_prog_CC="$CC" # Let the user override the test. 3616else 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH 3619do 3620 IFS=$as_save_IFS 3621 case $as_dir in #((( 3622 '') as_dir=./ ;; 3623 */) ;; 3624 *) as_dir=$as_dir/ ;; 3625 esac 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3630 break 2 3631 fi 3632done 3633 done 3634IFS=$as_save_IFS 3635 3636fi 3637fi 3638CC=$ac_cv_prog_CC 3639if test -n "$CC"; then 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3641printf "%s\n" "$CC" >&6; } 3642else 3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644printf "%s\n" "no" >&6; } 3645fi 3646 3647 3648 test -n "$CC" && break 3649 done 3650fi 3651if test -z "$CC"; then 3652 ac_ct_CC=$CC 3653 for ac_prog in cl.exe 3654do 3655 # Extract the first word of "$ac_prog", so it can be a program name with args. 3656set dummy $ac_prog; ac_word=$2 3657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3658printf %s "checking for $ac_word... " >&6; } 3659if test ${ac_cv_prog_ac_ct_CC+y} 3660then : 3661 printf %s "(cached) " >&6 3662else $as_nop 3663 if test -n "$ac_ct_CC"; then 3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3665else 3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3667for as_dir in $PATH 3668do 3669 IFS=$as_save_IFS 3670 case $as_dir in #((( 3671 '') as_dir=./ ;; 3672 */) ;; 3673 *) as_dir=$as_dir/ ;; 3674 esac 3675 for ac_exec_ext in '' $ac_executable_extensions; do 3676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3677 ac_cv_prog_ac_ct_CC="$ac_prog" 3678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3679 break 2 3680 fi 3681done 3682 done 3683IFS=$as_save_IFS 3684 3685fi 3686fi 3687ac_ct_CC=$ac_cv_prog_ac_ct_CC 3688if test -n "$ac_ct_CC"; then 3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3690printf "%s\n" "$ac_ct_CC" >&6; } 3691else 3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3693printf "%s\n" "no" >&6; } 3694fi 3695 3696 3697 test -n "$ac_ct_CC" && break 3698done 3699 3700 if test "x$ac_ct_CC" = x; then 3701 CC="" 3702 else 3703 case $cross_compiling:$ac_tool_warned in 3704yes:) 3705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3706printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3707ac_tool_warned=yes ;; 3708esac 3709 CC=$ac_ct_CC 3710 fi 3711fi 3712 3713fi 3714if test -z "$CC"; then 3715 if test -n "$ac_tool_prefix"; then 3716 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3717set dummy ${ac_tool_prefix}clang; ac_word=$2 3718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3719printf %s "checking for $ac_word... " >&6; } 3720if test ${ac_cv_prog_CC+y} 3721then : 3722 printf %s "(cached) " >&6 3723else $as_nop 3724 if test -n "$CC"; then 3725 ac_cv_prog_CC="$CC" # Let the user override the test. 3726else 3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3728for as_dir in $PATH 3729do 3730 IFS=$as_save_IFS 3731 case $as_dir in #((( 3732 '') as_dir=./ ;; 3733 */) ;; 3734 *) as_dir=$as_dir/ ;; 3735 esac 3736 for ac_exec_ext in '' $ac_executable_extensions; do 3737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3738 ac_cv_prog_CC="${ac_tool_prefix}clang" 3739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3740 break 2 3741 fi 3742done 3743 done 3744IFS=$as_save_IFS 3745 3746fi 3747fi 3748CC=$ac_cv_prog_CC 3749if test -n "$CC"; then 3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3751printf "%s\n" "$CC" >&6; } 3752else 3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3754printf "%s\n" "no" >&6; } 3755fi 3756 3757 3758fi 3759if test -z "$ac_cv_prog_CC"; then 3760 ac_ct_CC=$CC 3761 # Extract the first word of "clang", so it can be a program name with args. 3762set dummy clang; ac_word=$2 3763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3764printf %s "checking for $ac_word... " >&6; } 3765if test ${ac_cv_prog_ac_ct_CC+y} 3766then : 3767 printf %s "(cached) " >&6 3768else $as_nop 3769 if test -n "$ac_ct_CC"; then 3770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3771else 3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3773for as_dir in $PATH 3774do 3775 IFS=$as_save_IFS 3776 case $as_dir in #((( 3777 '') as_dir=./ ;; 3778 */) ;; 3779 *) as_dir=$as_dir/ ;; 3780 esac 3781 for ac_exec_ext in '' $ac_executable_extensions; do 3782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3783 ac_cv_prog_ac_ct_CC="clang" 3784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3785 break 2 3786 fi 3787done 3788 done 3789IFS=$as_save_IFS 3790 3791fi 3792fi 3793ac_ct_CC=$ac_cv_prog_ac_ct_CC 3794if test -n "$ac_ct_CC"; then 3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3796printf "%s\n" "$ac_ct_CC" >&6; } 3797else 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3799printf "%s\n" "no" >&6; } 3800fi 3801 3802 if test "x$ac_ct_CC" = x; then 3803 CC="" 3804 else 3805 case $cross_compiling:$ac_tool_warned in 3806yes:) 3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3808printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3809ac_tool_warned=yes ;; 3810esac 3811 CC=$ac_ct_CC 3812 fi 3813else 3814 CC="$ac_cv_prog_CC" 3815fi 3816 3817fi 3818 3819 3820test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3821printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3822as_fn_error $? "no acceptable C compiler found in \$PATH 3823See \`config.log' for more details" "$LINENO" 5; } 3824 3825# Provide some information about the compiler. 3826printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3827set X $ac_compile 3828ac_compiler=$2 3829for ac_option in --version -v -V -qversion -version; do 3830 { { ac_try="$ac_compiler $ac_option >&5" 3831case "(($ac_try" in 3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3833 *) ac_try_echo=$ac_try;; 3834esac 3835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3836printf "%s\n" "$ac_try_echo"; } >&5 3837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3838 ac_status=$? 3839 if test -s conftest.err; then 3840 sed '10a\ 3841... rest of stderr output deleted ... 3842 10q' conftest.err >conftest.er1 3843 cat conftest.er1 >&5 3844 fi 3845 rm -f conftest.er1 conftest.err 3846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3847 test $ac_status = 0; } 3848done 3849 3850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3851/* end confdefs.h. */ 3852 3853int 3854main (void) 3855{ 3856 3857 ; 3858 return 0; 3859} 3860_ACEOF 3861ac_clean_files_save=$ac_clean_files 3862ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3863# Try to create an executable without -o first, disregard a.out. 3864# It will help us diagnose broken compilers, and finding out an intuition 3865# of exeext. 3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3867printf %s "checking whether the C compiler works... " >&6; } 3868ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3869 3870# The possible output files: 3871ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3872 3873ac_rmfiles= 3874for ac_file in $ac_files 3875do 3876 case $ac_file in 3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3878 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3879 esac 3880done 3881rm -f $ac_rmfiles 3882 3883if { { ac_try="$ac_link_default" 3884case "(($ac_try" in 3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3886 *) ac_try_echo=$ac_try;; 3887esac 3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3889printf "%s\n" "$ac_try_echo"; } >&5 3890 (eval "$ac_link_default") 2>&5 3891 ac_status=$? 3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3893 test $ac_status = 0; } 3894then : 3895 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3896# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3897# in a Makefile. We should not override ac_cv_exeext if it was cached, 3898# so that the user can short-circuit this test for compilers unknown to 3899# Autoconf. 3900for ac_file in $ac_files '' 3901do 3902 test -f "$ac_file" || continue 3903 case $ac_file in 3904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3905 ;; 3906 [ab].out ) 3907 # We found the default executable, but exeext='' is most 3908 # certainly right. 3909 break;; 3910 *.* ) 3911 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3912 then :; else 3913 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3914 fi 3915 # We set ac_cv_exeext here because the later test for it is not 3916 # safe: cross compilers may not add the suffix if given an `-o' 3917 # argument, so we may need to know it at that point already. 3918 # Even if this section looks crufty: it has the advantage of 3919 # actually working. 3920 break;; 3921 * ) 3922 break;; 3923 esac 3924done 3925test "$ac_cv_exeext" = no && ac_cv_exeext= 3926 3927else $as_nop 3928 ac_file='' 3929fi 3930if test -z "$ac_file" 3931then : 3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3933printf "%s\n" "no" >&6; } 3934printf "%s\n" "$as_me: failed program was:" >&5 3935sed 's/^/| /' conftest.$ac_ext >&5 3936 3937{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3938printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3939as_fn_error 77 "C compiler cannot create executables 3940See \`config.log' for more details" "$LINENO" 5; } 3941else $as_nop 3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3943printf "%s\n" "yes" >&6; } 3944fi 3945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3946printf %s "checking for C compiler default output file name... " >&6; } 3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3948printf "%s\n" "$ac_file" >&6; } 3949ac_exeext=$ac_cv_exeext 3950 3951rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3952ac_clean_files=$ac_clean_files_save 3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3954printf %s "checking for suffix of executables... " >&6; } 3955if { { ac_try="$ac_link" 3956case "(($ac_try" in 3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3958 *) ac_try_echo=$ac_try;; 3959esac 3960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3961printf "%s\n" "$ac_try_echo"; } >&5 3962 (eval "$ac_link") 2>&5 3963 ac_status=$? 3964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3965 test $ac_status = 0; } 3966then : 3967 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3968# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3969# work properly (i.e., refer to `conftest.exe'), while it won't with 3970# `rm'. 3971for ac_file in conftest.exe conftest conftest.*; do 3972 test -f "$ac_file" || continue 3973 case $ac_file in 3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3976 break;; 3977 * ) break;; 3978 esac 3979done 3980else $as_nop 3981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3982printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3983as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3984See \`config.log' for more details" "$LINENO" 5; } 3985fi 3986rm -f conftest conftest$ac_cv_exeext 3987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3988printf "%s\n" "$ac_cv_exeext" >&6; } 3989 3990rm -f conftest.$ac_ext 3991EXEEXT=$ac_cv_exeext 3992ac_exeext=$EXEEXT 3993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995#include <stdio.h> 3996int 3997main (void) 3998{ 3999FILE *f = fopen ("conftest.out", "w"); 4000 return ferror (f) || fclose (f) != 0; 4001 4002 ; 4003 return 0; 4004} 4005_ACEOF 4006ac_clean_files="$ac_clean_files conftest.out" 4007# Check that the compiler produces executables we can run. If not, either 4008# the compiler is broken, or we cross compile. 4009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4010printf %s "checking whether we are cross compiling... " >&6; } 4011if test "$cross_compiling" != yes; then 4012 { { ac_try="$ac_link" 4013case "(($ac_try" in 4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4015 *) ac_try_echo=$ac_try;; 4016esac 4017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4018printf "%s\n" "$ac_try_echo"; } >&5 4019 (eval "$ac_link") 2>&5 4020 ac_status=$? 4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4022 test $ac_status = 0; } 4023 if { ac_try='./conftest$ac_cv_exeext' 4024 { { case "(($ac_try" in 4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4026 *) ac_try_echo=$ac_try;; 4027esac 4028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4029printf "%s\n" "$ac_try_echo"; } >&5 4030 (eval "$ac_try") 2>&5 4031 ac_status=$? 4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4033 test $ac_status = 0; }; }; then 4034 cross_compiling=no 4035 else 4036 if test "$cross_compiling" = maybe; then 4037 cross_compiling=yes 4038 else 4039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4040printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4041as_fn_error 77 "cannot run C compiled programs. 4042If you meant to cross compile, use \`--host'. 4043See \`config.log' for more details" "$LINENO" 5; } 4044 fi 4045 fi 4046fi 4047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4048printf "%s\n" "$cross_compiling" >&6; } 4049 4050rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4051ac_clean_files=$ac_clean_files_save 4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4053printf %s "checking for suffix of object files... " >&6; } 4054if test ${ac_cv_objext+y} 4055then : 4056 printf %s "(cached) " >&6 4057else $as_nop 4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4059/* end confdefs.h. */ 4060 4061int 4062main (void) 4063{ 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069rm -f conftest.o conftest.obj 4070if { { ac_try="$ac_compile" 4071case "(($ac_try" in 4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4073 *) ac_try_echo=$ac_try;; 4074esac 4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4076printf "%s\n" "$ac_try_echo"; } >&5 4077 (eval "$ac_compile") 2>&5 4078 ac_status=$? 4079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4080 test $ac_status = 0; } 4081then : 4082 for ac_file in conftest.o conftest.obj conftest.*; do 4083 test -f "$ac_file" || continue; 4084 case $ac_file in 4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4087 break;; 4088 esac 4089done 4090else $as_nop 4091 printf "%s\n" "$as_me: failed program was:" >&5 4092sed 's/^/| /' conftest.$ac_ext >&5 4093 4094{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4095printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4096as_fn_error $? "cannot compute suffix of object files: cannot compile 4097See \`config.log' for more details" "$LINENO" 5; } 4098fi 4099rm -f conftest.$ac_cv_objext conftest.$ac_ext 4100fi 4101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4102printf "%s\n" "$ac_cv_objext" >&6; } 4103OBJEXT=$ac_cv_objext 4104ac_objext=$OBJEXT 4105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4106printf %s "checking whether the compiler supports GNU C... " >&6; } 4107if test ${ac_cv_c_compiler_gnu+y} 4108then : 4109 printf %s "(cached) " >&6 4110else $as_nop 4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4112/* end confdefs.h. */ 4113 4114int 4115main (void) 4116{ 4117#ifndef __GNUC__ 4118 choke me 4119#endif 4120 4121 ; 4122 return 0; 4123} 4124_ACEOF 4125if ac_fn_c_try_compile "$LINENO" 4126then : 4127 ac_compiler_gnu=yes 4128else $as_nop 4129 ac_compiler_gnu=no 4130fi 4131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4132ac_cv_c_compiler_gnu=$ac_compiler_gnu 4133 4134fi 4135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4136printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4137ac_compiler_gnu=$ac_cv_c_compiler_gnu 4138 4139if test $ac_compiler_gnu = yes; then 4140 GCC=yes 4141else 4142 GCC= 4143fi 4144ac_test_CFLAGS=${CFLAGS+y} 4145ac_save_CFLAGS=$CFLAGS 4146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4147printf %s "checking whether $CC accepts -g... " >&6; } 4148if test ${ac_cv_prog_cc_g+y} 4149then : 4150 printf %s "(cached) " >&6 4151else $as_nop 4152 ac_save_c_werror_flag=$ac_c_werror_flag 4153 ac_c_werror_flag=yes 4154 ac_cv_prog_cc_g=no 4155 CFLAGS="-g" 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157/* end confdefs.h. */ 4158 4159int 4160main (void) 4161{ 4162 4163 ; 4164 return 0; 4165} 4166_ACEOF 4167if ac_fn_c_try_compile "$LINENO" 4168then : 4169 ac_cv_prog_cc_g=yes 4170else $as_nop 4171 CFLAGS="" 4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173/* end confdefs.h. */ 4174 4175int 4176main (void) 4177{ 4178 4179 ; 4180 return 0; 4181} 4182_ACEOF 4183if ac_fn_c_try_compile "$LINENO" 4184then : 4185 4186else $as_nop 4187 ac_c_werror_flag=$ac_save_c_werror_flag 4188 CFLAGS="-g" 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191 4192int 4193main (void) 4194{ 4195 4196 ; 4197 return 0; 4198} 4199_ACEOF 4200if ac_fn_c_try_compile "$LINENO" 4201then : 4202 ac_cv_prog_cc_g=yes 4203fi 4204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4205fi 4206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4207fi 4208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4209 ac_c_werror_flag=$ac_save_c_werror_flag 4210fi 4211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4212printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4213if test $ac_test_CFLAGS; then 4214 CFLAGS=$ac_save_CFLAGS 4215elif test $ac_cv_prog_cc_g = yes; then 4216 if test "$GCC" = yes; then 4217 CFLAGS="-g -O2" 4218 else 4219 CFLAGS="-g" 4220 fi 4221else 4222 if test "$GCC" = yes; then 4223 CFLAGS="-O2" 4224 else 4225 CFLAGS= 4226 fi 4227fi 4228ac_prog_cc_stdc=no 4229if test x$ac_prog_cc_stdc = xno 4230then : 4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4232printf %s "checking for $CC option to enable C11 features... " >&6; } 4233if test ${ac_cv_prog_cc_c11+y} 4234then : 4235 printf %s "(cached) " >&6 4236else $as_nop 4237 ac_cv_prog_cc_c11=no 4238ac_save_CC=$CC 4239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4240/* end confdefs.h. */ 4241$ac_c_conftest_c11_program 4242_ACEOF 4243for ac_arg in '' -std=gnu11 4244do 4245 CC="$ac_save_CC $ac_arg" 4246 if ac_fn_c_try_compile "$LINENO" 4247then : 4248 ac_cv_prog_cc_c11=$ac_arg 4249fi 4250rm -f core conftest.err conftest.$ac_objext conftest.beam 4251 test "x$ac_cv_prog_cc_c11" != "xno" && break 4252done 4253rm -f conftest.$ac_ext 4254CC=$ac_save_CC 4255fi 4256 4257if test "x$ac_cv_prog_cc_c11" = xno 4258then : 4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4260printf "%s\n" "unsupported" >&6; } 4261else $as_nop 4262 if test "x$ac_cv_prog_cc_c11" = x 4263then : 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4265printf "%s\n" "none needed" >&6; } 4266else $as_nop 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4268printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4269 CC="$CC $ac_cv_prog_cc_c11" 4270fi 4271 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4272 ac_prog_cc_stdc=c11 4273fi 4274fi 4275if test x$ac_prog_cc_stdc = xno 4276then : 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4278printf %s "checking for $CC option to enable C99 features... " >&6; } 4279if test ${ac_cv_prog_cc_c99+y} 4280then : 4281 printf %s "(cached) " >&6 4282else $as_nop 4283 ac_cv_prog_cc_c99=no 4284ac_save_CC=$CC 4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287$ac_c_conftest_c99_program 4288_ACEOF 4289for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4290do 4291 CC="$ac_save_CC $ac_arg" 4292 if ac_fn_c_try_compile "$LINENO" 4293then : 4294 ac_cv_prog_cc_c99=$ac_arg 4295fi 4296rm -f core conftest.err conftest.$ac_objext conftest.beam 4297 test "x$ac_cv_prog_cc_c99" != "xno" && break 4298done 4299rm -f conftest.$ac_ext 4300CC=$ac_save_CC 4301fi 4302 4303if test "x$ac_cv_prog_cc_c99" = xno 4304then : 4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4306printf "%s\n" "unsupported" >&6; } 4307else $as_nop 4308 if test "x$ac_cv_prog_cc_c99" = x 4309then : 4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4311printf "%s\n" "none needed" >&6; } 4312else $as_nop 4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4314printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4315 CC="$CC $ac_cv_prog_cc_c99" 4316fi 4317 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4318 ac_prog_cc_stdc=c99 4319fi 4320fi 4321if test x$ac_prog_cc_stdc = xno 4322then : 4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4324printf %s "checking for $CC option to enable C89 features... " >&6; } 4325if test ${ac_cv_prog_cc_c89+y} 4326then : 4327 printf %s "(cached) " >&6 4328else $as_nop 4329 ac_cv_prog_cc_c89=no 4330ac_save_CC=$CC 4331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4332/* end confdefs.h. */ 4333$ac_c_conftest_c89_program 4334_ACEOF 4335for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4336do 4337 CC="$ac_save_CC $ac_arg" 4338 if ac_fn_c_try_compile "$LINENO" 4339then : 4340 ac_cv_prog_cc_c89=$ac_arg 4341fi 4342rm -f core conftest.err conftest.$ac_objext conftest.beam 4343 test "x$ac_cv_prog_cc_c89" != "xno" && break 4344done 4345rm -f conftest.$ac_ext 4346CC=$ac_save_CC 4347fi 4348 4349if test "x$ac_cv_prog_cc_c89" = xno 4350then : 4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4352printf "%s\n" "unsupported" >&6; } 4353else $as_nop 4354 if test "x$ac_cv_prog_cc_c89" = x 4355then : 4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4357printf "%s\n" "none needed" >&6; } 4358else $as_nop 4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4360printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4361 CC="$CC $ac_cv_prog_cc_c89" 4362fi 4363 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4364 ac_prog_cc_stdc=c89 4365fi 4366fi 4367 4368ac_ext=c 4369ac_cpp='$CPP $CPPFLAGS' 4370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4372ac_compiler_gnu=$ac_cv_c_compiler_gnu 4373 4374 4375 ac_ext=c 4376ac_cpp='$CPP $CPPFLAGS' 4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4379ac_compiler_gnu=$ac_cv_c_compiler_gnu 4380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4381printf %s "checking whether $CC understands -c and -o together... " >&6; } 4382if test ${am_cv_prog_cc_c_o+y} 4383then : 4384 printf %s "(cached) " >&6 4385else $as_nop 4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4387/* end confdefs.h. */ 4388 4389int 4390main (void) 4391{ 4392 4393 ; 4394 return 0; 4395} 4396_ACEOF 4397 # Make sure it works both with $CC and with simple cc. 4398 # Following AC_PROG_CC_C_O, we do the test twice because some 4399 # compilers refuse to overwrite an existing .o file with -o, 4400 # though they will create one. 4401 am_cv_prog_cc_c_o=yes 4402 for am_i in 1 2; do 4403 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4404 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4405 ac_status=$? 4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4407 (exit $ac_status); } \ 4408 && test -f conftest2.$ac_objext; then 4409 : OK 4410 else 4411 am_cv_prog_cc_c_o=no 4412 break 4413 fi 4414 done 4415 rm -f core conftest* 4416 unset am_i 4417fi 4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4419printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4420if test "$am_cv_prog_cc_c_o" != yes; then 4421 # Losing compiler, so override with the script. 4422 # FIXME: It is wrong to rewrite CC. 4423 # But if we don't then we get into trouble of one sort or another. 4424 # A longer-term fix would be to have automake use am__CC in this case, 4425 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4426 CC="$am_aux_dir/compile $CC" 4427fi 4428ac_ext=c 4429ac_cpp='$CPP $CPPFLAGS' 4430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4432ac_compiler_gnu=$ac_cv_c_compiler_gnu 4433 4434 4435depcc="$CC" am_compiler_list= 4436 4437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4438printf %s "checking dependency style of $depcc... " >&6; } 4439if test ${am_cv_CC_dependencies_compiler_type+y} 4440then : 4441 printf %s "(cached) " >&6 4442else $as_nop 4443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4444 # We make a subdir and do the tests there. Otherwise we can end up 4445 # making bogus files that we don't know about and never remove. For 4446 # instance it was reported that on HP-UX the gcc test will end up 4447 # making a dummy file named 'D' -- because '-MD' means "put the output 4448 # in D". 4449 rm -rf conftest.dir 4450 mkdir conftest.dir 4451 # Copy depcomp to subdir because otherwise we won't find it if we're 4452 # using a relative directory. 4453 cp "$am_depcomp" conftest.dir 4454 cd conftest.dir 4455 # We will build objects and dependencies in a subdirectory because 4456 # it helps to detect inapplicable dependency modes. For instance 4457 # both Tru64's cc and ICC support -MD to output dependencies as a 4458 # side effect of compilation, but ICC will put the dependencies in 4459 # the current directory while Tru64 will put them in the object 4460 # directory. 4461 mkdir sub 4462 4463 am_cv_CC_dependencies_compiler_type=none 4464 if test "$am_compiler_list" = ""; then 4465 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4466 fi 4467 am__universal=false 4468 case " $depcc " in #( 4469 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4470 esac 4471 4472 for depmode in $am_compiler_list; do 4473 # Setup a source with many dependencies, because some compilers 4474 # like to wrap large dependency lists on column 80 (with \), and 4475 # we should not choose a depcomp mode which is confused by this. 4476 # 4477 # We need to recreate these files for each test, as the compiler may 4478 # overwrite some of them when testing with obscure command lines. 4479 # This happens at least with the AIX C compiler. 4480 : > sub/conftest.c 4481 for i in 1 2 3 4 5 6; do 4482 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4483 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4484 # Solaris 10 /bin/sh. 4485 echo '/* dummy */' > sub/conftst$i.h 4486 done 4487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4488 4489 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4490 # mode. It turns out that the SunPro C++ compiler does not properly 4491 # handle '-M -o', and we need to detect this. Also, some Intel 4492 # versions had trouble with output in subdirs. 4493 am__obj=sub/conftest.${OBJEXT-o} 4494 am__minus_obj="-o $am__obj" 4495 case $depmode in 4496 gcc) 4497 # This depmode causes a compiler race in universal mode. 4498 test "$am__universal" = false || continue 4499 ;; 4500 nosideeffect) 4501 # After this tag, mechanisms are not by side-effect, so they'll 4502 # only be used when explicitly requested. 4503 if test "x$enable_dependency_tracking" = xyes; then 4504 continue 4505 else 4506 break 4507 fi 4508 ;; 4509 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4510 # This compiler won't grok '-c -o', but also, the minuso test has 4511 # not run yet. These depmodes are late enough in the game, and 4512 # so weak that their functioning should not be impacted. 4513 am__obj=conftest.${OBJEXT-o} 4514 am__minus_obj= 4515 ;; 4516 none) break ;; 4517 esac 4518 if depmode=$depmode \ 4519 source=sub/conftest.c object=$am__obj \ 4520 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4521 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4522 >/dev/null 2>conftest.err && 4523 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4525 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4527 # icc doesn't choke on unknown options, it will just issue warnings 4528 # or remarks (even with -Werror). So we grep stderr for any message 4529 # that says an option was ignored or not supported. 4530 # When given -MP, icc 7.0 and 7.1 complain thusly: 4531 # icc: Command line warning: ignoring option '-M'; no argument required 4532 # The diagnosis changed in icc 8.0: 4533 # icc: Command line remark: option '-MP' not supported 4534 if (grep 'ignoring option' conftest.err || 4535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4536 am_cv_CC_dependencies_compiler_type=$depmode 4537 break 4538 fi 4539 fi 4540 done 4541 4542 cd .. 4543 rm -rf conftest.dir 4544else 4545 am_cv_CC_dependencies_compiler_type=none 4546fi 4547 4548fi 4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4550printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4551CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4552 4553 if 4554 test "x$enable_dependency_tracking" != xno \ 4555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4556 am__fastdepCC_TRUE= 4557 am__fastdepCC_FALSE='#' 4558else 4559 am__fastdepCC_TRUE='#' 4560 am__fastdepCC_FALSE= 4561fi 4562 4563 4564 4565# Check whether --enable-largefile was given. 4566if test ${enable_largefile+y} 4567then : 4568 enableval=$enable_largefile; 4569fi 4570 4571if test "$enable_largefile" != no; then 4572 4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4574printf %s "checking for special C compiler options needed for large files... " >&6; } 4575if test ${ac_cv_sys_largefile_CC+y} 4576then : 4577 printf %s "(cached) " >&6 4578else $as_nop 4579 ac_cv_sys_largefile_CC=no 4580 if test "$GCC" != yes; then 4581 ac_save_CC=$CC 4582 while :; do 4583 # IRIX 6.2 and later do not support large files by default, 4584 # so use the C compiler's -n32 option if that helps. 4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4586/* end confdefs.h. */ 4587#include <sys/types.h> 4588 /* Check that off_t can represent 2**63 - 1 correctly. 4589 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4590 since some C++ compilers masquerading as C compilers 4591 incorrectly reject 9223372036854775807. */ 4592#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4594 && LARGE_OFF_T % 2147483647 == 1) 4595 ? 1 : -1]; 4596int 4597main (void) 4598{ 4599 4600 ; 4601 return 0; 4602} 4603_ACEOF 4604 if ac_fn_c_try_compile "$LINENO" 4605then : 4606 break 4607fi 4608rm -f core conftest.err conftest.$ac_objext conftest.beam 4609 CC="$CC -n32" 4610 if ac_fn_c_try_compile "$LINENO" 4611then : 4612 ac_cv_sys_largefile_CC=' -n32'; break 4613fi 4614rm -f core conftest.err conftest.$ac_objext conftest.beam 4615 break 4616 done 4617 CC=$ac_save_CC 4618 rm -f conftest.$ac_ext 4619 fi 4620fi 4621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4622printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 4623 if test "$ac_cv_sys_largefile_CC" != no; then 4624 CC=$CC$ac_cv_sys_largefile_CC 4625 fi 4626 4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4628printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4629if test ${ac_cv_sys_file_offset_bits+y} 4630then : 4631 printf %s "(cached) " >&6 4632else $as_nop 4633 while :; do 4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4635/* end confdefs.h. */ 4636#include <sys/types.h> 4637 /* Check that off_t can represent 2**63 - 1 correctly. 4638 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4639 since some C++ compilers masquerading as C compilers 4640 incorrectly reject 9223372036854775807. */ 4641#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4643 && LARGE_OFF_T % 2147483647 == 1) 4644 ? 1 : -1]; 4645int 4646main (void) 4647{ 4648 4649 ; 4650 return 0; 4651} 4652_ACEOF 4653if ac_fn_c_try_compile "$LINENO" 4654then : 4655 ac_cv_sys_file_offset_bits=no; break 4656fi 4657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4659/* end confdefs.h. */ 4660#define _FILE_OFFSET_BITS 64 4661#include <sys/types.h> 4662 /* Check that off_t can represent 2**63 - 1 correctly. 4663 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4664 since some C++ compilers masquerading as C compilers 4665 incorrectly reject 9223372036854775807. */ 4666#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4668 && LARGE_OFF_T % 2147483647 == 1) 4669 ? 1 : -1]; 4670int 4671main (void) 4672{ 4673 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678if ac_fn_c_try_compile "$LINENO" 4679then : 4680 ac_cv_sys_file_offset_bits=64; break 4681fi 4682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4683 ac_cv_sys_file_offset_bits=unknown 4684 break 4685done 4686fi 4687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4688printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 4689case $ac_cv_sys_file_offset_bits in #( 4690 no | unknown) ;; 4691 *) 4692printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 4693;; 4694esac 4695rm -rf conftest* 4696 if test $ac_cv_sys_file_offset_bits = unknown; then 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4698printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 4699if test ${ac_cv_sys_large_files+y} 4700then : 4701 printf %s "(cached) " >&6 4702else $as_nop 4703 while :; do 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4705/* end confdefs.h. */ 4706#include <sys/types.h> 4707 /* Check that off_t can represent 2**63 - 1 correctly. 4708 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4709 since some C++ compilers masquerading as C compilers 4710 incorrectly reject 9223372036854775807. */ 4711#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4713 && LARGE_OFF_T % 2147483647 == 1) 4714 ? 1 : -1]; 4715int 4716main (void) 4717{ 4718 4719 ; 4720 return 0; 4721} 4722_ACEOF 4723if ac_fn_c_try_compile "$LINENO" 4724then : 4725 ac_cv_sys_large_files=no; break 4726fi 4727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4729/* end confdefs.h. */ 4730#define _LARGE_FILES 1 4731#include <sys/types.h> 4732 /* Check that off_t can represent 2**63 - 1 correctly. 4733 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4734 since some C++ compilers masquerading as C compilers 4735 incorrectly reject 9223372036854775807. */ 4736#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4738 && LARGE_OFF_T % 2147483647 == 1) 4739 ? 1 : -1]; 4740int 4741main (void) 4742{ 4743 4744 ; 4745 return 0; 4746} 4747_ACEOF 4748if ac_fn_c_try_compile "$LINENO" 4749then : 4750 ac_cv_sys_large_files=1; break 4751fi 4752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4753 ac_cv_sys_large_files=unknown 4754 break 4755done 4756fi 4757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4758printf "%s\n" "$ac_cv_sys_large_files" >&6; } 4759case $ac_cv_sys_large_files in #( 4760 no | unknown) ;; 4761 *) 4762printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 4763;; 4764esac 4765rm -rf conftest* 4766 fi 4767fi 4768 4769 4770# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4784printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4785if test ${ac_cv_c_undeclared_builtin_options+y} 4786then : 4787 printf %s "(cached) " >&6 4788else $as_nop 4789 ac_save_CFLAGS=$CFLAGS 4790 ac_cv_c_undeclared_builtin_options='cannot detect' 4791 for ac_arg in '' -fno-builtin; do 4792 CFLAGS="$ac_save_CFLAGS $ac_arg" 4793 # This test program should *not* compile successfully. 4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4795/* end confdefs.h. */ 4796 4797int 4798main (void) 4799{ 4800(void) strchr; 4801 ; 4802 return 0; 4803} 4804_ACEOF 4805if ac_fn_c_try_compile "$LINENO" 4806then : 4807 4808else $as_nop 4809 # This test program should compile successfully. 4810 # No library function is consistently available on 4811 # freestanding implementations, so test against a dummy 4812 # declaration. Include always-available headers on the 4813 # off chance that they somehow elicit warnings. 4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4815/* end confdefs.h. */ 4816#include <float.h> 4817#include <limits.h> 4818#include <stdarg.h> 4819#include <stddef.h> 4820extern void ac_decl (int, char *); 4821 4822int 4823main (void) 4824{ 4825(void) ac_decl (0, (char *) 0); 4826 (void) ac_decl; 4827 4828 ; 4829 return 0; 4830} 4831_ACEOF 4832if ac_fn_c_try_compile "$LINENO" 4833then : 4834 if test x"$ac_arg" = x 4835then : 4836 ac_cv_c_undeclared_builtin_options='none needed' 4837else $as_nop 4838 ac_cv_c_undeclared_builtin_options=$ac_arg 4839fi 4840 break 4841fi 4842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4843fi 4844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4845 done 4846 CFLAGS=$ac_save_CFLAGS 4847 4848fi 4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4850printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4851 case $ac_cv_c_undeclared_builtin_options in #( 4852 'cannot detect') : 4853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4854printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4855as_fn_error $? "cannot make $CC report undeclared builtins 4856See \`config.log' for more details" "$LINENO" 5; } ;; #( 4857 'none needed') : 4858 ac_c_undeclared_builtin_options='' ;; #( 4859 *) : 4860 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4861esac 4862 4863ac_header= ac_cache= 4864for ac_item in $ac_header_c_list 4865do 4866 if test $ac_cache; then 4867 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4868 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4869 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4870 fi 4871 ac_header= ac_cache= 4872 elif test $ac_header; then 4873 ac_cache=$ac_item 4874 else 4875 ac_header=$ac_item 4876 fi 4877done 4878 4879 4880 4881 4882 4883 4884 4885 4886if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4887then : 4888 4889printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4890 4891fi 4892 4893 4894 4895 4896ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4897if test "x$ac_cv_have_decl___clang__" = xyes 4898then : 4899 CLANGCC="yes" 4900else $as_nop 4901 CLANGCC="no" 4902fi 4903ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4904if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4905then : 4906 INTELCC="yes" 4907else $as_nop 4908 INTELCC="no" 4909fi 4910ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4911if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4912then : 4913 SUNCC="yes" 4914else $as_nop 4915 SUNCC="no" 4916fi 4917 4918 4919 4920 4921 4922 4923 4924 4925if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4926 if test -n "$ac_tool_prefix"; then 4927 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4928set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4930printf %s "checking for $ac_word... " >&6; } 4931if test ${ac_cv_path_PKG_CONFIG+y} 4932then : 4933 printf %s "(cached) " >&6 4934else $as_nop 4935 case $PKG_CONFIG in 4936 [\\/]* | ?:[\\/]*) 4937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4938 ;; 4939 *) 4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4941for as_dir in $PATH 4942do 4943 IFS=$as_save_IFS 4944 case $as_dir in #((( 4945 '') as_dir=./ ;; 4946 */) ;; 4947 *) as_dir=$as_dir/ ;; 4948 esac 4949 for ac_exec_ext in '' $ac_executable_extensions; do 4950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4951 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4953 break 2 4954 fi 4955done 4956 done 4957IFS=$as_save_IFS 4958 4959 ;; 4960esac 4961fi 4962PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4963if test -n "$PKG_CONFIG"; then 4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4965printf "%s\n" "$PKG_CONFIG" >&6; } 4966else 4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4968printf "%s\n" "no" >&6; } 4969fi 4970 4971 4972fi 4973if test -z "$ac_cv_path_PKG_CONFIG"; then 4974 ac_pt_PKG_CONFIG=$PKG_CONFIG 4975 # Extract the first word of "pkg-config", so it can be a program name with args. 4976set dummy pkg-config; ac_word=$2 4977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4978printf %s "checking for $ac_word... " >&6; } 4979if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4980then : 4981 printf %s "(cached) " >&6 4982else $as_nop 4983 case $ac_pt_PKG_CONFIG in 4984 [\\/]* | ?:[\\/]*) 4985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4986 ;; 4987 *) 4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4989for as_dir in $PATH 4990do 4991 IFS=$as_save_IFS 4992 case $as_dir in #((( 4993 '') as_dir=./ ;; 4994 */) ;; 4995 *) as_dir=$as_dir/ ;; 4996 esac 4997 for ac_exec_ext in '' $ac_executable_extensions; do 4998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4999 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5001 break 2 5002 fi 5003done 5004 done 5005IFS=$as_save_IFS 5006 5007 ;; 5008esac 5009fi 5010ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5011if test -n "$ac_pt_PKG_CONFIG"; then 5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5013printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5014else 5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5016printf "%s\n" "no" >&6; } 5017fi 5018 5019 if test "x$ac_pt_PKG_CONFIG" = x; then 5020 PKG_CONFIG="" 5021 else 5022 case $cross_compiling:$ac_tool_warned in 5023yes:) 5024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5025printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5026ac_tool_warned=yes ;; 5027esac 5028 PKG_CONFIG=$ac_pt_PKG_CONFIG 5029 fi 5030else 5031 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5032fi 5033 5034fi 5035if test -n "$PKG_CONFIG"; then 5036 _pkg_min_version=0.9.0 5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5038printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5039 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5041printf "%s\n" "yes" >&6; } 5042 else 5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5044printf "%s\n" "no" >&6; } 5045 PKG_CONFIG="" 5046 fi 5047fi 5048 5049 5050 # Make sure we can run config.sub. 5051$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5052 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5053 5054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5055printf %s "checking build system type... " >&6; } 5056if test ${ac_cv_build+y} 5057then : 5058 printf %s "(cached) " >&6 5059else $as_nop 5060 ac_build_alias=$build_alias 5061test "x$ac_build_alias" = x && 5062 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5063test "x$ac_build_alias" = x && 5064 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5065ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5066 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5067 5068fi 5069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5070printf "%s\n" "$ac_cv_build" >&6; } 5071case $ac_cv_build in 5072*-*-*) ;; 5073*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5074esac 5075build=$ac_cv_build 5076ac_save_IFS=$IFS; IFS='-' 5077set x $ac_cv_build 5078shift 5079build_cpu=$1 5080build_vendor=$2 5081shift; shift 5082# Remember, the first character of IFS is used to create $*, 5083# except with old shells: 5084build_os=$* 5085IFS=$ac_save_IFS 5086case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5087 5088 5089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5090printf %s "checking host system type... " >&6; } 5091if test ${ac_cv_host+y} 5092then : 5093 printf %s "(cached) " >&6 5094else $as_nop 5095 if test "x$host_alias" = x; then 5096 ac_cv_host=$ac_cv_build 5097else 5098 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5099 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5100fi 5101 5102fi 5103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5104printf "%s\n" "$ac_cv_host" >&6; } 5105case $ac_cv_host in 5106*-*-*) ;; 5107*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5108esac 5109host=$ac_cv_host 5110ac_save_IFS=$IFS; IFS='-' 5111set x $ac_cv_host 5112shift 5113host_cpu=$1 5114host_vendor=$2 5115shift; shift 5116# Remember, the first character of IFS is used to create $*, 5117# except with old shells: 5118host_os=$* 5119IFS=$ac_save_IFS 5120case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5121 5122 5123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5124printf %s "checking for a sed that does not truncate output... " >&6; } 5125if test ${ac_cv_path_SED+y} 5126then : 5127 printf %s "(cached) " >&6 5128else $as_nop 5129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5130 for ac_i in 1 2 3 4 5 6 7; do 5131 ac_script="$ac_script$as_nl$ac_script" 5132 done 5133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5134 { ac_script=; unset ac_script;} 5135 if test -z "$SED"; then 5136 ac_path_SED_found=false 5137 # Loop through the user's path and test for each of PROGNAME-LIST 5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139for as_dir in $PATH 5140do 5141 IFS=$as_save_IFS 5142 case $as_dir in #((( 5143 '') as_dir=./ ;; 5144 */) ;; 5145 *) as_dir=$as_dir/ ;; 5146 esac 5147 for ac_prog in sed gsed 5148 do 5149 for ac_exec_ext in '' $ac_executable_extensions; do 5150 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5151 as_fn_executable_p "$ac_path_SED" || continue 5152# Check for GNU ac_path_SED and select it if it is found. 5153 # Check for GNU $ac_path_SED 5154case `"$ac_path_SED" --version 2>&1` in 5155*GNU*) 5156 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5157*) 5158 ac_count=0 5159 printf %s 0123456789 >"conftest.in" 5160 while : 5161 do 5162 cat "conftest.in" "conftest.in" >"conftest.tmp" 5163 mv "conftest.tmp" "conftest.in" 5164 cp "conftest.in" "conftest.nl" 5165 printf "%s\n" '' >> "conftest.nl" 5166 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5168 as_fn_arith $ac_count + 1 && ac_count=$as_val 5169 if test $ac_count -gt ${ac_path_SED_max-0}; then 5170 # Best one so far, save it but keep looking for a better one 5171 ac_cv_path_SED="$ac_path_SED" 5172 ac_path_SED_max=$ac_count 5173 fi 5174 # 10*(2^10) chars as input seems more than enough 5175 test $ac_count -gt 10 && break 5176 done 5177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5178esac 5179 5180 $ac_path_SED_found && break 3 5181 done 5182 done 5183 done 5184IFS=$as_save_IFS 5185 if test -z "$ac_cv_path_SED"; then 5186 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5187 fi 5188else 5189 ac_cv_path_SED=$SED 5190fi 5191 5192fi 5193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5194printf "%s\n" "$ac_cv_path_SED" >&6; } 5195 SED="$ac_cv_path_SED" 5196 rm -f conftest.sed 5197 5198 5199 5200 5201 5202 5203# Check whether --enable-selective-werror was given. 5204if test ${enable_selective_werror+y} 5205then : 5206 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5207else $as_nop 5208 SELECTIVE_WERROR=yes 5209fi 5210 5211 5212 5213 5214 5215# -v is too short to test reliably with XORG_TESTSET_CFLAG 5216if test "x$SUNCC" = "xyes"; then 5217 BASE_CFLAGS="-v" 5218else 5219 BASE_CFLAGS="" 5220fi 5221 5222# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236xorg_testset_save_CFLAGS="$CFLAGS" 5237 5238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5242if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5243then : 5244 printf %s "(cached) " >&6 5245else $as_nop 5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5247/* end confdefs.h. */ 5248int i; 5249_ACEOF 5250if ac_fn_c_try_compile "$LINENO" 5251then : 5252 xorg_cv_cc_flag_unknown_warning_option=yes 5253else $as_nop 5254 xorg_cv_cc_flag_unknown_warning_option=no 5255fi 5256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5257fi 5258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5261 CFLAGS="$xorg_testset_save_CFLAGS" 5262fi 5263 5264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5267 fi 5268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5271if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 5282else $as_nop 5283 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291fi 5292 5293found="no" 5294 5295 if test $found = "no" ; then 5296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5298 fi 5299 5300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5302 fi 5303 5304 CFLAGS="$CFLAGS -Wall" 5305 5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5307printf %s "checking if $CC supports -Wall... " >&6; } 5308 cacheid=xorg_cv_cc_flag__Wall 5309 if eval test \${$cacheid+y} 5310then : 5311 printf %s "(cached) " >&6 5312else $as_nop 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315int i; 5316int 5317main (void) 5318{ 5319 5320 ; 5321 return 0; 5322} 5323_ACEOF 5324if ac_fn_c_try_link "$LINENO" 5325then : 5326 eval $cacheid=yes 5327else $as_nop 5328 eval $cacheid=no 5329fi 5330rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5331 conftest$ac_exeext conftest.$ac_ext 5332fi 5333 5334 5335 CFLAGS="$xorg_testset_save_CFLAGS" 5336 5337 eval supported=\$$cacheid 5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5339printf "%s\n" "$supported" >&6; } 5340 if test "$supported" = "yes" ; then 5341 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5342 found="yes" 5343 fi 5344 fi 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360xorg_testset_save_CFLAGS="$CFLAGS" 5361 5362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5365printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5366if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5367then : 5368 printf %s "(cached) " >&6 5369else $as_nop 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372int i; 5373_ACEOF 5374if ac_fn_c_try_compile "$LINENO" 5375then : 5376 xorg_cv_cc_flag_unknown_warning_option=yes 5377else $as_nop 5378 xorg_cv_cc_flag_unknown_warning_option=no 5379fi 5380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5381fi 5382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5383printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5385 CFLAGS="$xorg_testset_save_CFLAGS" 5386fi 5387 5388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5391 fi 5392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5394printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5395if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 5406else $as_nop 5407 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5412printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5414 CFLAGS="$xorg_testset_save_CFLAGS" 5415fi 5416 5417found="no" 5418 5419 if test $found = "no" ; then 5420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5422 fi 5423 5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5426 fi 5427 5428 CFLAGS="$CFLAGS -Wpointer-arith" 5429 5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5431printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5432 cacheid=xorg_cv_cc_flag__Wpointer_arith 5433 if eval test \${$cacheid+y} 5434then : 5435 printf %s "(cached) " >&6 5436else $as_nop 5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5438/* end confdefs.h. */ 5439int i; 5440int 5441main (void) 5442{ 5443 5444 ; 5445 return 0; 5446} 5447_ACEOF 5448if ac_fn_c_try_link "$LINENO" 5449then : 5450 eval $cacheid=yes 5451else $as_nop 5452 eval $cacheid=no 5453fi 5454rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5455 conftest$ac_exeext conftest.$ac_ext 5456fi 5457 5458 5459 CFLAGS="$xorg_testset_save_CFLAGS" 5460 5461 eval supported=\$$cacheid 5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5463printf "%s\n" "$supported" >&6; } 5464 if test "$supported" = "yes" ; then 5465 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5466 found="yes" 5467 fi 5468 fi 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484xorg_testset_save_CFLAGS="$CFLAGS" 5485 5486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5489printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5490if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5491then : 5492 printf %s "(cached) " >&6 5493else $as_nop 5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495/* end confdefs.h. */ 5496int i; 5497_ACEOF 5498if ac_fn_c_try_compile "$LINENO" 5499then : 5500 xorg_cv_cc_flag_unknown_warning_option=yes 5501else $as_nop 5502 xorg_cv_cc_flag_unknown_warning_option=no 5503fi 5504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5505fi 5506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5509 CFLAGS="$xorg_testset_save_CFLAGS" 5510fi 5511 5512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5515 fi 5516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5519if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 5530else $as_nop 5531 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5536printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5538 CFLAGS="$xorg_testset_save_CFLAGS" 5539fi 5540 5541found="no" 5542 5543 if test $found = "no" ; then 5544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5546 fi 5547 5548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5550 fi 5551 5552 CFLAGS="$CFLAGS -Wmissing-declarations" 5553 5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5555printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5556 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5557 if eval test \${$cacheid+y} 5558then : 5559 printf %s "(cached) " >&6 5560else $as_nop 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5562/* end confdefs.h. */ 5563int i; 5564int 5565main (void) 5566{ 5567 5568 ; 5569 return 0; 5570} 5571_ACEOF 5572if ac_fn_c_try_link "$LINENO" 5573then : 5574 eval $cacheid=yes 5575else $as_nop 5576 eval $cacheid=no 5577fi 5578rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5579 conftest$ac_exeext conftest.$ac_ext 5580fi 5581 5582 5583 CFLAGS="$xorg_testset_save_CFLAGS" 5584 5585 eval supported=\$$cacheid 5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5587printf "%s\n" "$supported" >&6; } 5588 if test "$supported" = "yes" ; then 5589 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5590 found="yes" 5591 fi 5592 fi 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608xorg_testset_save_CFLAGS="$CFLAGS" 5609 5610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5614if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5615then : 5616 printf %s "(cached) " >&6 5617else $as_nop 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5619/* end confdefs.h. */ 5620int i; 5621_ACEOF 5622if ac_fn_c_try_compile "$LINENO" 5623then : 5624 xorg_cv_cc_flag_unknown_warning_option=yes 5625else $as_nop 5626 xorg_cv_cc_flag_unknown_warning_option=no 5627fi 5628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5629fi 5630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5633 CFLAGS="$xorg_testset_save_CFLAGS" 5634fi 5635 5636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5639 fi 5640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5643if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 5654else $as_nop 5655 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5660printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5662 CFLAGS="$xorg_testset_save_CFLAGS" 5663fi 5664 5665found="no" 5666 5667 if test $found = "no" ; then 5668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5670 fi 5671 5672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5674 fi 5675 5676 CFLAGS="$CFLAGS -Wformat=2" 5677 5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5679printf %s "checking if $CC supports -Wformat=2... " >&6; } 5680 cacheid=xorg_cv_cc_flag__Wformat_2 5681 if eval test \${$cacheid+y} 5682then : 5683 printf %s "(cached) " >&6 5684else $as_nop 5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5686/* end confdefs.h. */ 5687int i; 5688int 5689main (void) 5690{ 5691 5692 ; 5693 return 0; 5694} 5695_ACEOF 5696if ac_fn_c_try_link "$LINENO" 5697then : 5698 eval $cacheid=yes 5699else $as_nop 5700 eval $cacheid=no 5701fi 5702rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5703 conftest$ac_exeext conftest.$ac_ext 5704fi 5705 5706 5707 CFLAGS="$xorg_testset_save_CFLAGS" 5708 5709 eval supported=\$$cacheid 5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5711printf "%s\n" "$supported" >&6; } 5712 if test "$supported" = "yes" ; then 5713 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5714 found="yes" 5715 fi 5716 fi 5717 5718 if test $found = "no" ; then 5719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5721 fi 5722 5723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5725 fi 5726 5727 CFLAGS="$CFLAGS -Wformat" 5728 5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5730printf %s "checking if $CC supports -Wformat... " >&6; } 5731 cacheid=xorg_cv_cc_flag__Wformat 5732 if eval test \${$cacheid+y} 5733then : 5734 printf %s "(cached) " >&6 5735else $as_nop 5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737/* end confdefs.h. */ 5738int i; 5739int 5740main (void) 5741{ 5742 5743 ; 5744 return 0; 5745} 5746_ACEOF 5747if ac_fn_c_try_link "$LINENO" 5748then : 5749 eval $cacheid=yes 5750else $as_nop 5751 eval $cacheid=no 5752fi 5753rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5754 conftest$ac_exeext conftest.$ac_ext 5755fi 5756 5757 5758 CFLAGS="$xorg_testset_save_CFLAGS" 5759 5760 eval supported=\$$cacheid 5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5762printf "%s\n" "$supported" >&6; } 5763 if test "$supported" = "yes" ; then 5764 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5765 found="yes" 5766 fi 5767 fi 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785xorg_testset_save_CFLAGS="$CFLAGS" 5786 5787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5790printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5791if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5792then : 5793 printf %s "(cached) " >&6 5794else $as_nop 5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796/* end confdefs.h. */ 5797int i; 5798_ACEOF 5799if ac_fn_c_try_compile "$LINENO" 5800then : 5801 xorg_cv_cc_flag_unknown_warning_option=yes 5802else $as_nop 5803 xorg_cv_cc_flag_unknown_warning_option=no 5804fi 5805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5806fi 5807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5808printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5810 CFLAGS="$xorg_testset_save_CFLAGS" 5811fi 5812 5813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5816 fi 5817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5819printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5820if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 5831else $as_nop 5832 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5837printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5839 CFLAGS="$xorg_testset_save_CFLAGS" 5840fi 5841 5842found="no" 5843 5844 if test $found = "no" ; then 5845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5847 fi 5848 5849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5851 fi 5852 5853 CFLAGS="$CFLAGS -Wstrict-prototypes" 5854 5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5856printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5857 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5858 if eval test \${$cacheid+y} 5859then : 5860 printf %s "(cached) " >&6 5861else $as_nop 5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5863/* end confdefs.h. */ 5864int i; 5865int 5866main (void) 5867{ 5868 5869 ; 5870 return 0; 5871} 5872_ACEOF 5873if ac_fn_c_try_link "$LINENO" 5874then : 5875 eval $cacheid=yes 5876else $as_nop 5877 eval $cacheid=no 5878fi 5879rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5880 conftest$ac_exeext conftest.$ac_ext 5881fi 5882 5883 5884 CFLAGS="$xorg_testset_save_CFLAGS" 5885 5886 eval supported=\$$cacheid 5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5888printf "%s\n" "$supported" >&6; } 5889 if test "$supported" = "yes" ; then 5890 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5891 found="yes" 5892 fi 5893 fi 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909xorg_testset_save_CFLAGS="$CFLAGS" 5910 5911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5914printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5915if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5916then : 5917 printf %s "(cached) " >&6 5918else $as_nop 5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5920/* end confdefs.h. */ 5921int i; 5922_ACEOF 5923if ac_fn_c_try_compile "$LINENO" 5924then : 5925 xorg_cv_cc_flag_unknown_warning_option=yes 5926else $as_nop 5927 xorg_cv_cc_flag_unknown_warning_option=no 5928fi 5929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5930fi 5931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5932printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5934 CFLAGS="$xorg_testset_save_CFLAGS" 5935fi 5936 5937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5940 fi 5941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5943printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5944if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 5955else $as_nop 5956 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5961printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964fi 5965 5966found="no" 5967 5968 if test $found = "no" ; then 5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5971 fi 5972 5973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5975 fi 5976 5977 CFLAGS="$CFLAGS -Wmissing-prototypes" 5978 5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5980printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5981 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5982 if eval test \${$cacheid+y} 5983then : 5984 printf %s "(cached) " >&6 5985else $as_nop 5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5987/* end confdefs.h. */ 5988int i; 5989int 5990main (void) 5991{ 5992 5993 ; 5994 return 0; 5995} 5996_ACEOF 5997if ac_fn_c_try_link "$LINENO" 5998then : 5999 eval $cacheid=yes 6000else $as_nop 6001 eval $cacheid=no 6002fi 6003rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6004 conftest$ac_exeext conftest.$ac_ext 6005fi 6006 6007 6008 CFLAGS="$xorg_testset_save_CFLAGS" 6009 6010 eval supported=\$$cacheid 6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6012printf "%s\n" "$supported" >&6; } 6013 if test "$supported" = "yes" ; then 6014 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6015 found="yes" 6016 fi 6017 fi 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033xorg_testset_save_CFLAGS="$CFLAGS" 6034 6035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6039if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6040then : 6041 printf %s "(cached) " >&6 6042else $as_nop 6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6044/* end confdefs.h. */ 6045int i; 6046_ACEOF 6047if ac_fn_c_try_compile "$LINENO" 6048then : 6049 xorg_cv_cc_flag_unknown_warning_option=yes 6050else $as_nop 6051 xorg_cv_cc_flag_unknown_warning_option=no 6052fi 6053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6054fi 6055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6058 CFLAGS="$xorg_testset_save_CFLAGS" 6059fi 6060 6061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6064 fi 6065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6068if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 6079else $as_nop 6080 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6087 CFLAGS="$xorg_testset_save_CFLAGS" 6088fi 6089 6090found="no" 6091 6092 if test $found = "no" ; then 6093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6095 fi 6096 6097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6099 fi 6100 6101 CFLAGS="$CFLAGS -Wnested-externs" 6102 6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6104printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6105 cacheid=xorg_cv_cc_flag__Wnested_externs 6106 if eval test \${$cacheid+y} 6107then : 6108 printf %s "(cached) " >&6 6109else $as_nop 6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6111/* end confdefs.h. */ 6112int i; 6113int 6114main (void) 6115{ 6116 6117 ; 6118 return 0; 6119} 6120_ACEOF 6121if ac_fn_c_try_link "$LINENO" 6122then : 6123 eval $cacheid=yes 6124else $as_nop 6125 eval $cacheid=no 6126fi 6127rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6128 conftest$ac_exeext conftest.$ac_ext 6129fi 6130 6131 6132 CFLAGS="$xorg_testset_save_CFLAGS" 6133 6134 eval supported=\$$cacheid 6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6136printf "%s\n" "$supported" >&6; } 6137 if test "$supported" = "yes" ; then 6138 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6139 found="yes" 6140 fi 6141 fi 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157xorg_testset_save_CFLAGS="$CFLAGS" 6158 6159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6164then : 6165 printf %s "(cached) " >&6 6166else $as_nop 6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6168/* end confdefs.h. */ 6169int i; 6170_ACEOF 6171if ac_fn_c_try_compile "$LINENO" 6172then : 6173 xorg_cv_cc_flag_unknown_warning_option=yes 6174else $as_nop 6175 xorg_cv_cc_flag_unknown_warning_option=no 6176fi 6177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6178fi 6179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6182 CFLAGS="$xorg_testset_save_CFLAGS" 6183fi 6184 6185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6188 fi 6189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6192if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 6203else $as_nop 6204 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6211 CFLAGS="$xorg_testset_save_CFLAGS" 6212fi 6213 6214found="no" 6215 6216 if test $found = "no" ; then 6217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6219 fi 6220 6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6223 fi 6224 6225 CFLAGS="$CFLAGS -Wbad-function-cast" 6226 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6228printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6229 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6230 if eval test \${$cacheid+y} 6231then : 6232 printf %s "(cached) " >&6 6233else $as_nop 6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235/* end confdefs.h. */ 6236int i; 6237int 6238main (void) 6239{ 6240 6241 ; 6242 return 0; 6243} 6244_ACEOF 6245if ac_fn_c_try_link "$LINENO" 6246then : 6247 eval $cacheid=yes 6248else $as_nop 6249 eval $cacheid=no 6250fi 6251rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6252 conftest$ac_exeext conftest.$ac_ext 6253fi 6254 6255 6256 CFLAGS="$xorg_testset_save_CFLAGS" 6257 6258 eval supported=\$$cacheid 6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6260printf "%s\n" "$supported" >&6; } 6261 if test "$supported" = "yes" ; then 6262 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6263 found="yes" 6264 fi 6265 fi 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281xorg_testset_save_CFLAGS="$CFLAGS" 6282 6283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6286printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6287if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6288then : 6289 printf %s "(cached) " >&6 6290else $as_nop 6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292/* end confdefs.h. */ 6293int i; 6294_ACEOF 6295if ac_fn_c_try_compile "$LINENO" 6296then : 6297 xorg_cv_cc_flag_unknown_warning_option=yes 6298else $as_nop 6299 xorg_cv_cc_flag_unknown_warning_option=no 6300fi 6301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6302fi 6303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6306 CFLAGS="$xorg_testset_save_CFLAGS" 6307fi 6308 6309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6312 fi 6313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6316if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 6327else $as_nop 6328 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6333printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6335 CFLAGS="$xorg_testset_save_CFLAGS" 6336fi 6337 6338found="no" 6339 6340 if test $found = "no" ; then 6341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6343 fi 6344 6345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6347 fi 6348 6349 CFLAGS="$CFLAGS -Wold-style-definition" 6350 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6352printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6353 cacheid=xorg_cv_cc_flag__Wold_style_definition 6354 if eval test \${$cacheid+y} 6355then : 6356 printf %s "(cached) " >&6 6357else $as_nop 6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6359/* end confdefs.h. */ 6360int i; 6361int 6362main (void) 6363{ 6364 6365 ; 6366 return 0; 6367} 6368_ACEOF 6369if ac_fn_c_try_link "$LINENO" 6370then : 6371 eval $cacheid=yes 6372else $as_nop 6373 eval $cacheid=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6376 conftest$ac_exeext conftest.$ac_ext 6377fi 6378 6379 6380 CFLAGS="$xorg_testset_save_CFLAGS" 6381 6382 eval supported=\$$cacheid 6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6384printf "%s\n" "$supported" >&6; } 6385 if test "$supported" = "yes" ; then 6386 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6387 found="yes" 6388 fi 6389 fi 6390 6391 if test $found = "no" ; then 6392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6394 fi 6395 6396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6398 fi 6399 6400 CFLAGS="$CFLAGS -fd" 6401 6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6403printf %s "checking if $CC supports -fd... " >&6; } 6404 cacheid=xorg_cv_cc_flag__fd 6405 if eval test \${$cacheid+y} 6406then : 6407 printf %s "(cached) " >&6 6408else $as_nop 6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410/* end confdefs.h. */ 6411int i; 6412int 6413main (void) 6414{ 6415 6416 ; 6417 return 0; 6418} 6419_ACEOF 6420if ac_fn_c_try_link "$LINENO" 6421then : 6422 eval $cacheid=yes 6423else $as_nop 6424 eval $cacheid=no 6425fi 6426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6427 conftest$ac_exeext conftest.$ac_ext 6428fi 6429 6430 6431 CFLAGS="$xorg_testset_save_CFLAGS" 6432 6433 eval supported=\$$cacheid 6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6435printf "%s\n" "$supported" >&6; } 6436 if test "$supported" = "yes" ; then 6437 BASE_CFLAGS="$BASE_CFLAGS -fd" 6438 found="yes" 6439 fi 6440 fi 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456xorg_testset_save_CFLAGS="$CFLAGS" 6457 6458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6462if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6463then : 6464 printf %s "(cached) " >&6 6465else $as_nop 6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6467/* end confdefs.h. */ 6468int i; 6469_ACEOF 6470if ac_fn_c_try_compile "$LINENO" 6471then : 6472 xorg_cv_cc_flag_unknown_warning_option=yes 6473else $as_nop 6474 xorg_cv_cc_flag_unknown_warning_option=no 6475fi 6476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6477fi 6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6481 CFLAGS="$xorg_testset_save_CFLAGS" 6482fi 6483 6484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6487 fi 6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6491if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 6502else $as_nop 6503 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6508printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6510 CFLAGS="$xorg_testset_save_CFLAGS" 6511fi 6512 6513found="no" 6514 6515 if test $found = "no" ; then 6516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6518 fi 6519 6520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6522 fi 6523 6524 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6525 6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6527printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6528 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6529 if eval test \${$cacheid+y} 6530then : 6531 printf %s "(cached) " >&6 6532else $as_nop 6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6534/* end confdefs.h. */ 6535int i; 6536int 6537main (void) 6538{ 6539 6540 ; 6541 return 0; 6542} 6543_ACEOF 6544if ac_fn_c_try_link "$LINENO" 6545then : 6546 eval $cacheid=yes 6547else $as_nop 6548 eval $cacheid=no 6549fi 6550rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6551 conftest$ac_exeext conftest.$ac_ext 6552fi 6553 6554 6555 CFLAGS="$xorg_testset_save_CFLAGS" 6556 6557 eval supported=\$$cacheid 6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6559printf "%s\n" "$supported" >&6; } 6560 if test "$supported" = "yes" ; then 6561 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6562 found="yes" 6563 fi 6564 fi 6565 6566 6567 6568 6569 6570# This chunk adds additional warnings that could catch undesired effects. 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584xorg_testset_save_CFLAGS="$CFLAGS" 6585 6586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6589printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6590if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6591then : 6592 printf %s "(cached) " >&6 6593else $as_nop 6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6595/* end confdefs.h. */ 6596int i; 6597_ACEOF 6598if ac_fn_c_try_compile "$LINENO" 6599then : 6600 xorg_cv_cc_flag_unknown_warning_option=yes 6601else $as_nop 6602 xorg_cv_cc_flag_unknown_warning_option=no 6603fi 6604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6605fi 6606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6607printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6609 CFLAGS="$xorg_testset_save_CFLAGS" 6610fi 6611 6612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6615 fi 6616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6618printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6619if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 6630else $as_nop 6631 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6636printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639fi 6640 6641found="no" 6642 6643 if test $found = "no" ; then 6644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6646 fi 6647 6648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6650 fi 6651 6652 CFLAGS="$CFLAGS -Wunused" 6653 6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6655printf %s "checking if $CC supports -Wunused... " >&6; } 6656 cacheid=xorg_cv_cc_flag__Wunused 6657 if eval test \${$cacheid+y} 6658then : 6659 printf %s "(cached) " >&6 6660else $as_nop 6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663int i; 6664int 6665main (void) 6666{ 6667 6668 ; 6669 return 0; 6670} 6671_ACEOF 6672if ac_fn_c_try_link "$LINENO" 6673then : 6674 eval $cacheid=yes 6675else $as_nop 6676 eval $cacheid=no 6677fi 6678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6679 conftest$ac_exeext conftest.$ac_ext 6680fi 6681 6682 6683 CFLAGS="$xorg_testset_save_CFLAGS" 6684 6685 eval supported=\$$cacheid 6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6687printf "%s\n" "$supported" >&6; } 6688 if test "$supported" = "yes" ; then 6689 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6690 found="yes" 6691 fi 6692 fi 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708xorg_testset_save_CFLAGS="$CFLAGS" 6709 6710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6713printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6714if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6715then : 6716 printf %s "(cached) " >&6 6717else $as_nop 6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719/* end confdefs.h. */ 6720int i; 6721_ACEOF 6722if ac_fn_c_try_compile "$LINENO" 6723then : 6724 xorg_cv_cc_flag_unknown_warning_option=yes 6725else $as_nop 6726 xorg_cv_cc_flag_unknown_warning_option=no 6727fi 6728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6729fi 6730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6731printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6733 CFLAGS="$xorg_testset_save_CFLAGS" 6734fi 6735 6736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6739 fi 6740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6742printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6743if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 6754else $as_nop 6755 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6760printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6762 CFLAGS="$xorg_testset_save_CFLAGS" 6763fi 6764 6765found="no" 6766 6767 if test $found = "no" ; then 6768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6770 fi 6771 6772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6774 fi 6775 6776 CFLAGS="$CFLAGS -Wuninitialized" 6777 6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6779printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6780 cacheid=xorg_cv_cc_flag__Wuninitialized 6781 if eval test \${$cacheid+y} 6782then : 6783 printf %s "(cached) " >&6 6784else $as_nop 6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6786/* end confdefs.h. */ 6787int i; 6788int 6789main (void) 6790{ 6791 6792 ; 6793 return 0; 6794} 6795_ACEOF 6796if ac_fn_c_try_link "$LINENO" 6797then : 6798 eval $cacheid=yes 6799else $as_nop 6800 eval $cacheid=no 6801fi 6802rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6803 conftest$ac_exeext conftest.$ac_ext 6804fi 6805 6806 6807 CFLAGS="$xorg_testset_save_CFLAGS" 6808 6809 eval supported=\$$cacheid 6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6811printf "%s\n" "$supported" >&6; } 6812 if test "$supported" = "yes" ; then 6813 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6814 found="yes" 6815 fi 6816 fi 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832xorg_testset_save_CFLAGS="$CFLAGS" 6833 6834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6837printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6838if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6839then : 6840 printf %s "(cached) " >&6 6841else $as_nop 6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6843/* end confdefs.h. */ 6844int i; 6845_ACEOF 6846if ac_fn_c_try_compile "$LINENO" 6847then : 6848 xorg_cv_cc_flag_unknown_warning_option=yes 6849else $as_nop 6850 xorg_cv_cc_flag_unknown_warning_option=no 6851fi 6852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6853fi 6854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6857 CFLAGS="$xorg_testset_save_CFLAGS" 6858fi 6859 6860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6863 fi 6864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6867if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 6878else $as_nop 6879 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6884printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6886 CFLAGS="$xorg_testset_save_CFLAGS" 6887fi 6888 6889found="no" 6890 6891 if test $found = "no" ; then 6892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6894 fi 6895 6896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6898 fi 6899 6900 CFLAGS="$CFLAGS -Wshadow" 6901 6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6903printf %s "checking if $CC supports -Wshadow... " >&6; } 6904 cacheid=xorg_cv_cc_flag__Wshadow 6905 if eval test \${$cacheid+y} 6906then : 6907 printf %s "(cached) " >&6 6908else $as_nop 6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6910/* end confdefs.h. */ 6911int i; 6912int 6913main (void) 6914{ 6915 6916 ; 6917 return 0; 6918} 6919_ACEOF 6920if ac_fn_c_try_link "$LINENO" 6921then : 6922 eval $cacheid=yes 6923else $as_nop 6924 eval $cacheid=no 6925fi 6926rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6927 conftest$ac_exeext conftest.$ac_ext 6928fi 6929 6930 6931 CFLAGS="$xorg_testset_save_CFLAGS" 6932 6933 eval supported=\$$cacheid 6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6935printf "%s\n" "$supported" >&6; } 6936 if test "$supported" = "yes" ; then 6937 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6938 found="yes" 6939 fi 6940 fi 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956xorg_testset_save_CFLAGS="$CFLAGS" 6957 6958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6962if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6963then : 6964 printf %s "(cached) " >&6 6965else $as_nop 6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968int i; 6969_ACEOF 6970if ac_fn_c_try_compile "$LINENO" 6971then : 6972 xorg_cv_cc_flag_unknown_warning_option=yes 6973else $as_nop 6974 xorg_cv_cc_flag_unknown_warning_option=no 6975fi 6976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6977fi 6978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6979printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982fi 6983 6984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6987 fi 6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6990printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6991if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 7002else $as_nop 7003 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7008printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7010 CFLAGS="$xorg_testset_save_CFLAGS" 7011fi 7012 7013found="no" 7014 7015 if test $found = "no" ; then 7016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7018 fi 7019 7020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7022 fi 7023 7024 CFLAGS="$CFLAGS -Wmissing-noreturn" 7025 7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7027printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7028 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7029 if eval test \${$cacheid+y} 7030then : 7031 printf %s "(cached) " >&6 7032else $as_nop 7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7034/* end confdefs.h. */ 7035int i; 7036int 7037main (void) 7038{ 7039 7040 ; 7041 return 0; 7042} 7043_ACEOF 7044if ac_fn_c_try_link "$LINENO" 7045then : 7046 eval $cacheid=yes 7047else $as_nop 7048 eval $cacheid=no 7049fi 7050rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7051 conftest$ac_exeext conftest.$ac_ext 7052fi 7053 7054 7055 CFLAGS="$xorg_testset_save_CFLAGS" 7056 7057 eval supported=\$$cacheid 7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7059printf "%s\n" "$supported" >&6; } 7060 if test "$supported" = "yes" ; then 7061 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7062 found="yes" 7063 fi 7064 fi 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080xorg_testset_save_CFLAGS="$CFLAGS" 7081 7082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7085printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7086if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7087then : 7088 printf %s "(cached) " >&6 7089else $as_nop 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092int i; 7093_ACEOF 7094if ac_fn_c_try_compile "$LINENO" 7095then : 7096 xorg_cv_cc_flag_unknown_warning_option=yes 7097else $as_nop 7098 xorg_cv_cc_flag_unknown_warning_option=no 7099fi 7100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7101fi 7102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7103printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7105 CFLAGS="$xorg_testset_save_CFLAGS" 7106fi 7107 7108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7111 fi 7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7114printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7115if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 7126else $as_nop 7127 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7132printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7134 CFLAGS="$xorg_testset_save_CFLAGS" 7135fi 7136 7137found="no" 7138 7139 if test $found = "no" ; then 7140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 fi 7143 7144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7146 fi 7147 7148 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7149 7150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7151printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7152 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7153 if eval test \${$cacheid+y} 7154then : 7155 printf %s "(cached) " >&6 7156else $as_nop 7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7158/* end confdefs.h. */ 7159int i; 7160int 7161main (void) 7162{ 7163 7164 ; 7165 return 0; 7166} 7167_ACEOF 7168if ac_fn_c_try_link "$LINENO" 7169then : 7170 eval $cacheid=yes 7171else $as_nop 7172 eval $cacheid=no 7173fi 7174rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7175 conftest$ac_exeext conftest.$ac_ext 7176fi 7177 7178 7179 CFLAGS="$xorg_testset_save_CFLAGS" 7180 7181 eval supported=\$$cacheid 7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7183printf "%s\n" "$supported" >&6; } 7184 if test "$supported" = "yes" ; then 7185 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7186 found="yes" 7187 fi 7188 fi 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204xorg_testset_save_CFLAGS="$CFLAGS" 7205 7206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7209printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7210if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7211then : 7212 printf %s "(cached) " >&6 7213else $as_nop 7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7215/* end confdefs.h. */ 7216int i; 7217_ACEOF 7218if ac_fn_c_try_compile "$LINENO" 7219then : 7220 xorg_cv_cc_flag_unknown_warning_option=yes 7221else $as_nop 7222 xorg_cv_cc_flag_unknown_warning_option=no 7223fi 7224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7225fi 7226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7227printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7229 CFLAGS="$xorg_testset_save_CFLAGS" 7230fi 7231 7232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7235 fi 7236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7238printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7239if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 7250else $as_nop 7251 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7256printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7258 CFLAGS="$xorg_testset_save_CFLAGS" 7259fi 7260 7261found="no" 7262 7263 if test $found = "no" ; then 7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7266 fi 7267 7268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7270 fi 7271 7272 CFLAGS="$CFLAGS -Wredundant-decls" 7273 7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7275printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7276 cacheid=xorg_cv_cc_flag__Wredundant_decls 7277 if eval test \${$cacheid+y} 7278then : 7279 printf %s "(cached) " >&6 7280else $as_nop 7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282/* end confdefs.h. */ 7283int i; 7284int 7285main (void) 7286{ 7287 7288 ; 7289 return 0; 7290} 7291_ACEOF 7292if ac_fn_c_try_link "$LINENO" 7293then : 7294 eval $cacheid=yes 7295else $as_nop 7296 eval $cacheid=no 7297fi 7298rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7299 conftest$ac_exeext conftest.$ac_ext 7300fi 7301 7302 7303 CFLAGS="$xorg_testset_save_CFLAGS" 7304 7305 eval supported=\$$cacheid 7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7307printf "%s\n" "$supported" >&6; } 7308 if test "$supported" = "yes" ; then 7309 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7310 found="yes" 7311 fi 7312 fi 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328xorg_testset_save_CFLAGS="$CFLAGS" 7329 7330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7333printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7334if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7335then : 7336 printf %s "(cached) " >&6 7337else $as_nop 7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7339/* end confdefs.h. */ 7340int i; 7341_ACEOF 7342if ac_fn_c_try_compile "$LINENO" 7343then : 7344 xorg_cv_cc_flag_unknown_warning_option=yes 7345else $as_nop 7346 xorg_cv_cc_flag_unknown_warning_option=no 7347fi 7348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7349fi 7350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7351printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7353 CFLAGS="$xorg_testset_save_CFLAGS" 7354fi 7355 7356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7359 fi 7360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7362printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7363if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 7374else $as_nop 7375 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7380printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7382 CFLAGS="$xorg_testset_save_CFLAGS" 7383fi 7384 7385found="no" 7386 7387 if test $found = "no" ; then 7388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7390 fi 7391 7392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7394 fi 7395 7396 CFLAGS="$CFLAGS -Wlogical-op" 7397 7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7399printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7400 cacheid=xorg_cv_cc_flag__Wlogical_op 7401 if eval test \${$cacheid+y} 7402then : 7403 printf %s "(cached) " >&6 7404else $as_nop 7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406/* end confdefs.h. */ 7407int i; 7408int 7409main (void) 7410{ 7411 7412 ; 7413 return 0; 7414} 7415_ACEOF 7416if ac_fn_c_try_link "$LINENO" 7417then : 7418 eval $cacheid=yes 7419else $as_nop 7420 eval $cacheid=no 7421fi 7422rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7423 conftest$ac_exeext conftest.$ac_ext 7424fi 7425 7426 7427 CFLAGS="$xorg_testset_save_CFLAGS" 7428 7429 eval supported=\$$cacheid 7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7431printf "%s\n" "$supported" >&6; } 7432 if test "$supported" = "yes" ; then 7433 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7434 found="yes" 7435 fi 7436 fi 7437 7438 7439 7440# These are currently disabled because they are noisy. They will be enabled 7441# in the future once the codebase is sufficiently modernized to silence 7442# them. For now, I don't want them to drown out the other warnings. 7443# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7444# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7445# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7446 7447# Turn some warnings into errors, so we don't accidently get successful builds 7448# when there are problems that should be fixed. 7449 7450if test "x$SELECTIVE_WERROR" = "xyes" ; then 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464xorg_testset_save_CFLAGS="$CFLAGS" 7465 7466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7470if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7471then : 7472 printf %s "(cached) " >&6 7473else $as_nop 7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475/* end confdefs.h. */ 7476int i; 7477_ACEOF 7478if ac_fn_c_try_compile "$LINENO" 7479then : 7480 xorg_cv_cc_flag_unknown_warning_option=yes 7481else $as_nop 7482 xorg_cv_cc_flag_unknown_warning_option=no 7483fi 7484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7485fi 7486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7489 CFLAGS="$xorg_testset_save_CFLAGS" 7490fi 7491 7492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7495 fi 7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7499if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 7510else $as_nop 7511 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7516printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7518 CFLAGS="$xorg_testset_save_CFLAGS" 7519fi 7520 7521found="no" 7522 7523 if test $found = "no" ; then 7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 fi 7527 7528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7530 fi 7531 7532 CFLAGS="$CFLAGS -Werror=implicit" 7533 7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7535printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7536 cacheid=xorg_cv_cc_flag__Werror_implicit 7537 if eval test \${$cacheid+y} 7538then : 7539 printf %s "(cached) " >&6 7540else $as_nop 7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7542/* end confdefs.h. */ 7543int i; 7544int 7545main (void) 7546{ 7547 7548 ; 7549 return 0; 7550} 7551_ACEOF 7552if ac_fn_c_try_link "$LINENO" 7553then : 7554 eval $cacheid=yes 7555else $as_nop 7556 eval $cacheid=no 7557fi 7558rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7559 conftest$ac_exeext conftest.$ac_ext 7560fi 7561 7562 7563 CFLAGS="$xorg_testset_save_CFLAGS" 7564 7565 eval supported=\$$cacheid 7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7567printf "%s\n" "$supported" >&6; } 7568 if test "$supported" = "yes" ; then 7569 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7570 found="yes" 7571 fi 7572 fi 7573 7574 if test $found = "no" ; then 7575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7577 fi 7578 7579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7581 fi 7582 7583 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7584 7585 { 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 7586printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7587 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7588 if eval test \${$cacheid+y} 7589then : 7590 printf %s "(cached) " >&6 7591else $as_nop 7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7593/* end confdefs.h. */ 7594int i; 7595int 7596main (void) 7597{ 7598 7599 ; 7600 return 0; 7601} 7602_ACEOF 7603if ac_fn_c_try_link "$LINENO" 7604then : 7605 eval $cacheid=yes 7606else $as_nop 7607 eval $cacheid=no 7608fi 7609rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7610 conftest$ac_exeext conftest.$ac_ext 7611fi 7612 7613 7614 CFLAGS="$xorg_testset_save_CFLAGS" 7615 7616 eval supported=\$$cacheid 7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7618printf "%s\n" "$supported" >&6; } 7619 if test "$supported" = "yes" ; then 7620 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7621 found="yes" 7622 fi 7623 fi 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639xorg_testset_save_CFLAGS="$CFLAGS" 7640 7641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7644printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7645if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7646then : 7647 printf %s "(cached) " >&6 7648else $as_nop 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7650/* end confdefs.h. */ 7651int i; 7652_ACEOF 7653if ac_fn_c_try_compile "$LINENO" 7654then : 7655 xorg_cv_cc_flag_unknown_warning_option=yes 7656else $as_nop 7657 xorg_cv_cc_flag_unknown_warning_option=no 7658fi 7659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7660fi 7661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7662printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7664 CFLAGS="$xorg_testset_save_CFLAGS" 7665fi 7666 7667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7670 fi 7671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7673printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7674if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 7685else $as_nop 7686 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7693 CFLAGS="$xorg_testset_save_CFLAGS" 7694fi 7695 7696found="no" 7697 7698 if test $found = "no" ; then 7699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7701 fi 7702 7703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7705 fi 7706 7707 CFLAGS="$CFLAGS -Werror=nonnull" 7708 7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7710printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7711 cacheid=xorg_cv_cc_flag__Werror_nonnull 7712 if eval test \${$cacheid+y} 7713then : 7714 printf %s "(cached) " >&6 7715else $as_nop 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717/* end confdefs.h. */ 7718int i; 7719int 7720main (void) 7721{ 7722 7723 ; 7724 return 0; 7725} 7726_ACEOF 7727if ac_fn_c_try_link "$LINENO" 7728then : 7729 eval $cacheid=yes 7730else $as_nop 7731 eval $cacheid=no 7732fi 7733rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7734 conftest$ac_exeext conftest.$ac_ext 7735fi 7736 7737 7738 CFLAGS="$xorg_testset_save_CFLAGS" 7739 7740 eval supported=\$$cacheid 7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7742printf "%s\n" "$supported" >&6; } 7743 if test "$supported" = "yes" ; then 7744 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7745 found="yes" 7746 fi 7747 fi 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763xorg_testset_save_CFLAGS="$CFLAGS" 7764 7765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7768printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7769if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7770then : 7771 printf %s "(cached) " >&6 7772else $as_nop 7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7774/* end confdefs.h. */ 7775int i; 7776_ACEOF 7777if ac_fn_c_try_compile "$LINENO" 7778then : 7779 xorg_cv_cc_flag_unknown_warning_option=yes 7780else $as_nop 7781 xorg_cv_cc_flag_unknown_warning_option=no 7782fi 7783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7784fi 7785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7786printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7788 CFLAGS="$xorg_testset_save_CFLAGS" 7789fi 7790 7791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7794 fi 7795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7797printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7798if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 7809else $as_nop 7810 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7817 CFLAGS="$xorg_testset_save_CFLAGS" 7818fi 7819 7820found="no" 7821 7822 if test $found = "no" ; then 7823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7825 fi 7826 7827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7829 fi 7830 7831 CFLAGS="$CFLAGS -Werror=init-self" 7832 7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7834printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7835 cacheid=xorg_cv_cc_flag__Werror_init_self 7836 if eval test \${$cacheid+y} 7837then : 7838 printf %s "(cached) " >&6 7839else $as_nop 7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7841/* end confdefs.h. */ 7842int i; 7843int 7844main (void) 7845{ 7846 7847 ; 7848 return 0; 7849} 7850_ACEOF 7851if ac_fn_c_try_link "$LINENO" 7852then : 7853 eval $cacheid=yes 7854else $as_nop 7855 eval $cacheid=no 7856fi 7857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7858 conftest$ac_exeext conftest.$ac_ext 7859fi 7860 7861 7862 CFLAGS="$xorg_testset_save_CFLAGS" 7863 7864 eval supported=\$$cacheid 7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7866printf "%s\n" "$supported" >&6; } 7867 if test "$supported" = "yes" ; then 7868 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7869 found="yes" 7870 fi 7871 fi 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887xorg_testset_save_CFLAGS="$CFLAGS" 7888 7889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7892printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7893if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7894then : 7895 printf %s "(cached) " >&6 7896else $as_nop 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899int i; 7900_ACEOF 7901if ac_fn_c_try_compile "$LINENO" 7902then : 7903 xorg_cv_cc_flag_unknown_warning_option=yes 7904else $as_nop 7905 xorg_cv_cc_flag_unknown_warning_option=no 7906fi 7907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7908fi 7909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7912 CFLAGS="$xorg_testset_save_CFLAGS" 7913fi 7914 7915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7918 fi 7919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7922if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 7933else $as_nop 7934 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7941 CFLAGS="$xorg_testset_save_CFLAGS" 7942fi 7943 7944found="no" 7945 7946 if test $found = "no" ; then 7947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7949 fi 7950 7951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7953 fi 7954 7955 CFLAGS="$CFLAGS -Werror=main" 7956 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7958printf %s "checking if $CC supports -Werror=main... " >&6; } 7959 cacheid=xorg_cv_cc_flag__Werror_main 7960 if eval test \${$cacheid+y} 7961then : 7962 printf %s "(cached) " >&6 7963else $as_nop 7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7965/* end confdefs.h. */ 7966int i; 7967int 7968main (void) 7969{ 7970 7971 ; 7972 return 0; 7973} 7974_ACEOF 7975if ac_fn_c_try_link "$LINENO" 7976then : 7977 eval $cacheid=yes 7978else $as_nop 7979 eval $cacheid=no 7980fi 7981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7982 conftest$ac_exeext conftest.$ac_ext 7983fi 7984 7985 7986 CFLAGS="$xorg_testset_save_CFLAGS" 7987 7988 eval supported=\$$cacheid 7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7990printf "%s\n" "$supported" >&6; } 7991 if test "$supported" = "yes" ; then 7992 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7993 found="yes" 7994 fi 7995 fi 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011xorg_testset_save_CFLAGS="$CFLAGS" 8012 8013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8017if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8018then : 8019 printf %s "(cached) " >&6 8020else $as_nop 8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8022/* end confdefs.h. */ 8023int i; 8024_ACEOF 8025if ac_fn_c_try_compile "$LINENO" 8026then : 8027 xorg_cv_cc_flag_unknown_warning_option=yes 8028else $as_nop 8029 xorg_cv_cc_flag_unknown_warning_option=no 8030fi 8031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8032fi 8033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8034printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8036 CFLAGS="$xorg_testset_save_CFLAGS" 8037fi 8038 8039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8042 fi 8043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8045printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8046if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 8057else $as_nop 8058 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8065 CFLAGS="$xorg_testset_save_CFLAGS" 8066fi 8067 8068found="no" 8069 8070 if test $found = "no" ; then 8071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8073 fi 8074 8075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8077 fi 8078 8079 CFLAGS="$CFLAGS -Werror=missing-braces" 8080 8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8082printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8083 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8084 if eval test \${$cacheid+y} 8085then : 8086 printf %s "(cached) " >&6 8087else $as_nop 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8089/* end confdefs.h. */ 8090int i; 8091int 8092main (void) 8093{ 8094 8095 ; 8096 return 0; 8097} 8098_ACEOF 8099if ac_fn_c_try_link "$LINENO" 8100then : 8101 eval $cacheid=yes 8102else $as_nop 8103 eval $cacheid=no 8104fi 8105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8106 conftest$ac_exeext conftest.$ac_ext 8107fi 8108 8109 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111 8112 eval supported=\$$cacheid 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8114printf "%s\n" "$supported" >&6; } 8115 if test "$supported" = "yes" ; then 8116 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8117 found="yes" 8118 fi 8119 fi 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135xorg_testset_save_CFLAGS="$CFLAGS" 8136 8137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8140printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8141if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8142then : 8143 printf %s "(cached) " >&6 8144else $as_nop 8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146/* end confdefs.h. */ 8147int i; 8148_ACEOF 8149if ac_fn_c_try_compile "$LINENO" 8150then : 8151 xorg_cv_cc_flag_unknown_warning_option=yes 8152else $as_nop 8153 xorg_cv_cc_flag_unknown_warning_option=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8156fi 8157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8160 CFLAGS="$xorg_testset_save_CFLAGS" 8161fi 8162 8163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8166 fi 8167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8170if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 8181else $as_nop 8182 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8189 CFLAGS="$xorg_testset_save_CFLAGS" 8190fi 8191 8192found="no" 8193 8194 if test $found = "no" ; then 8195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8197 fi 8198 8199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8201 fi 8202 8203 CFLAGS="$CFLAGS -Werror=sequence-point" 8204 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8206printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8207 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8208 if eval test \${$cacheid+y} 8209then : 8210 printf %s "(cached) " >&6 8211else $as_nop 8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8213/* end confdefs.h. */ 8214int i; 8215int 8216main (void) 8217{ 8218 8219 ; 8220 return 0; 8221} 8222_ACEOF 8223if ac_fn_c_try_link "$LINENO" 8224then : 8225 eval $cacheid=yes 8226else $as_nop 8227 eval $cacheid=no 8228fi 8229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8230 conftest$ac_exeext conftest.$ac_ext 8231fi 8232 8233 8234 CFLAGS="$xorg_testset_save_CFLAGS" 8235 8236 eval supported=\$$cacheid 8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8238printf "%s\n" "$supported" >&6; } 8239 if test "$supported" = "yes" ; then 8240 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8241 found="yes" 8242 fi 8243 fi 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259xorg_testset_save_CFLAGS="$CFLAGS" 8260 8261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8264printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8265if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8266then : 8267 printf %s "(cached) " >&6 8268else $as_nop 8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8270/* end confdefs.h. */ 8271int i; 8272_ACEOF 8273if ac_fn_c_try_compile "$LINENO" 8274then : 8275 xorg_cv_cc_flag_unknown_warning_option=yes 8276else $as_nop 8277 xorg_cv_cc_flag_unknown_warning_option=no 8278fi 8279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8280fi 8281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8282printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8284 CFLAGS="$xorg_testset_save_CFLAGS" 8285fi 8286 8287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8290 fi 8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8293printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8294if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 8305else $as_nop 8306 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314fi 8315 8316found="no" 8317 8318 if test $found = "no" ; then 8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8321 fi 8322 8323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8325 fi 8326 8327 CFLAGS="$CFLAGS -Werror=return-type" 8328 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8330printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8331 cacheid=xorg_cv_cc_flag__Werror_return_type 8332 if eval test \${$cacheid+y} 8333then : 8334 printf %s "(cached) " >&6 8335else $as_nop 8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337/* end confdefs.h. */ 8338int i; 8339int 8340main (void) 8341{ 8342 8343 ; 8344 return 0; 8345} 8346_ACEOF 8347if ac_fn_c_try_link "$LINENO" 8348then : 8349 eval $cacheid=yes 8350else $as_nop 8351 eval $cacheid=no 8352fi 8353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8354 conftest$ac_exeext conftest.$ac_ext 8355fi 8356 8357 8358 CFLAGS="$xorg_testset_save_CFLAGS" 8359 8360 eval supported=\$$cacheid 8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8362printf "%s\n" "$supported" >&6; } 8363 if test "$supported" = "yes" ; then 8364 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8365 found="yes" 8366 fi 8367 fi 8368 8369 if test $found = "no" ; then 8370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8372 fi 8373 8374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8376 fi 8377 8378 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8379 8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8381printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8382 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8383 if eval test \${$cacheid+y} 8384then : 8385 printf %s "(cached) " >&6 8386else $as_nop 8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8388/* end confdefs.h. */ 8389int i; 8390int 8391main (void) 8392{ 8393 8394 ; 8395 return 0; 8396} 8397_ACEOF 8398if ac_fn_c_try_link "$LINENO" 8399then : 8400 eval $cacheid=yes 8401else $as_nop 8402 eval $cacheid=no 8403fi 8404rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8405 conftest$ac_exeext conftest.$ac_ext 8406fi 8407 8408 8409 CFLAGS="$xorg_testset_save_CFLAGS" 8410 8411 eval supported=\$$cacheid 8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8413printf "%s\n" "$supported" >&6; } 8414 if test "$supported" = "yes" ; then 8415 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8416 found="yes" 8417 fi 8418 fi 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434xorg_testset_save_CFLAGS="$CFLAGS" 8435 8436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8439printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8440if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8441then : 8442 printf %s "(cached) " >&6 8443else $as_nop 8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8445/* end confdefs.h. */ 8446int i; 8447_ACEOF 8448if ac_fn_c_try_compile "$LINENO" 8449then : 8450 xorg_cv_cc_flag_unknown_warning_option=yes 8451else $as_nop 8452 xorg_cv_cc_flag_unknown_warning_option=no 8453fi 8454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8455fi 8456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8459 CFLAGS="$xorg_testset_save_CFLAGS" 8460fi 8461 8462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8469if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 8480else $as_nop 8481 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8486printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8488 CFLAGS="$xorg_testset_save_CFLAGS" 8489fi 8490 8491found="no" 8492 8493 if test $found = "no" ; then 8494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8496 fi 8497 8498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8500 fi 8501 8502 CFLAGS="$CFLAGS -Werror=trigraphs" 8503 8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8505printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8506 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8507 if eval test \${$cacheid+y} 8508then : 8509 printf %s "(cached) " >&6 8510else $as_nop 8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8512/* end confdefs.h. */ 8513int i; 8514int 8515main (void) 8516{ 8517 8518 ; 8519 return 0; 8520} 8521_ACEOF 8522if ac_fn_c_try_link "$LINENO" 8523then : 8524 eval $cacheid=yes 8525else $as_nop 8526 eval $cacheid=no 8527fi 8528rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8529 conftest$ac_exeext conftest.$ac_ext 8530fi 8531 8532 8533 CFLAGS="$xorg_testset_save_CFLAGS" 8534 8535 eval supported=\$$cacheid 8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8537printf "%s\n" "$supported" >&6; } 8538 if test "$supported" = "yes" ; then 8539 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8540 found="yes" 8541 fi 8542 fi 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558xorg_testset_save_CFLAGS="$CFLAGS" 8559 8560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8563printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8564if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8565then : 8566 printf %s "(cached) " >&6 8567else $as_nop 8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8569/* end confdefs.h. */ 8570int i; 8571_ACEOF 8572if ac_fn_c_try_compile "$LINENO" 8573then : 8574 xorg_cv_cc_flag_unknown_warning_option=yes 8575else $as_nop 8576 xorg_cv_cc_flag_unknown_warning_option=no 8577fi 8578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8579fi 8580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8581printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8583 CFLAGS="$xorg_testset_save_CFLAGS" 8584fi 8585 8586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8589 fi 8590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8592printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8593if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 8604else $as_nop 8605 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8610printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8612 CFLAGS="$xorg_testset_save_CFLAGS" 8613fi 8614 8615found="no" 8616 8617 if test $found = "no" ; then 8618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8620 fi 8621 8622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8624 fi 8625 8626 CFLAGS="$CFLAGS -Werror=array-bounds" 8627 8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8629printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8630 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8631 if eval test \${$cacheid+y} 8632then : 8633 printf %s "(cached) " >&6 8634else $as_nop 8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8636/* end confdefs.h. */ 8637int i; 8638int 8639main (void) 8640{ 8641 8642 ; 8643 return 0; 8644} 8645_ACEOF 8646if ac_fn_c_try_link "$LINENO" 8647then : 8648 eval $cacheid=yes 8649else $as_nop 8650 eval $cacheid=no 8651fi 8652rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8653 conftest$ac_exeext conftest.$ac_ext 8654fi 8655 8656 8657 CFLAGS="$xorg_testset_save_CFLAGS" 8658 8659 eval supported=\$$cacheid 8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8661printf "%s\n" "$supported" >&6; } 8662 if test "$supported" = "yes" ; then 8663 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8664 found="yes" 8665 fi 8666 fi 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682xorg_testset_save_CFLAGS="$CFLAGS" 8683 8684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8688if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8689then : 8690 printf %s "(cached) " >&6 8691else $as_nop 8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8693/* end confdefs.h. */ 8694int i; 8695_ACEOF 8696if ac_fn_c_try_compile "$LINENO" 8697then : 8698 xorg_cv_cc_flag_unknown_warning_option=yes 8699else $as_nop 8700 xorg_cv_cc_flag_unknown_warning_option=no 8701fi 8702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8703fi 8704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8705printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8707 CFLAGS="$xorg_testset_save_CFLAGS" 8708fi 8709 8710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8713 fi 8714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8716printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8717if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 8728else $as_nop 8729 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8734printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8736 CFLAGS="$xorg_testset_save_CFLAGS" 8737fi 8738 8739found="no" 8740 8741 if test $found = "no" ; then 8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 fi 8745 8746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8748 fi 8749 8750 CFLAGS="$CFLAGS -Werror=write-strings" 8751 8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8753printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8754 cacheid=xorg_cv_cc_flag__Werror_write_strings 8755 if eval test \${$cacheid+y} 8756then : 8757 printf %s "(cached) " >&6 8758else $as_nop 8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8760/* end confdefs.h. */ 8761int i; 8762int 8763main (void) 8764{ 8765 8766 ; 8767 return 0; 8768} 8769_ACEOF 8770if ac_fn_c_try_link "$LINENO" 8771then : 8772 eval $cacheid=yes 8773else $as_nop 8774 eval $cacheid=no 8775fi 8776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8777 conftest$ac_exeext conftest.$ac_ext 8778fi 8779 8780 8781 CFLAGS="$xorg_testset_save_CFLAGS" 8782 8783 eval supported=\$$cacheid 8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8785printf "%s\n" "$supported" >&6; } 8786 if test "$supported" = "yes" ; then 8787 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8788 found="yes" 8789 fi 8790 fi 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806xorg_testset_save_CFLAGS="$CFLAGS" 8807 8808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8812if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8813then : 8814 printf %s "(cached) " >&6 8815else $as_nop 8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8817/* end confdefs.h. */ 8818int i; 8819_ACEOF 8820if ac_fn_c_try_compile "$LINENO" 8821then : 8822 xorg_cv_cc_flag_unknown_warning_option=yes 8823else $as_nop 8824 xorg_cv_cc_flag_unknown_warning_option=no 8825fi 8826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8827fi 8828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8831 CFLAGS="$xorg_testset_save_CFLAGS" 8832fi 8833 8834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8837 fi 8838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8841if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 8852else $as_nop 8853 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8858printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861fi 8862 8863found="no" 8864 8865 if test $found = "no" ; then 8866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8868 fi 8869 8870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8872 fi 8873 8874 CFLAGS="$CFLAGS -Werror=address" 8875 8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8877printf %s "checking if $CC supports -Werror=address... " >&6; } 8878 cacheid=xorg_cv_cc_flag__Werror_address 8879 if eval test \${$cacheid+y} 8880then : 8881 printf %s "(cached) " >&6 8882else $as_nop 8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884/* end confdefs.h. */ 8885int i; 8886int 8887main (void) 8888{ 8889 8890 ; 8891 return 0; 8892} 8893_ACEOF 8894if ac_fn_c_try_link "$LINENO" 8895then : 8896 eval $cacheid=yes 8897else $as_nop 8898 eval $cacheid=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8901 conftest$ac_exeext conftest.$ac_ext 8902fi 8903 8904 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906 8907 eval supported=\$$cacheid 8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8909printf "%s\n" "$supported" >&6; } 8910 if test "$supported" = "yes" ; then 8911 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8912 found="yes" 8913 fi 8914 fi 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930xorg_testset_save_CFLAGS="$CFLAGS" 8931 8932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8936if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8937then : 8938 printf %s "(cached) " >&6 8939else $as_nop 8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941/* end confdefs.h. */ 8942int i; 8943_ACEOF 8944if ac_fn_c_try_compile "$LINENO" 8945then : 8946 xorg_cv_cc_flag_unknown_warning_option=yes 8947else $as_nop 8948 xorg_cv_cc_flag_unknown_warning_option=no 8949fi 8950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8951fi 8952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8955 CFLAGS="$xorg_testset_save_CFLAGS" 8956fi 8957 8958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8961 fi 8962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8965if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 8976else $as_nop 8977 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985fi 8986 8987found="no" 8988 8989 if test $found = "no" ; then 8990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8992 fi 8993 8994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8996 fi 8997 8998 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8999 9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9001printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9002 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9003 if eval test \${$cacheid+y} 9004then : 9005 printf %s "(cached) " >&6 9006else $as_nop 9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9008/* end confdefs.h. */ 9009int i; 9010int 9011main (void) 9012{ 9013 9014 ; 9015 return 0; 9016} 9017_ACEOF 9018if ac_fn_c_try_link "$LINENO" 9019then : 9020 eval $cacheid=yes 9021else $as_nop 9022 eval $cacheid=no 9023fi 9024rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9025 conftest$ac_exeext conftest.$ac_ext 9026fi 9027 9028 9029 CFLAGS="$xorg_testset_save_CFLAGS" 9030 9031 eval supported=\$$cacheid 9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9033printf "%s\n" "$supported" >&6; } 9034 if test "$supported" = "yes" ; then 9035 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9036 found="yes" 9037 fi 9038 fi 9039 9040 if test $found = "no" ; then 9041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9043 fi 9044 9045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9047 fi 9048 9049 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9050 9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9052printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9053 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9054 if eval test \${$cacheid+y} 9055then : 9056 printf %s "(cached) " >&6 9057else $as_nop 9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9059/* end confdefs.h. */ 9060int i; 9061int 9062main (void) 9063{ 9064 9065 ; 9066 return 0; 9067} 9068_ACEOF 9069if ac_fn_c_try_link "$LINENO" 9070then : 9071 eval $cacheid=yes 9072else $as_nop 9073 eval $cacheid=no 9074fi 9075rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9076 conftest$ac_exeext conftest.$ac_ext 9077fi 9078 9079 9080 CFLAGS="$xorg_testset_save_CFLAGS" 9081 9082 eval supported=\$$cacheid 9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9084printf "%s\n" "$supported" >&6; } 9085 if test "$supported" = "yes" ; then 9086 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9087 found="yes" 9088 fi 9089 fi 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105xorg_testset_save_CFLAGS="$CFLAGS" 9106 9107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9111if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9112then : 9113 printf %s "(cached) " >&6 9114else $as_nop 9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116/* end confdefs.h. */ 9117int i; 9118_ACEOF 9119if ac_fn_c_try_compile "$LINENO" 9120then : 9121 xorg_cv_cc_flag_unknown_warning_option=yes 9122else $as_nop 9123 xorg_cv_cc_flag_unknown_warning_option=no 9124fi 9125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9126fi 9127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9130 CFLAGS="$xorg_testset_save_CFLAGS" 9131fi 9132 9133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9136 fi 9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9140if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 9151else $as_nop 9152 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9159 CFLAGS="$xorg_testset_save_CFLAGS" 9160fi 9161 9162found="no" 9163 9164 if test $found = "no" ; then 9165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9167 fi 9168 9169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9171 fi 9172 9173 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9174 9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9176printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9177 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9178 if eval test \${$cacheid+y} 9179then : 9180 printf %s "(cached) " >&6 9181else $as_nop 9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9183/* end confdefs.h. */ 9184int i; 9185int 9186main (void) 9187{ 9188 9189 ; 9190 return 0; 9191} 9192_ACEOF 9193if ac_fn_c_try_link "$LINENO" 9194then : 9195 eval $cacheid=yes 9196else $as_nop 9197 eval $cacheid=no 9198fi 9199rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9200 conftest$ac_exeext conftest.$ac_ext 9201fi 9202 9203 9204 CFLAGS="$xorg_testset_save_CFLAGS" 9205 9206 eval supported=\$$cacheid 9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9208printf "%s\n" "$supported" >&6; } 9209 if test "$supported" = "yes" ; then 9210 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9211 found="yes" 9212 fi 9213 fi 9214 9215 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9216else 9217{ 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 9218printf "%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;} 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232xorg_testset_save_CFLAGS="$CFLAGS" 9233 9234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9238if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9239then : 9240 printf %s "(cached) " >&6 9241else $as_nop 9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9243/* end confdefs.h. */ 9244int i; 9245_ACEOF 9246if ac_fn_c_try_compile "$LINENO" 9247then : 9248 xorg_cv_cc_flag_unknown_warning_option=yes 9249else $as_nop 9250 xorg_cv_cc_flag_unknown_warning_option=no 9251fi 9252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9253fi 9254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9257 CFLAGS="$xorg_testset_save_CFLAGS" 9258fi 9259 9260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9263 fi 9264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9267if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 9278else $as_nop 9279 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287fi 9288 9289found="no" 9290 9291 if test $found = "no" ; then 9292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9294 fi 9295 9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9298 fi 9299 9300 CFLAGS="$CFLAGS -Wimplicit" 9301 9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9303printf %s "checking if $CC supports -Wimplicit... " >&6; } 9304 cacheid=xorg_cv_cc_flag__Wimplicit 9305 if eval test \${$cacheid+y} 9306then : 9307 printf %s "(cached) " >&6 9308else $as_nop 9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9310/* end confdefs.h. */ 9311int i; 9312int 9313main (void) 9314{ 9315 9316 ; 9317 return 0; 9318} 9319_ACEOF 9320if ac_fn_c_try_link "$LINENO" 9321then : 9322 eval $cacheid=yes 9323else $as_nop 9324 eval $cacheid=no 9325fi 9326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9327 conftest$ac_exeext conftest.$ac_ext 9328fi 9329 9330 9331 CFLAGS="$xorg_testset_save_CFLAGS" 9332 9333 eval supported=\$$cacheid 9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9335printf "%s\n" "$supported" >&6; } 9336 if test "$supported" = "yes" ; then 9337 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9338 found="yes" 9339 fi 9340 fi 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356xorg_testset_save_CFLAGS="$CFLAGS" 9357 9358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9362if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9363then : 9364 printf %s "(cached) " >&6 9365else $as_nop 9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9367/* end confdefs.h. */ 9368int i; 9369_ACEOF 9370if ac_fn_c_try_compile "$LINENO" 9371then : 9372 xorg_cv_cc_flag_unknown_warning_option=yes 9373else $as_nop 9374 xorg_cv_cc_flag_unknown_warning_option=no 9375fi 9376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9377fi 9378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9381 CFLAGS="$xorg_testset_save_CFLAGS" 9382fi 9383 9384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9387 fi 9388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9391if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 9402else $as_nop 9403 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9410 CFLAGS="$xorg_testset_save_CFLAGS" 9411fi 9412 9413found="no" 9414 9415 if test $found = "no" ; then 9416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9418 fi 9419 9420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9422 fi 9423 9424 CFLAGS="$CFLAGS -Wnonnull" 9425 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9427printf %s "checking if $CC supports -Wnonnull... " >&6; } 9428 cacheid=xorg_cv_cc_flag__Wnonnull 9429 if eval test \${$cacheid+y} 9430then : 9431 printf %s "(cached) " >&6 9432else $as_nop 9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9434/* end confdefs.h. */ 9435int i; 9436int 9437main (void) 9438{ 9439 9440 ; 9441 return 0; 9442} 9443_ACEOF 9444if ac_fn_c_try_link "$LINENO" 9445then : 9446 eval $cacheid=yes 9447else $as_nop 9448 eval $cacheid=no 9449fi 9450rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9451 conftest$ac_exeext conftest.$ac_ext 9452fi 9453 9454 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456 9457 eval supported=\$$cacheid 9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9459printf "%s\n" "$supported" >&6; } 9460 if test "$supported" = "yes" ; then 9461 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9462 found="yes" 9463 fi 9464 fi 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480xorg_testset_save_CFLAGS="$CFLAGS" 9481 9482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9485printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9486if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9487then : 9488 printf %s "(cached) " >&6 9489else $as_nop 9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9491/* end confdefs.h. */ 9492int i; 9493_ACEOF 9494if ac_fn_c_try_compile "$LINENO" 9495then : 9496 xorg_cv_cc_flag_unknown_warning_option=yes 9497else $as_nop 9498 xorg_cv_cc_flag_unknown_warning_option=no 9499fi 9500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9501fi 9502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9505 CFLAGS="$xorg_testset_save_CFLAGS" 9506fi 9507 9508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9511 fi 9512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9515if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 9526else $as_nop 9527 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9534 CFLAGS="$xorg_testset_save_CFLAGS" 9535fi 9536 9537found="no" 9538 9539 if test $found = "no" ; then 9540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9542 fi 9543 9544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9546 fi 9547 9548 CFLAGS="$CFLAGS -Winit-self" 9549 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9551printf %s "checking if $CC supports -Winit-self... " >&6; } 9552 cacheid=xorg_cv_cc_flag__Winit_self 9553 if eval test \${$cacheid+y} 9554then : 9555 printf %s "(cached) " >&6 9556else $as_nop 9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9558/* end confdefs.h. */ 9559int i; 9560int 9561main (void) 9562{ 9563 9564 ; 9565 return 0; 9566} 9567_ACEOF 9568if ac_fn_c_try_link "$LINENO" 9569then : 9570 eval $cacheid=yes 9571else $as_nop 9572 eval $cacheid=no 9573fi 9574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9575 conftest$ac_exeext conftest.$ac_ext 9576fi 9577 9578 9579 CFLAGS="$xorg_testset_save_CFLAGS" 9580 9581 eval supported=\$$cacheid 9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9583printf "%s\n" "$supported" >&6; } 9584 if test "$supported" = "yes" ; then 9585 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9586 found="yes" 9587 fi 9588 fi 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604xorg_testset_save_CFLAGS="$CFLAGS" 9605 9606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9609printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9610if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9611then : 9612 printf %s "(cached) " >&6 9613else $as_nop 9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9615/* end confdefs.h. */ 9616int i; 9617_ACEOF 9618if ac_fn_c_try_compile "$LINENO" 9619then : 9620 xorg_cv_cc_flag_unknown_warning_option=yes 9621else $as_nop 9622 xorg_cv_cc_flag_unknown_warning_option=no 9623fi 9624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9625fi 9626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9627printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9629 CFLAGS="$xorg_testset_save_CFLAGS" 9630fi 9631 9632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9635 fi 9636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9638printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9639if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 9650else $as_nop 9651 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9658 CFLAGS="$xorg_testset_save_CFLAGS" 9659fi 9660 9661found="no" 9662 9663 if test $found = "no" ; then 9664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9666 fi 9667 9668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9670 fi 9671 9672 CFLAGS="$CFLAGS -Wmain" 9673 9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9675printf %s "checking if $CC supports -Wmain... " >&6; } 9676 cacheid=xorg_cv_cc_flag__Wmain 9677 if eval test \${$cacheid+y} 9678then : 9679 printf %s "(cached) " >&6 9680else $as_nop 9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9682/* end confdefs.h. */ 9683int i; 9684int 9685main (void) 9686{ 9687 9688 ; 9689 return 0; 9690} 9691_ACEOF 9692if ac_fn_c_try_link "$LINENO" 9693then : 9694 eval $cacheid=yes 9695else $as_nop 9696 eval $cacheid=no 9697fi 9698rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9699 conftest$ac_exeext conftest.$ac_ext 9700fi 9701 9702 9703 CFLAGS="$xorg_testset_save_CFLAGS" 9704 9705 eval supported=\$$cacheid 9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9707printf "%s\n" "$supported" >&6; } 9708 if test "$supported" = "yes" ; then 9709 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9710 found="yes" 9711 fi 9712 fi 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728xorg_testset_save_CFLAGS="$CFLAGS" 9729 9730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9733printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9734if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9735then : 9736 printf %s "(cached) " >&6 9737else $as_nop 9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739/* end confdefs.h. */ 9740int i; 9741_ACEOF 9742if ac_fn_c_try_compile "$LINENO" 9743then : 9744 xorg_cv_cc_flag_unknown_warning_option=yes 9745else $as_nop 9746 xorg_cv_cc_flag_unknown_warning_option=no 9747fi 9748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9749fi 9750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9751printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9753 CFLAGS="$xorg_testset_save_CFLAGS" 9754fi 9755 9756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9759 fi 9760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9762printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9763if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 9774else $as_nop 9775 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9780printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783fi 9784 9785found="no" 9786 9787 if test $found = "no" ; then 9788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9790 fi 9791 9792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9794 fi 9795 9796 CFLAGS="$CFLAGS -Wmissing-braces" 9797 9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9799printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9800 cacheid=xorg_cv_cc_flag__Wmissing_braces 9801 if eval test \${$cacheid+y} 9802then : 9803 printf %s "(cached) " >&6 9804else $as_nop 9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9806/* end confdefs.h. */ 9807int i; 9808int 9809main (void) 9810{ 9811 9812 ; 9813 return 0; 9814} 9815_ACEOF 9816if ac_fn_c_try_link "$LINENO" 9817then : 9818 eval $cacheid=yes 9819else $as_nop 9820 eval $cacheid=no 9821fi 9822rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9823 conftest$ac_exeext conftest.$ac_ext 9824fi 9825 9826 9827 CFLAGS="$xorg_testset_save_CFLAGS" 9828 9829 eval supported=\$$cacheid 9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9831printf "%s\n" "$supported" >&6; } 9832 if test "$supported" = "yes" ; then 9833 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9834 found="yes" 9835 fi 9836 fi 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852xorg_testset_save_CFLAGS="$CFLAGS" 9853 9854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9857printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9858if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9859then : 9860 printf %s "(cached) " >&6 9861else $as_nop 9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9863/* end confdefs.h. */ 9864int i; 9865_ACEOF 9866if ac_fn_c_try_compile "$LINENO" 9867then : 9868 xorg_cv_cc_flag_unknown_warning_option=yes 9869else $as_nop 9870 xorg_cv_cc_flag_unknown_warning_option=no 9871fi 9872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9873fi 9874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9875printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9877 CFLAGS="$xorg_testset_save_CFLAGS" 9878fi 9879 9880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9883 fi 9884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9886printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9887if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 9898else $as_nop 9899 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9904printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9906 CFLAGS="$xorg_testset_save_CFLAGS" 9907fi 9908 9909found="no" 9910 9911 if test $found = "no" ; then 9912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9914 fi 9915 9916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9918 fi 9919 9920 CFLAGS="$CFLAGS -Wsequence-point" 9921 9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9923printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9924 cacheid=xorg_cv_cc_flag__Wsequence_point 9925 if eval test \${$cacheid+y} 9926then : 9927 printf %s "(cached) " >&6 9928else $as_nop 9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9930/* end confdefs.h. */ 9931int i; 9932int 9933main (void) 9934{ 9935 9936 ; 9937 return 0; 9938} 9939_ACEOF 9940if ac_fn_c_try_link "$LINENO" 9941then : 9942 eval $cacheid=yes 9943else $as_nop 9944 eval $cacheid=no 9945fi 9946rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9947 conftest$ac_exeext conftest.$ac_ext 9948fi 9949 9950 9951 CFLAGS="$xorg_testset_save_CFLAGS" 9952 9953 eval supported=\$$cacheid 9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9955printf "%s\n" "$supported" >&6; } 9956 if test "$supported" = "yes" ; then 9957 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9958 found="yes" 9959 fi 9960 fi 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976xorg_testset_save_CFLAGS="$CFLAGS" 9977 9978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9981printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9982if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9983then : 9984 printf %s "(cached) " >&6 9985else $as_nop 9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9987/* end confdefs.h. */ 9988int i; 9989_ACEOF 9990if ac_fn_c_try_compile "$LINENO" 9991then : 9992 xorg_cv_cc_flag_unknown_warning_option=yes 9993else $as_nop 9994 xorg_cv_cc_flag_unknown_warning_option=no 9995fi 9996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9997fi 9998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9999printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10001 CFLAGS="$xorg_testset_save_CFLAGS" 10002fi 10003 10004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10007 fi 10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10010printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10011if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 10022else $as_nop 10023 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 10028printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10030 CFLAGS="$xorg_testset_save_CFLAGS" 10031fi 10032 10033found="no" 10034 10035 if test $found = "no" ; then 10036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10038 fi 10039 10040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10042 fi 10043 10044 CFLAGS="$CFLAGS -Wreturn-type" 10045 10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10047printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10048 cacheid=xorg_cv_cc_flag__Wreturn_type 10049 if eval test \${$cacheid+y} 10050then : 10051 printf %s "(cached) " >&6 10052else $as_nop 10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054/* end confdefs.h. */ 10055int i; 10056int 10057main (void) 10058{ 10059 10060 ; 10061 return 0; 10062} 10063_ACEOF 10064if ac_fn_c_try_link "$LINENO" 10065then : 10066 eval $cacheid=yes 10067else $as_nop 10068 eval $cacheid=no 10069fi 10070rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10071 conftest$ac_exeext conftest.$ac_ext 10072fi 10073 10074 10075 CFLAGS="$xorg_testset_save_CFLAGS" 10076 10077 eval supported=\$$cacheid 10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10079printf "%s\n" "$supported" >&6; } 10080 if test "$supported" = "yes" ; then 10081 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10082 found="yes" 10083 fi 10084 fi 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100xorg_testset_save_CFLAGS="$CFLAGS" 10101 10102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10105printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10106if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10107then : 10108 printf %s "(cached) " >&6 10109else $as_nop 10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10111/* end confdefs.h. */ 10112int i; 10113_ACEOF 10114if ac_fn_c_try_compile "$LINENO" 10115then : 10116 xorg_cv_cc_flag_unknown_warning_option=yes 10117else $as_nop 10118 xorg_cv_cc_flag_unknown_warning_option=no 10119fi 10120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10121fi 10122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10125 CFLAGS="$xorg_testset_save_CFLAGS" 10126fi 10127 10128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10131 fi 10132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10135if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 10146else $as_nop 10147 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 10152printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10154 CFLAGS="$xorg_testset_save_CFLAGS" 10155fi 10156 10157found="no" 10158 10159 if test $found = "no" ; then 10160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10162 fi 10163 10164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10166 fi 10167 10168 CFLAGS="$CFLAGS -Wtrigraphs" 10169 10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10171printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10172 cacheid=xorg_cv_cc_flag__Wtrigraphs 10173 if eval test \${$cacheid+y} 10174then : 10175 printf %s "(cached) " >&6 10176else $as_nop 10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10178/* end confdefs.h. */ 10179int i; 10180int 10181main (void) 10182{ 10183 10184 ; 10185 return 0; 10186} 10187_ACEOF 10188if ac_fn_c_try_link "$LINENO" 10189then : 10190 eval $cacheid=yes 10191else $as_nop 10192 eval $cacheid=no 10193fi 10194rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10195 conftest$ac_exeext conftest.$ac_ext 10196fi 10197 10198 10199 CFLAGS="$xorg_testset_save_CFLAGS" 10200 10201 eval supported=\$$cacheid 10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10203printf "%s\n" "$supported" >&6; } 10204 if test "$supported" = "yes" ; then 10205 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10206 found="yes" 10207 fi 10208 fi 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224xorg_testset_save_CFLAGS="$CFLAGS" 10225 10226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10230if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10231then : 10232 printf %s "(cached) " >&6 10233else $as_nop 10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235/* end confdefs.h. */ 10236int i; 10237_ACEOF 10238if ac_fn_c_try_compile "$LINENO" 10239then : 10240 xorg_cv_cc_flag_unknown_warning_option=yes 10241else $as_nop 10242 xorg_cv_cc_flag_unknown_warning_option=no 10243fi 10244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10245fi 10246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10249 CFLAGS="$xorg_testset_save_CFLAGS" 10250fi 10251 10252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10255 fi 10256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10259if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 10270else $as_nop 10271 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 10276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10278 CFLAGS="$xorg_testset_save_CFLAGS" 10279fi 10280 10281found="no" 10282 10283 if test $found = "no" ; then 10284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10286 fi 10287 10288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10290 fi 10291 10292 CFLAGS="$CFLAGS -Warray-bounds" 10293 10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10295printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10296 cacheid=xorg_cv_cc_flag__Warray_bounds 10297 if eval test \${$cacheid+y} 10298then : 10299 printf %s "(cached) " >&6 10300else $as_nop 10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10302/* end confdefs.h. */ 10303int i; 10304int 10305main (void) 10306{ 10307 10308 ; 10309 return 0; 10310} 10311_ACEOF 10312if ac_fn_c_try_link "$LINENO" 10313then : 10314 eval $cacheid=yes 10315else $as_nop 10316 eval $cacheid=no 10317fi 10318rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10319 conftest$ac_exeext conftest.$ac_ext 10320fi 10321 10322 10323 CFLAGS="$xorg_testset_save_CFLAGS" 10324 10325 eval supported=\$$cacheid 10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10327printf "%s\n" "$supported" >&6; } 10328 if test "$supported" = "yes" ; then 10329 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10330 found="yes" 10331 fi 10332 fi 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348xorg_testset_save_CFLAGS="$CFLAGS" 10349 10350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10354if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10355then : 10356 printf %s "(cached) " >&6 10357else $as_nop 10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10359/* end confdefs.h. */ 10360int i; 10361_ACEOF 10362if ac_fn_c_try_compile "$LINENO" 10363then : 10364 xorg_cv_cc_flag_unknown_warning_option=yes 10365else $as_nop 10366 xorg_cv_cc_flag_unknown_warning_option=no 10367fi 10368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10369fi 10370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10373 CFLAGS="$xorg_testset_save_CFLAGS" 10374fi 10375 10376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10379 fi 10380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10383if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 10394else $as_nop 10395 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 10400printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10402 CFLAGS="$xorg_testset_save_CFLAGS" 10403fi 10404 10405found="no" 10406 10407 if test $found = "no" ; then 10408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10410 fi 10411 10412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10414 fi 10415 10416 CFLAGS="$CFLAGS -Wwrite-strings" 10417 10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10419printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10420 cacheid=xorg_cv_cc_flag__Wwrite_strings 10421 if eval test \${$cacheid+y} 10422then : 10423 printf %s "(cached) " >&6 10424else $as_nop 10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10426/* end confdefs.h. */ 10427int i; 10428int 10429main (void) 10430{ 10431 10432 ; 10433 return 0; 10434} 10435_ACEOF 10436if ac_fn_c_try_link "$LINENO" 10437then : 10438 eval $cacheid=yes 10439else $as_nop 10440 eval $cacheid=no 10441fi 10442rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10443 conftest$ac_exeext conftest.$ac_ext 10444fi 10445 10446 10447 CFLAGS="$xorg_testset_save_CFLAGS" 10448 10449 eval supported=\$$cacheid 10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10451printf "%s\n" "$supported" >&6; } 10452 if test "$supported" = "yes" ; then 10453 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10454 found="yes" 10455 fi 10456 fi 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472xorg_testset_save_CFLAGS="$CFLAGS" 10473 10474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10477printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10478if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10479then : 10480 printf %s "(cached) " >&6 10481else $as_nop 10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10483/* end confdefs.h. */ 10484int i; 10485_ACEOF 10486if ac_fn_c_try_compile "$LINENO" 10487then : 10488 xorg_cv_cc_flag_unknown_warning_option=yes 10489else $as_nop 10490 xorg_cv_cc_flag_unknown_warning_option=no 10491fi 10492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10493fi 10494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10497 CFLAGS="$xorg_testset_save_CFLAGS" 10498fi 10499 10500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10503 fi 10504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10507if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 10518else $as_nop 10519 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 10524printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10526 CFLAGS="$xorg_testset_save_CFLAGS" 10527fi 10528 10529found="no" 10530 10531 if test $found = "no" ; then 10532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10534 fi 10535 10536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10538 fi 10539 10540 CFLAGS="$CFLAGS -Waddress" 10541 10542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10543printf %s "checking if $CC supports -Waddress... " >&6; } 10544 cacheid=xorg_cv_cc_flag__Waddress 10545 if eval test \${$cacheid+y} 10546then : 10547 printf %s "(cached) " >&6 10548else $as_nop 10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10550/* end confdefs.h. */ 10551int i; 10552int 10553main (void) 10554{ 10555 10556 ; 10557 return 0; 10558} 10559_ACEOF 10560if ac_fn_c_try_link "$LINENO" 10561then : 10562 eval $cacheid=yes 10563else $as_nop 10564 eval $cacheid=no 10565fi 10566rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10567 conftest$ac_exeext conftest.$ac_ext 10568fi 10569 10570 10571 CFLAGS="$xorg_testset_save_CFLAGS" 10572 10573 eval supported=\$$cacheid 10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10575printf "%s\n" "$supported" >&6; } 10576 if test "$supported" = "yes" ; then 10577 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10578 found="yes" 10579 fi 10580 fi 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596xorg_testset_save_CFLAGS="$CFLAGS" 10597 10598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10601printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10602if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10603then : 10604 printf %s "(cached) " >&6 10605else $as_nop 10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10607/* end confdefs.h. */ 10608int i; 10609_ACEOF 10610if ac_fn_c_try_compile "$LINENO" 10611then : 10612 xorg_cv_cc_flag_unknown_warning_option=yes 10613else $as_nop 10614 xorg_cv_cc_flag_unknown_warning_option=no 10615fi 10616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10617fi 10618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10619printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10621 CFLAGS="$xorg_testset_save_CFLAGS" 10622fi 10623 10624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10627 fi 10628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10630printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10631if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 10642else $as_nop 10643 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 10648printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651fi 10652 10653found="no" 10654 10655 if test $found = "no" ; then 10656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10658 fi 10659 10660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10662 fi 10663 10664 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10665 10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10667printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10668 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10669 if eval test \${$cacheid+y} 10670then : 10671 printf %s "(cached) " >&6 10672else $as_nop 10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10674/* end confdefs.h. */ 10675int i; 10676int 10677main (void) 10678{ 10679 10680 ; 10681 return 0; 10682} 10683_ACEOF 10684if ac_fn_c_try_link "$LINENO" 10685then : 10686 eval $cacheid=yes 10687else $as_nop 10688 eval $cacheid=no 10689fi 10690rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10691 conftest$ac_exeext conftest.$ac_ext 10692fi 10693 10694 10695 CFLAGS="$xorg_testset_save_CFLAGS" 10696 10697 eval supported=\$$cacheid 10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10699printf "%s\n" "$supported" >&6; } 10700 if test "$supported" = "yes" ; then 10701 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10702 found="yes" 10703 fi 10704 fi 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720xorg_testset_save_CFLAGS="$CFLAGS" 10721 10722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10725printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10726if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10727then : 10728 printf %s "(cached) " >&6 10729else $as_nop 10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10731/* end confdefs.h. */ 10732int i; 10733_ACEOF 10734if ac_fn_c_try_compile "$LINENO" 10735then : 10736 xorg_cv_cc_flag_unknown_warning_option=yes 10737else $as_nop 10738 xorg_cv_cc_flag_unknown_warning_option=no 10739fi 10740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10741fi 10742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10743printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10745 CFLAGS="$xorg_testset_save_CFLAGS" 10746fi 10747 10748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10751 fi 10752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10754printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10755if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 10766else $as_nop 10767 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 10772printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10774 CFLAGS="$xorg_testset_save_CFLAGS" 10775fi 10776 10777found="no" 10778 10779 if test $found = "no" ; then 10780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10782 fi 10783 10784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10786 fi 10787 10788 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10789 10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10791printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10792 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10793 if eval test \${$cacheid+y} 10794then : 10795 printf %s "(cached) " >&6 10796else $as_nop 10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10798/* end confdefs.h. */ 10799int i; 10800int 10801main (void) 10802{ 10803 10804 ; 10805 return 0; 10806} 10807_ACEOF 10808if ac_fn_c_try_link "$LINENO" 10809then : 10810 eval $cacheid=yes 10811else $as_nop 10812 eval $cacheid=no 10813fi 10814rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10815 conftest$ac_exeext conftest.$ac_ext 10816fi 10817 10818 10819 CFLAGS="$xorg_testset_save_CFLAGS" 10820 10821 eval supported=\$$cacheid 10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10823printf "%s\n" "$supported" >&6; } 10824 if test "$supported" = "yes" ; then 10825 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10826 found="yes" 10827 fi 10828 fi 10829 10830 10831fi 10832 10833 10834 10835 10836 10837 10838 10839 CWARNFLAGS="$BASE_CFLAGS" 10840 if test "x$GCC" = xyes ; then 10841 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10842 fi 10843 10844 10845 10846 10847 10848 10849 10850 10851# Check whether --enable-strict-compilation was given. 10852if test ${enable_strict_compilation+y} 10853then : 10854 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10855else $as_nop 10856 STRICT_COMPILE=no 10857fi 10858 10859 10860 10861 10862 10863 10864STRICT_CFLAGS="" 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878xorg_testset_save_CFLAGS="$CFLAGS" 10879 10880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10884if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10885then : 10886 printf %s "(cached) " >&6 10887else $as_nop 10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10889/* end confdefs.h. */ 10890int i; 10891_ACEOF 10892if ac_fn_c_try_compile "$LINENO" 10893then : 10894 xorg_cv_cc_flag_unknown_warning_option=yes 10895else $as_nop 10896 xorg_cv_cc_flag_unknown_warning_option=no 10897fi 10898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10899fi 10900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10903 CFLAGS="$xorg_testset_save_CFLAGS" 10904fi 10905 10906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10909 fi 10910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10913if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 10924else $as_nop 10925 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 10930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10932 CFLAGS="$xorg_testset_save_CFLAGS" 10933fi 10934 10935found="no" 10936 10937 if test $found = "no" ; then 10938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10940 fi 10941 10942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10944 fi 10945 10946 CFLAGS="$CFLAGS -pedantic" 10947 10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10949printf %s "checking if $CC supports -pedantic... " >&6; } 10950 cacheid=xorg_cv_cc_flag__pedantic 10951 if eval test \${$cacheid+y} 10952then : 10953 printf %s "(cached) " >&6 10954else $as_nop 10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10956/* end confdefs.h. */ 10957int i; 10958int 10959main (void) 10960{ 10961 10962 ; 10963 return 0; 10964} 10965_ACEOF 10966if ac_fn_c_try_link "$LINENO" 10967then : 10968 eval $cacheid=yes 10969else $as_nop 10970 eval $cacheid=no 10971fi 10972rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10973 conftest$ac_exeext conftest.$ac_ext 10974fi 10975 10976 10977 CFLAGS="$xorg_testset_save_CFLAGS" 10978 10979 eval supported=\$$cacheid 10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10981printf "%s\n" "$supported" >&6; } 10982 if test "$supported" = "yes" ; then 10983 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10984 found="yes" 10985 fi 10986 fi 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002xorg_testset_save_CFLAGS="$CFLAGS" 11003 11004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11007printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11008if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11009then : 11010 printf %s "(cached) " >&6 11011else $as_nop 11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11013/* end confdefs.h. */ 11014int i; 11015_ACEOF 11016if ac_fn_c_try_compile "$LINENO" 11017then : 11018 xorg_cv_cc_flag_unknown_warning_option=yes 11019else $as_nop 11020 xorg_cv_cc_flag_unknown_warning_option=no 11021fi 11022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11023fi 11024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11025printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11027 CFLAGS="$xorg_testset_save_CFLAGS" 11028fi 11029 11030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11033 fi 11034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11036printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11037if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 11048else $as_nop 11049 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 11054printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11056 CFLAGS="$xorg_testset_save_CFLAGS" 11057fi 11058 11059found="no" 11060 11061 if test $found = "no" ; then 11062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11064 fi 11065 11066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11068 fi 11069 11070 CFLAGS="$CFLAGS -Werror" 11071 11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11073printf %s "checking if $CC supports -Werror... " >&6; } 11074 cacheid=xorg_cv_cc_flag__Werror 11075 if eval test \${$cacheid+y} 11076then : 11077 printf %s "(cached) " >&6 11078else $as_nop 11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11080/* end confdefs.h. */ 11081int i; 11082int 11083main (void) 11084{ 11085 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090if ac_fn_c_try_link "$LINENO" 11091then : 11092 eval $cacheid=yes 11093else $as_nop 11094 eval $cacheid=no 11095fi 11096rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11097 conftest$ac_exeext conftest.$ac_ext 11098fi 11099 11100 11101 CFLAGS="$xorg_testset_save_CFLAGS" 11102 11103 eval supported=\$$cacheid 11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11105printf "%s\n" "$supported" >&6; } 11106 if test "$supported" = "yes" ; then 11107 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11108 found="yes" 11109 fi 11110 fi 11111 11112 if test $found = "no" ; then 11113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11115 fi 11116 11117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11119 fi 11120 11121 CFLAGS="$CFLAGS -errwarn" 11122 11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11124printf %s "checking if $CC supports -errwarn... " >&6; } 11125 cacheid=xorg_cv_cc_flag__errwarn 11126 if eval test \${$cacheid+y} 11127then : 11128 printf %s "(cached) " >&6 11129else $as_nop 11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11131/* end confdefs.h. */ 11132int i; 11133int 11134main (void) 11135{ 11136 11137 ; 11138 return 0; 11139} 11140_ACEOF 11141if ac_fn_c_try_link "$LINENO" 11142then : 11143 eval $cacheid=yes 11144else $as_nop 11145 eval $cacheid=no 11146fi 11147rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11148 conftest$ac_exeext conftest.$ac_ext 11149fi 11150 11151 11152 CFLAGS="$xorg_testset_save_CFLAGS" 11153 11154 eval supported=\$$cacheid 11155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11156printf "%s\n" "$supported" >&6; } 11157 if test "$supported" = "yes" ; then 11158 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11159 found="yes" 11160 fi 11161 fi 11162 11163 11164 11165# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11166# activate it with -Werror, so we add it here explicitly. 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180xorg_testset_save_CFLAGS="$CFLAGS" 11181 11182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11186if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11187then : 11188 printf %s "(cached) " >&6 11189else $as_nop 11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11191/* end confdefs.h. */ 11192int i; 11193_ACEOF 11194if ac_fn_c_try_compile "$LINENO" 11195then : 11196 xorg_cv_cc_flag_unknown_warning_option=yes 11197else $as_nop 11198 xorg_cv_cc_flag_unknown_warning_option=no 11199fi 11200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11201fi 11202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11205 CFLAGS="$xorg_testset_save_CFLAGS" 11206fi 11207 11208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11211 fi 11212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11215if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 11226else $as_nop 11227 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 11232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11234 CFLAGS="$xorg_testset_save_CFLAGS" 11235fi 11236 11237found="no" 11238 11239 if test $found = "no" ; then 11240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11242 fi 11243 11244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11246 fi 11247 11248 CFLAGS="$CFLAGS -Werror=attributes" 11249 11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11251printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11252 cacheid=xorg_cv_cc_flag__Werror_attributes 11253 if eval test \${$cacheid+y} 11254then : 11255 printf %s "(cached) " >&6 11256else $as_nop 11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11258/* end confdefs.h. */ 11259int i; 11260int 11261main (void) 11262{ 11263 11264 ; 11265 return 0; 11266} 11267_ACEOF 11268if ac_fn_c_try_link "$LINENO" 11269then : 11270 eval $cacheid=yes 11271else $as_nop 11272 eval $cacheid=no 11273fi 11274rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11275 conftest$ac_exeext conftest.$ac_ext 11276fi 11277 11278 11279 CFLAGS="$xorg_testset_save_CFLAGS" 11280 11281 eval supported=\$$cacheid 11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11283printf "%s\n" "$supported" >&6; } 11284 if test "$supported" = "yes" ; then 11285 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11286 found="yes" 11287 fi 11288 fi 11289 11290 11291 11292if test "x$STRICT_COMPILE" = "xyes"; then 11293 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11294 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11295fi 11296 11297 11298 11299 11300 11301 11302cat >>confdefs.h <<_ACEOF 11303#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11304_ACEOF 11305 11306 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11307 if test "x$PVM" = "x"; then 11308 PVM="0" 11309 fi 11310 11311printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11312 11313 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11314 if test "x$PVP" = "x"; then 11315 PVP="0" 11316 fi 11317 11318printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11319 11320 11321 11322CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11323mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11324|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11325touch \$(top_srcdir)/ChangeLog; \ 11326echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11327 11328 11329 11330 11331macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11332INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11333mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11334|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11335touch \$(top_srcdir)/INSTALL; \ 11336echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11337 11338 11339 11340 11341 11342 11343case $host_os in 11344 solaris*) 11345 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11346 # check for a man page file found in later versions that use 11347 # traditional section numbers instead 11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11349printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11350if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11351then : 11352 printf %s "(cached) " >&6 11353else $as_nop 11354 test "$cross_compiling" = yes && 11355 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11356if test -r "/usr/share/man/man7/attributes.7"; then 11357 ac_cv_file__usr_share_man_man7_attributes_7=yes 11358else 11359 ac_cv_file__usr_share_man_man7_attributes_7=no 11360fi 11361fi 11362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11363printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11364if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11365then : 11366 SYSV_MAN_SECTIONS=false 11367else $as_nop 11368 SYSV_MAN_SECTIONS=true 11369fi 11370 11371 ;; 11372 *) SYSV_MAN_SECTIONS=false ;; 11373esac 11374 11375if test x$APP_MAN_SUFFIX = x ; then 11376 APP_MAN_SUFFIX=1 11377fi 11378if test x$APP_MAN_DIR = x ; then 11379 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11380fi 11381 11382if test x$LIB_MAN_SUFFIX = x ; then 11383 LIB_MAN_SUFFIX=3 11384fi 11385if test x$LIB_MAN_DIR = x ; then 11386 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11387fi 11388 11389if test x$FILE_MAN_SUFFIX = x ; then 11390 case $SYSV_MAN_SECTIONS in 11391 true) FILE_MAN_SUFFIX=4 ;; 11392 *) FILE_MAN_SUFFIX=5 ;; 11393 esac 11394fi 11395if test x$FILE_MAN_DIR = x ; then 11396 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11397fi 11398 11399if test x$MISC_MAN_SUFFIX = x ; then 11400 case $SYSV_MAN_SECTIONS in 11401 true) MISC_MAN_SUFFIX=5 ;; 11402 *) MISC_MAN_SUFFIX=7 ;; 11403 esac 11404fi 11405if test x$MISC_MAN_DIR = x ; then 11406 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11407fi 11408 11409if test x$DRIVER_MAN_SUFFIX = x ; then 11410 case $SYSV_MAN_SECTIONS in 11411 true) DRIVER_MAN_SUFFIX=7 ;; 11412 *) DRIVER_MAN_SUFFIX=4 ;; 11413 esac 11414fi 11415if test x$DRIVER_MAN_DIR = x ; then 11416 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11417fi 11418 11419if test x$ADMIN_MAN_SUFFIX = x ; then 11420 case $SYSV_MAN_SECTIONS in 11421 true) ADMIN_MAN_SUFFIX=1m ;; 11422 *) ADMIN_MAN_SUFFIX=8 ;; 11423 esac 11424fi 11425if test x$ADMIN_MAN_DIR = x ; then 11426 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11427fi 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443XORG_MAN_PAGE="X Version 11" 11444 11445MAN_SUBSTS="\ 11446 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11447 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11448 -e 's|__xservername__|Xorg|g' \ 11449 -e 's|__xconfigfile__|xorg.conf|g' \ 11450 -e 's|__projectroot__|\$(prefix)|g' \ 11451 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11452 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11453 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11454 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11455 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11456 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11457 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11458 11459 11460 11461# Check whether --enable-silent-rules was given. 11462if test ${enable_silent_rules+y} 11463then : 11464 enableval=$enable_silent_rules; 11465fi 11466 11467case $enable_silent_rules in # ((( 11468 yes) AM_DEFAULT_VERBOSITY=0;; 11469 no) AM_DEFAULT_VERBOSITY=1;; 11470 *) AM_DEFAULT_VERBOSITY=0;; 11471esac 11472am_make=${MAKE-make} 11473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11474printf %s "checking whether $am_make supports nested variables... " >&6; } 11475if test ${am_cv_make_support_nested_variables+y} 11476then : 11477 printf %s "(cached) " >&6 11478else $as_nop 11479 if printf "%s\n" 'TRUE=$(BAR$(V)) 11480BAR0=false 11481BAR1=true 11482V=1 11483am__doit: 11484 @$(TRUE) 11485.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11486 am_cv_make_support_nested_variables=yes 11487else 11488 am_cv_make_support_nested_variables=no 11489fi 11490fi 11491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11492printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11493if test $am_cv_make_support_nested_variables = yes; then 11494 AM_V='$(V)' 11495 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11496else 11497 AM_V=$AM_DEFAULT_VERBOSITY 11498 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11499fi 11500AM_BACKSLASH='\' 11501 11502 11503 11504# Initialize libtool 11505# Check whether --enable-static was given. 11506if test ${enable_static+y} 11507then : 11508 enableval=$enable_static; p=${PACKAGE-default} 11509 case $enableval in 11510 yes) enable_static=yes ;; 11511 no) enable_static=no ;; 11512 *) 11513 enable_static=no 11514 # Look at the argument we got. We use all the common list separators. 11515 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11516 for pkg in $enableval; do 11517 IFS=$lt_save_ifs 11518 if test "X$pkg" = "X$p"; then 11519 enable_static=yes 11520 fi 11521 done 11522 IFS=$lt_save_ifs 11523 ;; 11524 esac 11525else $as_nop 11526 enable_static=no 11527fi 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537case `pwd` in 11538 *\ * | *\ *) 11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11540printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11541esac 11542 11543 11544 11545macro_version='2.4.6' 11546macro_revision='2.4.6' 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561ltmain=$ac_aux_dir/ltmain.sh 11562 11563# Backslashify metacharacters that are still active within 11564# double-quoted strings. 11565sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11566 11567# Same as above, but do not quote variable references. 11568double_quote_subst='s/\(["`\\]\)/\\\1/g' 11569 11570# Sed substitution to delay expansion of an escaped shell variable in a 11571# double_quote_subst'ed string. 11572delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11573 11574# Sed substitution to delay expansion of an escaped single quote. 11575delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11576 11577# Sed substitution to avoid accidental globbing in evaled expressions 11578no_glob_subst='s/\*/\\\*/g' 11579 11580ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11581ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11582ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11583 11584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11585printf %s "checking how to print strings... " >&6; } 11586# Test print first, because it will be a builtin if present. 11587if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11588 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11589 ECHO='print -r --' 11590elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11591 ECHO='printf %s\n' 11592else 11593 # Use this function as a fallback that always works. 11594 func_fallback_echo () 11595 { 11596 eval 'cat <<_LTECHO_EOF 11597$1 11598_LTECHO_EOF' 11599 } 11600 ECHO='func_fallback_echo' 11601fi 11602 11603# func_echo_all arg... 11604# Invoke $ECHO with all args, space-separated. 11605func_echo_all () 11606{ 11607 $ECHO "" 11608} 11609 11610case $ECHO in 11611 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11612printf "%s\n" "printf" >&6; } ;; 11613 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11614printf "%s\n" "print -r" >&6; } ;; 11615 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11616printf "%s\n" "cat" >&6; } ;; 11617esac 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11633printf %s "checking for a sed that does not truncate output... " >&6; } 11634if test ${ac_cv_path_SED+y} 11635then : 11636 printf %s "(cached) " >&6 11637else $as_nop 11638 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11639 for ac_i in 1 2 3 4 5 6 7; do 11640 ac_script="$ac_script$as_nl$ac_script" 11641 done 11642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11643 { ac_script=; unset ac_script;} 11644 if test -z "$SED"; then 11645 ac_path_SED_found=false 11646 # Loop through the user's path and test for each of PROGNAME-LIST 11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11648for as_dir in $PATH 11649do 11650 IFS=$as_save_IFS 11651 case $as_dir in #((( 11652 '') as_dir=./ ;; 11653 */) ;; 11654 *) as_dir=$as_dir/ ;; 11655 esac 11656 for ac_prog in sed gsed 11657 do 11658 for ac_exec_ext in '' $ac_executable_extensions; do 11659 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11660 as_fn_executable_p "$ac_path_SED" || continue 11661# Check for GNU ac_path_SED and select it if it is found. 11662 # Check for GNU $ac_path_SED 11663case `"$ac_path_SED" --version 2>&1` in 11664*GNU*) 11665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11666*) 11667 ac_count=0 11668 printf %s 0123456789 >"conftest.in" 11669 while : 11670 do 11671 cat "conftest.in" "conftest.in" >"conftest.tmp" 11672 mv "conftest.tmp" "conftest.in" 11673 cp "conftest.in" "conftest.nl" 11674 printf "%s\n" '' >> "conftest.nl" 11675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11677 as_fn_arith $ac_count + 1 && ac_count=$as_val 11678 if test $ac_count -gt ${ac_path_SED_max-0}; then 11679 # Best one so far, save it but keep looking for a better one 11680 ac_cv_path_SED="$ac_path_SED" 11681 ac_path_SED_max=$ac_count 11682 fi 11683 # 10*(2^10) chars as input seems more than enough 11684 test $ac_count -gt 10 && break 11685 done 11686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11687esac 11688 11689 $ac_path_SED_found && break 3 11690 done 11691 done 11692 done 11693IFS=$as_save_IFS 11694 if test -z "$ac_cv_path_SED"; then 11695 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11696 fi 11697else 11698 ac_cv_path_SED=$SED 11699fi 11700 11701fi 11702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11703printf "%s\n" "$ac_cv_path_SED" >&6; } 11704 SED="$ac_cv_path_SED" 11705 rm -f conftest.sed 11706 11707test -z "$SED" && SED=sed 11708Xsed="$SED -e 1s/^X//" 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11721printf %s "checking for grep that handles long lines and -e... " >&6; } 11722if test ${ac_cv_path_GREP+y} 11723then : 11724 printf %s "(cached) " >&6 11725else $as_nop 11726 if test -z "$GREP"; then 11727 ac_path_GREP_found=false 11728 # Loop through the user's path and test for each of PROGNAME-LIST 11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11731do 11732 IFS=$as_save_IFS 11733 case $as_dir in #((( 11734 '') as_dir=./ ;; 11735 */) ;; 11736 *) as_dir=$as_dir/ ;; 11737 esac 11738 for ac_prog in grep ggrep 11739 do 11740 for ac_exec_ext in '' $ac_executable_extensions; do 11741 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11742 as_fn_executable_p "$ac_path_GREP" || continue 11743# Check for GNU ac_path_GREP and select it if it is found. 11744 # Check for GNU $ac_path_GREP 11745case `"$ac_path_GREP" --version 2>&1` in 11746*GNU*) 11747 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11748*) 11749 ac_count=0 11750 printf %s 0123456789 >"conftest.in" 11751 while : 11752 do 11753 cat "conftest.in" "conftest.in" >"conftest.tmp" 11754 mv "conftest.tmp" "conftest.in" 11755 cp "conftest.in" "conftest.nl" 11756 printf "%s\n" 'GREP' >> "conftest.nl" 11757 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11759 as_fn_arith $ac_count + 1 && ac_count=$as_val 11760 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11761 # Best one so far, save it but keep looking for a better one 11762 ac_cv_path_GREP="$ac_path_GREP" 11763 ac_path_GREP_max=$ac_count 11764 fi 11765 # 10*(2^10) chars as input seems more than enough 11766 test $ac_count -gt 10 && break 11767 done 11768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11769esac 11770 11771 $ac_path_GREP_found && break 3 11772 done 11773 done 11774 done 11775IFS=$as_save_IFS 11776 if test -z "$ac_cv_path_GREP"; then 11777 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11778 fi 11779else 11780 ac_cv_path_GREP=$GREP 11781fi 11782 11783fi 11784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11785printf "%s\n" "$ac_cv_path_GREP" >&6; } 11786 GREP="$ac_cv_path_GREP" 11787 11788 11789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11790printf %s "checking for egrep... " >&6; } 11791if test ${ac_cv_path_EGREP+y} 11792then : 11793 printf %s "(cached) " >&6 11794else $as_nop 11795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11796 then ac_cv_path_EGREP="$GREP -E" 11797 else 11798 if test -z "$EGREP"; then 11799 ac_path_EGREP_found=false 11800 # Loop through the user's path and test for each of PROGNAME-LIST 11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11803do 11804 IFS=$as_save_IFS 11805 case $as_dir in #((( 11806 '') as_dir=./ ;; 11807 */) ;; 11808 *) as_dir=$as_dir/ ;; 11809 esac 11810 for ac_prog in egrep 11811 do 11812 for ac_exec_ext in '' $ac_executable_extensions; do 11813 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11814 as_fn_executable_p "$ac_path_EGREP" || continue 11815# Check for GNU ac_path_EGREP and select it if it is found. 11816 # Check for GNU $ac_path_EGREP 11817case `"$ac_path_EGREP" --version 2>&1` in 11818*GNU*) 11819 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11820*) 11821 ac_count=0 11822 printf %s 0123456789 >"conftest.in" 11823 while : 11824 do 11825 cat "conftest.in" "conftest.in" >"conftest.tmp" 11826 mv "conftest.tmp" "conftest.in" 11827 cp "conftest.in" "conftest.nl" 11828 printf "%s\n" 'EGREP' >> "conftest.nl" 11829 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11831 as_fn_arith $ac_count + 1 && ac_count=$as_val 11832 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11833 # Best one so far, save it but keep looking for a better one 11834 ac_cv_path_EGREP="$ac_path_EGREP" 11835 ac_path_EGREP_max=$ac_count 11836 fi 11837 # 10*(2^10) chars as input seems more than enough 11838 test $ac_count -gt 10 && break 11839 done 11840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11841esac 11842 11843 $ac_path_EGREP_found && break 3 11844 done 11845 done 11846 done 11847IFS=$as_save_IFS 11848 if test -z "$ac_cv_path_EGREP"; then 11849 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11850 fi 11851else 11852 ac_cv_path_EGREP=$EGREP 11853fi 11854 11855 fi 11856fi 11857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11858printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11859 EGREP="$ac_cv_path_EGREP" 11860 11861 11862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11863printf %s "checking for fgrep... " >&6; } 11864if test ${ac_cv_path_FGREP+y} 11865then : 11866 printf %s "(cached) " >&6 11867else $as_nop 11868 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11869 then ac_cv_path_FGREP="$GREP -F" 11870 else 11871 if test -z "$FGREP"; then 11872 ac_path_FGREP_found=false 11873 # Loop through the user's path and test for each of PROGNAME-LIST 11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11875for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11876do 11877 IFS=$as_save_IFS 11878 case $as_dir in #((( 11879 '') as_dir=./ ;; 11880 */) ;; 11881 *) as_dir=$as_dir/ ;; 11882 esac 11883 for ac_prog in fgrep 11884 do 11885 for ac_exec_ext in '' $ac_executable_extensions; do 11886 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11887 as_fn_executable_p "$ac_path_FGREP" || continue 11888# Check for GNU ac_path_FGREP and select it if it is found. 11889 # Check for GNU $ac_path_FGREP 11890case `"$ac_path_FGREP" --version 2>&1` in 11891*GNU*) 11892 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11893*) 11894 ac_count=0 11895 printf %s 0123456789 >"conftest.in" 11896 while : 11897 do 11898 cat "conftest.in" "conftest.in" >"conftest.tmp" 11899 mv "conftest.tmp" "conftest.in" 11900 cp "conftest.in" "conftest.nl" 11901 printf "%s\n" 'FGREP' >> "conftest.nl" 11902 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11904 as_fn_arith $ac_count + 1 && ac_count=$as_val 11905 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11906 # Best one so far, save it but keep looking for a better one 11907 ac_cv_path_FGREP="$ac_path_FGREP" 11908 ac_path_FGREP_max=$ac_count 11909 fi 11910 # 10*(2^10) chars as input seems more than enough 11911 test $ac_count -gt 10 && break 11912 done 11913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11914esac 11915 11916 $ac_path_FGREP_found && break 3 11917 done 11918 done 11919 done 11920IFS=$as_save_IFS 11921 if test -z "$ac_cv_path_FGREP"; then 11922 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11923 fi 11924else 11925 ac_cv_path_FGREP=$FGREP 11926fi 11927 11928 fi 11929fi 11930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11931printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11932 FGREP="$ac_cv_path_FGREP" 11933 11934 11935test -z "$GREP" && GREP=grep 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955# Check whether --with-gnu-ld was given. 11956if test ${with_gnu_ld+y} 11957then : 11958 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11959else $as_nop 11960 with_gnu_ld=no 11961fi 11962 11963ac_prog=ld 11964if test yes = "$GCC"; then 11965 # Check if gcc -print-prog-name=ld gives a path. 11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11967printf %s "checking for ld used by $CC... " >&6; } 11968 case $host in 11969 *-*-mingw*) 11970 # gcc leaves a trailing carriage return, which upsets mingw 11971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11972 *) 11973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11974 esac 11975 case $ac_prog in 11976 # Accept absolute paths. 11977 [\\/]* | ?:[\\/]*) 11978 re_direlt='/[^/][^/]*/\.\./' 11979 # Canonicalize the pathname of ld 11980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11983 done 11984 test -z "$LD" && LD=$ac_prog 11985 ;; 11986 "") 11987 # If it fails, then pretend we aren't using GCC. 11988 ac_prog=ld 11989 ;; 11990 *) 11991 # If it is relative, then search for the first ld in PATH. 11992 with_gnu_ld=unknown 11993 ;; 11994 esac 11995elif test yes = "$with_gnu_ld"; then 11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11997printf %s "checking for GNU ld... " >&6; } 11998else 11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12000printf %s "checking for non-GNU ld... " >&6; } 12001fi 12002if test ${lt_cv_path_LD+y} 12003then : 12004 printf %s "(cached) " >&6 12005else $as_nop 12006 if test -z "$LD"; then 12007 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12008 for ac_dir in $PATH; do 12009 IFS=$lt_save_ifs 12010 test -z "$ac_dir" && ac_dir=. 12011 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12012 lt_cv_path_LD=$ac_dir/$ac_prog 12013 # Check to see if the program is GNU ld. I'd rather use --version, 12014 # but apparently some variants of GNU ld only accept -v. 12015 # Break only if it was the GNU/non-GNU ld that we prefer. 12016 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12017 *GNU* | *'with BFD'*) 12018 test no != "$with_gnu_ld" && break 12019 ;; 12020 *) 12021 test yes != "$with_gnu_ld" && break 12022 ;; 12023 esac 12024 fi 12025 done 12026 IFS=$lt_save_ifs 12027else 12028 lt_cv_path_LD=$LD # Let the user override the test with a path. 12029fi 12030fi 12031 12032LD=$lt_cv_path_LD 12033if test -n "$LD"; then 12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12035printf "%s\n" "$LD" >&6; } 12036else 12037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12038printf "%s\n" "no" >&6; } 12039fi 12040test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12042printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12043if test ${lt_cv_prog_gnu_ld+y} 12044then : 12045 printf %s "(cached) " >&6 12046else $as_nop 12047 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12048case `$LD -v 2>&1 </dev/null` in 12049*GNU* | *'with BFD'*) 12050 lt_cv_prog_gnu_ld=yes 12051 ;; 12052*) 12053 lt_cv_prog_gnu_ld=no 12054 ;; 12055esac 12056fi 12057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12058printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12059with_gnu_ld=$lt_cv_prog_gnu_ld 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12070printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12071if test ${lt_cv_path_NM+y} 12072then : 12073 printf %s "(cached) " >&6 12074else $as_nop 12075 if test -n "$NM"; then 12076 # Let the user override the test. 12077 lt_cv_path_NM=$NM 12078else 12079 lt_nm_to_check=${ac_tool_prefix}nm 12080 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12081 lt_nm_to_check="$lt_nm_to_check nm" 12082 fi 12083 for lt_tmp_nm in $lt_nm_to_check; do 12084 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12085 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12086 IFS=$lt_save_ifs 12087 test -z "$ac_dir" && ac_dir=. 12088 tmp_nm=$ac_dir/$lt_tmp_nm 12089 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12090 # Check to see if the nm accepts a BSD-compat flag. 12091 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12092 # nm: unknown option "B" ignored 12093 # Tru64's nm complains that /dev/null is an invalid object file 12094 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12095 case $build_os in 12096 mingw*) lt_bad_file=conftest.nm/nofile ;; 12097 *) lt_bad_file=/dev/null ;; 12098 esac 12099 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 12100 *$lt_bad_file* | *'Invalid file or object type'*) 12101 lt_cv_path_NM="$tmp_nm -B" 12102 break 2 12103 ;; 12104 *) 12105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 12106 */dev/null*) 12107 lt_cv_path_NM="$tmp_nm -p" 12108 break 2 12109 ;; 12110 *) 12111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12112 continue # so that we can try to find one that supports BSD flags 12113 ;; 12114 esac 12115 ;; 12116 esac 12117 fi 12118 done 12119 IFS=$lt_save_ifs 12120 done 12121 : ${lt_cv_path_NM=no} 12122fi 12123fi 12124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12125printf "%s\n" "$lt_cv_path_NM" >&6; } 12126if test no != "$lt_cv_path_NM"; then 12127 NM=$lt_cv_path_NM 12128else 12129 # Didn't find any BSD compatible name lister, look for dumpbin. 12130 if test -n "$DUMPBIN"; then : 12131 # Let the user override the test. 12132 else 12133 if test -n "$ac_tool_prefix"; then 12134 for ac_prog in dumpbin "link -dump" 12135 do 12136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12137set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12139printf %s "checking for $ac_word... " >&6; } 12140if test ${ac_cv_prog_DUMPBIN+y} 12141then : 12142 printf %s "(cached) " >&6 12143else $as_nop 12144 if test -n "$DUMPBIN"; then 12145 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12146else 12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12148for as_dir in $PATH 12149do 12150 IFS=$as_save_IFS 12151 case $as_dir in #((( 12152 '') as_dir=./ ;; 12153 */) ;; 12154 *) as_dir=$as_dir/ ;; 12155 esac 12156 for ac_exec_ext in '' $ac_executable_extensions; do 12157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12158 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12160 break 2 12161 fi 12162done 12163 done 12164IFS=$as_save_IFS 12165 12166fi 12167fi 12168DUMPBIN=$ac_cv_prog_DUMPBIN 12169if test -n "$DUMPBIN"; then 12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12171printf "%s\n" "$DUMPBIN" >&6; } 12172else 12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12174printf "%s\n" "no" >&6; } 12175fi 12176 12177 12178 test -n "$DUMPBIN" && break 12179 done 12180fi 12181if test -z "$DUMPBIN"; then 12182 ac_ct_DUMPBIN=$DUMPBIN 12183 for ac_prog in dumpbin "link -dump" 12184do 12185 # Extract the first word of "$ac_prog", so it can be a program name with args. 12186set dummy $ac_prog; ac_word=$2 12187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12188printf %s "checking for $ac_word... " >&6; } 12189if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 12190then : 12191 printf %s "(cached) " >&6 12192else $as_nop 12193 if test -n "$ac_ct_DUMPBIN"; then 12194 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12195else 12196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12197for as_dir in $PATH 12198do 12199 IFS=$as_save_IFS 12200 case $as_dir in #((( 12201 '') as_dir=./ ;; 12202 */) ;; 12203 *) as_dir=$as_dir/ ;; 12204 esac 12205 for ac_exec_ext in '' $ac_executable_extensions; do 12206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12207 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12209 break 2 12210 fi 12211done 12212 done 12213IFS=$as_save_IFS 12214 12215fi 12216fi 12217ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12218if test -n "$ac_ct_DUMPBIN"; then 12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12220printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12221else 12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12223printf "%s\n" "no" >&6; } 12224fi 12225 12226 12227 test -n "$ac_ct_DUMPBIN" && break 12228done 12229 12230 if test "x$ac_ct_DUMPBIN" = x; then 12231 DUMPBIN=":" 12232 else 12233 case $cross_compiling:$ac_tool_warned in 12234yes:) 12235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12236printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12237ac_tool_warned=yes ;; 12238esac 12239 DUMPBIN=$ac_ct_DUMPBIN 12240 fi 12241fi 12242 12243 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 12244 *COFF*) 12245 DUMPBIN="$DUMPBIN -symbols -headers" 12246 ;; 12247 *) 12248 DUMPBIN=: 12249 ;; 12250 esac 12251 fi 12252 12253 if test : != "$DUMPBIN"; then 12254 NM=$DUMPBIN 12255 fi 12256fi 12257test -z "$NM" && NM=nm 12258 12259 12260 12261 12262 12263 12264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12265printf %s "checking the name lister ($NM) interface... " >&6; } 12266if test ${lt_cv_nm_interface+y} 12267then : 12268 printf %s "(cached) " >&6 12269else $as_nop 12270 lt_cv_nm_interface="BSD nm" 12271 echo "int some_variable = 0;" > conftest.$ac_ext 12272 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12273 (eval "$ac_compile" 2>conftest.err) 12274 cat conftest.err >&5 12275 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12276 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12277 cat conftest.err >&5 12278 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12279 cat conftest.out >&5 12280 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12281 lt_cv_nm_interface="MS dumpbin" 12282 fi 12283 rm -f conftest* 12284fi 12285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12286printf "%s\n" "$lt_cv_nm_interface" >&6; } 12287 12288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12289printf %s "checking whether ln -s works... " >&6; } 12290LN_S=$as_ln_s 12291if test "$LN_S" = "ln -s"; then 12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12293printf "%s\n" "yes" >&6; } 12294else 12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12296printf "%s\n" "no, using $LN_S" >&6; } 12297fi 12298 12299# find the maximum length of command line arguments 12300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12301printf %s "checking the maximum length of command line arguments... " >&6; } 12302if test ${lt_cv_sys_max_cmd_len+y} 12303then : 12304 printf %s "(cached) " >&6 12305else $as_nop 12306 i=0 12307 teststring=ABCD 12308 12309 case $build_os in 12310 msdosdjgpp*) 12311 # On DJGPP, this test can blow up pretty badly due to problems in libc 12312 # (any single argument exceeding 2000 bytes causes a buffer overrun 12313 # during glob expansion). Even if it were fixed, the result of this 12314 # check would be larger than it should be. 12315 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12316 ;; 12317 12318 gnu*) 12319 # Under GNU Hurd, this test is not required because there is 12320 # no limit to the length of command line arguments. 12321 # Libtool will interpret -1 as no limit whatsoever 12322 lt_cv_sys_max_cmd_len=-1; 12323 ;; 12324 12325 cygwin* | mingw* | cegcc*) 12326 # On Win9x/ME, this test blows up -- it succeeds, but takes 12327 # about 5 minutes as the teststring grows exponentially. 12328 # Worse, since 9x/ME are not pre-emptively multitasking, 12329 # you end up with a "frozen" computer, even though with patience 12330 # the test eventually succeeds (with a max line length of 256k). 12331 # Instead, let's just punt: use the minimum linelength reported by 12332 # all of the supported platforms: 8192 (on NT/2K/XP). 12333 lt_cv_sys_max_cmd_len=8192; 12334 ;; 12335 12336 mint*) 12337 # On MiNT this can take a long time and run out of memory. 12338 lt_cv_sys_max_cmd_len=8192; 12339 ;; 12340 12341 amigaos*) 12342 # On AmigaOS with pdksh, this test takes hours, literally. 12343 # So we just punt and use a minimum line length of 8192. 12344 lt_cv_sys_max_cmd_len=8192; 12345 ;; 12346 12347 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 12348 # This has been around since 386BSD, at least. Likely further. 12349 if test -x /sbin/sysctl; then 12350 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12351 elif test -x /usr/sbin/sysctl; then 12352 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12353 else 12354 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12355 fi 12356 # And add a safety zone 12357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12359 ;; 12360 12361 interix*) 12362 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12363 lt_cv_sys_max_cmd_len=196608 12364 ;; 12365 12366 os2*) 12367 # The test takes a long time on OS/2. 12368 lt_cv_sys_max_cmd_len=8192 12369 ;; 12370 12371 osf*) 12372 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12373 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12374 # nice to cause kernel panics so lets avoid the loop below. 12375 # First set a reasonable default. 12376 lt_cv_sys_max_cmd_len=16384 12377 # 12378 if test -x /sbin/sysconfig; then 12379 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12380 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12381 esac 12382 fi 12383 ;; 12384 sco3.2v5*) 12385 lt_cv_sys_max_cmd_len=102400 12386 ;; 12387 sysv5* | sco5v6* | sysv4.2uw2*) 12388 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12389 if test -n "$kargmax"; then 12390 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 12391 else 12392 lt_cv_sys_max_cmd_len=32768 12393 fi 12394 ;; 12395 *) 12396 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12397 if test -n "$lt_cv_sys_max_cmd_len" && \ 12398 test undefined != "$lt_cv_sys_max_cmd_len"; then 12399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12401 else 12402 # Make teststring a little bigger before we do anything with it. 12403 # a 1K string should be a reasonable start. 12404 for i in 1 2 3 4 5 6 7 8; do 12405 teststring=$teststring$teststring 12406 done 12407 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12408 # If test is not a shell built-in, we'll probably end up computing a 12409 # maximum length that is only half of the actual maximum length, but 12410 # we can't tell. 12411 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12412 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12413 test 17 != "$i" # 1/2 MB should be enough 12414 do 12415 i=`expr $i + 1` 12416 teststring=$teststring$teststring 12417 done 12418 # Only check the string length outside the loop. 12419 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12420 teststring= 12421 # Add a significant safety factor because C++ compilers can tack on 12422 # massive amounts of additional arguments before passing them to the 12423 # linker. It appears as though 1/2 is a usable value. 12424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12425 fi 12426 ;; 12427 esac 12428 12429fi 12430 12431if test -n "$lt_cv_sys_max_cmd_len"; then 12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12433printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12434else 12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12436printf "%s\n" "none" >&6; } 12437fi 12438max_cmd_len=$lt_cv_sys_max_cmd_len 12439 12440 12441 12442 12443 12444 12445: ${CP="cp -f"} 12446: ${MV="mv -f"} 12447: ${RM="rm -f"} 12448 12449if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12450 lt_unset=unset 12451else 12452 lt_unset=false 12453fi 12454 12455 12456 12457 12458 12459# test EBCDIC or ASCII 12460case `echo X|tr X '\101'` in 12461 A) # ASCII based system 12462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12463 lt_SP2NL='tr \040 \012' 12464 lt_NL2SP='tr \015\012 \040\040' 12465 ;; 12466 *) # EBCDIC based system 12467 lt_SP2NL='tr \100 \n' 12468 lt_NL2SP='tr \r\n \100\100' 12469 ;; 12470esac 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12481printf %s "checking how to convert $build file names to $host format... " >&6; } 12482if test ${lt_cv_to_host_file_cmd+y} 12483then : 12484 printf %s "(cached) " >&6 12485else $as_nop 12486 case $host in 12487 *-*-mingw* ) 12488 case $build in 12489 *-*-mingw* ) # actually msys 12490 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12491 ;; 12492 *-*-cygwin* ) 12493 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12494 ;; 12495 * ) # otherwise, assume *nix 12496 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12497 ;; 12498 esac 12499 ;; 12500 *-*-cygwin* ) 12501 case $build in 12502 *-*-mingw* ) # actually msys 12503 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12504 ;; 12505 *-*-cygwin* ) 12506 lt_cv_to_host_file_cmd=func_convert_file_noop 12507 ;; 12508 * ) # otherwise, assume *nix 12509 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12510 ;; 12511 esac 12512 ;; 12513 * ) # unhandled hosts (and "normal" native builds) 12514 lt_cv_to_host_file_cmd=func_convert_file_noop 12515 ;; 12516esac 12517 12518fi 12519 12520to_host_file_cmd=$lt_cv_to_host_file_cmd 12521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12522printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12523 12524 12525 12526 12527 12528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12529printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12530if test ${lt_cv_to_tool_file_cmd+y} 12531then : 12532 printf %s "(cached) " >&6 12533else $as_nop 12534 #assume ordinary cross tools, or native build. 12535lt_cv_to_tool_file_cmd=func_convert_file_noop 12536case $host in 12537 *-*-mingw* ) 12538 case $build in 12539 *-*-mingw* ) # actually msys 12540 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12541 ;; 12542 esac 12543 ;; 12544esac 12545 12546fi 12547 12548to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12550printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12551 12552 12553 12554 12555 12556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12557printf %s "checking for $LD option to reload object files... " >&6; } 12558if test ${lt_cv_ld_reload_flag+y} 12559then : 12560 printf %s "(cached) " >&6 12561else $as_nop 12562 lt_cv_ld_reload_flag='-r' 12563fi 12564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12565printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12566reload_flag=$lt_cv_ld_reload_flag 12567case $reload_flag in 12568"" | " "*) ;; 12569*) reload_flag=" $reload_flag" ;; 12570esac 12571reload_cmds='$LD$reload_flag -o $output$reload_objs' 12572case $host_os in 12573 cygwin* | mingw* | pw32* | cegcc*) 12574 if test yes != "$GCC"; then 12575 reload_cmds=false 12576 fi 12577 ;; 12578 darwin*) 12579 if test yes = "$GCC"; then 12580 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12581 else 12582 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12583 fi 12584 ;; 12585esac 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595if test -n "$ac_tool_prefix"; then 12596 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12597set dummy ${ac_tool_prefix}objdump; ac_word=$2 12598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12599printf %s "checking for $ac_word... " >&6; } 12600if test ${ac_cv_prog_OBJDUMP+y} 12601then : 12602 printf %s "(cached) " >&6 12603else $as_nop 12604 if test -n "$OBJDUMP"; then 12605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12606else 12607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12608for as_dir in $PATH 12609do 12610 IFS=$as_save_IFS 12611 case $as_dir in #((( 12612 '') as_dir=./ ;; 12613 */) ;; 12614 *) as_dir=$as_dir/ ;; 12615 esac 12616 for ac_exec_ext in '' $ac_executable_extensions; do 12617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12618 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12620 break 2 12621 fi 12622done 12623 done 12624IFS=$as_save_IFS 12625 12626fi 12627fi 12628OBJDUMP=$ac_cv_prog_OBJDUMP 12629if test -n "$OBJDUMP"; then 12630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12631printf "%s\n" "$OBJDUMP" >&6; } 12632else 12633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12634printf "%s\n" "no" >&6; } 12635fi 12636 12637 12638fi 12639if test -z "$ac_cv_prog_OBJDUMP"; then 12640 ac_ct_OBJDUMP=$OBJDUMP 12641 # Extract the first word of "objdump", so it can be a program name with args. 12642set dummy objdump; ac_word=$2 12643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12644printf %s "checking for $ac_word... " >&6; } 12645if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12646then : 12647 printf %s "(cached) " >&6 12648else $as_nop 12649 if test -n "$ac_ct_OBJDUMP"; then 12650 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12651else 12652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12653for as_dir in $PATH 12654do 12655 IFS=$as_save_IFS 12656 case $as_dir in #((( 12657 '') as_dir=./ ;; 12658 */) ;; 12659 *) as_dir=$as_dir/ ;; 12660 esac 12661 for ac_exec_ext in '' $ac_executable_extensions; do 12662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12663 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12665 break 2 12666 fi 12667done 12668 done 12669IFS=$as_save_IFS 12670 12671fi 12672fi 12673ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12674if test -n "$ac_ct_OBJDUMP"; then 12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12676printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12677else 12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12679printf "%s\n" "no" >&6; } 12680fi 12681 12682 if test "x$ac_ct_OBJDUMP" = x; then 12683 OBJDUMP="false" 12684 else 12685 case $cross_compiling:$ac_tool_warned in 12686yes:) 12687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12688printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12689ac_tool_warned=yes ;; 12690esac 12691 OBJDUMP=$ac_ct_OBJDUMP 12692 fi 12693else 12694 OBJDUMP="$ac_cv_prog_OBJDUMP" 12695fi 12696 12697test -z "$OBJDUMP" && OBJDUMP=objdump 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12708printf %s "checking how to recognize dependent libraries... " >&6; } 12709if test ${lt_cv_deplibs_check_method+y} 12710then : 12711 printf %s "(cached) " >&6 12712else $as_nop 12713 lt_cv_file_magic_cmd='$MAGIC_CMD' 12714lt_cv_file_magic_test_file= 12715lt_cv_deplibs_check_method='unknown' 12716# Need to set the preceding variable on all platforms that support 12717# interlibrary dependencies. 12718# 'none' -- dependencies not supported. 12719# 'unknown' -- same as none, but documents that we really don't know. 12720# 'pass_all' -- all dependencies passed with no checks. 12721# 'test_compile' -- check by making test program. 12722# 'file_magic [[regex]]' -- check by looking for files in library path 12723# that responds to the $file_magic_cmd with a given extended regex. 12724# If you have 'file' or equivalent on your system and you're not sure 12725# whether 'pass_all' will *always* work, you probably want this one. 12726 12727case $host_os in 12728aix[4-9]*) 12729 lt_cv_deplibs_check_method=pass_all 12730 ;; 12731 12732beos*) 12733 lt_cv_deplibs_check_method=pass_all 12734 ;; 12735 12736bsdi[45]*) 12737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12738 lt_cv_file_magic_cmd='/usr/bin/file -L' 12739 lt_cv_file_magic_test_file=/shlib/libc.so 12740 ;; 12741 12742cygwin*) 12743 # func_win32_libid is a shell function defined in ltmain.sh 12744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12745 lt_cv_file_magic_cmd='func_win32_libid' 12746 ;; 12747 12748mingw* | pw32*) 12749 # Base MSYS/MinGW do not provide the 'file' command needed by 12750 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12751 # unless we find 'file', for example because we are cross-compiling. 12752 if ( file / ) >/dev/null 2>&1; then 12753 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12754 lt_cv_file_magic_cmd='func_win32_libid' 12755 else 12756 # Keep this pattern in sync with the one in func_win32_libid. 12757 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12758 lt_cv_file_magic_cmd='$OBJDUMP -f' 12759 fi 12760 ;; 12761 12762cegcc*) 12763 # use the weaker test based on 'objdump'. See mingw*. 12764 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12765 lt_cv_file_magic_cmd='$OBJDUMP -f' 12766 ;; 12767 12768darwin* | rhapsody*) 12769 lt_cv_deplibs_check_method=pass_all 12770 ;; 12771 12772freebsd* | dragonfly*) 12773 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12774 case $host_cpu in 12775 i*86 ) 12776 # Not sure whether the presence of OpenBSD here was a mistake. 12777 # Let's accept both of them until this is cleared up. 12778 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12779 lt_cv_file_magic_cmd=/usr/bin/file 12780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12781 ;; 12782 esac 12783 else 12784 lt_cv_deplibs_check_method=pass_all 12785 fi 12786 ;; 12787 12788haiku*) 12789 lt_cv_deplibs_check_method=pass_all 12790 ;; 12791 12792hpux10.20* | hpux11*) 12793 lt_cv_file_magic_cmd=/usr/bin/file 12794 case $host_cpu in 12795 ia64*) 12796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12797 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12798 ;; 12799 hppa*64*) 12800 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]' 12801 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12802 ;; 12803 *) 12804 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12805 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12806 ;; 12807 esac 12808 ;; 12809 12810interix[3-9]*) 12811 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12813 ;; 12814 12815irix5* | irix6* | nonstopux*) 12816 case $LD in 12817 *-32|*"-32 ") libmagic=32-bit;; 12818 *-n32|*"-n32 ") libmagic=N32;; 12819 *-64|*"-64 ") libmagic=64-bit;; 12820 *) libmagic=never-match;; 12821 esac 12822 lt_cv_deplibs_check_method=pass_all 12823 ;; 12824 12825# This must be glibc/ELF. 12826linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12827 lt_cv_deplibs_check_method=pass_all 12828 ;; 12829 12830netbsd* | netbsdelf*-gnu) 12831 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12833 else 12834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12835 fi 12836 ;; 12837 12838newos6*) 12839 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12840 lt_cv_file_magic_cmd=/usr/bin/file 12841 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12842 ;; 12843 12844*nto* | *qnx*) 12845 lt_cv_deplibs_check_method=pass_all 12846 ;; 12847 12848openbsd* | bitrig*) 12849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12851 else 12852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12853 fi 12854 ;; 12855 12856osf3* | osf4* | osf5*) 12857 lt_cv_deplibs_check_method=pass_all 12858 ;; 12859 12860rdos*) 12861 lt_cv_deplibs_check_method=pass_all 12862 ;; 12863 12864solaris*) 12865 lt_cv_deplibs_check_method=pass_all 12866 ;; 12867 12868sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12869 lt_cv_deplibs_check_method=pass_all 12870 ;; 12871 12872sysv4 | sysv4.3*) 12873 case $host_vendor in 12874 motorola) 12875 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]' 12876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12877 ;; 12878 ncr) 12879 lt_cv_deplibs_check_method=pass_all 12880 ;; 12881 sequent) 12882 lt_cv_file_magic_cmd='/bin/file' 12883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12884 ;; 12885 sni) 12886 lt_cv_file_magic_cmd='/bin/file' 12887 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12888 lt_cv_file_magic_test_file=/lib/libc.so 12889 ;; 12890 siemens) 12891 lt_cv_deplibs_check_method=pass_all 12892 ;; 12893 pc) 12894 lt_cv_deplibs_check_method=pass_all 12895 ;; 12896 esac 12897 ;; 12898 12899tpf*) 12900 lt_cv_deplibs_check_method=pass_all 12901 ;; 12902os2*) 12903 lt_cv_deplibs_check_method=pass_all 12904 ;; 12905esac 12906 12907fi 12908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12909printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12910 12911file_magic_glob= 12912want_nocaseglob=no 12913if test "$build" = "$host"; then 12914 case $host_os in 12915 mingw* | pw32*) 12916 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12917 want_nocaseglob=yes 12918 else 12919 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12920 fi 12921 ;; 12922 esac 12923fi 12924 12925file_magic_cmd=$lt_cv_file_magic_cmd 12926deplibs_check_method=$lt_cv_deplibs_check_method 12927test -z "$deplibs_check_method" && deplibs_check_method=unknown 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950if test -n "$ac_tool_prefix"; then 12951 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12952set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12954printf %s "checking for $ac_word... " >&6; } 12955if test ${ac_cv_prog_DLLTOOL+y} 12956then : 12957 printf %s "(cached) " >&6 12958else $as_nop 12959 if test -n "$DLLTOOL"; then 12960 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12961else 12962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12963for as_dir in $PATH 12964do 12965 IFS=$as_save_IFS 12966 case $as_dir in #((( 12967 '') as_dir=./ ;; 12968 */) ;; 12969 *) as_dir=$as_dir/ ;; 12970 esac 12971 for ac_exec_ext in '' $ac_executable_extensions; do 12972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12973 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12975 break 2 12976 fi 12977done 12978 done 12979IFS=$as_save_IFS 12980 12981fi 12982fi 12983DLLTOOL=$ac_cv_prog_DLLTOOL 12984if test -n "$DLLTOOL"; then 12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12986printf "%s\n" "$DLLTOOL" >&6; } 12987else 12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12989printf "%s\n" "no" >&6; } 12990fi 12991 12992 12993fi 12994if test -z "$ac_cv_prog_DLLTOOL"; then 12995 ac_ct_DLLTOOL=$DLLTOOL 12996 # Extract the first word of "dlltool", so it can be a program name with args. 12997set dummy dlltool; ac_word=$2 12998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12999printf %s "checking for $ac_word... " >&6; } 13000if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 13001then : 13002 printf %s "(cached) " >&6 13003else $as_nop 13004 if test -n "$ac_ct_DLLTOOL"; then 13005 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13006else 13007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13008for as_dir in $PATH 13009do 13010 IFS=$as_save_IFS 13011 case $as_dir in #((( 13012 '') as_dir=./ ;; 13013 */) ;; 13014 *) as_dir=$as_dir/ ;; 13015 esac 13016 for ac_exec_ext in '' $ac_executable_extensions; do 13017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13018 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13020 break 2 13021 fi 13022done 13023 done 13024IFS=$as_save_IFS 13025 13026fi 13027fi 13028ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13029if test -n "$ac_ct_DLLTOOL"; then 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13031printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 13032else 13033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13034printf "%s\n" "no" >&6; } 13035fi 13036 13037 if test "x$ac_ct_DLLTOOL" = x; then 13038 DLLTOOL="false" 13039 else 13040 case $cross_compiling:$ac_tool_warned in 13041yes:) 13042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13043printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13044ac_tool_warned=yes ;; 13045esac 13046 DLLTOOL=$ac_ct_DLLTOOL 13047 fi 13048else 13049 DLLTOOL="$ac_cv_prog_DLLTOOL" 13050fi 13051 13052test -z "$DLLTOOL" && DLLTOOL=dlltool 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13064printf %s "checking how to associate runtime and link libraries... " >&6; } 13065if test ${lt_cv_sharedlib_from_linklib_cmd+y} 13066then : 13067 printf %s "(cached) " >&6 13068else $as_nop 13069 lt_cv_sharedlib_from_linklib_cmd='unknown' 13070 13071case $host_os in 13072cygwin* | mingw* | pw32* | cegcc*) 13073 # two different shell functions defined in ltmain.sh; 13074 # decide which one to use based on capabilities of $DLLTOOL 13075 case `$DLLTOOL --help 2>&1` in 13076 *--identify-strict*) 13077 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13078 ;; 13079 *) 13080 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13081 ;; 13082 esac 13083 ;; 13084*) 13085 # fallback: assume linklib IS sharedlib 13086 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13087 ;; 13088esac 13089 13090fi 13091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13092printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13093sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13094test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13095 13096 13097 13098 13099 13100 13101 13102if test -n "$ac_tool_prefix"; then 13103 for ac_prog in ar 13104 do 13105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13106set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13108printf %s "checking for $ac_word... " >&6; } 13109if test ${ac_cv_prog_AR+y} 13110then : 13111 printf %s "(cached) " >&6 13112else $as_nop 13113 if test -n "$AR"; then 13114 ac_cv_prog_AR="$AR" # Let the user override the test. 13115else 13116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13117for as_dir in $PATH 13118do 13119 IFS=$as_save_IFS 13120 case $as_dir in #((( 13121 '') as_dir=./ ;; 13122 */) ;; 13123 *) as_dir=$as_dir/ ;; 13124 esac 13125 for ac_exec_ext in '' $ac_executable_extensions; do 13126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13127 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13129 break 2 13130 fi 13131done 13132 done 13133IFS=$as_save_IFS 13134 13135fi 13136fi 13137AR=$ac_cv_prog_AR 13138if test -n "$AR"; then 13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13140printf "%s\n" "$AR" >&6; } 13141else 13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13143printf "%s\n" "no" >&6; } 13144fi 13145 13146 13147 test -n "$AR" && break 13148 done 13149fi 13150if test -z "$AR"; then 13151 ac_ct_AR=$AR 13152 for ac_prog in ar 13153do 13154 # Extract the first word of "$ac_prog", so it can be a program name with args. 13155set dummy $ac_prog; ac_word=$2 13156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13157printf %s "checking for $ac_word... " >&6; } 13158if test ${ac_cv_prog_ac_ct_AR+y} 13159then : 13160 printf %s "(cached) " >&6 13161else $as_nop 13162 if test -n "$ac_ct_AR"; then 13163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13164else 13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13166for as_dir in $PATH 13167do 13168 IFS=$as_save_IFS 13169 case $as_dir in #((( 13170 '') as_dir=./ ;; 13171 */) ;; 13172 *) as_dir=$as_dir/ ;; 13173 esac 13174 for ac_exec_ext in '' $ac_executable_extensions; do 13175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13176 ac_cv_prog_ac_ct_AR="$ac_prog" 13177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13178 break 2 13179 fi 13180done 13181 done 13182IFS=$as_save_IFS 13183 13184fi 13185fi 13186ac_ct_AR=$ac_cv_prog_ac_ct_AR 13187if test -n "$ac_ct_AR"; then 13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13189printf "%s\n" "$ac_ct_AR" >&6; } 13190else 13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13192printf "%s\n" "no" >&6; } 13193fi 13194 13195 13196 test -n "$ac_ct_AR" && break 13197done 13198 13199 if test "x$ac_ct_AR" = x; then 13200 AR="false" 13201 else 13202 case $cross_compiling:$ac_tool_warned in 13203yes:) 13204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13205printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13206ac_tool_warned=yes ;; 13207esac 13208 AR=$ac_ct_AR 13209 fi 13210fi 13211 13212: ${AR=ar} 13213: ${AR_FLAGS=cr} 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13226printf %s "checking for archiver @FILE support... " >&6; } 13227if test ${lt_cv_ar_at_file+y} 13228then : 13229 printf %s "(cached) " >&6 13230else $as_nop 13231 lt_cv_ar_at_file=no 13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13233/* end confdefs.h. */ 13234 13235int 13236main (void) 13237{ 13238 13239 ; 13240 return 0; 13241} 13242_ACEOF 13243if ac_fn_c_try_compile "$LINENO" 13244then : 13245 echo conftest.$ac_objext > conftest.lst 13246 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13248 (eval $lt_ar_try) 2>&5 13249 ac_status=$? 13250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13251 test $ac_status = 0; } 13252 if test 0 -eq "$ac_status"; then 13253 # Ensure the archiver fails upon bogus file names. 13254 rm -f conftest.$ac_objext libconftest.a 13255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13256 (eval $lt_ar_try) 2>&5 13257 ac_status=$? 13258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13259 test $ac_status = 0; } 13260 if test 0 -ne "$ac_status"; then 13261 lt_cv_ar_at_file=@ 13262 fi 13263 fi 13264 rm -f conftest.* libconftest.a 13265 13266fi 13267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13268 13269fi 13270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13271printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13272 13273if test no = "$lt_cv_ar_at_file"; then 13274 archiver_list_spec= 13275else 13276 archiver_list_spec=$lt_cv_ar_at_file 13277fi 13278 13279 13280 13281 13282 13283 13284 13285if test -n "$ac_tool_prefix"; then 13286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13287set dummy ${ac_tool_prefix}strip; ac_word=$2 13288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13289printf %s "checking for $ac_word... " >&6; } 13290if test ${ac_cv_prog_STRIP+y} 13291then : 13292 printf %s "(cached) " >&6 13293else $as_nop 13294 if test -n "$STRIP"; then 13295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13296else 13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13298for as_dir in $PATH 13299do 13300 IFS=$as_save_IFS 13301 case $as_dir in #((( 13302 '') as_dir=./ ;; 13303 */) ;; 13304 *) as_dir=$as_dir/ ;; 13305 esac 13306 for ac_exec_ext in '' $ac_executable_extensions; do 13307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13308 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13310 break 2 13311 fi 13312done 13313 done 13314IFS=$as_save_IFS 13315 13316fi 13317fi 13318STRIP=$ac_cv_prog_STRIP 13319if test -n "$STRIP"; then 13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13321printf "%s\n" "$STRIP" >&6; } 13322else 13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13324printf "%s\n" "no" >&6; } 13325fi 13326 13327 13328fi 13329if test -z "$ac_cv_prog_STRIP"; then 13330 ac_ct_STRIP=$STRIP 13331 # Extract the first word of "strip", so it can be a program name with args. 13332set dummy strip; ac_word=$2 13333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13334printf %s "checking for $ac_word... " >&6; } 13335if test ${ac_cv_prog_ac_ct_STRIP+y} 13336then : 13337 printf %s "(cached) " >&6 13338else $as_nop 13339 if test -n "$ac_ct_STRIP"; then 13340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13341else 13342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13343for as_dir in $PATH 13344do 13345 IFS=$as_save_IFS 13346 case $as_dir in #((( 13347 '') as_dir=./ ;; 13348 */) ;; 13349 *) as_dir=$as_dir/ ;; 13350 esac 13351 for ac_exec_ext in '' $ac_executable_extensions; do 13352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13353 ac_cv_prog_ac_ct_STRIP="strip" 13354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13355 break 2 13356 fi 13357done 13358 done 13359IFS=$as_save_IFS 13360 13361fi 13362fi 13363ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13364if test -n "$ac_ct_STRIP"; then 13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13366printf "%s\n" "$ac_ct_STRIP" >&6; } 13367else 13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13369printf "%s\n" "no" >&6; } 13370fi 13371 13372 if test "x$ac_ct_STRIP" = x; then 13373 STRIP=":" 13374 else 13375 case $cross_compiling:$ac_tool_warned in 13376yes:) 13377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13378printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13379ac_tool_warned=yes ;; 13380esac 13381 STRIP=$ac_ct_STRIP 13382 fi 13383else 13384 STRIP="$ac_cv_prog_STRIP" 13385fi 13386 13387test -z "$STRIP" && STRIP=: 13388 13389 13390 13391 13392 13393 13394if test -n "$ac_tool_prefix"; then 13395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13396set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13398printf %s "checking for $ac_word... " >&6; } 13399if test ${ac_cv_prog_RANLIB+y} 13400then : 13401 printf %s "(cached) " >&6 13402else $as_nop 13403 if test -n "$RANLIB"; then 13404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13405else 13406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13407for as_dir in $PATH 13408do 13409 IFS=$as_save_IFS 13410 case $as_dir in #((( 13411 '') as_dir=./ ;; 13412 */) ;; 13413 *) as_dir=$as_dir/ ;; 13414 esac 13415 for ac_exec_ext in '' $ac_executable_extensions; do 13416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13419 break 2 13420 fi 13421done 13422 done 13423IFS=$as_save_IFS 13424 13425fi 13426fi 13427RANLIB=$ac_cv_prog_RANLIB 13428if test -n "$RANLIB"; then 13429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13430printf "%s\n" "$RANLIB" >&6; } 13431else 13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13433printf "%s\n" "no" >&6; } 13434fi 13435 13436 13437fi 13438if test -z "$ac_cv_prog_RANLIB"; then 13439 ac_ct_RANLIB=$RANLIB 13440 # Extract the first word of "ranlib", so it can be a program name with args. 13441set dummy ranlib; 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_ac_ct_RANLIB+y} 13445then : 13446 printf %s "(cached) " >&6 13447else $as_nop 13448 if test -n "$ac_ct_RANLIB"; then 13449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib" 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 13472ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13473if test -n "$ac_ct_RANLIB"; then 13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13475printf "%s\n" "$ac_ct_RANLIB" >&6; } 13476else 13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13478printf "%s\n" "no" >&6; } 13479fi 13480 13481 if test "x$ac_ct_RANLIB" = x; then 13482 RANLIB=":" 13483 else 13484 case $cross_compiling:$ac_tool_warned in 13485yes:) 13486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13487printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13488ac_tool_warned=yes ;; 13489esac 13490 RANLIB=$ac_ct_RANLIB 13491 fi 13492else 13493 RANLIB="$ac_cv_prog_RANLIB" 13494fi 13495 13496test -z "$RANLIB" && RANLIB=: 13497 13498 13499 13500 13501 13502 13503# Determine commands to create old-style static archives. 13504old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13505old_postinstall_cmds='chmod 644 $oldlib' 13506old_postuninstall_cmds= 13507 13508if test -n "$RANLIB"; then 13509 case $host_os in 13510 bitrig* | openbsd*) 13511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13512 ;; 13513 *) 13514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13515 ;; 13516 esac 13517 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13518fi 13519 13520case $host_os in 13521 darwin*) 13522 lock_old_archive_extraction=yes ;; 13523 *) 13524 lock_old_archive_extraction=no ;; 13525esac 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565# If no C compiler was specified, use CC. 13566LTCC=${LTCC-"$CC"} 13567 13568# If no C compiler flags were specified, use CFLAGS. 13569LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13570 13571# Allow CC to be a program name with arguments. 13572compiler=$CC 13573 13574 13575# Check for command to grab the raw symbol name followed by C symbol from nm. 13576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13577printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13578if test ${lt_cv_sys_global_symbol_pipe+y} 13579then : 13580 printf %s "(cached) " >&6 13581else $as_nop 13582 13583# These are sane defaults that work on at least a few old systems. 13584# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13585 13586# Character class describing NM global symbol codes. 13587symcode='[BCDEGRST]' 13588 13589# Regexp to match symbols that can be accessed directly from C. 13590sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13591 13592# Define system-specific variables. 13593case $host_os in 13594aix*) 13595 symcode='[BCDT]' 13596 ;; 13597cygwin* | mingw* | pw32* | cegcc*) 13598 symcode='[ABCDGISTW]' 13599 ;; 13600hpux*) 13601 if test ia64 = "$host_cpu"; then 13602 symcode='[ABCDEGRST]' 13603 fi 13604 ;; 13605irix* | nonstopux*) 13606 symcode='[BCDEGRST]' 13607 ;; 13608osf*) 13609 symcode='[BCDEGQRST]' 13610 ;; 13611solaris*) 13612 symcode='[BDRT]' 13613 ;; 13614sco3.2v5*) 13615 symcode='[DT]' 13616 ;; 13617sysv4.2uw2*) 13618 symcode='[DT]' 13619 ;; 13620sysv5* | sco5v6* | unixware* | OpenUNIX*) 13621 symcode='[ABDT]' 13622 ;; 13623sysv4) 13624 symcode='[DFNSTU]' 13625 ;; 13626esac 13627 13628# If we're using GNU nm, then use its standard symbol codes. 13629case `$NM -V 2>&1` in 13630*GNU* | *'with BFD'*) 13631 symcode='[ABCDGIRSTW]' ;; 13632esac 13633 13634if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13635 # Gets list of data symbols to import. 13636 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 13637 # Adjust the below global symbol transforms to fixup imported variables. 13638 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13639 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13640 lt_c_name_lib_hook="\ 13641 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13642 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13643else 13644 # Disable hooks by default. 13645 lt_cv_sys_global_symbol_to_import= 13646 lt_cdecl_hook= 13647 lt_c_name_hook= 13648 lt_c_name_lib_hook= 13649fi 13650 13651# Transform an extracted symbol line into a proper C declaration. 13652# Some systems (esp. on ia64) link data and code symbols differently, 13653# so use this general approach. 13654lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13655$lt_cdecl_hook\ 13656" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13657" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13658 13659# Transform an extracted symbol line into symbol name and symbol address 13660lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13661$lt_c_name_hook\ 13662" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13663" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13664 13665# Transform an extracted symbol line into symbol name with lib prefix and 13666# symbol address. 13667lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13668$lt_c_name_lib_hook\ 13669" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13670" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13671" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13672 13673# Handle CRLF in mingw tool chain 13674opt_cr= 13675case $build_os in 13676mingw*) 13677 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13678 ;; 13679esac 13680 13681# Try without a prefix underscore, then with it. 13682for ac_symprfx in "" "_"; do 13683 13684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13685 symxfrm="\\1 $ac_symprfx\\2 \\2" 13686 13687 # Write the raw and C identifiers. 13688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13689 # Fake it for dumpbin and say T for any non-static function, 13690 # D for any global variable and I for any imported variable. 13691 # Also find C++ and __fastcall symbols from MSVC++, 13692 # which start with @ or ?. 13693 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13694" {last_section=section; section=\$ 3};"\ 13695" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13696" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13697" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13698" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13699" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13700" \$ 0!~/External *\|/{next};"\ 13701" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13702" {if(hide[section]) next};"\ 13703" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13704" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13705" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13706" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13707" ' prfx=^$ac_symprfx" 13708 else 13709 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13710 fi 13711 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13712 13713 # Check to see that the pipe works correctly. 13714 pipe_works=no 13715 13716 rm -f conftest* 13717 cat > conftest.$ac_ext <<_LT_EOF 13718#ifdef __cplusplus 13719extern "C" { 13720#endif 13721char nm_test_var; 13722void nm_test_func(void); 13723void nm_test_func(void){} 13724#ifdef __cplusplus 13725} 13726#endif 13727int main(){nm_test_var='a';nm_test_func();return(0);} 13728_LT_EOF 13729 13730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13731 (eval $ac_compile) 2>&5 13732 ac_status=$? 13733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13734 test $ac_status = 0; }; then 13735 # Now try to grab the symbols. 13736 nlist=conftest.nm 13737 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 13738 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 13739 # Try sorting and uniquifying the output. 13740 if sort "$nlist" | uniq > "$nlist"T; then 13741 mv -f "$nlist"T "$nlist" 13742 else 13743 rm -f "$nlist"T 13744 fi 13745 13746 # Make sure that we snagged all the symbols we need. 13747 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13748 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13749 cat <<_LT_EOF > conftest.$ac_ext 13750/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13751#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13752/* DATA imports from DLLs on WIN32 can't be const, because runtime 13753 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13754# define LT_DLSYM_CONST 13755#elif defined __osf__ 13756/* This system does not cope well with relocations in const data. */ 13757# define LT_DLSYM_CONST 13758#else 13759# define LT_DLSYM_CONST const 13760#endif 13761 13762#ifdef __cplusplus 13763extern "C" { 13764#endif 13765 13766_LT_EOF 13767 # Now generate the symbol file. 13768 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13769 13770 cat <<_LT_EOF >> conftest.$ac_ext 13771 13772/* The mapping between symbol names and symbols. */ 13773LT_DLSYM_CONST struct { 13774 const char *name; 13775 void *address; 13776} 13777lt__PROGRAM__LTX_preloaded_symbols[] = 13778{ 13779 { "@PROGRAM@", (void *) 0 }, 13780_LT_EOF 13781 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13782 cat <<\_LT_EOF >> conftest.$ac_ext 13783 {0, (void *) 0} 13784}; 13785 13786/* This works around a problem in FreeBSD linker */ 13787#ifdef FREEBSD_WORKAROUND 13788static const void *lt_preloaded_setup() { 13789 return lt__PROGRAM__LTX_preloaded_symbols; 13790} 13791#endif 13792 13793#ifdef __cplusplus 13794} 13795#endif 13796_LT_EOF 13797 # Now try linking the two files. 13798 mv conftest.$ac_objext conftstm.$ac_objext 13799 lt_globsym_save_LIBS=$LIBS 13800 lt_globsym_save_CFLAGS=$CFLAGS 13801 LIBS=conftstm.$ac_objext 13802 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13804 (eval $ac_link) 2>&5 13805 ac_status=$? 13806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13807 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13808 pipe_works=yes 13809 fi 13810 LIBS=$lt_globsym_save_LIBS 13811 CFLAGS=$lt_globsym_save_CFLAGS 13812 else 13813 echo "cannot find nm_test_func in $nlist" >&5 13814 fi 13815 else 13816 echo "cannot find nm_test_var in $nlist" >&5 13817 fi 13818 else 13819 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13820 fi 13821 else 13822 echo "$progname: failed program was:" >&5 13823 cat conftest.$ac_ext >&5 13824 fi 13825 rm -rf conftest* conftst* 13826 13827 # Do not use the global_symbol_pipe unless it works. 13828 if test yes = "$pipe_works"; then 13829 break 13830 else 13831 lt_cv_sys_global_symbol_pipe= 13832 fi 13833done 13834 13835fi 13836 13837if test -z "$lt_cv_sys_global_symbol_pipe"; then 13838 lt_cv_sys_global_symbol_to_cdecl= 13839fi 13840if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13842printf "%s\n" "failed" >&6; } 13843else 13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13845printf "%s\n" "ok" >&6; } 13846fi 13847 13848# Response file support. 13849if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13850 nm_file_list_spec='@' 13851elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13852 nm_file_list_spec='@' 13853fi 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13892printf %s "checking for sysroot... " >&6; } 13893 13894# Check whether --with-sysroot was given. 13895if test ${with_sysroot+y} 13896then : 13897 withval=$with_sysroot; 13898else $as_nop 13899 with_sysroot=no 13900fi 13901 13902 13903lt_sysroot= 13904case $with_sysroot in #( 13905 yes) 13906 if test yes = "$GCC"; then 13907 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13908 fi 13909 ;; #( 13910 /*) 13911 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13912 ;; #( 13913 no|'') 13914 ;; #( 13915 *) 13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13917printf "%s\n" "$with_sysroot" >&6; } 13918 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13919 ;; 13920esac 13921 13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13923printf "%s\n" "${lt_sysroot:-no}" >&6; } 13924 13925 13926 13927 13928 13929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13930printf %s "checking for a working dd... " >&6; } 13931if test ${ac_cv_path_lt_DD+y} 13932then : 13933 printf %s "(cached) " >&6 13934else $as_nop 13935 printf 0123456789abcdef0123456789abcdef >conftest.i 13936cat conftest.i conftest.i >conftest2.i 13937: ${lt_DD:=$DD} 13938if test -z "$lt_DD"; then 13939 ac_path_lt_DD_found=false 13940 # Loop through the user's path and test for each of PROGNAME-LIST 13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13942for as_dir in $PATH 13943do 13944 IFS=$as_save_IFS 13945 case $as_dir in #((( 13946 '') as_dir=./ ;; 13947 */) ;; 13948 *) as_dir=$as_dir/ ;; 13949 esac 13950 for ac_prog in dd 13951 do 13952 for ac_exec_ext in '' $ac_executable_extensions; do 13953 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13954 as_fn_executable_p "$ac_path_lt_DD" || continue 13955if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13956 cmp -s conftest.i conftest.out \ 13957 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13958fi 13959 $ac_path_lt_DD_found && break 3 13960 done 13961 done 13962 done 13963IFS=$as_save_IFS 13964 if test -z "$ac_cv_path_lt_DD"; then 13965 : 13966 fi 13967else 13968 ac_cv_path_lt_DD=$lt_DD 13969fi 13970 13971rm -f conftest.i conftest2.i conftest.out 13972fi 13973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13974printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13975 13976 13977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13978printf %s "checking how to truncate binary pipes... " >&6; } 13979if test ${lt_cv_truncate_bin+y} 13980then : 13981 printf %s "(cached) " >&6 13982else $as_nop 13983 printf 0123456789abcdef0123456789abcdef >conftest.i 13984cat conftest.i conftest.i >conftest2.i 13985lt_cv_truncate_bin= 13986if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13987 cmp -s conftest.i conftest.out \ 13988 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13989fi 13990rm -f conftest.i conftest2.i conftest.out 13991test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13992fi 13993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13994printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13995 13996 13997 13998 13999 14000 14001 14002# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14003func_cc_basename () 14004{ 14005 for cc_temp in $*""; do 14006 case $cc_temp in 14007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14009 \-*) ;; 14010 *) break;; 14011 esac 14012 done 14013 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14014} 14015 14016# Check whether --enable-libtool-lock was given. 14017if test ${enable_libtool_lock+y} 14018then : 14019 enableval=$enable_libtool_lock; 14020fi 14021 14022test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14023 14024# Some flags need to be propagated to the compiler or linker for good 14025# libtool support. 14026case $host in 14027ia64-*-hpux*) 14028 # Find out what ABI is being produced by ac_compile, and set mode 14029 # options accordingly. 14030 echo 'int i;' > conftest.$ac_ext 14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14032 (eval $ac_compile) 2>&5 14033 ac_status=$? 14034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14035 test $ac_status = 0; }; then 14036 case `/usr/bin/file conftest.$ac_objext` in 14037 *ELF-32*) 14038 HPUX_IA64_MODE=32 14039 ;; 14040 *ELF-64*) 14041 HPUX_IA64_MODE=64 14042 ;; 14043 esac 14044 fi 14045 rm -rf conftest* 14046 ;; 14047*-*-irix6*) 14048 # Find out what ABI is being produced by ac_compile, and set linker 14049 # options accordingly. 14050 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14052 (eval $ac_compile) 2>&5 14053 ac_status=$? 14054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14055 test $ac_status = 0; }; then 14056 if test yes = "$lt_cv_prog_gnu_ld"; then 14057 case `/usr/bin/file conftest.$ac_objext` in 14058 *32-bit*) 14059 LD="${LD-ld} -melf32bsmip" 14060 ;; 14061 *N32*) 14062 LD="${LD-ld} -melf32bmipn32" 14063 ;; 14064 *64-bit*) 14065 LD="${LD-ld} -melf64bmip" 14066 ;; 14067 esac 14068 else 14069 case `/usr/bin/file conftest.$ac_objext` in 14070 *32-bit*) 14071 LD="${LD-ld} -32" 14072 ;; 14073 *N32*) 14074 LD="${LD-ld} -n32" 14075 ;; 14076 *64-bit*) 14077 LD="${LD-ld} -64" 14078 ;; 14079 esac 14080 fi 14081 fi 14082 rm -rf conftest* 14083 ;; 14084 14085mips64*-*linux*) 14086 # Find out what ABI is being produced by ac_compile, and set linker 14087 # options accordingly. 14088 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14090 (eval $ac_compile) 2>&5 14091 ac_status=$? 14092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14093 test $ac_status = 0; }; then 14094 emul=elf 14095 case `/usr/bin/file conftest.$ac_objext` in 14096 *32-bit*) 14097 emul="${emul}32" 14098 ;; 14099 *64-bit*) 14100 emul="${emul}64" 14101 ;; 14102 esac 14103 case `/usr/bin/file conftest.$ac_objext` in 14104 *MSB*) 14105 emul="${emul}btsmip" 14106 ;; 14107 *LSB*) 14108 emul="${emul}ltsmip" 14109 ;; 14110 esac 14111 case `/usr/bin/file conftest.$ac_objext` in 14112 *N32*) 14113 emul="${emul}n32" 14114 ;; 14115 esac 14116 LD="${LD-ld} -m $emul" 14117 fi 14118 rm -rf conftest* 14119 ;; 14120 14121x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14122s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14123 # Find out what ABI is being produced by ac_compile, and set linker 14124 # options accordingly. Note that the listed cases only cover the 14125 # situations where additional linker options are needed (such as when 14126 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14127 # vice versa); the common cases where no linker options are needed do 14128 # not appear in the list. 14129 echo 'int i;' > conftest.$ac_ext 14130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14131 (eval $ac_compile) 2>&5 14132 ac_status=$? 14133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14134 test $ac_status = 0; }; then 14135 case `/usr/bin/file conftest.o` in 14136 *32-bit*) 14137 case $host in 14138 x86_64-*kfreebsd*-gnu) 14139 LD="${LD-ld} -m elf_i386_fbsd" 14140 ;; 14141 x86_64-*linux*) 14142 case `/usr/bin/file conftest.o` in 14143 *x86-64*) 14144 LD="${LD-ld} -m elf32_x86_64" 14145 ;; 14146 *) 14147 LD="${LD-ld} -m elf_i386" 14148 ;; 14149 esac 14150 ;; 14151 powerpc64le-*linux*) 14152 LD="${LD-ld} -m elf32lppclinux" 14153 ;; 14154 powerpc64-*linux*) 14155 LD="${LD-ld} -m elf32ppclinux" 14156 ;; 14157 s390x-*linux*) 14158 LD="${LD-ld} -m elf_s390" 14159 ;; 14160 sparc64-*linux*) 14161 LD="${LD-ld} -m elf32_sparc" 14162 ;; 14163 esac 14164 ;; 14165 *64-bit*) 14166 case $host in 14167 x86_64-*kfreebsd*-gnu) 14168 LD="${LD-ld} -m elf_x86_64_fbsd" 14169 ;; 14170 x86_64-*linux*) 14171 LD="${LD-ld} -m elf_x86_64" 14172 ;; 14173 powerpcle-*linux*) 14174 LD="${LD-ld} -m elf64lppc" 14175 ;; 14176 powerpc-*linux*) 14177 LD="${LD-ld} -m elf64ppc" 14178 ;; 14179 s390*-*linux*|s390*-*tpf*) 14180 LD="${LD-ld} -m elf64_s390" 14181 ;; 14182 sparc*-*linux*) 14183 LD="${LD-ld} -m elf64_sparc" 14184 ;; 14185 esac 14186 ;; 14187 esac 14188 fi 14189 rm -rf conftest* 14190 ;; 14191 14192*-*-sco3.2v5*) 14193 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14194 SAVE_CFLAGS=$CFLAGS 14195 CFLAGS="$CFLAGS -belf" 14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14197printf %s "checking whether the C compiler needs -belf... " >&6; } 14198if test ${lt_cv_cc_needs_belf+y} 14199then : 14200 printf %s "(cached) " >&6 14201else $as_nop 14202 ac_ext=c 14203ac_cpp='$CPP $CPPFLAGS' 14204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14206ac_compiler_gnu=$ac_cv_c_compiler_gnu 14207 14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14209/* end confdefs.h. */ 14210 14211int 14212main (void) 14213{ 14214 14215 ; 14216 return 0; 14217} 14218_ACEOF 14219if ac_fn_c_try_link "$LINENO" 14220then : 14221 lt_cv_cc_needs_belf=yes 14222else $as_nop 14223 lt_cv_cc_needs_belf=no 14224fi 14225rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14226 conftest$ac_exeext conftest.$ac_ext 14227 ac_ext=c 14228ac_cpp='$CPP $CPPFLAGS' 14229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14231ac_compiler_gnu=$ac_cv_c_compiler_gnu 14232 14233fi 14234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14235printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14236 if test yes != "$lt_cv_cc_needs_belf"; then 14237 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14238 CFLAGS=$SAVE_CFLAGS 14239 fi 14240 ;; 14241*-*solaris*) 14242 # Find out what ABI is being produced by ac_compile, and set linker 14243 # options accordingly. 14244 echo 'int i;' > conftest.$ac_ext 14245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14246 (eval $ac_compile) 2>&5 14247 ac_status=$? 14248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14249 test $ac_status = 0; }; then 14250 case `/usr/bin/file conftest.o` in 14251 *64-bit*) 14252 case $lt_cv_prog_gnu_ld in 14253 yes*) 14254 case $host in 14255 i?86-*-solaris*|x86_64-*-solaris*) 14256 LD="${LD-ld} -m elf_x86_64" 14257 ;; 14258 sparc*-*-solaris*) 14259 LD="${LD-ld} -m elf64_sparc" 14260 ;; 14261 esac 14262 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14263 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14264 LD=${LD-ld}_sol2 14265 fi 14266 ;; 14267 *) 14268 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14269 LD="${LD-ld} -64" 14270 fi 14271 ;; 14272 esac 14273 ;; 14274 esac 14275 fi 14276 rm -rf conftest* 14277 ;; 14278esac 14279 14280need_locks=$enable_libtool_lock 14281 14282if test -n "$ac_tool_prefix"; then 14283 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14284set dummy ${ac_tool_prefix}mt; ac_word=$2 14285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14286printf %s "checking for $ac_word... " >&6; } 14287if test ${ac_cv_prog_MANIFEST_TOOL+y} 14288then : 14289 printf %s "(cached) " >&6 14290else $as_nop 14291 if test -n "$MANIFEST_TOOL"; then 14292 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14293else 14294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14295for as_dir in $PATH 14296do 14297 IFS=$as_save_IFS 14298 case $as_dir in #((( 14299 '') as_dir=./ ;; 14300 */) ;; 14301 *) as_dir=$as_dir/ ;; 14302 esac 14303 for ac_exec_ext in '' $ac_executable_extensions; do 14304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14305 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14307 break 2 14308 fi 14309done 14310 done 14311IFS=$as_save_IFS 14312 14313fi 14314fi 14315MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14316if test -n "$MANIFEST_TOOL"; then 14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14318printf "%s\n" "$MANIFEST_TOOL" >&6; } 14319else 14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14321printf "%s\n" "no" >&6; } 14322fi 14323 14324 14325fi 14326if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14327 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14328 # Extract the first word of "mt", so it can be a program name with args. 14329set dummy mt; ac_word=$2 14330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14331printf %s "checking for $ac_word... " >&6; } 14332if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14333then : 14334 printf %s "(cached) " >&6 14335else $as_nop 14336 if test -n "$ac_ct_MANIFEST_TOOL"; then 14337 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14338else 14339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14340for as_dir in $PATH 14341do 14342 IFS=$as_save_IFS 14343 case $as_dir in #((( 14344 '') as_dir=./ ;; 14345 */) ;; 14346 *) as_dir=$as_dir/ ;; 14347 esac 14348 for ac_exec_ext in '' $ac_executable_extensions; do 14349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14350 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14352 break 2 14353 fi 14354done 14355 done 14356IFS=$as_save_IFS 14357 14358fi 14359fi 14360ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14361if test -n "$ac_ct_MANIFEST_TOOL"; then 14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14363printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14364else 14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14366printf "%s\n" "no" >&6; } 14367fi 14368 14369 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14370 MANIFEST_TOOL=":" 14371 else 14372 case $cross_compiling:$ac_tool_warned in 14373yes:) 14374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14375printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14376ac_tool_warned=yes ;; 14377esac 14378 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14379 fi 14380else 14381 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14382fi 14383 14384test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14386printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14387if test ${lt_cv_path_mainfest_tool+y} 14388then : 14389 printf %s "(cached) " >&6 14390else $as_nop 14391 lt_cv_path_mainfest_tool=no 14392 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14393 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14394 cat conftest.err >&5 14395 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14396 lt_cv_path_mainfest_tool=yes 14397 fi 14398 rm -f conftest* 14399fi 14400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14401printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14402if test yes != "$lt_cv_path_mainfest_tool"; then 14403 MANIFEST_TOOL=: 14404fi 14405 14406 14407 14408 14409 14410 14411 case $host_os in 14412 rhapsody* | darwin*) 14413 if test -n "$ac_tool_prefix"; then 14414 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14415set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14417printf %s "checking for $ac_word... " >&6; } 14418if test ${ac_cv_prog_DSYMUTIL+y} 14419then : 14420 printf %s "(cached) " >&6 14421else $as_nop 14422 if test -n "$DSYMUTIL"; then 14423 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14424else 14425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14426for as_dir in $PATH 14427do 14428 IFS=$as_save_IFS 14429 case $as_dir in #((( 14430 '') as_dir=./ ;; 14431 */) ;; 14432 *) as_dir=$as_dir/ ;; 14433 esac 14434 for ac_exec_ext in '' $ac_executable_extensions; do 14435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14436 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14438 break 2 14439 fi 14440done 14441 done 14442IFS=$as_save_IFS 14443 14444fi 14445fi 14446DSYMUTIL=$ac_cv_prog_DSYMUTIL 14447if test -n "$DSYMUTIL"; then 14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14449printf "%s\n" "$DSYMUTIL" >&6; } 14450else 14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14452printf "%s\n" "no" >&6; } 14453fi 14454 14455 14456fi 14457if test -z "$ac_cv_prog_DSYMUTIL"; then 14458 ac_ct_DSYMUTIL=$DSYMUTIL 14459 # Extract the first word of "dsymutil", so it can be a program name with args. 14460set dummy dsymutil; ac_word=$2 14461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14462printf %s "checking for $ac_word... " >&6; } 14463if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14464then : 14465 printf %s "(cached) " >&6 14466else $as_nop 14467 if test -n "$ac_ct_DSYMUTIL"; then 14468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14469else 14470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14471for as_dir in $PATH 14472do 14473 IFS=$as_save_IFS 14474 case $as_dir in #((( 14475 '') as_dir=./ ;; 14476 */) ;; 14477 *) as_dir=$as_dir/ ;; 14478 esac 14479 for ac_exec_ext in '' $ac_executable_extensions; do 14480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14481 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14483 break 2 14484 fi 14485done 14486 done 14487IFS=$as_save_IFS 14488 14489fi 14490fi 14491ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14492if test -n "$ac_ct_DSYMUTIL"; then 14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14494printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14495else 14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14497printf "%s\n" "no" >&6; } 14498fi 14499 14500 if test "x$ac_ct_DSYMUTIL" = x; then 14501 DSYMUTIL=":" 14502 else 14503 case $cross_compiling:$ac_tool_warned in 14504yes:) 14505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14507ac_tool_warned=yes ;; 14508esac 14509 DSYMUTIL=$ac_ct_DSYMUTIL 14510 fi 14511else 14512 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14513fi 14514 14515 if test -n "$ac_tool_prefix"; then 14516 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14517set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14519printf %s "checking for $ac_word... " >&6; } 14520if test ${ac_cv_prog_NMEDIT+y} 14521then : 14522 printf %s "(cached) " >&6 14523else $as_nop 14524 if test -n "$NMEDIT"; then 14525 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14526else 14527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14528for as_dir in $PATH 14529do 14530 IFS=$as_save_IFS 14531 case $as_dir in #((( 14532 '') as_dir=./ ;; 14533 */) ;; 14534 *) as_dir=$as_dir/ ;; 14535 esac 14536 for ac_exec_ext in '' $ac_executable_extensions; do 14537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14538 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14540 break 2 14541 fi 14542done 14543 done 14544IFS=$as_save_IFS 14545 14546fi 14547fi 14548NMEDIT=$ac_cv_prog_NMEDIT 14549if test -n "$NMEDIT"; then 14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14551printf "%s\n" "$NMEDIT" >&6; } 14552else 14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14554printf "%s\n" "no" >&6; } 14555fi 14556 14557 14558fi 14559if test -z "$ac_cv_prog_NMEDIT"; then 14560 ac_ct_NMEDIT=$NMEDIT 14561 # Extract the first word of "nmedit", so it can be a program name with args. 14562set dummy nmedit; ac_word=$2 14563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14564printf %s "checking for $ac_word... " >&6; } 14565if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14566then : 14567 printf %s "(cached) " >&6 14568else $as_nop 14569 if test -n "$ac_ct_NMEDIT"; then 14570 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14571else 14572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14573for as_dir in $PATH 14574do 14575 IFS=$as_save_IFS 14576 case $as_dir in #((( 14577 '') as_dir=./ ;; 14578 */) ;; 14579 *) as_dir=$as_dir/ ;; 14580 esac 14581 for ac_exec_ext in '' $ac_executable_extensions; do 14582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14583 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14585 break 2 14586 fi 14587done 14588 done 14589IFS=$as_save_IFS 14590 14591fi 14592fi 14593ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14594if test -n "$ac_ct_NMEDIT"; then 14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14596printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14597else 14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14599printf "%s\n" "no" >&6; } 14600fi 14601 14602 if test "x$ac_ct_NMEDIT" = x; then 14603 NMEDIT=":" 14604 else 14605 case $cross_compiling:$ac_tool_warned in 14606yes:) 14607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14608printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14609ac_tool_warned=yes ;; 14610esac 14611 NMEDIT=$ac_ct_NMEDIT 14612 fi 14613else 14614 NMEDIT="$ac_cv_prog_NMEDIT" 14615fi 14616 14617 if test -n "$ac_tool_prefix"; then 14618 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14619set dummy ${ac_tool_prefix}lipo; ac_word=$2 14620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14621printf %s "checking for $ac_word... " >&6; } 14622if test ${ac_cv_prog_LIPO+y} 14623then : 14624 printf %s "(cached) " >&6 14625else $as_nop 14626 if test -n "$LIPO"; then 14627 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14628else 14629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14630for as_dir in $PATH 14631do 14632 IFS=$as_save_IFS 14633 case $as_dir in #((( 14634 '') as_dir=./ ;; 14635 */) ;; 14636 *) as_dir=$as_dir/ ;; 14637 esac 14638 for ac_exec_ext in '' $ac_executable_extensions; do 14639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14640 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14642 break 2 14643 fi 14644done 14645 done 14646IFS=$as_save_IFS 14647 14648fi 14649fi 14650LIPO=$ac_cv_prog_LIPO 14651if test -n "$LIPO"; then 14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14653printf "%s\n" "$LIPO" >&6; } 14654else 14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14656printf "%s\n" "no" >&6; } 14657fi 14658 14659 14660fi 14661if test -z "$ac_cv_prog_LIPO"; then 14662 ac_ct_LIPO=$LIPO 14663 # Extract the first word of "lipo", so it can be a program name with args. 14664set dummy lipo; ac_word=$2 14665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14666printf %s "checking for $ac_word... " >&6; } 14667if test ${ac_cv_prog_ac_ct_LIPO+y} 14668then : 14669 printf %s "(cached) " >&6 14670else $as_nop 14671 if test -n "$ac_ct_LIPO"; then 14672 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14673else 14674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14675for as_dir in $PATH 14676do 14677 IFS=$as_save_IFS 14678 case $as_dir in #((( 14679 '') as_dir=./ ;; 14680 */) ;; 14681 *) as_dir=$as_dir/ ;; 14682 esac 14683 for ac_exec_ext in '' $ac_executable_extensions; do 14684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14685 ac_cv_prog_ac_ct_LIPO="lipo" 14686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14687 break 2 14688 fi 14689done 14690 done 14691IFS=$as_save_IFS 14692 14693fi 14694fi 14695ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14696if test -n "$ac_ct_LIPO"; then 14697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14698printf "%s\n" "$ac_ct_LIPO" >&6; } 14699else 14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14701printf "%s\n" "no" >&6; } 14702fi 14703 14704 if test "x$ac_ct_LIPO" = x; then 14705 LIPO=":" 14706 else 14707 case $cross_compiling:$ac_tool_warned in 14708yes:) 14709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14711ac_tool_warned=yes ;; 14712esac 14713 LIPO=$ac_ct_LIPO 14714 fi 14715else 14716 LIPO="$ac_cv_prog_LIPO" 14717fi 14718 14719 if test -n "$ac_tool_prefix"; then 14720 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14721set dummy ${ac_tool_prefix}otool; ac_word=$2 14722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14723printf %s "checking for $ac_word... " >&6; } 14724if test ${ac_cv_prog_OTOOL+y} 14725then : 14726 printf %s "(cached) " >&6 14727else $as_nop 14728 if test -n "$OTOOL"; then 14729 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14730else 14731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14732for as_dir in $PATH 14733do 14734 IFS=$as_save_IFS 14735 case $as_dir in #((( 14736 '') as_dir=./ ;; 14737 */) ;; 14738 *) as_dir=$as_dir/ ;; 14739 esac 14740 for ac_exec_ext in '' $ac_executable_extensions; do 14741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14742 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14744 break 2 14745 fi 14746done 14747 done 14748IFS=$as_save_IFS 14749 14750fi 14751fi 14752OTOOL=$ac_cv_prog_OTOOL 14753if test -n "$OTOOL"; then 14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14755printf "%s\n" "$OTOOL" >&6; } 14756else 14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14758printf "%s\n" "no" >&6; } 14759fi 14760 14761 14762fi 14763if test -z "$ac_cv_prog_OTOOL"; then 14764 ac_ct_OTOOL=$OTOOL 14765 # Extract the first word of "otool", so it can be a program name with args. 14766set dummy otool; ac_word=$2 14767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14768printf %s "checking for $ac_word... " >&6; } 14769if test ${ac_cv_prog_ac_ct_OTOOL+y} 14770then : 14771 printf %s "(cached) " >&6 14772else $as_nop 14773 if test -n "$ac_ct_OTOOL"; then 14774 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14775else 14776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14777for as_dir in $PATH 14778do 14779 IFS=$as_save_IFS 14780 case $as_dir in #((( 14781 '') as_dir=./ ;; 14782 */) ;; 14783 *) as_dir=$as_dir/ ;; 14784 esac 14785 for ac_exec_ext in '' $ac_executable_extensions; do 14786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14787 ac_cv_prog_ac_ct_OTOOL="otool" 14788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14789 break 2 14790 fi 14791done 14792 done 14793IFS=$as_save_IFS 14794 14795fi 14796fi 14797ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14798if test -n "$ac_ct_OTOOL"; then 14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14800printf "%s\n" "$ac_ct_OTOOL" >&6; } 14801else 14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14803printf "%s\n" "no" >&6; } 14804fi 14805 14806 if test "x$ac_ct_OTOOL" = x; then 14807 OTOOL=":" 14808 else 14809 case $cross_compiling:$ac_tool_warned in 14810yes:) 14811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14813ac_tool_warned=yes ;; 14814esac 14815 OTOOL=$ac_ct_OTOOL 14816 fi 14817else 14818 OTOOL="$ac_cv_prog_OTOOL" 14819fi 14820 14821 if test -n "$ac_tool_prefix"; then 14822 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14823set dummy ${ac_tool_prefix}otool64; ac_word=$2 14824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14825printf %s "checking for $ac_word... " >&6; } 14826if test ${ac_cv_prog_OTOOL64+y} 14827then : 14828 printf %s "(cached) " >&6 14829else $as_nop 14830 if test -n "$OTOOL64"; then 14831 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14832else 14833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14834for as_dir in $PATH 14835do 14836 IFS=$as_save_IFS 14837 case $as_dir in #((( 14838 '') as_dir=./ ;; 14839 */) ;; 14840 *) as_dir=$as_dir/ ;; 14841 esac 14842 for ac_exec_ext in '' $ac_executable_extensions; do 14843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14844 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14846 break 2 14847 fi 14848done 14849 done 14850IFS=$as_save_IFS 14851 14852fi 14853fi 14854OTOOL64=$ac_cv_prog_OTOOL64 14855if test -n "$OTOOL64"; then 14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14857printf "%s\n" "$OTOOL64" >&6; } 14858else 14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14860printf "%s\n" "no" >&6; } 14861fi 14862 14863 14864fi 14865if test -z "$ac_cv_prog_OTOOL64"; then 14866 ac_ct_OTOOL64=$OTOOL64 14867 # Extract the first word of "otool64", so it can be a program name with args. 14868set dummy otool64; ac_word=$2 14869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14870printf %s "checking for $ac_word... " >&6; } 14871if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14872then : 14873 printf %s "(cached) " >&6 14874else $as_nop 14875 if test -n "$ac_ct_OTOOL64"; then 14876 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14877else 14878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14879for as_dir in $PATH 14880do 14881 IFS=$as_save_IFS 14882 case $as_dir in #((( 14883 '') as_dir=./ ;; 14884 */) ;; 14885 *) as_dir=$as_dir/ ;; 14886 esac 14887 for ac_exec_ext in '' $ac_executable_extensions; do 14888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14889 ac_cv_prog_ac_ct_OTOOL64="otool64" 14890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14891 break 2 14892 fi 14893done 14894 done 14895IFS=$as_save_IFS 14896 14897fi 14898fi 14899ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14900if test -n "$ac_ct_OTOOL64"; then 14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14902printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14903else 14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14905printf "%s\n" "no" >&6; } 14906fi 14907 14908 if test "x$ac_ct_OTOOL64" = x; then 14909 OTOOL64=":" 14910 else 14911 case $cross_compiling:$ac_tool_warned in 14912yes:) 14913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14914printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14915ac_tool_warned=yes ;; 14916esac 14917 OTOOL64=$ac_ct_OTOOL64 14918 fi 14919else 14920 OTOOL64="$ac_cv_prog_OTOOL64" 14921fi 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14950printf %s "checking for -single_module linker flag... " >&6; } 14951if test ${lt_cv_apple_cc_single_mod+y} 14952then : 14953 printf %s "(cached) " >&6 14954else $as_nop 14955 lt_cv_apple_cc_single_mod=no 14956 if test -z "$LT_MULTI_MODULE"; then 14957 # By default we will add the -single_module flag. You can override 14958 # by either setting the environment variable LT_MULTI_MODULE 14959 # non-empty at configure time, or by adding -multi_module to the 14960 # link flags. 14961 rm -rf libconftest.dylib* 14962 echo "int foo(void){return 1;}" > conftest.c 14963 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14964-dynamiclib -Wl,-single_module conftest.c" >&5 14965 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14966 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14967 _lt_result=$? 14968 # If there is a non-empty error log, and "single_module" 14969 # appears in it, assume the flag caused a linker warning 14970 if test -s conftest.err && $GREP single_module conftest.err; then 14971 cat conftest.err >&5 14972 # Otherwise, if the output was created with a 0 exit code from 14973 # the compiler, it worked. 14974 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14975 lt_cv_apple_cc_single_mod=yes 14976 else 14977 cat conftest.err >&5 14978 fi 14979 rm -rf libconftest.dylib* 14980 rm -f conftest.* 14981 fi 14982fi 14983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14984printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14985 14986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14987printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14988if test ${lt_cv_ld_exported_symbols_list+y} 14989then : 14990 printf %s "(cached) " >&6 14991else $as_nop 14992 lt_cv_ld_exported_symbols_list=no 14993 save_LDFLAGS=$LDFLAGS 14994 echo "_main" > conftest.sym 14995 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14997/* end confdefs.h. */ 14998 14999int 15000main (void) 15001{ 15002 15003 ; 15004 return 0; 15005} 15006_ACEOF 15007if ac_fn_c_try_link "$LINENO" 15008then : 15009 lt_cv_ld_exported_symbols_list=yes 15010else $as_nop 15011 lt_cv_ld_exported_symbols_list=no 15012fi 15013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15014 conftest$ac_exeext conftest.$ac_ext 15015 LDFLAGS=$save_LDFLAGS 15016 15017fi 15018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15019printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 15020 15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15022printf %s "checking for -force_load linker flag... " >&6; } 15023if test ${lt_cv_ld_force_load+y} 15024then : 15025 printf %s "(cached) " >&6 15026else $as_nop 15027 lt_cv_ld_force_load=no 15028 cat > conftest.c << _LT_EOF 15029int forced_loaded() { return 2;} 15030_LT_EOF 15031 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15032 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15033 echo "$AR cr libconftest.a conftest.o" >&5 15034 $AR cr libconftest.a conftest.o 2>&5 15035 echo "$RANLIB libconftest.a" >&5 15036 $RANLIB libconftest.a 2>&5 15037 cat > conftest.c << _LT_EOF 15038int main() { return 0;} 15039_LT_EOF 15040 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15041 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15042 _lt_result=$? 15043 if test -s conftest.err && $GREP force_load conftest.err; then 15044 cat conftest.err >&5 15045 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15046 lt_cv_ld_force_load=yes 15047 else 15048 cat conftest.err >&5 15049 fi 15050 rm -f conftest.err libconftest.a conftest conftest.c 15051 rm -rf conftest.dSYM 15052 15053fi 15054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15055printf "%s\n" "$lt_cv_ld_force_load" >&6; } 15056 case $host_os in 15057 rhapsody* | darwin1.[012]) 15058 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15059 darwin1.*) 15060 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15061 darwin*) # darwin 5.x on 15062 # if running on 10.5 or later, the deployment target defaults 15063 # to the OS version, if on x86, and 10.4, the deployment 15064 # target defaults to 10.4. Don't you love it? 15065 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15066 10.0,*86*-darwin8*|10.0,*-darwin[912]*) 15067 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15068 10.[012][,.]*) 15069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15070 10.*|11.*) 15071 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15072 esac 15073 ;; 15074 esac 15075 if test yes = "$lt_cv_apple_cc_single_mod"; then 15076 _lt_dar_single_mod='$single_module' 15077 fi 15078 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15079 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15080 else 15081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15082 fi 15083 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15084 _lt_dsymutil='~$DSYMUTIL $lib || :' 15085 else 15086 _lt_dsymutil= 15087 fi 15088 ;; 15089 esac 15090 15091# func_munge_path_list VARIABLE PATH 15092# ----------------------------------- 15093# VARIABLE is name of variable containing _space_ separated list of 15094# directories to be munged by the contents of PATH, which is string 15095# having a format: 15096# "DIR[:DIR]:" 15097# string "DIR[ DIR]" will be prepended to VARIABLE 15098# ":DIR[:DIR]" 15099# string "DIR[ DIR]" will be appended to VARIABLE 15100# "DIRP[:DIRP]::[DIRA:]DIRA" 15101# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15102# "DIRA[ DIRA]" will be appended to VARIABLE 15103# "DIR[:DIR]" 15104# VARIABLE will be replaced by "DIR[ DIR]" 15105func_munge_path_list () 15106{ 15107 case x$2 in 15108 x) 15109 ;; 15110 *:) 15111 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15112 ;; 15113 x:*) 15114 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15115 ;; 15116 *::*) 15117 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15118 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15119 ;; 15120 *) 15121 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15122 ;; 15123 esac 15124} 15125 15126ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15127" 15128if test "x$ac_cv_header_dlfcn_h" = xyes 15129then : 15130 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15131 15132fi 15133 15134 15135 15136 15137 15138# Set options 15139 15140 15141 15142 enable_dlopen=no 15143 15144 15145 enable_win32_dll=no 15146 15147 15148 # Check whether --enable-shared was given. 15149if test ${enable_shared+y} 15150then : 15151 enableval=$enable_shared; p=${PACKAGE-default} 15152 case $enableval in 15153 yes) enable_shared=yes ;; 15154 no) enable_shared=no ;; 15155 *) 15156 enable_shared=no 15157 # Look at the argument we got. We use all the common list separators. 15158 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15159 for pkg in $enableval; do 15160 IFS=$lt_save_ifs 15161 if test "X$pkg" = "X$p"; then 15162 enable_shared=yes 15163 fi 15164 done 15165 IFS=$lt_save_ifs 15166 ;; 15167 esac 15168else $as_nop 15169 enable_shared=yes 15170fi 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182# Check whether --with-pic was given. 15183if test ${with_pic+y} 15184then : 15185 withval=$with_pic; lt_p=${PACKAGE-default} 15186 case $withval in 15187 yes|no) pic_mode=$withval ;; 15188 *) 15189 pic_mode=default 15190 # Look at the argument we got. We use all the common list separators. 15191 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15192 for lt_pkg in $withval; do 15193 IFS=$lt_save_ifs 15194 if test "X$lt_pkg" = "X$lt_p"; then 15195 pic_mode=yes 15196 fi 15197 done 15198 IFS=$lt_save_ifs 15199 ;; 15200 esac 15201else $as_nop 15202 pic_mode=default 15203fi 15204 15205 15206 15207 15208 15209 15210 15211 15212 # Check whether --enable-fast-install was given. 15213if test ${enable_fast_install+y} 15214then : 15215 enableval=$enable_fast_install; p=${PACKAGE-default} 15216 case $enableval in 15217 yes) enable_fast_install=yes ;; 15218 no) enable_fast_install=no ;; 15219 *) 15220 enable_fast_install=no 15221 # Look at the argument we got. We use all the common list separators. 15222 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15223 for pkg in $enableval; do 15224 IFS=$lt_save_ifs 15225 if test "X$pkg" = "X$p"; then 15226 enable_fast_install=yes 15227 fi 15228 done 15229 IFS=$lt_save_ifs 15230 ;; 15231 esac 15232else $as_nop 15233 enable_fast_install=yes 15234fi 15235 15236 15237 15238 15239 15240 15241 15242 15243 shared_archive_member_spec= 15244case $host,$enable_shared in 15245power*-*-aix[5-9]*,yes) 15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15247printf %s "checking which variant of shared library versioning to provide... " >&6; } 15248 15249# Check whether --with-aix-soname was given. 15250if test ${with_aix_soname+y} 15251then : 15252 withval=$with_aix_soname; case $withval in 15253 aix|svr4|both) 15254 ;; 15255 *) 15256 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15257 ;; 15258 esac 15259 lt_cv_with_aix_soname=$with_aix_soname 15260else $as_nop 15261 if test ${lt_cv_with_aix_soname+y} 15262then : 15263 printf %s "(cached) " >&6 15264else $as_nop 15265 lt_cv_with_aix_soname=aix 15266fi 15267 15268 with_aix_soname=$lt_cv_with_aix_soname 15269fi 15270 15271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15272printf "%s\n" "$with_aix_soname" >&6; } 15273 if test aix != "$with_aix_soname"; then 15274 # For the AIX way of multilib, we name the shared archive member 15275 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15276 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15277 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15278 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15279 if test 64 = "${OBJECT_MODE-32}"; then 15280 shared_archive_member_spec=shr_64 15281 else 15282 shared_archive_member_spec=shr 15283 fi 15284 fi 15285 ;; 15286*) 15287 with_aix_soname=aix 15288 ;; 15289esac 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300# This can be used to rebuild libtool when needed 15301LIBTOOL_DEPS=$ltmain 15302 15303# Always use our own libtool. 15304LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335test -z "$LN_S" && LN_S="ln -s" 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350if test -n "${ZSH_VERSION+set}"; then 15351 setopt NO_GLOB_SUBST 15352fi 15353 15354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15355printf %s "checking for objdir... " >&6; } 15356if test ${lt_cv_objdir+y} 15357then : 15358 printf %s "(cached) " >&6 15359else $as_nop 15360 rm -f .libs 2>/dev/null 15361mkdir .libs 2>/dev/null 15362if test -d .libs; then 15363 lt_cv_objdir=.libs 15364else 15365 # MS-DOS does not allow filenames that begin with a dot. 15366 lt_cv_objdir=_libs 15367fi 15368rmdir .libs 2>/dev/null 15369fi 15370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15371printf "%s\n" "$lt_cv_objdir" >&6; } 15372objdir=$lt_cv_objdir 15373 15374 15375 15376 15377 15378printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15379 15380 15381 15382 15383case $host_os in 15384aix3*) 15385 # AIX sometimes has problems with the GCC collect2 program. For some 15386 # reason, if we set the COLLECT_NAMES environment variable, the problems 15387 # vanish in a puff of smoke. 15388 if test set != "${COLLECT_NAMES+set}"; then 15389 COLLECT_NAMES= 15390 export COLLECT_NAMES 15391 fi 15392 ;; 15393esac 15394 15395# Global variables: 15396ofile=libtool 15397can_build_shared=yes 15398 15399# All known linkers require a '.a' archive for static linking (except MSVC, 15400# which needs '.lib'). 15401libext=a 15402 15403with_gnu_ld=$lt_cv_prog_gnu_ld 15404 15405old_CC=$CC 15406old_CFLAGS=$CFLAGS 15407 15408# Set sane defaults for various variables 15409test -z "$CC" && CC=cc 15410test -z "$LTCC" && LTCC=$CC 15411test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15412test -z "$LD" && LD=ld 15413test -z "$ac_objext" && ac_objext=o 15414 15415func_cc_basename $compiler 15416cc_basename=$func_cc_basename_result 15417 15418 15419# Only perform the check for file, if the check method requires it 15420test -z "$MAGIC_CMD" && MAGIC_CMD=file 15421case $deplibs_check_method in 15422file_magic*) 15423 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15425printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15426if test ${lt_cv_path_MAGIC_CMD+y} 15427then : 15428 printf %s "(cached) " >&6 15429else $as_nop 15430 case $MAGIC_CMD in 15431[\\/*] | ?:[\\/]*) 15432 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15433 ;; 15434*) 15435 lt_save_MAGIC_CMD=$MAGIC_CMD 15436 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15437 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15438 for ac_dir in $ac_dummy; do 15439 IFS=$lt_save_ifs 15440 test -z "$ac_dir" && ac_dir=. 15441 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15442 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15443 if test -n "$file_magic_test_file"; then 15444 case $deplibs_check_method in 15445 "file_magic "*) 15446 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15447 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15449 $EGREP "$file_magic_regex" > /dev/null; then 15450 : 15451 else 15452 cat <<_LT_EOF 1>&2 15453 15454*** Warning: the command libtool uses to detect shared libraries, 15455*** $file_magic_cmd, produces output that libtool cannot recognize. 15456*** The result is that libtool may fail to recognize shared libraries 15457*** as such. This will affect the creation of libtool libraries that 15458*** depend on shared libraries, but programs linked with such libtool 15459*** libraries will work regardless of this problem. Nevertheless, you 15460*** may want to report the problem to your system manager and/or to 15461*** bug-libtool@gnu.org 15462 15463_LT_EOF 15464 fi ;; 15465 esac 15466 fi 15467 break 15468 fi 15469 done 15470 IFS=$lt_save_ifs 15471 MAGIC_CMD=$lt_save_MAGIC_CMD 15472 ;; 15473esac 15474fi 15475 15476MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15477if test -n "$MAGIC_CMD"; then 15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15479printf "%s\n" "$MAGIC_CMD" >&6; } 15480else 15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15482printf "%s\n" "no" >&6; } 15483fi 15484 15485 15486 15487 15488 15489if test -z "$lt_cv_path_MAGIC_CMD"; then 15490 if test -n "$ac_tool_prefix"; then 15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15492printf %s "checking for file... " >&6; } 15493if test ${lt_cv_path_MAGIC_CMD+y} 15494then : 15495 printf %s "(cached) " >&6 15496else $as_nop 15497 case $MAGIC_CMD in 15498[\\/*] | ?:[\\/]*) 15499 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15500 ;; 15501*) 15502 lt_save_MAGIC_CMD=$MAGIC_CMD 15503 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15504 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15505 for ac_dir in $ac_dummy; do 15506 IFS=$lt_save_ifs 15507 test -z "$ac_dir" && ac_dir=. 15508 if test -f "$ac_dir/file"; then 15509 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15510 if test -n "$file_magic_test_file"; then 15511 case $deplibs_check_method in 15512 "file_magic "*) 15513 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15514 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15515 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15516 $EGREP "$file_magic_regex" > /dev/null; then 15517 : 15518 else 15519 cat <<_LT_EOF 1>&2 15520 15521*** Warning: the command libtool uses to detect shared libraries, 15522*** $file_magic_cmd, produces output that libtool cannot recognize. 15523*** The result is that libtool may fail to recognize shared libraries 15524*** as such. This will affect the creation of libtool libraries that 15525*** depend on shared libraries, but programs linked with such libtool 15526*** libraries will work regardless of this problem. Nevertheless, you 15527*** may want to report the problem to your system manager and/or to 15528*** bug-libtool@gnu.org 15529 15530_LT_EOF 15531 fi ;; 15532 esac 15533 fi 15534 break 15535 fi 15536 done 15537 IFS=$lt_save_ifs 15538 MAGIC_CMD=$lt_save_MAGIC_CMD 15539 ;; 15540esac 15541fi 15542 15543MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15544if test -n "$MAGIC_CMD"; then 15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15546printf "%s\n" "$MAGIC_CMD" >&6; } 15547else 15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15549printf "%s\n" "no" >&6; } 15550fi 15551 15552 15553 else 15554 MAGIC_CMD=: 15555 fi 15556fi 15557 15558 fi 15559 ;; 15560esac 15561 15562# Use C for the default configuration in the libtool script 15563 15564lt_save_CC=$CC 15565ac_ext=c 15566ac_cpp='$CPP $CPPFLAGS' 15567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15569ac_compiler_gnu=$ac_cv_c_compiler_gnu 15570 15571 15572# Source file extension for C test sources. 15573ac_ext=c 15574 15575# Object file extension for compiled C test sources. 15576objext=o 15577objext=$objext 15578 15579# Code to be used in simple compile tests 15580lt_simple_compile_test_code="int some_variable = 0;" 15581 15582# Code to be used in simple link tests 15583lt_simple_link_test_code='int main(){return(0);}' 15584 15585 15586 15587 15588 15589 15590 15591# If no C compiler was specified, use CC. 15592LTCC=${LTCC-"$CC"} 15593 15594# If no C compiler flags were specified, use CFLAGS. 15595LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15596 15597# Allow CC to be a program name with arguments. 15598compiler=$CC 15599 15600# Save the default compiler, since it gets overwritten when the other 15601# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15602compiler_DEFAULT=$CC 15603 15604# save warnings/boilerplate of simple test code 15605ac_outfile=conftest.$ac_objext 15606echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15607eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15608_lt_compiler_boilerplate=`cat conftest.err` 15609$RM conftest* 15610 15611ac_outfile=conftest.$ac_objext 15612echo "$lt_simple_link_test_code" >conftest.$ac_ext 15613eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15614_lt_linker_boilerplate=`cat conftest.err` 15615$RM -r conftest* 15616 15617 15618## CAVEAT EMPTOR: 15619## There is no encapsulation within the following macros, do not change 15620## the running order or otherwise move them around unless you know exactly 15621## what you are doing... 15622if test -n "$compiler"; then 15623 15624lt_prog_compiler_no_builtin_flag= 15625 15626if test yes = "$GCC"; then 15627 case $cc_basename in 15628 nvcc*) 15629 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15630 *) 15631 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15632 esac 15633 15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15635printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15636if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15637then : 15638 printf %s "(cached) " >&6 15639else $as_nop 15640 lt_cv_prog_compiler_rtti_exceptions=no 15641 ac_outfile=conftest.$ac_objext 15642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15643 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15644 # Insert the option either (1) after the last *FLAGS variable, or 15645 # (2) before a word containing "conftest.", or (3) at the end. 15646 # Note that $ac_compile itself does not contain backslashes and begins 15647 # with a dollar sign (not a hyphen), so the echo should work correctly. 15648 # The option is referenced via a variable to avoid confusing sed. 15649 lt_compile=`echo "$ac_compile" | $SED \ 15650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15652 -e 's:$: $lt_compiler_flag:'` 15653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15654 (eval "$lt_compile" 2>conftest.err) 15655 ac_status=$? 15656 cat conftest.err >&5 15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15658 if (exit $ac_status) && test -s "$ac_outfile"; then 15659 # The compiler can only warn and ignore the option if not recognized 15660 # So say no if there are warnings other than the usual output. 15661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15664 lt_cv_prog_compiler_rtti_exceptions=yes 15665 fi 15666 fi 15667 $RM conftest* 15668 15669fi 15670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15671printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15672 15673if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15674 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15675else 15676 : 15677fi 15678 15679fi 15680 15681 15682 15683 15684 15685 15686 lt_prog_compiler_wl= 15687lt_prog_compiler_pic= 15688lt_prog_compiler_static= 15689 15690 15691 if test yes = "$GCC"; then 15692 lt_prog_compiler_wl='-Wl,' 15693 lt_prog_compiler_static='-static' 15694 15695 case $host_os in 15696 aix*) 15697 # All AIX code is PIC. 15698 if test ia64 = "$host_cpu"; then 15699 # AIX 5 now supports IA64 processor 15700 lt_prog_compiler_static='-Bstatic' 15701 fi 15702 lt_prog_compiler_pic='-fPIC' 15703 ;; 15704 15705 amigaos*) 15706 case $host_cpu in 15707 powerpc) 15708 # see comment about AmigaOS4 .so support 15709 lt_prog_compiler_pic='-fPIC' 15710 ;; 15711 m68k) 15712 # FIXME: we need at least 68020 code to build shared libraries, but 15713 # adding the '-m68020' flag to GCC prevents building anything better, 15714 # like '-m68040'. 15715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15716 ;; 15717 esac 15718 ;; 15719 15720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15721 # PIC is the default for these OSes. 15722 ;; 15723 15724 mingw* | cygwin* | pw32* | os2* | cegcc*) 15725 # This hack is so that the source file can tell whether it is being 15726 # built for inclusion in a dll (and should export symbols for example). 15727 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15728 # (--disable-auto-import) libraries 15729 lt_prog_compiler_pic='-DDLL_EXPORT' 15730 case $host_os in 15731 os2*) 15732 lt_prog_compiler_static='$wl-static' 15733 ;; 15734 esac 15735 ;; 15736 15737 darwin* | rhapsody*) 15738 # PIC is the default on this platform 15739 # Common symbols not allowed in MH_DYLIB files 15740 lt_prog_compiler_pic='-fno-common' 15741 ;; 15742 15743 haiku*) 15744 # PIC is the default for Haiku. 15745 # The "-static" flag exists, but is broken. 15746 lt_prog_compiler_static= 15747 ;; 15748 15749 hpux*) 15750 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15751 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15752 # sets the default TLS model and affects inlining. 15753 case $host_cpu in 15754 hppa*64*) 15755 # +Z the default 15756 ;; 15757 *) 15758 lt_prog_compiler_pic='-fPIC' 15759 ;; 15760 esac 15761 ;; 15762 15763 interix[3-9]*) 15764 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15765 # Instead, we relocate shared libraries at runtime. 15766 ;; 15767 15768 msdosdjgpp*) 15769 # Just because we use GCC doesn't mean we suddenly get shared libraries 15770 # on systems that don't support them. 15771 lt_prog_compiler_can_build_shared=no 15772 enable_shared=no 15773 ;; 15774 15775 *nto* | *qnx*) 15776 # QNX uses GNU C++, but need to define -shared option too, otherwise 15777 # it will coredump. 15778 lt_prog_compiler_pic='-fPIC -shared' 15779 ;; 15780 15781 sysv4*MP*) 15782 if test -d /usr/nec; then 15783 lt_prog_compiler_pic=-Kconform_pic 15784 fi 15785 ;; 15786 15787 *) 15788 lt_prog_compiler_pic='-fPIC' 15789 ;; 15790 esac 15791 15792 case $cc_basename in 15793 nvcc*) # Cuda Compiler Driver 2.2 15794 lt_prog_compiler_wl='-Xlinker ' 15795 if test -n "$lt_prog_compiler_pic"; then 15796 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15797 fi 15798 ;; 15799 esac 15800 else 15801 # PORTME Check for flag to pass linker flags through the system compiler. 15802 case $host_os in 15803 aix*) 15804 lt_prog_compiler_wl='-Wl,' 15805 if test ia64 = "$host_cpu"; then 15806 # AIX 5 now supports IA64 processor 15807 lt_prog_compiler_static='-Bstatic' 15808 else 15809 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15810 fi 15811 ;; 15812 15813 darwin* | rhapsody*) 15814 # PIC is the default on this platform 15815 # Common symbols not allowed in MH_DYLIB files 15816 lt_prog_compiler_pic='-fno-common' 15817 case $cc_basename in 15818 nagfor*) 15819 # NAG Fortran compiler 15820 lt_prog_compiler_wl='-Wl,-Wl,,' 15821 lt_prog_compiler_pic='-PIC' 15822 lt_prog_compiler_static='-Bstatic' 15823 ;; 15824 esac 15825 ;; 15826 15827 mingw* | cygwin* | pw32* | os2* | cegcc*) 15828 # This hack is so that the source file can tell whether it is being 15829 # built for inclusion in a dll (and should export symbols for example). 15830 lt_prog_compiler_pic='-DDLL_EXPORT' 15831 case $host_os in 15832 os2*) 15833 lt_prog_compiler_static='$wl-static' 15834 ;; 15835 esac 15836 ;; 15837 15838 hpux9* | hpux10* | hpux11*) 15839 lt_prog_compiler_wl='-Wl,' 15840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15841 # not for PA HP-UX. 15842 case $host_cpu in 15843 hppa*64*|ia64*) 15844 # +Z the default 15845 ;; 15846 *) 15847 lt_prog_compiler_pic='+Z' 15848 ;; 15849 esac 15850 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15851 lt_prog_compiler_static='$wl-a ${wl}archive' 15852 ;; 15853 15854 irix5* | irix6* | nonstopux*) 15855 lt_prog_compiler_wl='-Wl,' 15856 # PIC (with -KPIC) is the default. 15857 lt_prog_compiler_static='-non_shared' 15858 ;; 15859 15860 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15861 case $cc_basename in 15862 # old Intel for x86_64, which still supported -KPIC. 15863 ecc*) 15864 lt_prog_compiler_wl='-Wl,' 15865 lt_prog_compiler_pic='-KPIC' 15866 lt_prog_compiler_static='-static' 15867 ;; 15868 # flang / f18. f95 an alias for gfortran or flang on Debian 15869 flang* | f18* | f95*) 15870 lt_prog_compiler_wl='-Wl,' 15871 lt_prog_compiler_pic='-fPIC' 15872 lt_prog_compiler_static='-static' 15873 ;; 15874 # icc used to be incompatible with GCC. 15875 # ICC 10 doesn't accept -KPIC any more. 15876 icc* | ifort*) 15877 lt_prog_compiler_wl='-Wl,' 15878 lt_prog_compiler_pic='-fPIC' 15879 lt_prog_compiler_static='-static' 15880 ;; 15881 # Lahey Fortran 8.1. 15882 lf95*) 15883 lt_prog_compiler_wl='-Wl,' 15884 lt_prog_compiler_pic='--shared' 15885 lt_prog_compiler_static='--static' 15886 ;; 15887 nagfor*) 15888 # NAG Fortran compiler 15889 lt_prog_compiler_wl='-Wl,-Wl,,' 15890 lt_prog_compiler_pic='-PIC' 15891 lt_prog_compiler_static='-Bstatic' 15892 ;; 15893 tcc*) 15894 # Fabrice Bellard et al's Tiny C Compiler 15895 lt_prog_compiler_wl='-Wl,' 15896 lt_prog_compiler_pic='-fPIC' 15897 lt_prog_compiler_static='-static' 15898 ;; 15899 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15900 # Portland Group compilers (*not* the Pentium gcc compiler, 15901 # which looks to be a dead project) 15902 lt_prog_compiler_wl='-Wl,' 15903 lt_prog_compiler_pic='-fpic' 15904 lt_prog_compiler_static='-Bstatic' 15905 ;; 15906 ccc*) 15907 lt_prog_compiler_wl='-Wl,' 15908 # All Alpha code is PIC. 15909 lt_prog_compiler_static='-non_shared' 15910 ;; 15911 xl* | bgxl* | bgf* | mpixl*) 15912 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15913 lt_prog_compiler_wl='-Wl,' 15914 lt_prog_compiler_pic='-qpic' 15915 lt_prog_compiler_static='-qstaticlink' 15916 ;; 15917 *) 15918 case `$CC -V 2>&1 | sed 5q` in 15919 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15920 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15921 lt_prog_compiler_pic='-KPIC' 15922 lt_prog_compiler_static='-Bstatic' 15923 lt_prog_compiler_wl='' 15924 ;; 15925 *Sun\ F* | *Sun*Fortran*) 15926 lt_prog_compiler_pic='-KPIC' 15927 lt_prog_compiler_static='-Bstatic' 15928 lt_prog_compiler_wl='-Qoption ld ' 15929 ;; 15930 *Sun\ C*) 15931 # Sun C 5.9 15932 lt_prog_compiler_pic='-KPIC' 15933 lt_prog_compiler_static='-Bstatic' 15934 lt_prog_compiler_wl='-Wl,' 15935 ;; 15936 *Intel*\ [CF]*Compiler*) 15937 lt_prog_compiler_wl='-Wl,' 15938 lt_prog_compiler_pic='-fPIC' 15939 lt_prog_compiler_static='-static' 15940 ;; 15941 *Portland\ Group*) 15942 lt_prog_compiler_wl='-Wl,' 15943 lt_prog_compiler_pic='-fpic' 15944 lt_prog_compiler_static='-Bstatic' 15945 ;; 15946 esac 15947 ;; 15948 esac 15949 ;; 15950 15951 newsos6) 15952 lt_prog_compiler_pic='-KPIC' 15953 lt_prog_compiler_static='-Bstatic' 15954 ;; 15955 15956 *nto* | *qnx*) 15957 # QNX uses GNU C++, but need to define -shared option too, otherwise 15958 # it will coredump. 15959 lt_prog_compiler_pic='-fPIC -shared' 15960 ;; 15961 15962 osf3* | osf4* | osf5*) 15963 lt_prog_compiler_wl='-Wl,' 15964 # All OSF/1 code is PIC. 15965 lt_prog_compiler_static='-non_shared' 15966 ;; 15967 15968 rdos*) 15969 lt_prog_compiler_static='-non_shared' 15970 ;; 15971 15972 solaris*) 15973 lt_prog_compiler_pic='-KPIC' 15974 lt_prog_compiler_static='-Bstatic' 15975 case $cc_basename in 15976 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15977 lt_prog_compiler_wl='-Qoption ld ';; 15978 *) 15979 lt_prog_compiler_wl='-Wl,';; 15980 esac 15981 ;; 15982 15983 sunos4*) 15984 lt_prog_compiler_wl='-Qoption ld ' 15985 lt_prog_compiler_pic='-PIC' 15986 lt_prog_compiler_static='-Bstatic' 15987 ;; 15988 15989 sysv4 | sysv4.2uw2* | sysv4.3*) 15990 lt_prog_compiler_wl='-Wl,' 15991 lt_prog_compiler_pic='-KPIC' 15992 lt_prog_compiler_static='-Bstatic' 15993 ;; 15994 15995 sysv4*MP*) 15996 if test -d /usr/nec; then 15997 lt_prog_compiler_pic='-Kconform_pic' 15998 lt_prog_compiler_static='-Bstatic' 15999 fi 16000 ;; 16001 16002 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16003 lt_prog_compiler_wl='-Wl,' 16004 lt_prog_compiler_pic='-KPIC' 16005 lt_prog_compiler_static='-Bstatic' 16006 ;; 16007 16008 unicos*) 16009 lt_prog_compiler_wl='-Wl,' 16010 lt_prog_compiler_can_build_shared=no 16011 ;; 16012 16013 uts4*) 16014 lt_prog_compiler_pic='-pic' 16015 lt_prog_compiler_static='-Bstatic' 16016 ;; 16017 16018 *) 16019 lt_prog_compiler_can_build_shared=no 16020 ;; 16021 esac 16022 fi 16023 16024case $host_os in 16025 # For platforms that do not support PIC, -DPIC is meaningless: 16026 *djgpp*) 16027 lt_prog_compiler_pic= 16028 ;; 16029 *) 16030 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16031 ;; 16032esac 16033 16034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16035printf %s "checking for $compiler option to produce PIC... " >&6; } 16036if test ${lt_cv_prog_compiler_pic+y} 16037then : 16038 printf %s "(cached) " >&6 16039else $as_nop 16040 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 16041fi 16042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16043printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16044lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16045 16046# 16047# Check to make sure the PIC flag actually works. 16048# 16049if test -n "$lt_prog_compiler_pic"; then 16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16051printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16052if test ${lt_cv_prog_compiler_pic_works+y} 16053then : 16054 printf %s "(cached) " >&6 16055else $as_nop 16056 lt_cv_prog_compiler_pic_works=no 16057 ac_outfile=conftest.$ac_objext 16058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16059 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16060 # Insert the option either (1) after the last *FLAGS variable, or 16061 # (2) before a word containing "conftest.", or (3) at the end. 16062 # Note that $ac_compile itself does not contain backslashes and begins 16063 # with a dollar sign (not a hyphen), so the echo should work correctly. 16064 # The option is referenced via a variable to avoid confusing sed. 16065 lt_compile=`echo "$ac_compile" | $SED \ 16066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16068 -e 's:$: $lt_compiler_flag:'` 16069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16070 (eval "$lt_compile" 2>conftest.err) 16071 ac_status=$? 16072 cat conftest.err >&5 16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16074 if (exit $ac_status) && test -s "$ac_outfile"; then 16075 # The compiler can only warn and ignore the option if not recognized 16076 # So say no if there are warnings other than the usual output. 16077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16080 lt_cv_prog_compiler_pic_works=yes 16081 fi 16082 fi 16083 $RM conftest* 16084 16085fi 16086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16087printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16088 16089if test yes = "$lt_cv_prog_compiler_pic_works"; then 16090 case $lt_prog_compiler_pic in 16091 "" | " "*) ;; 16092 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16093 esac 16094else 16095 lt_prog_compiler_pic= 16096 lt_prog_compiler_can_build_shared=no 16097fi 16098 16099fi 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111# 16112# Check to make sure the static flag actually works. 16113# 16114wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16116printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16117if test ${lt_cv_prog_compiler_static_works+y} 16118then : 16119 printf %s "(cached) " >&6 16120else $as_nop 16121 lt_cv_prog_compiler_static_works=no 16122 save_LDFLAGS=$LDFLAGS 16123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16124 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16126 # The linker can only warn and ignore the option if not recognized 16127 # So say no if there are warnings 16128 if test -s conftest.err; then 16129 # Append any errors to the config.log. 16130 cat conftest.err 1>&5 16131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16133 if diff conftest.exp conftest.er2 >/dev/null; then 16134 lt_cv_prog_compiler_static_works=yes 16135 fi 16136 else 16137 lt_cv_prog_compiler_static_works=yes 16138 fi 16139 fi 16140 $RM -r conftest* 16141 LDFLAGS=$save_LDFLAGS 16142 16143fi 16144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16145printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16146 16147if test yes = "$lt_cv_prog_compiler_static_works"; then 16148 : 16149else 16150 lt_prog_compiler_static= 16151fi 16152 16153 16154 16155 16156 16157 16158 16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16160printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16161if test ${lt_cv_prog_compiler_c_o+y} 16162then : 16163 printf %s "(cached) " >&6 16164else $as_nop 16165 lt_cv_prog_compiler_c_o=no 16166 $RM -r conftest 2>/dev/null 16167 mkdir conftest 16168 cd conftest 16169 mkdir out 16170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16171 16172 lt_compiler_flag="-o out/conftest2.$ac_objext" 16173 # Insert the option either (1) after the last *FLAGS variable, or 16174 # (2) before a word containing "conftest.", or (3) at the end. 16175 # Note that $ac_compile itself does not contain backslashes and begins 16176 # with a dollar sign (not a hyphen), so the echo should work correctly. 16177 lt_compile=`echo "$ac_compile" | $SED \ 16178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16180 -e 's:$: $lt_compiler_flag:'` 16181 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16182 (eval "$lt_compile" 2>out/conftest.err) 16183 ac_status=$? 16184 cat out/conftest.err >&5 16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16186 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16187 then 16188 # The compiler can only warn and ignore the option if not recognized 16189 # So say no if there are warnings 16190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16193 lt_cv_prog_compiler_c_o=yes 16194 fi 16195 fi 16196 chmod u+w . 2>&5 16197 $RM conftest* 16198 # SGI C++ compiler will create directory out/ii_files/ for 16199 # template instantiation 16200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16201 $RM out/* && rmdir out 16202 cd .. 16203 $RM -r conftest 16204 $RM conftest* 16205 16206fi 16207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16208printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16209 16210 16211 16212 16213 16214 16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16216printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16217if test ${lt_cv_prog_compiler_c_o+y} 16218then : 16219 printf %s "(cached) " >&6 16220else $as_nop 16221 lt_cv_prog_compiler_c_o=no 16222 $RM -r conftest 2>/dev/null 16223 mkdir conftest 16224 cd conftest 16225 mkdir out 16226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16227 16228 lt_compiler_flag="-o out/conftest2.$ac_objext" 16229 # Insert the option either (1) after the last *FLAGS variable, or 16230 # (2) before a word containing "conftest.", or (3) at the end. 16231 # Note that $ac_compile itself does not contain backslashes and begins 16232 # with a dollar sign (not a hyphen), so the echo should work correctly. 16233 lt_compile=`echo "$ac_compile" | $SED \ 16234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16236 -e 's:$: $lt_compiler_flag:'` 16237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16238 (eval "$lt_compile" 2>out/conftest.err) 16239 ac_status=$? 16240 cat out/conftest.err >&5 16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16242 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16243 then 16244 # The compiler can only warn and ignore the option if not recognized 16245 # So say no if there are warnings 16246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16249 lt_cv_prog_compiler_c_o=yes 16250 fi 16251 fi 16252 chmod u+w . 2>&5 16253 $RM conftest* 16254 # SGI C++ compiler will create directory out/ii_files/ for 16255 # template instantiation 16256 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16257 $RM out/* && rmdir out 16258 cd .. 16259 $RM -r conftest 16260 $RM conftest* 16261 16262fi 16263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16264printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16265 16266 16267 16268 16269hard_links=nottested 16270if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16271 # do not overwrite the value of need_locks provided by the user 16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16273printf %s "checking if we can lock with hard links... " >&6; } 16274 hard_links=yes 16275 $RM conftest* 16276 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16277 touch conftest.a 16278 ln conftest.a conftest.b 2>&5 || hard_links=no 16279 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16281printf "%s\n" "$hard_links" >&6; } 16282 if test no = "$hard_links"; then 16283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16284printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16285 need_locks=warn 16286 fi 16287else 16288 need_locks=no 16289fi 16290 16291 16292 16293 16294 16295 16296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16297printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16298 16299 runpath_var= 16300 allow_undefined_flag= 16301 always_export_symbols=no 16302 archive_cmds= 16303 archive_expsym_cmds= 16304 compiler_needs_object=no 16305 enable_shared_with_static_runtimes=no 16306 export_dynamic_flag_spec= 16307 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16308 hardcode_automatic=no 16309 hardcode_direct=no 16310 hardcode_direct_absolute=no 16311 hardcode_libdir_flag_spec= 16312 hardcode_libdir_separator= 16313 hardcode_minus_L=no 16314 hardcode_shlibpath_var=unsupported 16315 inherit_rpath=no 16316 link_all_deplibs=unknown 16317 module_cmds= 16318 module_expsym_cmds= 16319 old_archive_from_new_cmds= 16320 old_archive_from_expsyms_cmds= 16321 thread_safe_flag_spec= 16322 whole_archive_flag_spec= 16323 # include_expsyms should be a list of space-separated symbols to be *always* 16324 # included in the symbol list 16325 include_expsyms= 16326 # exclude_expsyms can be an extended regexp of symbols to exclude 16327 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16328 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16329 # as well as any symbol that contains 'd'. 16330 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16331 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16332 # platforms (ab)use it in PIC code, but their linkers get confused if 16333 # the symbol is explicitly referenced. Since portable code cannot 16334 # rely on this symbol name, it's probably fine to never include it in 16335 # preloaded symbol tables. 16336 # Exclude shared library initialization/finalization symbols. 16337 extract_expsyms_cmds= 16338 16339 case $host_os in 16340 cygwin* | mingw* | pw32* | cegcc*) 16341 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16342 # When not using gcc, we currently assume that we are using 16343 # Microsoft Visual C++. 16344 if test yes != "$GCC"; then 16345 with_gnu_ld=no 16346 fi 16347 ;; 16348 interix*) 16349 # we just hope/assume this is gcc and not c89 (= MSVC++) 16350 with_gnu_ld=yes 16351 ;; 16352 openbsd* | bitrig*) 16353 with_gnu_ld=no 16354 ;; 16355 linux* | k*bsd*-gnu | gnu*) 16356 link_all_deplibs=no 16357 ;; 16358 esac 16359 16360 ld_shlibs=yes 16361 16362 # On some targets, GNU ld is compatible enough with the native linker 16363 # that we're better off using the native interface for both. 16364 lt_use_gnu_ld_interface=no 16365 if test yes = "$with_gnu_ld"; then 16366 case $host_os in 16367 aix*) 16368 # The AIX port of GNU ld has always aspired to compatibility 16369 # with the native linker. However, as the warning in the GNU ld 16370 # block says, versions before 2.19.5* couldn't really create working 16371 # shared libraries, regardless of the interface used. 16372 case `$LD -v 2>&1` in 16373 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16374 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16375 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16376 *) 16377 lt_use_gnu_ld_interface=yes 16378 ;; 16379 esac 16380 ;; 16381 *) 16382 lt_use_gnu_ld_interface=yes 16383 ;; 16384 esac 16385 fi 16386 16387 if test yes = "$lt_use_gnu_ld_interface"; then 16388 # If archive_cmds runs LD, not CC, wlarc should be empty 16389 wlarc='$wl' 16390 16391 # Set some defaults for GNU ld with shared library support. These 16392 # are reset later if shared libraries are not supported. Putting them 16393 # here allows them to be overridden if necessary. 16394 runpath_var=LD_RUN_PATH 16395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16396 export_dynamic_flag_spec='$wl--export-dynamic' 16397 # ancient GNU ld didn't support --whole-archive et. al. 16398 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16399 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16400 else 16401 whole_archive_flag_spec= 16402 fi 16403 supports_anon_versioning=no 16404 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 16405 *GNU\ gold*) supports_anon_versioning=yes ;; 16406 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16407 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16408 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16409 *\ 2.11.*) ;; # other 2.11 versions 16410 *) supports_anon_versioning=yes ;; 16411 esac 16412 16413 # See if GNU ld supports shared libraries. 16414 case $host_os in 16415 aix[3-9]*) 16416 # On AIX/PPC, the GNU linker is very broken 16417 if test ia64 != "$host_cpu"; then 16418 ld_shlibs=no 16419 cat <<_LT_EOF 1>&2 16420 16421*** Warning: the GNU linker, at least up to release 2.19, is reported 16422*** to be unable to reliably create shared libraries on AIX. 16423*** Therefore, libtool is disabling shared libraries support. If you 16424*** really care for shared libraries, you may want to install binutils 16425*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16426*** You will then need to restart the configuration process. 16427 16428_LT_EOF 16429 fi 16430 ;; 16431 16432 amigaos*) 16433 case $host_cpu in 16434 powerpc) 16435 # see comment about AmigaOS4 .so support 16436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16437 archive_expsym_cmds='' 16438 ;; 16439 m68k) 16440 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)' 16441 hardcode_libdir_flag_spec='-L$libdir' 16442 hardcode_minus_L=yes 16443 ;; 16444 esac 16445 ;; 16446 16447 beos*) 16448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16449 allow_undefined_flag=unsupported 16450 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16451 # support --undefined. This deserves some investigation. FIXME 16452 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16453 else 16454 ld_shlibs=no 16455 fi 16456 ;; 16457 16458 cygwin* | mingw* | pw32* | cegcc*) 16459 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16460 # as there is no search path for DLLs. 16461 hardcode_libdir_flag_spec='-L$libdir' 16462 export_dynamic_flag_spec='$wl--export-all-symbols' 16463 allow_undefined_flag=unsupported 16464 always_export_symbols=no 16465 enable_shared_with_static_runtimes=yes 16466 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' 16467 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16468 16469 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16471 # If the export-symbols file already is a .def file, use it as 16472 # is; otherwise, prepend EXPORTS... 16473 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16474 cp $export_symbols $output_objdir/$soname.def; 16475 else 16476 echo EXPORTS > $output_objdir/$soname.def; 16477 cat $export_symbols >> $output_objdir/$soname.def; 16478 fi~ 16479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16480 else 16481 ld_shlibs=no 16482 fi 16483 ;; 16484 16485 haiku*) 16486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16487 link_all_deplibs=yes 16488 ;; 16489 16490 os2*) 16491 hardcode_libdir_flag_spec='-L$libdir' 16492 hardcode_minus_L=yes 16493 allow_undefined_flag=unsupported 16494 shrext_cmds=.dll 16495 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16496 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16497 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16498 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16499 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16500 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16501 emximp -o $lib $output_objdir/$libname.def' 16502 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16503 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16504 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16505 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16506 prefix_cmds="$SED"~ 16507 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16508 prefix_cmds="$prefix_cmds -e 1d"; 16509 fi~ 16510 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16511 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16512 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16513 emximp -o $lib $output_objdir/$libname.def' 16514 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16515 enable_shared_with_static_runtimes=yes 16516 ;; 16517 16518 interix[3-9]*) 16519 hardcode_direct=no 16520 hardcode_shlibpath_var=no 16521 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16522 export_dynamic_flag_spec='$wl-E' 16523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16524 # Instead, shared libraries are loaded at an image base (0x10000000 by 16525 # default) and relocated if they conflict, which is a slow very memory 16526 # consuming and fragmenting process. To avoid this, we pick a random, 16527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16528 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16530 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' 16531 ;; 16532 16533 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16534 tmp_diet=no 16535 if test linux-dietlibc = "$host_os"; then 16536 case $cc_basename in 16537 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16538 esac 16539 fi 16540 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16541 && test no = "$tmp_diet" 16542 then 16543 tmp_addflag=' $pic_flag' 16544 tmp_sharedflag='-shared' 16545 case $cc_basename,$host_cpu in 16546 pgcc*) # Portland Group C compiler 16547 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' 16548 tmp_addflag=' $pic_flag' 16549 ;; 16550 pgf77* | pgf90* | pgf95* | pgfortran*) 16551 # Portland Group f77 and f90 compilers 16552 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' 16553 tmp_addflag=' $pic_flag -Mnomain' ;; 16554 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16555 tmp_addflag=' -i_dynamic' ;; 16556 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16557 tmp_addflag=' -i_dynamic -nofor_main' ;; 16558 ifc* | ifort*) # Intel Fortran compiler 16559 tmp_addflag=' -nofor_main' ;; 16560 lf95*) # Lahey Fortran 8.1 16561 whole_archive_flag_spec= 16562 tmp_sharedflag='--shared' ;; 16563 nagfor*) # NAGFOR 5.3 16564 tmp_sharedflag='-Wl,-shared' ;; 16565 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16566 tmp_sharedflag='-qmkshrobj' 16567 tmp_addflag= ;; 16568 nvcc*) # Cuda Compiler Driver 2.2 16569 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' 16570 compiler_needs_object=yes 16571 ;; 16572 esac 16573 case `$CC -V 2>&1 | sed 5q` in 16574 *Sun\ C*) # Sun C 5.9 16575 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' 16576 compiler_needs_object=yes 16577 tmp_sharedflag='-G' ;; 16578 *Sun\ F*) # Sun Fortran 8.3 16579 tmp_sharedflag='-G' ;; 16580 esac 16581 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16582 16583 if test yes = "$supports_anon_versioning"; then 16584 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16586 echo "local: *; };" >> $output_objdir/$libname.ver~ 16587 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16588 fi 16589 16590 case $cc_basename in 16591 tcc*) 16592 export_dynamic_flag_spec='-rdynamic' 16593 ;; 16594 xlf* | bgf* | bgxlf* | mpixlf*) 16595 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16596 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16598 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16599 if test yes = "$supports_anon_versioning"; then 16600 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16601 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16602 echo "local: *; };" >> $output_objdir/$libname.ver~ 16603 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16604 fi 16605 ;; 16606 esac 16607 else 16608 ld_shlibs=no 16609 fi 16610 ;; 16611 16612 netbsd* | netbsdelf*-gnu) 16613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16614 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16615 wlarc= 16616 else 16617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16618 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16619 fi 16620 ;; 16621 16622 solaris*) 16623 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16624 ld_shlibs=no 16625 cat <<_LT_EOF 1>&2 16626 16627*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16628*** create shared libraries on Solaris systems. Therefore, libtool 16629*** is disabling shared libraries support. We urge you to upgrade GNU 16630*** binutils to release 2.9.1 or newer. Another option is to modify 16631*** your PATH or compiler configuration so that the native linker is 16632*** used, and then restart. 16633 16634_LT_EOF 16635 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16637 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16638 else 16639 ld_shlibs=no 16640 fi 16641 ;; 16642 16643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16644 case `$LD -v 2>&1` in 16645 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16646 ld_shlibs=no 16647 cat <<_LT_EOF 1>&2 16648 16649*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16650*** reliably create shared libraries on SCO systems. Therefore, libtool 16651*** is disabling shared libraries support. We urge you to upgrade GNU 16652*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16653*** your PATH or compiler configuration so that the native linker is 16654*** used, and then restart. 16655 16656_LT_EOF 16657 ;; 16658 *) 16659 # For security reasons, it is highly recommended that you always 16660 # use absolute paths for naming shared libraries, and exclude the 16661 # DT_RUNPATH tag from executables and libraries. But doing so 16662 # requires that you compile everything twice, which is a pain. 16663 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16666 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16667 else 16668 ld_shlibs=no 16669 fi 16670 ;; 16671 esac 16672 ;; 16673 16674 sunos4*) 16675 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16676 wlarc= 16677 hardcode_direct=yes 16678 hardcode_shlibpath_var=no 16679 ;; 16680 16681 *) 16682 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16684 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16685 else 16686 ld_shlibs=no 16687 fi 16688 ;; 16689 esac 16690 16691 if test no = "$ld_shlibs"; then 16692 runpath_var= 16693 hardcode_libdir_flag_spec= 16694 export_dynamic_flag_spec= 16695 whole_archive_flag_spec= 16696 fi 16697 else 16698 # PORTME fill in a description of your system's linker (not GNU ld) 16699 case $host_os in 16700 aix3*) 16701 allow_undefined_flag=unsupported 16702 always_export_symbols=yes 16703 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' 16704 # Note: this linker hardcodes the directories in LIBPATH if there 16705 # are no directories specified by -L. 16706 hardcode_minus_L=yes 16707 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16708 # Neither direct hardcoding nor static linking is supported with a 16709 # broken collect2. 16710 hardcode_direct=unsupported 16711 fi 16712 ;; 16713 16714 aix[4-9]*) 16715 if test ia64 = "$host_cpu"; then 16716 # On IA64, the linker does run time linking by default, so we don't 16717 # have to do anything special. 16718 aix_use_runtimelinking=no 16719 exp_sym_flag='-Bexport' 16720 no_entry_flag= 16721 else 16722 # If we're using GNU nm, then we don't want the "-C" option. 16723 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16724 # Without the "-l" option, or with the "-B" option, AIX nm treats 16725 # weak defined symbols like other global defined symbols, whereas 16726 # GNU nm marks them as "W". 16727 # While the 'weak' keyword is ignored in the Export File, we need 16728 # it in the Import File for the 'aix-soname' feature, so we have 16729 # to replace the "-B" option with "-P" for AIX nm. 16730 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16731 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' 16732 else 16733 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16734 fi 16735 aix_use_runtimelinking=no 16736 16737 # Test if we are trying to use run time linking or normal 16738 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16739 # have runtime linking enabled, and use it for executables. 16740 # For shared libraries, we enable/disable runtime linking 16741 # depending on the kind of the shared library created - 16742 # when "with_aix_soname,aix_use_runtimelinking" is: 16743 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16744 # "aix,yes" lib.so shared, rtl:yes, for executables 16745 # lib.a static archive 16746 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16747 # lib.a(lib.so.V) shared, rtl:no, for executables 16748 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16749 # lib.a(lib.so.V) shared, rtl:no 16750 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16751 # lib.a static archive 16752 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16753 for ld_flag in $LDFLAGS; do 16754 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16755 aix_use_runtimelinking=yes 16756 break 16757 fi 16758 done 16759 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16760 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16761 # so we don't have lib.a shared libs to link our executables. 16762 # We have to force runtime linking in this case. 16763 aix_use_runtimelinking=yes 16764 LDFLAGS="$LDFLAGS -Wl,-brtl" 16765 fi 16766 ;; 16767 esac 16768 16769 exp_sym_flag='-bexport' 16770 no_entry_flag='-bnoentry' 16771 fi 16772 16773 # When large executables or shared objects are built, AIX ld can 16774 # have problems creating the table of contents. If linking a library 16775 # or program results in "error TOC overflow" add -mminimal-toc to 16776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16778 16779 archive_cmds='' 16780 hardcode_direct=yes 16781 hardcode_direct_absolute=yes 16782 hardcode_libdir_separator=':' 16783 link_all_deplibs=yes 16784 file_list_spec='$wl-f,' 16785 case $with_aix_soname,$aix_use_runtimelinking in 16786 aix,*) ;; # traditional, no import file 16787 svr4,* | *,yes) # use import file 16788 # The Import File defines what to hardcode. 16789 hardcode_direct=no 16790 hardcode_direct_absolute=no 16791 ;; 16792 esac 16793 16794 if test yes = "$GCC"; then 16795 case $host_os in aix4.[012]|aix4.[012].*) 16796 # We only want to do this on AIX 4.2 and lower, the check 16797 # below for broken collect2 doesn't work under 4.3+ 16798 collect2name=`$CC -print-prog-name=collect2` 16799 if test -f "$collect2name" && 16800 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16801 then 16802 # We have reworked collect2 16803 : 16804 else 16805 # We have old collect2 16806 hardcode_direct=unsupported 16807 # It fails to find uninstalled libraries when the uninstalled 16808 # path is not listed in the libpath. Setting hardcode_minus_L 16809 # to unsupported forces relinking 16810 hardcode_minus_L=yes 16811 hardcode_libdir_flag_spec='-L$libdir' 16812 hardcode_libdir_separator= 16813 fi 16814 ;; 16815 esac 16816 shared_flag='-shared' 16817 if test yes = "$aix_use_runtimelinking"; then 16818 shared_flag="$shared_flag "'$wl-G' 16819 fi 16820 # Need to ensure runtime linking is disabled for the traditional 16821 # shared library, or the linker may eventually find shared libraries 16822 # /with/ Import File - we do not want to mix them. 16823 shared_flag_aix='-shared' 16824 shared_flag_svr4='-shared $wl-G' 16825 else 16826 # not using gcc 16827 if test ia64 = "$host_cpu"; then 16828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16829 # chokes on -Wl,-G. The following line is correct: 16830 shared_flag='-G' 16831 else 16832 if test yes = "$aix_use_runtimelinking"; then 16833 shared_flag='$wl-G' 16834 else 16835 shared_flag='$wl-bM:SRE' 16836 fi 16837 shared_flag_aix='$wl-bM:SRE' 16838 shared_flag_svr4='$wl-G' 16839 fi 16840 fi 16841 16842 export_dynamic_flag_spec='$wl-bexpall' 16843 # It seems that -bexpall does not export symbols beginning with 16844 # underscore (_), so it is better to generate a list of symbols to export. 16845 always_export_symbols=yes 16846 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16847 # Warning - without using the other runtime loading flags (-brtl), 16848 # -berok will link without error, but may produce a broken library. 16849 allow_undefined_flag='-berok' 16850 # Determine the default libpath from the value encoded in an 16851 # empty executable. 16852 if test set = "${lt_cv_aix_libpath+set}"; then 16853 aix_libpath=$lt_cv_aix_libpath 16854else 16855 if test ${lt_cv_aix_libpath_+y} 16856then : 16857 printf %s "(cached) " >&6 16858else $as_nop 16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16860/* end confdefs.h. */ 16861 16862int 16863main (void) 16864{ 16865 16866 ; 16867 return 0; 16868} 16869_ACEOF 16870if ac_fn_c_try_link "$LINENO" 16871then : 16872 16873 lt_aix_libpath_sed=' 16874 /Import File Strings/,/^$/ { 16875 /^0/ { 16876 s/^0 *\([^ ]*\) *$/\1/ 16877 p 16878 } 16879 }' 16880 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16881 # Check for a 64-bit object if we didn't find anything. 16882 if test -z "$lt_cv_aix_libpath_"; then 16883 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16884 fi 16885fi 16886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16887 conftest$ac_exeext conftest.$ac_ext 16888 if test -z "$lt_cv_aix_libpath_"; then 16889 lt_cv_aix_libpath_=/usr/lib:/lib 16890 fi 16891 16892fi 16893 16894 aix_libpath=$lt_cv_aix_libpath_ 16895fi 16896 16897 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16898 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 16899 else 16900 if test ia64 = "$host_cpu"; then 16901 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16902 allow_undefined_flag="-z nodefs" 16903 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" 16904 else 16905 # Determine the default libpath from the value encoded in an 16906 # empty executable. 16907 if test set = "${lt_cv_aix_libpath+set}"; then 16908 aix_libpath=$lt_cv_aix_libpath 16909else 16910 if test ${lt_cv_aix_libpath_+y} 16911then : 16912 printf %s "(cached) " >&6 16913else $as_nop 16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16915/* end confdefs.h. */ 16916 16917int 16918main (void) 16919{ 16920 16921 ; 16922 return 0; 16923} 16924_ACEOF 16925if ac_fn_c_try_link "$LINENO" 16926then : 16927 16928 lt_aix_libpath_sed=' 16929 /Import File Strings/,/^$/ { 16930 /^0/ { 16931 s/^0 *\([^ ]*\) *$/\1/ 16932 p 16933 } 16934 }' 16935 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16936 # Check for a 64-bit object if we didn't find anything. 16937 if test -z "$lt_cv_aix_libpath_"; then 16938 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16939 fi 16940fi 16941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16942 conftest$ac_exeext conftest.$ac_ext 16943 if test -z "$lt_cv_aix_libpath_"; then 16944 lt_cv_aix_libpath_=/usr/lib:/lib 16945 fi 16946 16947fi 16948 16949 aix_libpath=$lt_cv_aix_libpath_ 16950fi 16951 16952 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16953 # Warning - without using the other run time loading flags, 16954 # -berok will link without error, but may produce a broken library. 16955 no_undefined_flag=' $wl-bernotok' 16956 allow_undefined_flag=' $wl-berok' 16957 if test yes = "$with_gnu_ld"; then 16958 # We only use this code for GNU lds that support --whole-archive. 16959 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16960 else 16961 # Exported symbols can be pulled into shared objects from archives 16962 whole_archive_flag_spec='$convenience' 16963 fi 16964 archive_cmds_need_lc=yes 16965 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16966 # -brtl affects multiple linker settings, -berok does not and is overridden later 16967 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16968 if test svr4 != "$with_aix_soname"; then 16969 # This is similar to how AIX traditionally builds its shared libraries. 16970 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' 16971 fi 16972 if test aix != "$with_aix_soname"; then 16973 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' 16974 else 16975 # used by -dlpreopen to get the symbols 16976 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16977 fi 16978 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16979 fi 16980 fi 16981 ;; 16982 16983 amigaos*) 16984 case $host_cpu in 16985 powerpc) 16986 # see comment about AmigaOS4 .so support 16987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16988 archive_expsym_cmds='' 16989 ;; 16990 m68k) 16991 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)' 16992 hardcode_libdir_flag_spec='-L$libdir' 16993 hardcode_minus_L=yes 16994 ;; 16995 esac 16996 ;; 16997 16998 bsdi[45]*) 16999 export_dynamic_flag_spec=-rdynamic 17000 ;; 17001 17002 cygwin* | mingw* | pw32* | cegcc*) 17003 # When not using gcc, we currently assume that we are using 17004 # Microsoft Visual C++. 17005 # hardcode_libdir_flag_spec is actually meaningless, as there is 17006 # no search path for DLLs. 17007 case $cc_basename in 17008 cl*) 17009 # Native MSVC 17010 hardcode_libdir_flag_spec=' ' 17011 allow_undefined_flag=unsupported 17012 always_export_symbols=yes 17013 file_list_spec='@' 17014 # Tell ltmain to make .lib files, not .a files. 17015 libext=lib 17016 # Tell ltmain to make .dll files, not .so files. 17017 shrext_cmds=.dll 17018 # FIXME: Setting linknames here is a bad hack. 17019 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17020 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17021 cp "$export_symbols" "$output_objdir/$soname.def"; 17022 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17023 else 17024 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17025 fi~ 17026 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17027 linknames=' 17028 # The linker will not automatically build a static lib if we build a DLL. 17029 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17030 enable_shared_with_static_runtimes=yes 17031 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17032 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17033 # Don't use ranlib 17034 old_postinstall_cmds='chmod 644 $oldlib' 17035 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17036 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17037 case $lt_outputfile in 17038 *.exe|*.EXE) ;; 17039 *) 17040 lt_outputfile=$lt_outputfile.exe 17041 lt_tool_outputfile=$lt_tool_outputfile.exe 17042 ;; 17043 esac~ 17044 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17045 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17046 $RM "$lt_outputfile.manifest"; 17047 fi' 17048 ;; 17049 *) 17050 # Assume MSVC wrapper 17051 hardcode_libdir_flag_spec=' ' 17052 allow_undefined_flag=unsupported 17053 # Tell ltmain to make .lib files, not .a files. 17054 libext=lib 17055 # Tell ltmain to make .dll files, not .so files. 17056 shrext_cmds=.dll 17057 # FIXME: Setting linknames here is a bad hack. 17058 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17059 # The linker will automatically build a .lib file if we build a DLL. 17060 old_archive_from_new_cmds='true' 17061 # FIXME: Should let the user specify the lib program. 17062 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17063 enable_shared_with_static_runtimes=yes 17064 ;; 17065 esac 17066 ;; 17067 17068 darwin* | rhapsody*) 17069 17070 17071 archive_cmds_need_lc=no 17072 hardcode_direct=no 17073 hardcode_automatic=yes 17074 hardcode_shlibpath_var=unsupported 17075 if test yes = "$lt_cv_ld_force_load"; then 17076 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\"`' 17077 17078 else 17079 whole_archive_flag_spec='' 17080 fi 17081 link_all_deplibs=yes 17082 allow_undefined_flag=$_lt_dar_allow_undefined 17083 case $cc_basename in 17084 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17085 *) _lt_dar_can_shared=$GCC ;; 17086 esac 17087 if test yes = "$_lt_dar_can_shared"; then 17088 output_verbose_link_cmd=func_echo_all 17089 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17090 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17091 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" 17092 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" 17093 17094 else 17095 ld_shlibs=no 17096 fi 17097 17098 ;; 17099 17100 dgux*) 17101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17102 hardcode_libdir_flag_spec='-L$libdir' 17103 hardcode_shlibpath_var=no 17104 ;; 17105 17106 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17107 # support. Future versions do this automatically, but an explicit c++rt0.o 17108 # does not break anything, and helps significantly (at the cost of a little 17109 # extra space). 17110 freebsd2.2*) 17111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17112 hardcode_libdir_flag_spec='-R$libdir' 17113 hardcode_direct=yes 17114 hardcode_shlibpath_var=no 17115 ;; 17116 17117 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17118 freebsd2.*) 17119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17120 hardcode_direct=yes 17121 hardcode_minus_L=yes 17122 hardcode_shlibpath_var=no 17123 ;; 17124 17125 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17126 freebsd* | dragonfly*) 17127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17128 hardcode_libdir_flag_spec='-R$libdir' 17129 hardcode_direct=yes 17130 hardcode_shlibpath_var=no 17131 ;; 17132 17133 hpux9*) 17134 if test yes = "$GCC"; then 17135 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' 17136 else 17137 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' 17138 fi 17139 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17140 hardcode_libdir_separator=: 17141 hardcode_direct=yes 17142 17143 # hardcode_minus_L: Not really in the search PATH, 17144 # but as the default location of the library. 17145 hardcode_minus_L=yes 17146 export_dynamic_flag_spec='$wl-E' 17147 ;; 17148 17149 hpux10*) 17150 if test yes,no = "$GCC,$with_gnu_ld"; then 17151 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17152 else 17153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17154 fi 17155 if test no = "$with_gnu_ld"; then 17156 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17157 hardcode_libdir_separator=: 17158 hardcode_direct=yes 17159 hardcode_direct_absolute=yes 17160 export_dynamic_flag_spec='$wl-E' 17161 # hardcode_minus_L: Not really in the search PATH, 17162 # but as the default location of the library. 17163 hardcode_minus_L=yes 17164 fi 17165 ;; 17166 17167 hpux11*) 17168 if test yes,no = "$GCC,$with_gnu_ld"; then 17169 case $host_cpu in 17170 hppa*64*) 17171 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17172 ;; 17173 ia64*) 17174 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17175 ;; 17176 *) 17177 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17178 ;; 17179 esac 17180 else 17181 case $host_cpu in 17182 hppa*64*) 17183 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17184 ;; 17185 ia64*) 17186 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17187 ;; 17188 *) 17189 17190 # Older versions of the 11.00 compiler do not understand -b yet 17191 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17193printf %s "checking if $CC understands -b... " >&6; } 17194if test ${lt_cv_prog_compiler__b+y} 17195then : 17196 printf %s "(cached) " >&6 17197else $as_nop 17198 lt_cv_prog_compiler__b=no 17199 save_LDFLAGS=$LDFLAGS 17200 LDFLAGS="$LDFLAGS -b" 17201 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17203 # The linker can only warn and ignore the option if not recognized 17204 # So say no if there are warnings 17205 if test -s conftest.err; then 17206 # Append any errors to the config.log. 17207 cat conftest.err 1>&5 17208 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17210 if diff conftest.exp conftest.er2 >/dev/null; then 17211 lt_cv_prog_compiler__b=yes 17212 fi 17213 else 17214 lt_cv_prog_compiler__b=yes 17215 fi 17216 fi 17217 $RM -r conftest* 17218 LDFLAGS=$save_LDFLAGS 17219 17220fi 17221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17222printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17223 17224if test yes = "$lt_cv_prog_compiler__b"; then 17225 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17226else 17227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17228fi 17229 17230 ;; 17231 esac 17232 fi 17233 if test no = "$with_gnu_ld"; then 17234 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17235 hardcode_libdir_separator=: 17236 17237 case $host_cpu in 17238 hppa*64*|ia64*) 17239 hardcode_direct=no 17240 hardcode_shlibpath_var=no 17241 ;; 17242 *) 17243 hardcode_direct=yes 17244 hardcode_direct_absolute=yes 17245 export_dynamic_flag_spec='$wl-E' 17246 17247 # hardcode_minus_L: Not really in the search PATH, 17248 # but as the default location of the library. 17249 hardcode_minus_L=yes 17250 ;; 17251 esac 17252 fi 17253 ;; 17254 17255 irix5* | irix6* | nonstopux*) 17256 if test yes = "$GCC"; then 17257 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' 17258 # Try to use the -exported_symbol ld option, if it does not 17259 # work, assume that -exports_file does not work either and 17260 # implicitly export all symbols. 17261 # This should be the same for all languages, so no per-tag cache variable. 17262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17263printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17264if test ${lt_cv_irix_exported_symbol+y} 17265then : 17266 printf %s "(cached) " >&6 17267else $as_nop 17268 save_LDFLAGS=$LDFLAGS 17269 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271/* end confdefs.h. */ 17272int foo (void) { return 0; } 17273_ACEOF 17274if ac_fn_c_try_link "$LINENO" 17275then : 17276 lt_cv_irix_exported_symbol=yes 17277else $as_nop 17278 lt_cv_irix_exported_symbol=no 17279fi 17280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17281 conftest$ac_exeext conftest.$ac_ext 17282 LDFLAGS=$save_LDFLAGS 17283fi 17284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17285printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17286 if test yes = "$lt_cv_irix_exported_symbol"; then 17287 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' 17288 fi 17289 link_all_deplibs=no 17290 else 17291 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' 17292 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' 17293 fi 17294 archive_cmds_need_lc='no' 17295 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17296 hardcode_libdir_separator=: 17297 inherit_rpath=yes 17298 link_all_deplibs=yes 17299 ;; 17300 17301 linux*) 17302 case $cc_basename in 17303 tcc*) 17304 # Fabrice Bellard et al's Tiny C Compiler 17305 ld_shlibs=yes 17306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17307 ;; 17308 esac 17309 ;; 17310 17311 netbsd* | netbsdelf*-gnu) 17312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17314 else 17315 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17316 fi 17317 hardcode_libdir_flag_spec='-R$libdir' 17318 hardcode_direct=yes 17319 hardcode_shlibpath_var=no 17320 ;; 17321 17322 newsos6) 17323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17324 hardcode_direct=yes 17325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17326 hardcode_libdir_separator=: 17327 hardcode_shlibpath_var=no 17328 ;; 17329 17330 *nto* | *qnx*) 17331 ;; 17332 17333 openbsd* | bitrig*) 17334 if test -f /usr/libexec/ld.so; then 17335 hardcode_direct=yes 17336 hardcode_shlibpath_var=no 17337 hardcode_direct_absolute=yes 17338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17340 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17341 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17342 export_dynamic_flag_spec='$wl-E' 17343 else 17344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17345 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17346 fi 17347 else 17348 ld_shlibs=no 17349 fi 17350 ;; 17351 17352 os2*) 17353 hardcode_libdir_flag_spec='-L$libdir' 17354 hardcode_minus_L=yes 17355 allow_undefined_flag=unsupported 17356 shrext_cmds=.dll 17357 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17358 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17359 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17360 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17361 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17362 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17363 emximp -o $lib $output_objdir/$libname.def' 17364 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17365 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17366 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17367 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17368 prefix_cmds="$SED"~ 17369 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17370 prefix_cmds="$prefix_cmds -e 1d"; 17371 fi~ 17372 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17373 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17374 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17375 emximp -o $lib $output_objdir/$libname.def' 17376 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17377 enable_shared_with_static_runtimes=yes 17378 ;; 17379 17380 osf3*) 17381 if test yes = "$GCC"; then 17382 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17383 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' 17384 else 17385 allow_undefined_flag=' -expect_unresolved \*' 17386 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' 17387 fi 17388 archive_cmds_need_lc='no' 17389 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17390 hardcode_libdir_separator=: 17391 ;; 17392 17393 osf4* | osf5*) # as osf3* with the addition of -msym flag 17394 if test yes = "$GCC"; then 17395 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17396 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' 17397 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17398 else 17399 allow_undefined_flag=' -expect_unresolved \*' 17400 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' 17401 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~ 17402 $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' 17403 17404 # Both c and cxx compiler support -rpath directly 17405 hardcode_libdir_flag_spec='-rpath $libdir' 17406 fi 17407 archive_cmds_need_lc='no' 17408 hardcode_libdir_separator=: 17409 ;; 17410 17411 solaris*) 17412 no_undefined_flag=' -z defs' 17413 if test yes = "$GCC"; then 17414 wlarc='$wl' 17415 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17417 $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' 17418 else 17419 case `$CC -V 2>&1` in 17420 *"Compilers 5.0"*) 17421 wlarc='' 17422 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17424 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17425 ;; 17426 *) 17427 wlarc='$wl' 17428 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17430 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17431 ;; 17432 esac 17433 fi 17434 hardcode_libdir_flag_spec='-R$libdir' 17435 hardcode_shlibpath_var=no 17436 case $host_os in 17437 solaris2.[0-5] | solaris2.[0-5].*) ;; 17438 *) 17439 # The compiler driver will combine and reorder linker options, 17440 # but understands '-z linker_flag'. GCC discards it without '$wl', 17441 # but is careful enough not to reorder. 17442 # Supported since Solaris 2.6 (maybe 2.5.1?) 17443 if test yes = "$GCC"; then 17444 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17445 else 17446 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17447 fi 17448 ;; 17449 esac 17450 link_all_deplibs=yes 17451 ;; 17452 17453 sunos4*) 17454 if test sequent = "$host_vendor"; then 17455 # Use $CC to link under sequent, because it throws in some extra .o 17456 # files that make .init and .fini sections work. 17457 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17458 else 17459 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17460 fi 17461 hardcode_libdir_flag_spec='-L$libdir' 17462 hardcode_direct=yes 17463 hardcode_minus_L=yes 17464 hardcode_shlibpath_var=no 17465 ;; 17466 17467 sysv4) 17468 case $host_vendor in 17469 sni) 17470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17471 hardcode_direct=yes # is this really true??? 17472 ;; 17473 siemens) 17474 ## LD is ld it makes a PLAMLIB 17475 ## CC just makes a GrossModule. 17476 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17477 reload_cmds='$CC -r -o $output$reload_objs' 17478 hardcode_direct=no 17479 ;; 17480 motorola) 17481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17482 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17483 ;; 17484 esac 17485 runpath_var='LD_RUN_PATH' 17486 hardcode_shlibpath_var=no 17487 ;; 17488 17489 sysv4.3*) 17490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17491 hardcode_shlibpath_var=no 17492 export_dynamic_flag_spec='-Bexport' 17493 ;; 17494 17495 sysv4*MP*) 17496 if test -d /usr/nec; then 17497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17498 hardcode_shlibpath_var=no 17499 runpath_var=LD_RUN_PATH 17500 hardcode_runpath_var=yes 17501 ld_shlibs=yes 17502 fi 17503 ;; 17504 17505 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17506 no_undefined_flag='$wl-z,text' 17507 archive_cmds_need_lc=no 17508 hardcode_shlibpath_var=no 17509 runpath_var='LD_RUN_PATH' 17510 17511 if test yes = "$GCC"; then 17512 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17513 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17514 else 17515 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17516 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17517 fi 17518 ;; 17519 17520 sysv5* | sco3.2v5* | sco5v6*) 17521 # Note: We CANNOT use -z defs as we might desire, because we do not 17522 # link with -lc, and that would cause any symbols used from libc to 17523 # always be unresolved, which means just about no library would 17524 # ever link correctly. If we're not using GNU ld we use -z text 17525 # though, which does catch some bad symbols but isn't as heavy-handed 17526 # as -z defs. 17527 no_undefined_flag='$wl-z,text' 17528 allow_undefined_flag='$wl-z,nodefs' 17529 archive_cmds_need_lc=no 17530 hardcode_shlibpath_var=no 17531 hardcode_libdir_flag_spec='$wl-R,$libdir' 17532 hardcode_libdir_separator=':' 17533 link_all_deplibs=yes 17534 export_dynamic_flag_spec='$wl-Bexport' 17535 runpath_var='LD_RUN_PATH' 17536 17537 if test yes = "$GCC"; then 17538 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17539 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17540 else 17541 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17542 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17543 fi 17544 ;; 17545 17546 uts4*) 17547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17548 hardcode_libdir_flag_spec='-L$libdir' 17549 hardcode_shlibpath_var=no 17550 ;; 17551 17552 *) 17553 ld_shlibs=no 17554 ;; 17555 esac 17556 17557 if test sni = "$host_vendor"; then 17558 case $host in 17559 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17560 export_dynamic_flag_spec='$wl-Blargedynsym' 17561 ;; 17562 esac 17563 fi 17564 fi 17565 17566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17567printf "%s\n" "$ld_shlibs" >&6; } 17568test no = "$ld_shlibs" && can_build_shared=no 17569 17570with_gnu_ld=$with_gnu_ld 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586# 17587# Do we need to explicitly link libc? 17588# 17589case "x$archive_cmds_need_lc" in 17590x|xyes) 17591 # Assume -lc should be added 17592 archive_cmds_need_lc=yes 17593 17594 if test yes,yes = "$GCC,$enable_shared"; then 17595 case $archive_cmds in 17596 *'~'*) 17597 # FIXME: we may have to deal with multi-command sequences. 17598 ;; 17599 '$CC '*) 17600 # Test whether the compiler implicitly links with -lc since on some 17601 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17602 # to ld, don't add -lc before -lgcc. 17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17604printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17605if test ${lt_cv_archive_cmds_need_lc+y} 17606then : 17607 printf %s "(cached) " >&6 17608else $as_nop 17609 $RM conftest* 17610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17611 17612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17613 (eval $ac_compile) 2>&5 17614 ac_status=$? 17615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17616 test $ac_status = 0; } 2>conftest.err; then 17617 soname=conftest 17618 lib=conftest 17619 libobjs=conftest.$ac_objext 17620 deplibs= 17621 wl=$lt_prog_compiler_wl 17622 pic_flag=$lt_prog_compiler_pic 17623 compiler_flags=-v 17624 linker_flags=-v 17625 verstring= 17626 output_objdir=. 17627 libname=conftest 17628 lt_save_allow_undefined_flag=$allow_undefined_flag 17629 allow_undefined_flag= 17630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17631 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17632 ac_status=$? 17633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17634 test $ac_status = 0; } 17635 then 17636 lt_cv_archive_cmds_need_lc=no 17637 else 17638 lt_cv_archive_cmds_need_lc=yes 17639 fi 17640 allow_undefined_flag=$lt_save_allow_undefined_flag 17641 else 17642 cat conftest.err 1>&5 17643 fi 17644 $RM conftest* 17645 17646fi 17647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17648printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17649 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17650 ;; 17651 esac 17652 fi 17653 ;; 17654esac 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17808printf %s "checking dynamic linker characteristics... " >&6; } 17809 17810if test yes = "$GCC"; then 17811 case $host_os in 17812 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17813 *) lt_awk_arg='/^libraries:/' ;; 17814 esac 17815 case $host_os in 17816 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17817 *) lt_sed_strip_eq='s|=/|/|g' ;; 17818 esac 17819 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17820 case $lt_search_path_spec in 17821 *\;*) 17822 # if the path contains ";" then we assume it to be the separator 17823 # otherwise default to the standard path separator (i.e. ":") - it is 17824 # assumed that no part of a normal pathname contains ";" but that should 17825 # okay in the real world where ";" in dirpaths is itself problematic. 17826 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17827 ;; 17828 *) 17829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17830 ;; 17831 esac 17832 # Ok, now we have the path, separated by spaces, we can step through it 17833 # and add multilib dir if necessary... 17834 lt_tmp_lt_search_path_spec= 17835 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17836 # ...but if some path component already ends with the multilib dir we assume 17837 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17838 case "$lt_multi_os_dir; $lt_search_path_spec " in 17839 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17840 lt_multi_os_dir= 17841 ;; 17842 esac 17843 for lt_sys_path in $lt_search_path_spec; do 17844 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17846 elif test -n "$lt_multi_os_dir"; then 17847 test -d "$lt_sys_path" && \ 17848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17849 fi 17850 done 17851 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17852BEGIN {RS = " "; FS = "/|\n";} { 17853 lt_foo = ""; 17854 lt_count = 0; 17855 for (lt_i = NF; lt_i > 0; lt_i--) { 17856 if ($lt_i != "" && $lt_i != ".") { 17857 if ($lt_i == "..") { 17858 lt_count++; 17859 } else { 17860 if (lt_count == 0) { 17861 lt_foo = "/" $lt_i lt_foo; 17862 } else { 17863 lt_count--; 17864 } 17865 } 17866 } 17867 } 17868 if (lt_foo != "") { lt_freq[lt_foo]++; } 17869 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17870}'` 17871 # AWK program above erroneously prepends '/' to C:/dos/paths 17872 # for these hosts. 17873 case $host_os in 17874 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17875 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17876 esac 17877 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17878else 17879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17880fi 17881library_names_spec= 17882libname_spec='lib$name' 17883soname_spec= 17884shrext_cmds=.so 17885postinstall_cmds= 17886postuninstall_cmds= 17887finish_cmds= 17888finish_eval= 17889shlibpath_var= 17890shlibpath_overrides_runpath=unknown 17891version_type=none 17892dynamic_linker="$host_os ld.so" 17893sys_lib_dlsearch_path_spec="/lib /usr/lib" 17894need_lib_prefix=unknown 17895hardcode_into_libs=no 17896 17897# when you set need_version to no, make sure it does not cause -set_version 17898# flags to be left without arguments 17899need_version=unknown 17900 17901 17902 17903case $host_os in 17904aix3*) 17905 version_type=linux # correct to gnu/linux during the next big refactor 17906 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17907 shlibpath_var=LIBPATH 17908 17909 # AIX 3 has no versioning support, so we append a major version to the name. 17910 soname_spec='$libname$release$shared_ext$major' 17911 ;; 17912 17913aix[4-9]*) 17914 version_type=linux # correct to gnu/linux during the next big refactor 17915 need_lib_prefix=no 17916 need_version=no 17917 hardcode_into_libs=yes 17918 if test ia64 = "$host_cpu"; then 17919 # AIX 5 supports IA64 17920 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17921 shlibpath_var=LD_LIBRARY_PATH 17922 else 17923 # With GCC up to 2.95.x, collect2 would create an import file 17924 # for dependence libraries. The import file would start with 17925 # the line '#! .'. This would cause the generated library to 17926 # depend on '.', always an invalid library. This was fixed in 17927 # development snapshots of GCC prior to 3.0. 17928 case $host_os in 17929 aix4 | aix4.[01] | aix4.[01].*) 17930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17931 echo ' yes ' 17932 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17933 : 17934 else 17935 can_build_shared=no 17936 fi 17937 ;; 17938 esac 17939 # Using Import Files as archive members, it is possible to support 17940 # filename-based versioning of shared library archives on AIX. While 17941 # this would work for both with and without runtime linking, it will 17942 # prevent static linking of such archives. So we do filename-based 17943 # shared library versioning with .so extension only, which is used 17944 # when both runtime linking and shared linking is enabled. 17945 # Unfortunately, runtime linking may impact performance, so we do 17946 # not want this to be the default eventually. Also, we use the 17947 # versioned .so libs for executables only if there is the -brtl 17948 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17949 # To allow for filename-based versioning support, we need to create 17950 # libNAME.so.V as an archive file, containing: 17951 # *) an Import File, referring to the versioned filename of the 17952 # archive as well as the shared archive member, telling the 17953 # bitwidth (32 or 64) of that shared object, and providing the 17954 # list of exported symbols of that shared object, eventually 17955 # decorated with the 'weak' keyword 17956 # *) the shared object with the F_LOADONLY flag set, to really avoid 17957 # it being seen by the linker. 17958 # At run time we better use the real file rather than another symlink, 17959 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17960 17961 case $with_aix_soname,$aix_use_runtimelinking in 17962 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17963 # soname into executable. Probably we can add versioning support to 17964 # collect2, so additional links can be useful in future. 17965 aix,yes) # traditional libtool 17966 dynamic_linker='AIX unversionable lib.so' 17967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17968 # instead of lib<name>.a to let people know that these are not 17969 # typical AIX shared libraries. 17970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17971 ;; 17972 aix,no) # traditional AIX only 17973 dynamic_linker='AIX lib.a(lib.so.V)' 17974 # We preserve .a as extension for shared libraries through AIX4.2 17975 # and later when we are not doing run time linking. 17976 library_names_spec='$libname$release.a $libname.a' 17977 soname_spec='$libname$release$shared_ext$major' 17978 ;; 17979 svr4,*) # full svr4 only 17980 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17981 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17982 # We do not specify a path in Import Files, so LIBPATH fires. 17983 shlibpath_overrides_runpath=yes 17984 ;; 17985 *,yes) # both, prefer svr4 17986 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17987 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17988 # unpreferred sharedlib libNAME.a needs extra handling 17989 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"' 17990 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"' 17991 # We do not specify a path in Import Files, so LIBPATH fires. 17992 shlibpath_overrides_runpath=yes 17993 ;; 17994 *,no) # both, prefer aix 17995 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17996 library_names_spec='$libname$release.a $libname.a' 17997 soname_spec='$libname$release$shared_ext$major' 17998 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17999 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)' 18000 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"' 18001 ;; 18002 esac 18003 shlibpath_var=LIBPATH 18004 fi 18005 ;; 18006 18007amigaos*) 18008 case $host_cpu in 18009 powerpc) 18010 # Since July 2007 AmigaOS4 officially supports .so libraries. 18011 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18013 ;; 18014 m68k) 18015 library_names_spec='$libname.ixlibrary $libname.a' 18016 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18017 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' 18018 ;; 18019 esac 18020 ;; 18021 18022beos*) 18023 library_names_spec='$libname$shared_ext' 18024 dynamic_linker="$host_os ld.so" 18025 shlibpath_var=LIBRARY_PATH 18026 ;; 18027 18028bsdi[45]*) 18029 version_type=linux # correct to gnu/linux during the next big refactor 18030 need_version=no 18031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18032 soname_spec='$libname$release$shared_ext$major' 18033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18034 shlibpath_var=LD_LIBRARY_PATH 18035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18037 # the default ld.so.conf also contains /usr/contrib/lib and 18038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18039 # libtool to hard-code these into programs 18040 ;; 18041 18042cygwin* | mingw* | pw32* | cegcc*) 18043 version_type=windows 18044 shrext_cmds=.dll 18045 need_version=no 18046 need_lib_prefix=no 18047 18048 case $GCC,$cc_basename in 18049 yes,*) 18050 # gcc 18051 library_names_spec='$libname.dll.a' 18052 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18053 postinstall_cmds='base_file=`basename \$file`~ 18054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18055 dldir=$destdir/`dirname \$dlpath`~ 18056 test -d \$dldir || mkdir -p \$dldir~ 18057 $install_prog $dir/$dlname \$dldir/$dlname~ 18058 chmod a+x \$dldir/$dlname~ 18059 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18060 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18061 fi' 18062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18063 dlpath=$dir/\$dldll~ 18064 $RM \$dlpath' 18065 shlibpath_overrides_runpath=yes 18066 18067 case $host_os in 18068 cygwin*) 18069 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18070 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18071 18072 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18073 ;; 18074 mingw* | cegcc*) 18075 # MinGW DLLs use traditional 'lib' prefix 18076 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18077 ;; 18078 pw32*) 18079 # pw32 DLLs use 'pw' prefix rather than 'lib' 18080 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18081 ;; 18082 esac 18083 dynamic_linker='Win32 ld.exe' 18084 ;; 18085 18086 *,cl*) 18087 # Native MSVC 18088 libname_spec='$name' 18089 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18090 library_names_spec='$libname.dll.lib' 18091 18092 case $build_os in 18093 mingw*) 18094 sys_lib_search_path_spec= 18095 lt_save_ifs=$IFS 18096 IFS=';' 18097 for lt_path in $LIB 18098 do 18099 IFS=$lt_save_ifs 18100 # Let DOS variable expansion print the short 8.3 style file name. 18101 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18102 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18103 done 18104 IFS=$lt_save_ifs 18105 # Convert to MSYS style. 18106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18107 ;; 18108 cygwin*) 18109 # Convert to unix form, then to dos form, then back to unix form 18110 # but this time dos style (no spaces!) so that the unix form looks 18111 # like /cygdrive/c/PROGRA~1:/cygdr... 18112 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18113 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18114 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18115 ;; 18116 *) 18117 sys_lib_search_path_spec=$LIB 18118 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18119 # It is most probably a Windows format PATH. 18120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18121 else 18122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18123 fi 18124 # FIXME: find the short name or the path components, as spaces are 18125 # common. (e.g. "Program Files" -> "PROGRA~1") 18126 ;; 18127 esac 18128 18129 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18130 postinstall_cmds='base_file=`basename \$file`~ 18131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18132 dldir=$destdir/`dirname \$dlpath`~ 18133 test -d \$dldir || mkdir -p \$dldir~ 18134 $install_prog $dir/$dlname \$dldir/$dlname' 18135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18136 dlpath=$dir/\$dldll~ 18137 $RM \$dlpath' 18138 shlibpath_overrides_runpath=yes 18139 dynamic_linker='Win32 link.exe' 18140 ;; 18141 18142 *) 18143 # Assume MSVC wrapper 18144 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18145 dynamic_linker='Win32 ld.exe' 18146 ;; 18147 esac 18148 # FIXME: first we should search . and the directory the executable is in 18149 shlibpath_var=PATH 18150 ;; 18151 18152darwin* | rhapsody*) 18153 dynamic_linker="$host_os dyld" 18154 version_type=darwin 18155 need_lib_prefix=no 18156 need_version=no 18157 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18158 soname_spec='$libname$release$major$shared_ext' 18159 shlibpath_overrides_runpath=yes 18160 shlibpath_var=DYLD_LIBRARY_PATH 18161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18162 18163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18165 ;; 18166 18167dgux*) 18168 version_type=linux # correct to gnu/linux during the next big refactor 18169 need_lib_prefix=no 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 shlibpath_var=LD_LIBRARY_PATH 18174 ;; 18175 18176freebsd* | dragonfly*) 18177 # DragonFly does not have aout. When/if they implement a new 18178 # versioning mechanism, adjust this. 18179 if test -x /usr/bin/objformat; then 18180 objformat=`/usr/bin/objformat` 18181 else 18182 case $host_os in 18183 freebsd[23].*) objformat=aout ;; 18184 *) objformat=elf ;; 18185 esac 18186 fi 18187 version_type=freebsd-$objformat 18188 case $version_type in 18189 freebsd-elf*) 18190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18191 soname_spec='$libname$release$shared_ext$major' 18192 need_version=no 18193 need_lib_prefix=no 18194 ;; 18195 freebsd-*) 18196 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18197 need_version=yes 18198 ;; 18199 esac 18200 shlibpath_var=LD_LIBRARY_PATH 18201 case $host_os in 18202 freebsd2.*) 18203 shlibpath_overrides_runpath=yes 18204 ;; 18205 freebsd3.[01]* | freebsdelf3.[01]*) 18206 shlibpath_overrides_runpath=yes 18207 hardcode_into_libs=yes 18208 ;; 18209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18211 shlibpath_overrides_runpath=no 18212 hardcode_into_libs=yes 18213 ;; 18214 *) # from 4.6 on, and DragonFly 18215 shlibpath_overrides_runpath=yes 18216 hardcode_into_libs=yes 18217 ;; 18218 esac 18219 ;; 18220 18221haiku*) 18222 version_type=linux # correct to gnu/linux during the next big refactor 18223 need_lib_prefix=no 18224 need_version=no 18225 dynamic_linker="$host_os runtime_loader" 18226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18227 soname_spec='$libname$release$shared_ext$major' 18228 shlibpath_var=LIBRARY_PATH 18229 shlibpath_overrides_runpath=no 18230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18231 hardcode_into_libs=yes 18232 ;; 18233 18234hpux9* | hpux10* | hpux11*) 18235 # Give a soname corresponding to the major version so that dld.sl refuses to 18236 # link against other versions. 18237 version_type=sunos 18238 need_lib_prefix=no 18239 need_version=no 18240 case $host_cpu in 18241 ia64*) 18242 shrext_cmds='.so' 18243 hardcode_into_libs=yes 18244 dynamic_linker="$host_os dld.so" 18245 shlibpath_var=LD_LIBRARY_PATH 18246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18248 soname_spec='$libname$release$shared_ext$major' 18249 if test 32 = "$HPUX_IA64_MODE"; then 18250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18251 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18252 else 18253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18254 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18255 fi 18256 ;; 18257 hppa*64*) 18258 shrext_cmds='.sl' 18259 hardcode_into_libs=yes 18260 dynamic_linker="$host_os dld.sl" 18261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18264 soname_spec='$libname$release$shared_ext$major' 18265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18267 ;; 18268 *) 18269 shrext_cmds='.sl' 18270 dynamic_linker="$host_os dld.sl" 18271 shlibpath_var=SHLIB_PATH 18272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18274 soname_spec='$libname$release$shared_ext$major' 18275 ;; 18276 esac 18277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18278 postinstall_cmds='chmod 555 $lib' 18279 # or fails outright, so override atomically: 18280 install_override_mode=555 18281 ;; 18282 18283interix[3-9]*) 18284 version_type=linux # correct to gnu/linux during the next big refactor 18285 need_lib_prefix=no 18286 need_version=no 18287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18288 soname_spec='$libname$release$shared_ext$major' 18289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18290 shlibpath_var=LD_LIBRARY_PATH 18291 shlibpath_overrides_runpath=no 18292 hardcode_into_libs=yes 18293 ;; 18294 18295irix5* | irix6* | nonstopux*) 18296 case $host_os in 18297 nonstopux*) version_type=nonstopux ;; 18298 *) 18299 if test yes = "$lt_cv_prog_gnu_ld"; then 18300 version_type=linux # correct to gnu/linux during the next big refactor 18301 else 18302 version_type=irix 18303 fi ;; 18304 esac 18305 need_lib_prefix=no 18306 need_version=no 18307 soname_spec='$libname$release$shared_ext$major' 18308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18309 case $host_os in 18310 irix5* | nonstopux*) 18311 libsuff= shlibsuff= 18312 ;; 18313 *) 18314 case $LD in # libtool.m4 will add one of these switches to LD 18315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18316 libsuff= shlibsuff= libmagic=32-bit;; 18317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18318 libsuff=32 shlibsuff=N32 libmagic=N32;; 18319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18320 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18321 *) libsuff= shlibsuff= libmagic=never-match;; 18322 esac 18323 ;; 18324 esac 18325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18326 shlibpath_overrides_runpath=no 18327 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18328 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18329 hardcode_into_libs=yes 18330 ;; 18331 18332# No shared lib support for Linux oldld, aout, or coff. 18333linux*oldld* | linux*aout* | linux*coff*) 18334 dynamic_linker=no 18335 ;; 18336 18337linux*android*) 18338 version_type=none # Android doesn't support versioned libraries. 18339 need_lib_prefix=no 18340 need_version=no 18341 library_names_spec='$libname$release$shared_ext' 18342 soname_spec='$libname$release$shared_ext' 18343 finish_cmds= 18344 shlibpath_var=LD_LIBRARY_PATH 18345 shlibpath_overrides_runpath=yes 18346 18347 # This implies no fast_install, which is unacceptable. 18348 # Some rework will be needed to allow for fast_install 18349 # before this can be enabled. 18350 hardcode_into_libs=yes 18351 18352 dynamic_linker='Android linker' 18353 # Don't embed -rpath directories since the linker doesn't support them. 18354 hardcode_libdir_flag_spec='-L$libdir' 18355 ;; 18356 18357# This must be glibc/ELF. 18358linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18359 version_type=linux # correct to gnu/linux during the next big refactor 18360 need_lib_prefix=no 18361 need_version=no 18362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18363 soname_spec='$libname$release$shared_ext$major' 18364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18365 shlibpath_var=LD_LIBRARY_PATH 18366 shlibpath_overrides_runpath=no 18367 18368 # Some binutils ld are patched to set DT_RUNPATH 18369 if test ${lt_cv_shlibpath_overrides_runpath+y} 18370then : 18371 printf %s "(cached) " >&6 18372else $as_nop 18373 lt_cv_shlibpath_overrides_runpath=no 18374 save_LDFLAGS=$LDFLAGS 18375 save_libdir=$libdir 18376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18379/* end confdefs.h. */ 18380 18381int 18382main (void) 18383{ 18384 18385 ; 18386 return 0; 18387} 18388_ACEOF 18389if ac_fn_c_try_link "$LINENO" 18390then : 18391 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18392then : 18393 lt_cv_shlibpath_overrides_runpath=yes 18394fi 18395fi 18396rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18397 conftest$ac_exeext conftest.$ac_ext 18398 LDFLAGS=$save_LDFLAGS 18399 libdir=$save_libdir 18400 18401fi 18402 18403 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18404 18405 # This implies no fast_install, which is unacceptable. 18406 # Some rework will be needed to allow for fast_install 18407 # before this can be enabled. 18408 hardcode_into_libs=yes 18409 18410 # Ideally, we could use ldconfig to report *all* directores which are 18411 # searched for libraries, however this is still not possible. Aside from not 18412 # being certain /sbin/ldconfig is available, command 18413 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18414 # even though it is searched at run-time. Try to do the best guess by 18415 # appending ld.so.conf contents (and includes) to the search path. 18416 if test -f /etc/ld.so.conf; then 18417 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' ' '` 18418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18419 fi 18420 18421 # We used to test for /lib/ld.so.1 and disable shared libraries on 18422 # powerpc, because MkLinux only supported shared libraries with the 18423 # GNU dynamic linker. Since this was broken with cross compilers, 18424 # most powerpc-linux boxes support dynamic linking these days and 18425 # people can always --disable-shared, the test was removed, and we 18426 # assume the GNU/Linux dynamic linker is in use. 18427 dynamic_linker='GNU/Linux ld.so' 18428 ;; 18429 18430netbsdelf*-gnu) 18431 version_type=linux 18432 need_lib_prefix=no 18433 need_version=no 18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18435 soname_spec='${libname}${release}${shared_ext}$major' 18436 shlibpath_var=LD_LIBRARY_PATH 18437 shlibpath_overrides_runpath=no 18438 hardcode_into_libs=yes 18439 dynamic_linker='NetBSD ld.elf_so' 18440 ;; 18441 18442netbsd*) 18443 version_type=sunos 18444 need_lib_prefix=no 18445 need_version=no 18446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18449 dynamic_linker='NetBSD (a.out) ld.so' 18450 else 18451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18452 soname_spec='$libname$release$shared_ext$major' 18453 dynamic_linker='NetBSD ld.elf_so' 18454 fi 18455 shlibpath_var=LD_LIBRARY_PATH 18456 shlibpath_overrides_runpath=yes 18457 hardcode_into_libs=yes 18458 ;; 18459 18460newsos6) 18461 version_type=linux # correct to gnu/linux during the next big refactor 18462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18463 shlibpath_var=LD_LIBRARY_PATH 18464 shlibpath_overrides_runpath=yes 18465 ;; 18466 18467*nto* | *qnx*) 18468 version_type=qnx 18469 need_lib_prefix=no 18470 need_version=no 18471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18472 soname_spec='$libname$release$shared_ext$major' 18473 shlibpath_var=LD_LIBRARY_PATH 18474 shlibpath_overrides_runpath=no 18475 hardcode_into_libs=yes 18476 dynamic_linker='ldqnx.so' 18477 ;; 18478 18479openbsd* | bitrig*) 18480 version_type=sunos 18481 sys_lib_dlsearch_path_spec=/usr/lib 18482 need_lib_prefix=no 18483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18484 need_version=no 18485 else 18486 need_version=yes 18487 fi 18488 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18490 shlibpath_var=LD_LIBRARY_PATH 18491 shlibpath_overrides_runpath=yes 18492 ;; 18493 18494os2*) 18495 libname_spec='$name' 18496 version_type=windows 18497 shrext_cmds=.dll 18498 need_version=no 18499 need_lib_prefix=no 18500 # OS/2 can only load a DLL with a base name of 8 characters or less. 18501 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18502 v=$($ECHO $release$versuffix | tr -d .-); 18503 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18504 $ECHO $n$v`$shared_ext' 18505 library_names_spec='${libname}_dll.$libext' 18506 dynamic_linker='OS/2 ld.exe' 18507 shlibpath_var=BEGINLIBPATH 18508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18510 postinstall_cmds='base_file=`basename \$file`~ 18511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18512 dldir=$destdir/`dirname \$dlpath`~ 18513 test -d \$dldir || mkdir -p \$dldir~ 18514 $install_prog $dir/$dlname \$dldir/$dlname~ 18515 chmod a+x \$dldir/$dlname~ 18516 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18517 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18518 fi' 18519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18520 dlpath=$dir/\$dldll~ 18521 $RM \$dlpath' 18522 ;; 18523 18524osf3* | osf4* | osf5*) 18525 version_type=osf 18526 need_lib_prefix=no 18527 need_version=no 18528 soname_spec='$libname$release$shared_ext$major' 18529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18530 shlibpath_var=LD_LIBRARY_PATH 18531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18533 ;; 18534 18535rdos*) 18536 dynamic_linker=no 18537 ;; 18538 18539solaris*) 18540 version_type=linux # correct to gnu/linux during the next big refactor 18541 need_lib_prefix=no 18542 need_version=no 18543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18544 soname_spec='$libname$release$shared_ext$major' 18545 shlibpath_var=LD_LIBRARY_PATH 18546 shlibpath_overrides_runpath=yes 18547 hardcode_into_libs=yes 18548 # ldd complains unless libraries are executable 18549 postinstall_cmds='chmod +x $lib' 18550 ;; 18551 18552sunos4*) 18553 version_type=sunos 18554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18556 shlibpath_var=LD_LIBRARY_PATH 18557 shlibpath_overrides_runpath=yes 18558 if test yes = "$with_gnu_ld"; then 18559 need_lib_prefix=no 18560 fi 18561 need_version=yes 18562 ;; 18563 18564sysv4 | sysv4.3*) 18565 version_type=linux # correct to gnu/linux during the next big refactor 18566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18567 soname_spec='$libname$release$shared_ext$major' 18568 shlibpath_var=LD_LIBRARY_PATH 18569 case $host_vendor in 18570 sni) 18571 shlibpath_overrides_runpath=no 18572 need_lib_prefix=no 18573 runpath_var=LD_RUN_PATH 18574 ;; 18575 siemens) 18576 need_lib_prefix=no 18577 ;; 18578 motorola) 18579 need_lib_prefix=no 18580 need_version=no 18581 shlibpath_overrides_runpath=no 18582 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18583 ;; 18584 esac 18585 ;; 18586 18587sysv4*MP*) 18588 if test -d /usr/nec; then 18589 version_type=linux # correct to gnu/linux during the next big refactor 18590 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18591 soname_spec='$libname$shared_ext.$major' 18592 shlibpath_var=LD_LIBRARY_PATH 18593 fi 18594 ;; 18595 18596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18597 version_type=sco 18598 need_lib_prefix=no 18599 need_version=no 18600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18601 soname_spec='$libname$release$shared_ext$major' 18602 shlibpath_var=LD_LIBRARY_PATH 18603 shlibpath_overrides_runpath=yes 18604 hardcode_into_libs=yes 18605 if test yes = "$with_gnu_ld"; then 18606 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18607 else 18608 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18609 case $host_os in 18610 sco3.2v5*) 18611 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18612 ;; 18613 esac 18614 fi 18615 sys_lib_dlsearch_path_spec='/usr/lib' 18616 ;; 18617 18618tpf*) 18619 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18620 version_type=linux # correct to gnu/linux during the next big refactor 18621 need_lib_prefix=no 18622 need_version=no 18623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18624 shlibpath_var=LD_LIBRARY_PATH 18625 shlibpath_overrides_runpath=no 18626 hardcode_into_libs=yes 18627 ;; 18628 18629uts4*) 18630 version_type=linux # correct to gnu/linux during the next big refactor 18631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18632 soname_spec='$libname$release$shared_ext$major' 18633 shlibpath_var=LD_LIBRARY_PATH 18634 ;; 18635 18636*) 18637 dynamic_linker=no 18638 ;; 18639esac 18640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18641printf "%s\n" "$dynamic_linker" >&6; } 18642test no = "$dynamic_linker" && can_build_shared=no 18643 18644variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18645if test yes = "$GCC"; then 18646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18647fi 18648 18649if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18650 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18651fi 18652 18653if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18654 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18655fi 18656 18657# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18658configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18659 18660# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18661func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18662 18663# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18664configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18763printf %s "checking how to hardcode library paths into programs... " >&6; } 18764hardcode_action= 18765if test -n "$hardcode_libdir_flag_spec" || 18766 test -n "$runpath_var" || 18767 test yes = "$hardcode_automatic"; then 18768 18769 # We can hardcode non-existent directories. 18770 if test no != "$hardcode_direct" && 18771 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18772 # have to relink, otherwise we might link with an installed library 18773 # when we should be linking with a yet-to-be-installed one 18774 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18775 test no != "$hardcode_minus_L"; then 18776 # Linking always hardcodes the temporary library directory. 18777 hardcode_action=relink 18778 else 18779 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18780 hardcode_action=immediate 18781 fi 18782else 18783 # We cannot hardcode anything, or else we can only hardcode existing 18784 # directories. 18785 hardcode_action=unsupported 18786fi 18787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18788printf "%s\n" "$hardcode_action" >&6; } 18789 18790if test relink = "$hardcode_action" || 18791 test yes = "$inherit_rpath"; then 18792 # Fast installation is not supported 18793 enable_fast_install=no 18794elif test yes = "$shlibpath_overrides_runpath" || 18795 test no = "$enable_shared"; then 18796 # Fast installation is not necessary 18797 enable_fast_install=needless 18798fi 18799 18800 18801 18802 18803 18804 18805 if test yes != "$enable_dlopen"; then 18806 enable_dlopen=unknown 18807 enable_dlopen_self=unknown 18808 enable_dlopen_self_static=unknown 18809else 18810 lt_cv_dlopen=no 18811 lt_cv_dlopen_libs= 18812 18813 case $host_os in 18814 beos*) 18815 lt_cv_dlopen=load_add_on 18816 lt_cv_dlopen_libs= 18817 lt_cv_dlopen_self=yes 18818 ;; 18819 18820 mingw* | pw32* | cegcc*) 18821 lt_cv_dlopen=LoadLibrary 18822 lt_cv_dlopen_libs= 18823 ;; 18824 18825 cygwin*) 18826 lt_cv_dlopen=dlopen 18827 lt_cv_dlopen_libs= 18828 ;; 18829 18830 darwin*) 18831 # if libdl is installed we need to link against it 18832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18833printf %s "checking for dlopen in -ldl... " >&6; } 18834if test ${ac_cv_lib_dl_dlopen+y} 18835then : 18836 printf %s "(cached) " >&6 18837else $as_nop 18838 ac_check_lib_save_LIBS=$LIBS 18839LIBS="-ldl $LIBS" 18840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18841/* end confdefs.h. */ 18842 18843/* Override any GCC internal prototype to avoid an error. 18844 Use char because int might match the return type of a GCC 18845 builtin and then its argument prototype would still apply. */ 18846char dlopen (); 18847int 18848main (void) 18849{ 18850return dlopen (); 18851 ; 18852 return 0; 18853} 18854_ACEOF 18855if ac_fn_c_try_link "$LINENO" 18856then : 18857 ac_cv_lib_dl_dlopen=yes 18858else $as_nop 18859 ac_cv_lib_dl_dlopen=no 18860fi 18861rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18862 conftest$ac_exeext conftest.$ac_ext 18863LIBS=$ac_check_lib_save_LIBS 18864fi 18865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18866printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18867if test "x$ac_cv_lib_dl_dlopen" = xyes 18868then : 18869 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18870else $as_nop 18871 18872 lt_cv_dlopen=dyld 18873 lt_cv_dlopen_libs= 18874 lt_cv_dlopen_self=yes 18875 18876fi 18877 18878 ;; 18879 18880 tpf*) 18881 # Don't try to run any link tests for TPF. We know it's impossible 18882 # because TPF is a cross-compiler, and we know how we open DSOs. 18883 lt_cv_dlopen=dlopen 18884 lt_cv_dlopen_libs= 18885 lt_cv_dlopen_self=no 18886 ;; 18887 18888 *) 18889 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18890if test "x$ac_cv_func_shl_load" = xyes 18891then : 18892 lt_cv_dlopen=shl_load 18893else $as_nop 18894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18895printf %s "checking for shl_load in -ldld... " >&6; } 18896if test ${ac_cv_lib_dld_shl_load+y} 18897then : 18898 printf %s "(cached) " >&6 18899else $as_nop 18900 ac_check_lib_save_LIBS=$LIBS 18901LIBS="-ldld $LIBS" 18902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18903/* end confdefs.h. */ 18904 18905/* Override any GCC internal prototype to avoid an error. 18906 Use char because int might match the return type of a GCC 18907 builtin and then its argument prototype would still apply. */ 18908char shl_load (); 18909int 18910main (void) 18911{ 18912return shl_load (); 18913 ; 18914 return 0; 18915} 18916_ACEOF 18917if ac_fn_c_try_link "$LINENO" 18918then : 18919 ac_cv_lib_dld_shl_load=yes 18920else $as_nop 18921 ac_cv_lib_dld_shl_load=no 18922fi 18923rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18924 conftest$ac_exeext conftest.$ac_ext 18925LIBS=$ac_check_lib_save_LIBS 18926fi 18927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18928printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18929if test "x$ac_cv_lib_dld_shl_load" = xyes 18930then : 18931 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18932else $as_nop 18933 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18934if test "x$ac_cv_func_dlopen" = xyes 18935then : 18936 lt_cv_dlopen=dlopen 18937else $as_nop 18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18939printf %s "checking for dlopen in -ldl... " >&6; } 18940if test ${ac_cv_lib_dl_dlopen+y} 18941then : 18942 printf %s "(cached) " >&6 18943else $as_nop 18944 ac_check_lib_save_LIBS=$LIBS 18945LIBS="-ldl $LIBS" 18946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18947/* end confdefs.h. */ 18948 18949/* Override any GCC internal prototype to avoid an error. 18950 Use char because int might match the return type of a GCC 18951 builtin and then its argument prototype would still apply. */ 18952char dlopen (); 18953int 18954main (void) 18955{ 18956return dlopen (); 18957 ; 18958 return 0; 18959} 18960_ACEOF 18961if ac_fn_c_try_link "$LINENO" 18962then : 18963 ac_cv_lib_dl_dlopen=yes 18964else $as_nop 18965 ac_cv_lib_dl_dlopen=no 18966fi 18967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18968 conftest$ac_exeext conftest.$ac_ext 18969LIBS=$ac_check_lib_save_LIBS 18970fi 18971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18972printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18973if test "x$ac_cv_lib_dl_dlopen" = xyes 18974then : 18975 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18976else $as_nop 18977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18978printf %s "checking for dlopen in -lsvld... " >&6; } 18979if test ${ac_cv_lib_svld_dlopen+y} 18980then : 18981 printf %s "(cached) " >&6 18982else $as_nop 18983 ac_check_lib_save_LIBS=$LIBS 18984LIBS="-lsvld $LIBS" 18985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18986/* end confdefs.h. */ 18987 18988/* Override any GCC internal prototype to avoid an error. 18989 Use char because int might match the return type of a GCC 18990 builtin and then its argument prototype would still apply. */ 18991char dlopen (); 18992int 18993main (void) 18994{ 18995return dlopen (); 18996 ; 18997 return 0; 18998} 18999_ACEOF 19000if ac_fn_c_try_link "$LINENO" 19001then : 19002 ac_cv_lib_svld_dlopen=yes 19003else $as_nop 19004 ac_cv_lib_svld_dlopen=no 19005fi 19006rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19007 conftest$ac_exeext conftest.$ac_ext 19008LIBS=$ac_check_lib_save_LIBS 19009fi 19010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19011printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 19012if test "x$ac_cv_lib_svld_dlopen" = xyes 19013then : 19014 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19015else $as_nop 19016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19017printf %s "checking for dld_link in -ldld... " >&6; } 19018if test ${ac_cv_lib_dld_dld_link+y} 19019then : 19020 printf %s "(cached) " >&6 19021else $as_nop 19022 ac_check_lib_save_LIBS=$LIBS 19023LIBS="-ldld $LIBS" 19024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19025/* end confdefs.h. */ 19026 19027/* Override any GCC internal prototype to avoid an error. 19028 Use char because int might match the return type of a GCC 19029 builtin and then its argument prototype would still apply. */ 19030char dld_link (); 19031int 19032main (void) 19033{ 19034return dld_link (); 19035 ; 19036 return 0; 19037} 19038_ACEOF 19039if ac_fn_c_try_link "$LINENO" 19040then : 19041 ac_cv_lib_dld_dld_link=yes 19042else $as_nop 19043 ac_cv_lib_dld_dld_link=no 19044fi 19045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19046 conftest$ac_exeext conftest.$ac_ext 19047LIBS=$ac_check_lib_save_LIBS 19048fi 19049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19050printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 19051if test "x$ac_cv_lib_dld_dld_link" = xyes 19052then : 19053 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19054fi 19055 19056 19057fi 19058 19059 19060fi 19061 19062 19063fi 19064 19065 19066fi 19067 19068 19069fi 19070 19071 ;; 19072 esac 19073 19074 if test no = "$lt_cv_dlopen"; then 19075 enable_dlopen=no 19076 else 19077 enable_dlopen=yes 19078 fi 19079 19080 case $lt_cv_dlopen in 19081 dlopen) 19082 save_CPPFLAGS=$CPPFLAGS 19083 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19084 19085 save_LDFLAGS=$LDFLAGS 19086 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19087 19088 save_LIBS=$LIBS 19089 LIBS="$lt_cv_dlopen_libs $LIBS" 19090 19091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19092printf %s "checking whether a program can dlopen itself... " >&6; } 19093if test ${lt_cv_dlopen_self+y} 19094then : 19095 printf %s "(cached) " >&6 19096else $as_nop 19097 if test yes = "$cross_compiling"; then : 19098 lt_cv_dlopen_self=cross 19099else 19100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19101 lt_status=$lt_dlunknown 19102 cat > conftest.$ac_ext <<_LT_EOF 19103#line $LINENO "configure" 19104#include "confdefs.h" 19105 19106#if HAVE_DLFCN_H 19107#include <dlfcn.h> 19108#endif 19109 19110#include <stdio.h> 19111 19112#ifdef RTLD_GLOBAL 19113# define LT_DLGLOBAL RTLD_GLOBAL 19114#else 19115# ifdef DL_GLOBAL 19116# define LT_DLGLOBAL DL_GLOBAL 19117# else 19118# define LT_DLGLOBAL 0 19119# endif 19120#endif 19121 19122/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19123 find out it does not work in some platform. */ 19124#ifndef LT_DLLAZY_OR_NOW 19125# ifdef RTLD_LAZY 19126# define LT_DLLAZY_OR_NOW RTLD_LAZY 19127# else 19128# ifdef DL_LAZY 19129# define LT_DLLAZY_OR_NOW DL_LAZY 19130# else 19131# ifdef RTLD_NOW 19132# define LT_DLLAZY_OR_NOW RTLD_NOW 19133# else 19134# ifdef DL_NOW 19135# define LT_DLLAZY_OR_NOW DL_NOW 19136# else 19137# define LT_DLLAZY_OR_NOW 0 19138# endif 19139# endif 19140# endif 19141# endif 19142#endif 19143 19144/* When -fvisibility=hidden is used, assume the code has been annotated 19145 correspondingly for the symbols needed. */ 19146#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19147int fnord () __attribute__((visibility("default"))); 19148#endif 19149 19150int fnord () { return 42; } 19151int main () 19152{ 19153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19154 int status = $lt_dlunknown; 19155 19156 if (self) 19157 { 19158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19159 else 19160 { 19161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19162 else puts (dlerror ()); 19163 } 19164 /* dlclose (self); */ 19165 } 19166 else 19167 puts (dlerror ()); 19168 19169 return status; 19170} 19171_LT_EOF 19172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19173 (eval $ac_link) 2>&5 19174 ac_status=$? 19175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19176 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19177 (./conftest; exit; ) >&5 2>/dev/null 19178 lt_status=$? 19179 case x$lt_status in 19180 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19181 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19182 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19183 esac 19184 else : 19185 # compilation failed 19186 lt_cv_dlopen_self=no 19187 fi 19188fi 19189rm -fr conftest* 19190 19191 19192fi 19193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19194printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19195 19196 if test yes = "$lt_cv_dlopen_self"; then 19197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19199printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19200if test ${lt_cv_dlopen_self_static+y} 19201then : 19202 printf %s "(cached) " >&6 19203else $as_nop 19204 if test yes = "$cross_compiling"; then : 19205 lt_cv_dlopen_self_static=cross 19206else 19207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19208 lt_status=$lt_dlunknown 19209 cat > conftest.$ac_ext <<_LT_EOF 19210#line $LINENO "configure" 19211#include "confdefs.h" 19212 19213#if HAVE_DLFCN_H 19214#include <dlfcn.h> 19215#endif 19216 19217#include <stdio.h> 19218 19219#ifdef RTLD_GLOBAL 19220# define LT_DLGLOBAL RTLD_GLOBAL 19221#else 19222# ifdef DL_GLOBAL 19223# define LT_DLGLOBAL DL_GLOBAL 19224# else 19225# define LT_DLGLOBAL 0 19226# endif 19227#endif 19228 19229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19230 find out it does not work in some platform. */ 19231#ifndef LT_DLLAZY_OR_NOW 19232# ifdef RTLD_LAZY 19233# define LT_DLLAZY_OR_NOW RTLD_LAZY 19234# else 19235# ifdef DL_LAZY 19236# define LT_DLLAZY_OR_NOW DL_LAZY 19237# else 19238# ifdef RTLD_NOW 19239# define LT_DLLAZY_OR_NOW RTLD_NOW 19240# else 19241# ifdef DL_NOW 19242# define LT_DLLAZY_OR_NOW DL_NOW 19243# else 19244# define LT_DLLAZY_OR_NOW 0 19245# endif 19246# endif 19247# endif 19248# endif 19249#endif 19250 19251/* When -fvisibility=hidden is used, assume the code has been annotated 19252 correspondingly for the symbols needed. */ 19253#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19254int fnord () __attribute__((visibility("default"))); 19255#endif 19256 19257int fnord () { return 42; } 19258int main () 19259{ 19260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19261 int status = $lt_dlunknown; 19262 19263 if (self) 19264 { 19265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19266 else 19267 { 19268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19269 else puts (dlerror ()); 19270 } 19271 /* dlclose (self); */ 19272 } 19273 else 19274 puts (dlerror ()); 19275 19276 return status; 19277} 19278_LT_EOF 19279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19280 (eval $ac_link) 2>&5 19281 ac_status=$? 19282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19283 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19284 (./conftest; exit; ) >&5 2>/dev/null 19285 lt_status=$? 19286 case x$lt_status in 19287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19290 esac 19291 else : 19292 # compilation failed 19293 lt_cv_dlopen_self_static=no 19294 fi 19295fi 19296rm -fr conftest* 19297 19298 19299fi 19300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19301printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19302 fi 19303 19304 CPPFLAGS=$save_CPPFLAGS 19305 LDFLAGS=$save_LDFLAGS 19306 LIBS=$save_LIBS 19307 ;; 19308 esac 19309 19310 case $lt_cv_dlopen_self in 19311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19312 *) enable_dlopen_self=unknown ;; 19313 esac 19314 19315 case $lt_cv_dlopen_self_static in 19316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19317 *) enable_dlopen_self_static=unknown ;; 19318 esac 19319fi 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337striplib= 19338old_striplib= 19339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19340printf %s "checking whether stripping libraries is possible... " >&6; } 19341if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19343 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19345printf "%s\n" "yes" >&6; } 19346else 19347# FIXME - insert some real tests, host_os isn't really good enough 19348 case $host_os in 19349 darwin*) 19350 if test -n "$STRIP"; then 19351 striplib="$STRIP -x" 19352 old_striplib="$STRIP -S" 19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19354printf "%s\n" "yes" >&6; } 19355 else 19356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19357printf "%s\n" "no" >&6; } 19358 fi 19359 ;; 19360 *) 19361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19362printf "%s\n" "no" >&6; } 19363 ;; 19364 esac 19365fi 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 # Report what library types will actually be built 19379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19380printf %s "checking if libtool supports shared libraries... " >&6; } 19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19382printf "%s\n" "$can_build_shared" >&6; } 19383 19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19385printf %s "checking whether to build shared libraries... " >&6; } 19386 test no = "$can_build_shared" && enable_shared=no 19387 19388 # On AIX, shared libraries and static libraries use the same namespace, and 19389 # are all built from PIC. 19390 case $host_os in 19391 aix3*) 19392 test yes = "$enable_shared" && enable_static=no 19393 if test -n "$RANLIB"; then 19394 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19395 postinstall_cmds='$RANLIB $lib' 19396 fi 19397 ;; 19398 19399 aix[4-9]*) 19400 if test ia64 != "$host_cpu"; then 19401 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19402 yes,aix,yes) ;; # shared object as lib.so file only 19403 yes,svr4,*) ;; # shared object as lib.so archive member only 19404 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19405 esac 19406 fi 19407 ;; 19408 esac 19409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19410printf "%s\n" "$enable_shared" >&6; } 19411 19412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19413printf %s "checking whether to build static libraries... " >&6; } 19414 # Make sure either enable_shared or enable_static is yes. 19415 test yes = "$enable_shared" || enable_static=yes 19416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19417printf "%s\n" "$enable_static" >&6; } 19418 19419 19420 19421 19422fi 19423ac_ext=c 19424ac_cpp='$CPP $CPPFLAGS' 19425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19427ac_compiler_gnu=$ac_cv_c_compiler_gnu 19428 19429CC=$lt_save_CC 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 ac_config_commands="$ac_config_commands libtool" 19446 19447 19448 19449 19450# Only expand once: 19451 19452 19453 19454# Checks for programs. 19455 19456 19457if test "x$GCC" = "xyes"; then 19458 CPPFLAGS="$CPPFLAGS -Wall" 19459fi 19460 19461 19462 19463# Define a configure option for an alternate module directory 19464 19465# Check whether --with-xorg-module-dir was given. 19466if test ${with_xorg_module_dir+y} 19467then : 19468 withval=$with_xorg_module_dir; moduledir="$withval" 19469else $as_nop 19470 moduledir="$libdir/xorg/modules" 19471fi 19472 19473 19474# Store the list of server defined optional extensions in REQUIRED_MODULES 19475 19476 19477 SAVE_CFLAGS="$CFLAGS" 19478 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19480/* end confdefs.h. */ 19481 19482#include "xorg-server.h" 19483#if !defined RANDR 19484#error RANDR not defined 19485#endif 19486 19487int 19488main (void) 19489{ 19490 19491 ; 19492 return 0; 19493} 19494_ACEOF 19495if ac_fn_c_try_compile "$LINENO" 19496then : 19497 _EXT_CHECK=yes 19498else $as_nop 19499 _EXT_CHECK=no 19500fi 19501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19502 CFLAGS="$SAVE_CFLAGS" 19503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19504printf %s "checking if RANDR is defined... " >&6; } 19505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19506printf "%s\n" "$_EXT_CHECK" >&6; } 19507 if test "$_EXT_CHECK" != no; then 19508 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19509 fi 19510 19511 19512 19513 SAVE_CFLAGS="$CFLAGS" 19514 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19516/* end confdefs.h. */ 19517 19518#include "xorg-server.h" 19519#if !defined RENDER 19520#error RENDER not defined 19521#endif 19522 19523int 19524main (void) 19525{ 19526 19527 ; 19528 return 0; 19529} 19530_ACEOF 19531if ac_fn_c_try_compile "$LINENO" 19532then : 19533 _EXT_CHECK=yes 19534else $as_nop 19535 _EXT_CHECK=no 19536fi 19537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19538 CFLAGS="$SAVE_CFLAGS" 19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19540printf %s "checking if RENDER is defined... " >&6; } 19541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19542printf "%s\n" "$_EXT_CHECK" >&6; } 19543 if test "$_EXT_CHECK" != no; then 19544 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19545 fi 19546 19547 19548 19549 SAVE_CFLAGS="$CFLAGS" 19550 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19552/* end confdefs.h. */ 19553 19554#include "xorg-server.h" 19555#if !defined XV 19556#error XV not defined 19557#endif 19558 19559int 19560main (void) 19561{ 19562 19563 ; 19564 return 0; 19565} 19566_ACEOF 19567if ac_fn_c_try_compile "$LINENO" 19568then : 19569 _EXT_CHECK=yes 19570else $as_nop 19571 _EXT_CHECK=no 19572fi 19573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19574 CFLAGS="$SAVE_CFLAGS" 19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19576printf %s "checking if XV is defined... " >&6; } 19577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19578printf "%s\n" "$_EXT_CHECK" >&6; } 19579 if test "$_EXT_CHECK" != no; then 19580 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19581 fi 19582 19583 19584 19585 SAVE_CFLAGS="$CFLAGS" 19586 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19588/* end confdefs.h. */ 19589 19590#include "xorg-server.h" 19591#if !defined DPMSExtension 19592#error DPMSExtension not defined 19593#endif 19594 19595int 19596main (void) 19597{ 19598 19599 ; 19600 return 0; 19601} 19602_ACEOF 19603if ac_fn_c_try_compile "$LINENO" 19604then : 19605 _EXT_CHECK=yes 19606else $as_nop 19607 _EXT_CHECK=no 19608fi 19609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19610 CFLAGS="$SAVE_CFLAGS" 19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19612printf %s "checking if DPMSExtension is defined... " >&6; } 19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19614printf "%s\n" "$_EXT_CHECK" >&6; } 19615 if test "$_EXT_CHECK" != no; then 19616 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19617 fi 19618 19619 19620# Checks for libraries. 19621 19622pkg_failed=no 19623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 2.4.89" >&5 19624printf %s "checking for libdrm >= 2.4.89... " >&6; } 19625 19626if test -n "$LIBDRM_CFLAGS"; then 19627 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 19628 elif test -n "$PKG_CONFIG"; then 19629 if test -n "$PKG_CONFIG" && \ 19630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5 19631 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5 19632 ac_status=$? 19633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19634 test $ac_status = 0; }; then 19635 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.89" 2>/dev/null` 19636 test "x$?" != "x0" && pkg_failed=yes 19637else 19638 pkg_failed=yes 19639fi 19640 else 19641 pkg_failed=untried 19642fi 19643if test -n "$LIBDRM_LIBS"; then 19644 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 19645 elif test -n "$PKG_CONFIG"; then 19646 if test -n "$PKG_CONFIG" && \ 19647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5 19648 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5 19649 ac_status=$? 19650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19651 test $ac_status = 0; }; then 19652 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.89" 2>/dev/null` 19653 test "x$?" != "x0" && pkg_failed=yes 19654else 19655 pkg_failed=yes 19656fi 19657 else 19658 pkg_failed=untried 19659fi 19660 19661 19662 19663if test $pkg_failed = yes; then 19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19665printf "%s\n" "no" >&6; } 19666 19667if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19668 _pkg_short_errors_supported=yes 19669else 19670 _pkg_short_errors_supported=no 19671fi 19672 if test $_pkg_short_errors_supported = yes; then 19673 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1` 19674 else 19675 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1` 19676 fi 19677 # Put the nasty error message in config.log where it belongs 19678 echo "$LIBDRM_PKG_ERRORS" >&5 19679 19680 as_fn_error $? "Package requirements (libdrm >= 2.4.89) were not met: 19681 19682$LIBDRM_PKG_ERRORS 19683 19684Consider adjusting the PKG_CONFIG_PATH environment variable if you 19685installed software in a non-standard prefix. 19686 19687Alternatively, you may set the environment variables LIBDRM_CFLAGS 19688and LIBDRM_LIBS to avoid the need to call pkg-config. 19689See the pkg-config man page for more details." "$LINENO" 5 19690elif test $pkg_failed = untried; then 19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19692printf "%s\n" "no" >&6; } 19693 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19694printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19695as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19696is in your PATH or set the PKG_CONFIG environment variable to the full 19697path to pkg-config. 19698 19699Alternatively, you may set the environment variables LIBDRM_CFLAGS 19700and LIBDRM_LIBS to avoid the need to call pkg-config. 19701See the pkg-config man page for more details. 19702 19703To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19704See \`config.log' for more details" "$LINENO" 5; } 19705else 19706 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 19707 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19709printf "%s\n" "yes" >&6; } 19710 19711fi 19712 19713pkg_failed=no 19714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm_amdgpu >= 2.4.76" >&5 19715printf %s "checking for libdrm_amdgpu >= 2.4.76... " >&6; } 19716 19717if test -n "$LIBDRM_AMDGPU_CFLAGS"; then 19718 pkg_cv_LIBDRM_AMDGPU_CFLAGS="$LIBDRM_AMDGPU_CFLAGS" 19719 elif test -n "$PKG_CONFIG"; then 19720 if test -n "$PKG_CONFIG" && \ 19721 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu >= 2.4.76\""; } >&5 19722 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.76") 2>&5 19723 ac_status=$? 19724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19725 test $ac_status = 0; }; then 19726 pkg_cv_LIBDRM_AMDGPU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_amdgpu >= 2.4.76" 2>/dev/null` 19727 test "x$?" != "x0" && pkg_failed=yes 19728else 19729 pkg_failed=yes 19730fi 19731 else 19732 pkg_failed=untried 19733fi 19734if test -n "$LIBDRM_AMDGPU_LIBS"; then 19735 pkg_cv_LIBDRM_AMDGPU_LIBS="$LIBDRM_AMDGPU_LIBS" 19736 elif test -n "$PKG_CONFIG"; then 19737 if test -n "$PKG_CONFIG" && \ 19738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu >= 2.4.76\""; } >&5 19739 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.76") 2>&5 19740 ac_status=$? 19741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19742 test $ac_status = 0; }; then 19743 pkg_cv_LIBDRM_AMDGPU_LIBS=`$PKG_CONFIG --libs "libdrm_amdgpu >= 2.4.76" 2>/dev/null` 19744 test "x$?" != "x0" && pkg_failed=yes 19745else 19746 pkg_failed=yes 19747fi 19748 else 19749 pkg_failed=untried 19750fi 19751 19752 19753 19754if test $pkg_failed = yes; then 19755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19756printf "%s\n" "no" >&6; } 19757 19758if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19759 _pkg_short_errors_supported=yes 19760else 19761 _pkg_short_errors_supported=no 19762fi 19763 if test $_pkg_short_errors_supported = yes; then 19764 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.76" 2>&1` 19765 else 19766 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.76" 2>&1` 19767 fi 19768 # Put the nasty error message in config.log where it belongs 19769 echo "$LIBDRM_AMDGPU_PKG_ERRORS" >&5 19770 19771 as_fn_error $? "Package requirements (libdrm_amdgpu >= 2.4.76) were not met: 19772 19773$LIBDRM_AMDGPU_PKG_ERRORS 19774 19775Consider adjusting the PKG_CONFIG_PATH environment variable if you 19776installed software in a non-standard prefix. 19777 19778Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS 19779and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config. 19780See the pkg-config man page for more details." "$LINENO" 5 19781elif test $pkg_failed = untried; then 19782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19783printf "%s\n" "no" >&6; } 19784 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19785printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19786as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19787is in your PATH or set the PKG_CONFIG environment variable to the full 19788path to pkg-config. 19789 19790Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS 19791and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config. 19792See the pkg-config man page for more details. 19793 19794To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19795See \`config.log' for more details" "$LINENO" 5; } 19796else 19797 LIBDRM_AMDGPU_CFLAGS=$pkg_cv_LIBDRM_AMDGPU_CFLAGS 19798 LIBDRM_AMDGPU_LIBS=$pkg_cv_LIBDRM_AMDGPU_LIBS 19799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19800printf "%s\n" "yes" >&6; } 19801 19802fi 19803 19804pkg_failed=no 19805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm" >&5 19806printf %s "checking for gbm... " >&6; } 19807 19808if test -n "$GBM_CFLAGS"; then 19809 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 19810 elif test -n "$PKG_CONFIG"; then 19811 if test -n "$PKG_CONFIG" && \ 19812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 19813 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 19814 ac_status=$? 19815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19816 test $ac_status = 0; }; then 19817 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm" 2>/dev/null` 19818 test "x$?" != "x0" && pkg_failed=yes 19819else 19820 pkg_failed=yes 19821fi 19822 else 19823 pkg_failed=untried 19824fi 19825if test -n "$GBM_LIBS"; then 19826 pkg_cv_GBM_LIBS="$GBM_LIBS" 19827 elif test -n "$PKG_CONFIG"; then 19828 if test -n "$PKG_CONFIG" && \ 19829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 19830 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 19831 ac_status=$? 19832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19833 test $ac_status = 0; }; then 19834 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm" 2>/dev/null` 19835 test "x$?" != "x0" && pkg_failed=yes 19836else 19837 pkg_failed=yes 19838fi 19839 else 19840 pkg_failed=untried 19841fi 19842 19843 19844 19845if test $pkg_failed = yes; then 19846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19847printf "%s\n" "no" >&6; } 19848 19849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19850 _pkg_short_errors_supported=yes 19851else 19852 _pkg_short_errors_supported=no 19853fi 19854 if test $_pkg_short_errors_supported = yes; then 19855 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm" 2>&1` 19856 else 19857 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm" 2>&1` 19858 fi 19859 # Put the nasty error message in config.log where it belongs 19860 echo "$GBM_PKG_ERRORS" >&5 19861 19862 as_fn_error $? "Package requirements (gbm) were not met: 19863 19864$GBM_PKG_ERRORS 19865 19866Consider adjusting the PKG_CONFIG_PATH environment variable if you 19867installed software in a non-standard prefix. 19868 19869Alternatively, you may set the environment variables GBM_CFLAGS 19870and GBM_LIBS to avoid the need to call pkg-config. 19871See the pkg-config man page for more details." "$LINENO" 5 19872elif test $pkg_failed = untried; then 19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19874printf "%s\n" "no" >&6; } 19875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19876printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19877as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19878is in your PATH or set the PKG_CONFIG environment variable to the full 19879path to pkg-config. 19880 19881Alternatively, you may set the environment variables GBM_CFLAGS 19882and GBM_LIBS to avoid the need to call pkg-config. 19883See the pkg-config man page for more details. 19884 19885To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19886See \`config.log' for more details" "$LINENO" 5; } 19887else 19888 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 19889 GBM_LIBS=$pkg_cv_GBM_LIBS 19890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19891printf "%s\n" "yes" >&6; } 19892 19893fi 19894 19895# Obtain compiler/linker options for the driver dependencies 19896 19897pkg_failed=no 19898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" >&5 19899printf %s "checking for xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES... " >&6; } 19900 19901if test -n "$XORG_CFLAGS"; then 19902 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19903 elif test -n "$PKG_CONFIG"; then 19904 if test -n "$PKG_CONFIG" && \ 19905 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19906 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19907 ac_status=$? 19908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19909 test $ac_status = 0; }; then 19910 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19911 test "x$?" != "x0" && pkg_failed=yes 19912else 19913 pkg_failed=yes 19914fi 19915 else 19916 pkg_failed=untried 19917fi 19918if test -n "$XORG_LIBS"; then 19919 pkg_cv_XORG_LIBS="$XORG_LIBS" 19920 elif test -n "$PKG_CONFIG"; then 19921 if test -n "$PKG_CONFIG" && \ 19922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19923 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19924 ac_status=$? 19925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19926 test $ac_status = 0; }; then 19927 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19928 test "x$?" != "x0" && pkg_failed=yes 19929else 19930 pkg_failed=yes 19931fi 19932 else 19933 pkg_failed=untried 19934fi 19935 19936 19937 19938if test $pkg_failed = yes; then 19939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19940printf "%s\n" "no" >&6; } 19941 19942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19943 _pkg_short_errors_supported=yes 19944else 19945 _pkg_short_errors_supported=no 19946fi 19947 if test $_pkg_short_errors_supported = yes; then 19948 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19949 else 19950 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19951 fi 19952 # Put the nasty error message in config.log where it belongs 19953 echo "$XORG_PKG_ERRORS" >&5 19954 19955 as_fn_error $? "Package requirements (xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met: 19956 19957$XORG_PKG_ERRORS 19958 19959Consider adjusting the PKG_CONFIG_PATH environment variable if you 19960installed software in a non-standard prefix. 19961 19962Alternatively, you may set the environment variables XORG_CFLAGS 19963and XORG_LIBS to avoid the need to call pkg-config. 19964See the pkg-config man page for more details." "$LINENO" 5 19965elif test $pkg_failed = untried; then 19966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19967printf "%s\n" "no" >&6; } 19968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19969printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19970as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19971is in your PATH or set the PKG_CONFIG environment variable to the full 19972path to pkg-config. 19973 19974Alternatively, you may set the environment variables XORG_CFLAGS 19975and XORG_LIBS to avoid the need to call pkg-config. 19976See the pkg-config man page for more details. 19977 19978To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19979See \`config.log' for more details" "$LINENO" 5; } 19980else 19981 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19982 XORG_LIBS=$pkg_cv_XORG_LIBS 19983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19984printf "%s\n" "yes" >&6; } 19985 19986fi 19987 19988pkg_failed=no 19989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xextproto >= 7.0.99.1" >&5 19990printf %s "checking for xextproto >= 7.0.99.1... " >&6; } 19991 19992if test -n "$XEXT_CFLAGS"; then 19993 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19994 elif test -n "$PKG_CONFIG"; then 19995 if test -n "$PKG_CONFIG" && \ 19996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19997 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19998 ac_status=$? 19999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20000 test $ac_status = 0; }; then 20001 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 20002 test "x$?" != "x0" && pkg_failed=yes 20003else 20004 pkg_failed=yes 20005fi 20006 else 20007 pkg_failed=untried 20008fi 20009if test -n "$XEXT_LIBS"; then 20010 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 20011 elif test -n "$PKG_CONFIG"; then 20012 if test -n "$PKG_CONFIG" && \ 20013 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 20014 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 20015 ac_status=$? 20016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20017 test $ac_status = 0; }; then 20018 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 20019 test "x$?" != "x0" && pkg_failed=yes 20020else 20021 pkg_failed=yes 20022fi 20023 else 20024 pkg_failed=untried 20025fi 20026 20027 20028 20029if test $pkg_failed = yes; then 20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20031printf "%s\n" "no" >&6; } 20032 20033if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20034 _pkg_short_errors_supported=yes 20035else 20036 _pkg_short_errors_supported=no 20037fi 20038 if test $_pkg_short_errors_supported = yes; then 20039 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 20040 else 20041 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 20042 fi 20043 # Put the nasty error message in config.log where it belongs 20044 echo "$XEXT_PKG_ERRORS" >&5 20045 20046 HAVE_XEXTPROTO_71="no" 20047elif test $pkg_failed = untried; then 20048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20049printf "%s\n" "no" >&6; } 20050 HAVE_XEXTPROTO_71="no" 20051else 20052 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 20053 XEXT_LIBS=$pkg_cv_XEXT_LIBS 20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20055printf "%s\n" "yes" >&6; } 20056 HAVE_XEXTPROTO_71="yes"; 20057printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 20058 20059fi 20060 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 20061 HAVE_XEXTPROTO_71_TRUE= 20062 HAVE_XEXTPROTO_71_FALSE='#' 20063else 20064 HAVE_XEXTPROTO_71_TRUE='#' 20065 HAVE_XEXTPROTO_71_FALSE= 20066fi 20067 20068 20069# Section "OutputClass" is only supported as of xserver 1.16 20070if test -n "$PKG_CONFIG" && \ 20071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5 20072 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5 20073 ac_status=$? 20074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20075 test $ac_status = 0; }; then 20076 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server` 20077else 20078 sysconfigdir="" 20079fi 20080 if test "x$sysconfigdir" != "x"; then 20081 HAS_XORG_CONF_DIR_TRUE= 20082 HAS_XORG_CONF_DIR_FALSE='#' 20083else 20084 HAS_XORG_CONF_DIR_TRUE='#' 20085 HAS_XORG_CONF_DIR_FALSE= 20086fi 20087 20088 20089# Define a configure option for an alternate X Server configuration directory 20090 20091# Check whether --with-xorg-conf-dir was given. 20092if test ${with_xorg_conf_dir+y} 20093then : 20094 withval=$with_xorg_conf_dir; configdir="$withval" 20095else $as_nop 20096 configdir='${prefix}/share/X11/xorg.conf.d' 20097fi 20098 20099 20100 20101# Check whether --enable-udev was given. 20102if test ${enable_udev+y} 20103then : 20104 enableval=$enable_udev; enable_udev="$enableval" 20105else $as_nop 20106 enable_udev=auto 20107fi 20108 20109if test "x$enable_udev" != "xno"; then 20110 20111pkg_failed=no 20112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev" >&5 20113printf %s "checking for libudev... " >&6; } 20114 20115if test -n "$LIBUDEV_CFLAGS"; then 20116 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 20117 elif test -n "$PKG_CONFIG"; then 20118 if test -n "$PKG_CONFIG" && \ 20119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 20120 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 20121 ac_status=$? 20122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20123 test $ac_status = 0; }; then 20124 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 20125 test "x$?" != "x0" && pkg_failed=yes 20126else 20127 pkg_failed=yes 20128fi 20129 else 20130 pkg_failed=untried 20131fi 20132if test -n "$LIBUDEV_LIBS"; then 20133 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 20134 elif test -n "$PKG_CONFIG"; then 20135 if test -n "$PKG_CONFIG" && \ 20136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 20137 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 20138 ac_status=$? 20139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20140 test $ac_status = 0; }; then 20141 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 20142 test "x$?" != "x0" && pkg_failed=yes 20143else 20144 pkg_failed=yes 20145fi 20146 else 20147 pkg_failed=untried 20148fi 20149 20150 20151 20152if test $pkg_failed = yes; then 20153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20154printf "%s\n" "no" >&6; } 20155 20156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20157 _pkg_short_errors_supported=yes 20158else 20159 _pkg_short_errors_supported=no 20160fi 20161 if test $_pkg_short_errors_supported = yes; then 20162 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 20163 else 20164 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 20165 fi 20166 # Put the nasty error message in config.log where it belongs 20167 echo "$LIBUDEV_PKG_ERRORS" >&5 20168 20169 LIBUDEV=no 20170elif test $pkg_failed = untried; then 20171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20172printf "%s\n" "no" >&6; } 20173 LIBUDEV=no 20174else 20175 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 20176 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 20177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20178printf "%s\n" "yes" >&6; } 20179 LIBUDEV=yes 20180fi 20181 if test "x$LIBUDEV" = xyes; then 20182 20183printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h 20184 20185 elif test "x$enable_udev" != "xauto"; then 20186 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5 20187 fi 20188fi 20189 if test x$LIBUDEV = xyes; then 20190 LIBUDEV_TRUE= 20191 LIBUDEV_FALSE='#' 20192else 20193 LIBUDEV_TRUE='#' 20194 LIBUDEV_FALSE= 20195fi 20196 20197 20198SAVE_CPPFLAGS="$CPPFLAGS" 20199CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $GBM_CFLAGS" 20200 20201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5 20202printf %s "checking whether to include GLAMOR support... " >&6; } 20203# Check whether --enable-glamor was given. 20204if test ${enable_glamor+y} 20205then : 20206 enableval=$enable_glamor; GLAMOR="$enableval" 20207else $as_nop 20208 GLAMOR=yes 20209fi 20210 20211 20212if test "x$GLAMOR" != "xno"; then 20213 for ac_header in glamor.h 20214do : 20215 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\" 20216" 20217if test "x$ac_cv_header_glamor_h" = xyes 20218then : 20219 printf "%s\n" "#define HAVE_GLAMOR_H 1" >>confdefs.h 20220 GLAMOR_H="yes" 20221else $as_nop 20222 GLAMOR_H="no" 20223fi 20224 20225done 20226 20227 if test "x$GLAMOR_H" = xyes; then 20228 ac_fn_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\" 20229 #include \"glamor.h\" 20230" "$ac_c_undeclared_builtin_options" "CFLAGS" 20231if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes 20232then : 20233 GLAMOR_XSERVER="yes" 20234else $as_nop 20235 GLAMOR_XSERVER="no" 20236fi 20237 20238 ac_fn_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\" 20239 #include \"glamor.h\" 20240" "$ac_c_undeclared_builtin_options" "CFLAGS" 20241if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes 20242then : 20243 20244printf "%s\n" "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h 20245 20246fi 20247 20248 ac_fn_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\" 20249 #include \"glamor.h\" 20250" "$ac_c_undeclared_builtin_options" "CFLAGS" 20251if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes 20252then : 20253 20254printf "%s\n" "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h 20255 20256fi 20257 20258 ac_fn_check_decl "$LINENO" "glamor_finish" "ac_cv_have_decl_glamor_finish" "#include \"xorg-server.h\" 20259 #include \"glamor.h\" 20260" "$ac_c_undeclared_builtin_options" "CFLAGS" 20261if test "x$ac_cv_have_decl_glamor_finish" = xyes 20262then : 20263 20264printf "%s\n" "#define HAVE_GLAMOR_FINISH 1" >>confdefs.h 20265 20266else $as_nop 20267 20268pkg_failed=no 20269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gl" >&5 20270printf %s "checking for gl... " >&6; } 20271 20272if test -n "$LIBGL_CFLAGS"; then 20273 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS" 20274 elif test -n "$PKG_CONFIG"; then 20275 if test -n "$PKG_CONFIG" && \ 20276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 20277 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 20278 ac_status=$? 20279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20280 test $ac_status = 0; }; then 20281 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null` 20282 test "x$?" != "x0" && pkg_failed=yes 20283else 20284 pkg_failed=yes 20285fi 20286 else 20287 pkg_failed=untried 20288fi 20289if test -n "$LIBGL_LIBS"; then 20290 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS" 20291 elif test -n "$PKG_CONFIG"; then 20292 if test -n "$PKG_CONFIG" && \ 20293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 20294 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 20295 ac_status=$? 20296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20297 test $ac_status = 0; }; then 20298 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null` 20299 test "x$?" != "x0" && pkg_failed=yes 20300else 20301 pkg_failed=yes 20302fi 20303 else 20304 pkg_failed=untried 20305fi 20306 20307 20308 20309if test $pkg_failed = yes; then 20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20311printf "%s\n" "no" >&6; } 20312 20313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20314 _pkg_short_errors_supported=yes 20315else 20316 _pkg_short_errors_supported=no 20317fi 20318 if test $_pkg_short_errors_supported = yes; then 20319 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` 20320 else 20321 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` 20322 fi 20323 # Put the nasty error message in config.log where it belongs 20324 echo "$LIBGL_PKG_ERRORS" >&5 20325 20326 as_fn_error $? "Package requirements (gl) were not met: 20327 20328$LIBGL_PKG_ERRORS 20329 20330Consider adjusting the PKG_CONFIG_PATH environment variable if you 20331installed software in a non-standard prefix. 20332 20333Alternatively, you may set the environment variables LIBGL_CFLAGS 20334and LIBGL_LIBS to avoid the need to call pkg-config. 20335See the pkg-config man page for more details." "$LINENO" 5 20336elif test $pkg_failed = untried; then 20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20338printf "%s\n" "no" >&6; } 20339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20340printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20341as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20342is in your PATH or set the PKG_CONFIG environment variable to the full 20343path to pkg-config. 20344 20345Alternatively, you may set the environment variables LIBGL_CFLAGS 20346and LIBGL_LIBS to avoid the need to call pkg-config. 20347See the pkg-config man page for more details. 20348 20349To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20350See \`config.log' for more details" "$LINENO" 5; } 20351else 20352 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS 20353 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS 20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20355printf "%s\n" "yes" >&6; } 20356 20357fi 20358fi 20359 fi 20360 20361 if test "x$GLAMOR_XSERVER" != xyes; then 20362 20363pkg_failed=no 20364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glamor >= 0.6.0" >&5 20365printf %s "checking for glamor >= 0.6.0... " >&6; } 20366 20367if test -n "$LIBGLAMOR_CFLAGS"; then 20368 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS" 20369 elif test -n "$PKG_CONFIG"; then 20370 if test -n "$PKG_CONFIG" && \ 20371 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 20372 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 20373 ac_status=$? 20374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20375 test $ac_status = 0; }; then 20376 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null` 20377 test "x$?" != "x0" && pkg_failed=yes 20378else 20379 pkg_failed=yes 20380fi 20381 else 20382 pkg_failed=untried 20383fi 20384if test -n "$LIBGLAMOR_LIBS"; then 20385 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS" 20386 elif test -n "$PKG_CONFIG"; then 20387 if test -n "$PKG_CONFIG" && \ 20388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 20389 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 20390 ac_status=$? 20391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20392 test $ac_status = 0; }; then 20393 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null` 20394 test "x$?" != "x0" && pkg_failed=yes 20395else 20396 pkg_failed=yes 20397fi 20398 else 20399 pkg_failed=untried 20400fi 20401 20402 20403 20404if test $pkg_failed = yes; then 20405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20406printf "%s\n" "no" >&6; } 20407 20408if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20409 _pkg_short_errors_supported=yes 20410else 20411 _pkg_short_errors_supported=no 20412fi 20413 if test $_pkg_short_errors_supported = yes; then 20414 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 20415 else 20416 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 20417 fi 20418 # Put the nasty error message in config.log where it belongs 20419 echo "$LIBGLAMOR_PKG_ERRORS" >&5 20420 20421 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met: 20422 20423$LIBGLAMOR_PKG_ERRORS 20424 20425Consider adjusting the PKG_CONFIG_PATH environment variable if you 20426installed software in a non-standard prefix. 20427 20428Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 20429and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 20430See the pkg-config man page for more details." "$LINENO" 5 20431elif test $pkg_failed = untried; then 20432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20433printf "%s\n" "no" >&6; } 20434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20435printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20436as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20437is in your PATH or set the PKG_CONFIG environment variable to the full 20438path to pkg-config. 20439 20440Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 20441and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 20442See the pkg-config man page for more details. 20443 20444To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20445See \`config.log' for more details" "$LINENO" 5; } 20446else 20447 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS 20448 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS 20449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20450printf "%s\n" "yes" >&6; } 20451 20452fi 20453 20454pkg_failed=no 20455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glamor-egl" >&5 20456printf %s "checking for glamor-egl... " >&6; } 20457 20458if test -n "$LIBGLAMOR_EGL_CFLAGS"; then 20459 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS" 20460 elif test -n "$PKG_CONFIG"; then 20461 if test -n "$PKG_CONFIG" && \ 20462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 20463 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 20464 ac_status=$? 20465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20466 test $ac_status = 0; }; then 20467 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null` 20468 test "x$?" != "x0" && pkg_failed=yes 20469else 20470 pkg_failed=yes 20471fi 20472 else 20473 pkg_failed=untried 20474fi 20475if test -n "$LIBGLAMOR_EGL_LIBS"; then 20476 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS" 20477 elif test -n "$PKG_CONFIG"; then 20478 if test -n "$PKG_CONFIG" && \ 20479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 20480 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 20481 ac_status=$? 20482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20483 test $ac_status = 0; }; then 20484 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null` 20485 test "x$?" != "x0" && pkg_failed=yes 20486else 20487 pkg_failed=yes 20488fi 20489 else 20490 pkg_failed=untried 20491fi 20492 20493 20494 20495if test $pkg_failed = yes; then 20496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20497printf "%s\n" "no" >&6; } 20498 20499if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20500 _pkg_short_errors_supported=yes 20501else 20502 _pkg_short_errors_supported=no 20503fi 20504 if test $_pkg_short_errors_supported = yes; then 20505 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1` 20506 else 20507 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1` 20508 fi 20509 # Put the nasty error message in config.log where it belongs 20510 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5 20511 20512 as_fn_error $? "Package requirements (glamor-egl) were not met: 20513 20514$LIBGLAMOR_EGL_PKG_ERRORS 20515 20516Consider adjusting the PKG_CONFIG_PATH environment variable if you 20517installed software in a non-standard prefix. 20518 20519Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 20520and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 20521See the pkg-config man page for more details." "$LINENO" 5 20522elif test $pkg_failed = untried; then 20523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20524printf "%s\n" "no" >&6; } 20525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20526printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20527as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20528is in your PATH or set the PKG_CONFIG environment variable to the full 20529path to pkg-config. 20530 20531Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 20532and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 20533See the pkg-config man page for more details. 20534 20535To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20536See \`config.log' for more details" "$LINENO" 5; } 20537else 20538 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS 20539 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS 20540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20541printf "%s\n" "yes" >&6; } 20542 20543fi 20544 fi 20545 20546printf "%s\n" "#define USE_GLAMOR 1" >>confdefs.h 20547 20548else 20549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5 20550printf "%s\n" "$GLAMOR" >&6; } 20551fi 20552 if test x$GLAMOR != xno; then 20553 GLAMOR_TRUE= 20554 GLAMOR_FALSE='#' 20555else 20556 GLAMOR_TRUE='#' 20557 GLAMOR_FALSE= 20558fi 20559 20560 20561ac_fn_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h> 20562 #include <regionstr.h> 20563" "$ac_c_undeclared_builtin_options" "CFLAGS" 20564if test "x$ac_cv_have_decl_RegionDuplicate" = xyes 20565then : 20566 20567printf "%s\n" "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h 20568 20569fi 20570 20571ac_fn_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h> 20572 #include <X11/Xfuncproto.h> 20573 #include <X11/extensions/renderproto.h> 20574 #include <xorg-server.h> 20575 #include <picture.h> 20576 #include <glyphstr.h> 20577 #include <fbpict.h> 20578" "$ac_c_undeclared_builtin_options" "CFLAGS" 20579if test "x$ac_cv_have_decl_fbGlyphs" = xyes 20580then : 20581 20582printf "%s\n" "#define HAVE_FBGLYPHS 1" >>confdefs.h 20583 20584fi 20585 20586ac_fn_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h> 20587 #include <xf86Cursor.h> 20588" "$ac_c_undeclared_builtin_options" "CFLAGS" 20589if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes 20590then : 20591 20592printf "%s\n" "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h 20593 20594fi 20595 20596ac_fn_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 20597 #include <gbm.h> 20598" "$ac_c_undeclared_builtin_options" "CFLAGS" 20599if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes 20600then : 20601 20602printf "%s\n" "#define HAVE_GBM_BO_USE_LINEAR 1" >>confdefs.h 20603 20604fi 20605 20606ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h> 20607 #include <X11/Xfuncproto.h> 20608 #include <xorg-server.h> 20609 #include <screenint.h> 20610" 20611if test "x$ac_cv_header_misyncshm_h" = xyes 20612then : 20613 printf "%s\n" "#define HAVE_MISYNCSHM_H 1" >>confdefs.h 20614 20615fi 20616 20617 20618ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h> 20619 #include <X11/Xproto.h> 20620 #include \"xorg-server.h\" 20621 #include <X11/X.h> 20622" 20623if test "x$ac_cv_header_present_h" = xyes 20624then : 20625 printf "%s\n" "#define HAVE_PRESENT_H 1" >>confdefs.h 20626 20627fi 20628 20629 20630ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h> 20631 #include <xorg-server.h> 20632" 20633if test "x$ac_cv_header_dri3_h" = xyes 20634then : 20635 printf "%s\n" "#define HAVE_DRI3_H 1" >>confdefs.h 20636 20637fi 20638 20639 20640CPPFLAGS="$SAVE_CPPFLAGS" 20641 20642# Checks for headers/macros for byte swapping 20643# Known variants: 20644# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 20645# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 20646# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 20647# and a fallback to local macros if none of the above are found 20648 20649# if <byteswap.h> is found, assume it's the correct version 20650ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 20651if test "x$ac_cv_header_byteswap_h" = xyes 20652then : 20653 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h 20654 20655fi 20656 20657 20658# if <sys/endian.h> is found, have to check which version 20659ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 20660if test "x$ac_cv_header_sys_endian_h" = xyes 20661then : 20662 HAVE_SYS_ENDIAN_H="yes" 20663else $as_nop 20664 HAVE_SYS_ENDIAN_H="no" 20665fi 20666 20667 20668if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 20669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 20670printf %s "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20672/* end confdefs.h. */ 20673 20674#include <sys/types.h> 20675#include <sys/endian.h> 20676 20677int 20678main (void) 20679{ 20680 20681int a = 1, b; 20682b = __swap16(a); 20683 20684 ; 20685 return 0; 20686} 20687 20688_ACEOF 20689if ac_fn_c_try_link "$LINENO" 20690then : 20691 SYS_ENDIAN__SWAP='yes' 20692else $as_nop 20693 SYS_ENDIAN__SWAP='no' 20694fi 20695rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20696 conftest$ac_exeext conftest.$ac_ext 20697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 20698printf "%s\n" "$SYS_ENDIAN__SWAP" >&6; } 20699 20700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 20701printf %s "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20703/* end confdefs.h. */ 20704 20705#include <sys/types.h> 20706#include <sys/endian.h> 20707 20708int 20709main (void) 20710{ 20711 20712int a = 1, b; 20713b = bswap16(a); 20714 20715 ; 20716 return 0; 20717} 20718 20719_ACEOF 20720if ac_fn_c_try_link "$LINENO" 20721then : 20722 SYS_ENDIAN_BSWAP='yes' 20723else $as_nop 20724 SYS_ENDIAN_BSWAP='no' 20725fi 20726rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20727 conftest$ac_exeext conftest.$ac_ext 20728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 20729printf "%s\n" "$SYS_ENDIAN_BSWAP" >&6; } 20730 20731 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 20732 USE_SYS_ENDIAN_H=yes 20733 BSWAP=bswap 20734 else 20735 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 20736 USE_SYS_ENDIAN_H=yes 20737 BSWAP=__swap 20738 else 20739 USE_SYS_ENDIAN_H=no 20740 fi 20741 fi 20742 20743 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 20744 20745printf "%s\n" "#define USE_SYS_ENDIAN_H 1" >>confdefs.h 20746 20747 20748printf "%s\n" "#define bswap_16 ${BSWAP}16" >>confdefs.h 20749 20750 20751printf "%s\n" "#define bswap_32 ${BSWAP}32" >>confdefs.h 20752 20753 20754printf "%s\n" "#define bswap_64 ${BSWAP}64" >>confdefs.h 20755 20756 fi 20757fi 20758 20759 20760 20761DRIVER_NAME=amdgpu 20762 20763 20764ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile" 20765 20766cat >confcache <<\_ACEOF 20767# This file is a shell script that caches the results of configure 20768# tests run on this system so they can be shared between configure 20769# scripts and configure runs, see configure's option --config-cache. 20770# It is not useful on other systems. If it contains results you don't 20771# want to keep, you may remove or edit it. 20772# 20773# config.status only pays attention to the cache file if you give it 20774# the --recheck option to rerun configure. 20775# 20776# `ac_cv_env_foo' variables (set or unset) will be overridden when 20777# loading this file, other *unset* `ac_cv_foo' will be assigned the 20778# following values. 20779 20780_ACEOF 20781 20782# The following way of writing the cache mishandles newlines in values, 20783# but we know of no workaround that is simple, portable, and efficient. 20784# So, we kill variables containing newlines. 20785# Ultrix sh set writes to stderr and can't be redirected directly, 20786# and sets the high bit in the cache file unless we assign to the vars. 20787( 20788 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20789 eval ac_val=\$$ac_var 20790 case $ac_val in #( 20791 *${as_nl}*) 20792 case $ac_var in #( 20793 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20794printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20795 esac 20796 case $ac_var in #( 20797 _ | IFS | as_nl) ;; #( 20798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20799 *) { eval $ac_var=; unset $ac_var;} ;; 20800 esac ;; 20801 esac 20802 done 20803 20804 (set) 2>&1 | 20805 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20806 *${as_nl}ac_space=\ *) 20807 # `set' does not quote correctly, so add quotes: double-quote 20808 # substitution turns \\\\ into \\, and sed turns \\ into \. 20809 sed -n \ 20810 "s/'/'\\\\''/g; 20811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20812 ;; #( 20813 *) 20814 # `set' quotes correctly as required by POSIX, so do not add quotes. 20815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20816 ;; 20817 esac | 20818 sort 20819) | 20820 sed ' 20821 /^ac_cv_env_/b end 20822 t clear 20823 :clear 20824 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20825 t end 20826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20827 :end' >>confcache 20828if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20829 if test -w "$cache_file"; then 20830 if test "x$cache_file" != "x/dev/null"; then 20831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20832printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20833 if test ! -f "$cache_file" || test -h "$cache_file"; then 20834 cat confcache >"$cache_file" 20835 else 20836 case $cache_file in #( 20837 */* | ?:*) 20838 mv -f confcache "$cache_file"$$ && 20839 mv -f "$cache_file"$$ "$cache_file" ;; #( 20840 *) 20841 mv -f confcache "$cache_file" ;; 20842 esac 20843 fi 20844 fi 20845 else 20846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20847printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20848 fi 20849fi 20850rm -f confcache 20851 20852test "x$prefix" = xNONE && prefix=$ac_default_prefix 20853# Let make expand exec_prefix. 20854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20855 20856DEFS=-DHAVE_CONFIG_H 20857 20858ac_libobjs= 20859ac_ltlibobjs= 20860U= 20861for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20862 # 1. Remove the extension, and $U if already installed. 20863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20864 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20866 # will be set to the directory where LIBOBJS objects are built. 20867 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20868 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20869done 20870LIBOBJS=$ac_libobjs 20871 20872LTLIBOBJS=$ac_ltlibobjs 20873 20874 20875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20876printf %s "checking that generated files are newer than configure... " >&6; } 20877 if test -n "$am_sleep_pid"; then 20878 # Hide warnings about reused PIDs. 20879 wait $am_sleep_pid 2>/dev/null 20880 fi 20881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20882printf "%s\n" "done" >&6; } 20883 if test -n "$EXEEXT"; then 20884 am__EXEEXT_TRUE= 20885 am__EXEEXT_FALSE='#' 20886else 20887 am__EXEEXT_TRUE='#' 20888 am__EXEEXT_FALSE= 20889fi 20890 20891if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20892 as_fn_error $? "conditional \"AMDEP\" was never defined. 20893Usually this means the macro was only invoked conditionally." "$LINENO" 5 20894fi 20895if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20896 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20897Usually this means the macro was only invoked conditionally." "$LINENO" 5 20898fi 20899if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20900 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20901Usually this means the macro was only invoked conditionally." "$LINENO" 5 20902fi 20903if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then 20904 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined. 20905Usually this means the macro was only invoked conditionally." "$LINENO" 5 20906fi 20907if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20908 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20909Usually this means the macro was only invoked conditionally." "$LINENO" 5 20910fi 20911if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 20912 as_fn_error $? "conditional \"GLAMOR\" was never defined. 20913Usually this means the macro was only invoked conditionally." "$LINENO" 5 20914fi 20915 20916: "${CONFIG_STATUS=./config.status}" 20917ac_write_fail=0 20918ac_clean_files_save=$ac_clean_files 20919ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20921printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20922as_write_fail=0 20923cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20924#! $SHELL 20925# Generated by $as_me. 20926# Run this file to recreate the current configuration. 20927# Compiler output produced by configure, useful for debugging 20928# configure, is in config.log if it exists. 20929 20930debug=false 20931ac_cs_recheck=false 20932ac_cs_silent=false 20933 20934SHELL=\${CONFIG_SHELL-$SHELL} 20935export SHELL 20936_ASEOF 20937cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20938## -------------------- ## 20939## M4sh Initialization. ## 20940## -------------------- ## 20941 20942# Be more Bourne compatible 20943DUALCASE=1; export DUALCASE # for MKS sh 20944as_nop=: 20945if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20946then : 20947 emulate sh 20948 NULLCMD=: 20949 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20950 # is contrary to our usage. Disable this feature. 20951 alias -g '${1+"$@"}'='"$@"' 20952 setopt NO_GLOB_SUBST 20953else $as_nop 20954 case `(set -o) 2>/dev/null` in #( 20955 *posix*) : 20956 set -o posix ;; #( 20957 *) : 20958 ;; 20959esac 20960fi 20961 20962 20963 20964# Reset variables that may have inherited troublesome values from 20965# the environment. 20966 20967# IFS needs to be set, to space, tab, and newline, in precisely that order. 20968# (If _AS_PATH_WALK were called with IFS unset, it would have the 20969# side effect of setting IFS to empty, thus disabling word splitting.) 20970# Quoting is to prevent editors from complaining about space-tab. 20971as_nl=' 20972' 20973export as_nl 20974IFS=" "" $as_nl" 20975 20976PS1='$ ' 20977PS2='> ' 20978PS4='+ ' 20979 20980# Ensure predictable behavior from utilities with locale-dependent output. 20981LC_ALL=C 20982export LC_ALL 20983LANGUAGE=C 20984export LANGUAGE 20985 20986# We cannot yet rely on "unset" to work, but we need these variables 20987# to be unset--not just set to an empty or harmless value--now, to 20988# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20989# also avoids known problems related to "unset" and subshell syntax 20990# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20991for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20992do eval test \${$as_var+y} \ 20993 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20994done 20995 20996# Ensure that fds 0, 1, and 2 are open. 20997if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20998if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20999if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 21000 21001# The user is always right. 21002if ${PATH_SEPARATOR+false} :; then 21003 PATH_SEPARATOR=: 21004 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21005 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21006 PATH_SEPARATOR=';' 21007 } 21008fi 21009 21010 21011# Find who we are. Look in the path if we contain no directory separator. 21012as_myself= 21013case $0 in #(( 21014 *[\\/]* ) as_myself=$0 ;; 21015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21016for as_dir in $PATH 21017do 21018 IFS=$as_save_IFS 21019 case $as_dir in #((( 21020 '') as_dir=./ ;; 21021 */) ;; 21022 *) as_dir=$as_dir/ ;; 21023 esac 21024 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21025 done 21026IFS=$as_save_IFS 21027 21028 ;; 21029esac 21030# We did not find ourselves, most probably we were run as `sh COMMAND' 21031# in which case we are not to be found in the path. 21032if test "x$as_myself" = x; then 21033 as_myself=$0 21034fi 21035if test ! -f "$as_myself"; then 21036 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21037 exit 1 21038fi 21039 21040 21041 21042# as_fn_error STATUS ERROR [LINENO LOG_FD] 21043# ---------------------------------------- 21044# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21045# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21046# script with STATUS, using 1 if that was 0. 21047as_fn_error () 21048{ 21049 as_status=$1; test $as_status -eq 0 && as_status=1 21050 if test "$4"; then 21051 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21053 fi 21054 printf "%s\n" "$as_me: error: $2" >&2 21055 as_fn_exit $as_status 21056} # as_fn_error 21057 21058 21059 21060# as_fn_set_status STATUS 21061# ----------------------- 21062# Set $? to STATUS, without forking. 21063as_fn_set_status () 21064{ 21065 return $1 21066} # as_fn_set_status 21067 21068# as_fn_exit STATUS 21069# ----------------- 21070# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21071as_fn_exit () 21072{ 21073 set +e 21074 as_fn_set_status $1 21075 exit $1 21076} # as_fn_exit 21077 21078# as_fn_unset VAR 21079# --------------- 21080# Portably unset VAR. 21081as_fn_unset () 21082{ 21083 { eval $1=; unset $1;} 21084} 21085as_unset=as_fn_unset 21086 21087# as_fn_append VAR VALUE 21088# ---------------------- 21089# Append the text in VALUE to the end of the definition contained in VAR. Take 21090# advantage of any shell optimizations that allow amortized linear growth over 21091# repeated appends, instead of the typical quadratic growth present in naive 21092# implementations. 21093if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21094then : 21095 eval 'as_fn_append () 21096 { 21097 eval $1+=\$2 21098 }' 21099else $as_nop 21100 as_fn_append () 21101 { 21102 eval $1=\$$1\$2 21103 } 21104fi # as_fn_append 21105 21106# as_fn_arith ARG... 21107# ------------------ 21108# Perform arithmetic evaluation on the ARGs, and store the result in the 21109# global $as_val. Take advantage of shells that can avoid forks. The arguments 21110# must be portable across $(()) and expr. 21111if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21112then : 21113 eval 'as_fn_arith () 21114 { 21115 as_val=$(( $* )) 21116 }' 21117else $as_nop 21118 as_fn_arith () 21119 { 21120 as_val=`expr "$@" || test $? -eq 1` 21121 } 21122fi # as_fn_arith 21123 21124 21125if expr a : '\(a\)' >/dev/null 2>&1 && 21126 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21127 as_expr=expr 21128else 21129 as_expr=false 21130fi 21131 21132if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21133 as_basename=basename 21134else 21135 as_basename=false 21136fi 21137 21138if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21139 as_dirname=dirname 21140else 21141 as_dirname=false 21142fi 21143 21144as_me=`$as_basename -- "$0" || 21145$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21146 X"$0" : 'X\(//\)$' \| \ 21147 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21148printf "%s\n" X/"$0" | 21149 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21150 s//\1/ 21151 q 21152 } 21153 /^X\/\(\/\/\)$/{ 21154 s//\1/ 21155 q 21156 } 21157 /^X\/\(\/\).*/{ 21158 s//\1/ 21159 q 21160 } 21161 s/.*/./; q'` 21162 21163# Avoid depending upon Character Ranges. 21164as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21165as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21166as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21167as_cr_digits='0123456789' 21168as_cr_alnum=$as_cr_Letters$as_cr_digits 21169 21170 21171# Determine whether it's possible to make 'echo' print without a newline. 21172# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21173# for compatibility with existing Makefiles. 21174ECHO_C= ECHO_N= ECHO_T= 21175case `echo -n x` in #((((( 21176-n*) 21177 case `echo 'xy\c'` in 21178 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21179 xy) ECHO_C='\c';; 21180 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21181 ECHO_T=' ';; 21182 esac;; 21183*) 21184 ECHO_N='-n';; 21185esac 21186 21187# For backward compatibility with old third-party macros, we provide 21188# the shell variables $as_echo and $as_echo_n. New code should use 21189# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21190as_echo='printf %s\n' 21191as_echo_n='printf %s' 21192 21193rm -f conf$$ conf$$.exe conf$$.file 21194if test -d conf$$.dir; then 21195 rm -f conf$$.dir/conf$$.file 21196else 21197 rm -f conf$$.dir 21198 mkdir conf$$.dir 2>/dev/null 21199fi 21200if (echo >conf$$.file) 2>/dev/null; then 21201 if ln -s conf$$.file conf$$ 2>/dev/null; then 21202 as_ln_s='ln -s' 21203 # ... but there are two gotchas: 21204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21206 # In both cases, we have to default to `cp -pR'. 21207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21208 as_ln_s='cp -pR' 21209 elif ln conf$$.file conf$$ 2>/dev/null; then 21210 as_ln_s=ln 21211 else 21212 as_ln_s='cp -pR' 21213 fi 21214else 21215 as_ln_s='cp -pR' 21216fi 21217rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21218rmdir conf$$.dir 2>/dev/null 21219 21220 21221# as_fn_mkdir_p 21222# ------------- 21223# Create "$as_dir" as a directory, including parents if necessary. 21224as_fn_mkdir_p () 21225{ 21226 21227 case $as_dir in #( 21228 -*) as_dir=./$as_dir;; 21229 esac 21230 test -d "$as_dir" || eval $as_mkdir_p || { 21231 as_dirs= 21232 while :; do 21233 case $as_dir in #( 21234 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21235 *) as_qdir=$as_dir;; 21236 esac 21237 as_dirs="'$as_qdir' $as_dirs" 21238 as_dir=`$as_dirname -- "$as_dir" || 21239$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21240 X"$as_dir" : 'X\(//\)[^/]' \| \ 21241 X"$as_dir" : 'X\(//\)$' \| \ 21242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21243printf "%s\n" X"$as_dir" | 21244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21245 s//\1/ 21246 q 21247 } 21248 /^X\(\/\/\)[^/].*/{ 21249 s//\1/ 21250 q 21251 } 21252 /^X\(\/\/\)$/{ 21253 s//\1/ 21254 q 21255 } 21256 /^X\(\/\).*/{ 21257 s//\1/ 21258 q 21259 } 21260 s/.*/./; q'` 21261 test -d "$as_dir" && break 21262 done 21263 test -z "$as_dirs" || eval "mkdir $as_dirs" 21264 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21265 21266 21267} # as_fn_mkdir_p 21268if mkdir -p . 2>/dev/null; then 21269 as_mkdir_p='mkdir -p "$as_dir"' 21270else 21271 test -d ./-p && rmdir ./-p 21272 as_mkdir_p=false 21273fi 21274 21275 21276# as_fn_executable_p FILE 21277# ----------------------- 21278# Test if FILE is an executable regular file. 21279as_fn_executable_p () 21280{ 21281 test -f "$1" && test -x "$1" 21282} # as_fn_executable_p 21283as_test_x='test -x' 21284as_executable_p=as_fn_executable_p 21285 21286# Sed expression to map a string onto a valid CPP name. 21287as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21288 21289# Sed expression to map a string onto a valid variable name. 21290as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21291 21292 21293exec 6>&1 21294## ----------------------------------- ## 21295## Main body of $CONFIG_STATUS script. ## 21296## ----------------------------------- ## 21297_ASEOF 21298test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21299 21300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21301# Save the log message, to keep $0 and so on meaningful, and to 21302# report actual input values of CONFIG_FILES etc. instead of their 21303# values after options handling. 21304ac_log=" 21305This file was extended by xf86-video-amdgpu $as_me 23.0.0, which was 21306generated by GNU Autoconf 2.71. Invocation command line was 21307 21308 CONFIG_FILES = $CONFIG_FILES 21309 CONFIG_HEADERS = $CONFIG_HEADERS 21310 CONFIG_LINKS = $CONFIG_LINKS 21311 CONFIG_COMMANDS = $CONFIG_COMMANDS 21312 $ $0 $@ 21313 21314on `(hostname || uname -n) 2>/dev/null | sed 1q` 21315" 21316 21317_ACEOF 21318 21319case $ac_config_files in *" 21320"*) set x $ac_config_files; shift; ac_config_files=$*;; 21321esac 21322 21323case $ac_config_headers in *" 21324"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21325esac 21326 21327 21328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21329# Files that config.status was made for. 21330config_files="$ac_config_files" 21331config_headers="$ac_config_headers" 21332config_commands="$ac_config_commands" 21333 21334_ACEOF 21335 21336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21337ac_cs_usage="\ 21338\`$as_me' instantiates files and other configuration actions 21339from templates according to the current configuration. Unless the files 21340and actions are specified as TAGs, all are instantiated by default. 21341 21342Usage: $0 [OPTION]... [TAG]... 21343 21344 -h, --help print this help, then exit 21345 -V, --version print version number and configuration settings, then exit 21346 --config print configuration, then exit 21347 -q, --quiet, --silent 21348 do not print progress messages 21349 -d, --debug don't remove temporary files 21350 --recheck update $as_me by reconfiguring in the same conditions 21351 --file=FILE[:TEMPLATE] 21352 instantiate the configuration file FILE 21353 --header=FILE[:TEMPLATE] 21354 instantiate the configuration header FILE 21355 21356Configuration files: 21357$config_files 21358 21359Configuration headers: 21360$config_headers 21361 21362Configuration commands: 21363$config_commands 21364 21365Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/issues>." 21366 21367_ACEOF 21368ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21369ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21371ac_cs_config='$ac_cs_config_escaped' 21372ac_cs_version="\\ 21373xf86-video-amdgpu config.status 23.0.0 21374configured by $0, generated by GNU Autoconf 2.71, 21375 with options \\"\$ac_cs_config\\" 21376 21377Copyright (C) 2021 Free Software Foundation, Inc. 21378This config.status script is free software; the Free Software Foundation 21379gives unlimited permission to copy, distribute and modify it." 21380 21381ac_pwd='$ac_pwd' 21382srcdir='$srcdir' 21383INSTALL='$INSTALL' 21384MKDIR_P='$MKDIR_P' 21385AWK='$AWK' 21386test -n "\$AWK" || AWK=awk 21387_ACEOF 21388 21389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21390# The default lists apply if the user does not specify any file. 21391ac_need_defaults=: 21392while test $# != 0 21393do 21394 case $1 in 21395 --*=?*) 21396 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21397 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21398 ac_shift=: 21399 ;; 21400 --*=) 21401 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21402 ac_optarg= 21403 ac_shift=: 21404 ;; 21405 *) 21406 ac_option=$1 21407 ac_optarg=$2 21408 ac_shift=shift 21409 ;; 21410 esac 21411 21412 case $ac_option in 21413 # Handling of the options. 21414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21415 ac_cs_recheck=: ;; 21416 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21417 printf "%s\n" "$ac_cs_version"; exit ;; 21418 --config | --confi | --conf | --con | --co | --c ) 21419 printf "%s\n" "$ac_cs_config"; exit ;; 21420 --debug | --debu | --deb | --de | --d | -d ) 21421 debug=: ;; 21422 --file | --fil | --fi | --f ) 21423 $ac_shift 21424 case $ac_optarg in 21425 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21426 '') as_fn_error $? "missing file argument" ;; 21427 esac 21428 as_fn_append CONFIG_FILES " '$ac_optarg'" 21429 ac_need_defaults=false;; 21430 --header | --heade | --head | --hea ) 21431 $ac_shift 21432 case $ac_optarg in 21433 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21434 esac 21435 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21436 ac_need_defaults=false;; 21437 --he | --h) 21438 # Conflict between --help and --header 21439 as_fn_error $? "ambiguous option: \`$1' 21440Try \`$0 --help' for more information.";; 21441 --help | --hel | -h ) 21442 printf "%s\n" "$ac_cs_usage"; exit ;; 21443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21444 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21445 ac_cs_silent=: ;; 21446 21447 # This is an error. 21448 -*) as_fn_error $? "unrecognized option: \`$1' 21449Try \`$0 --help' for more information." ;; 21450 21451 *) as_fn_append ac_config_targets " $1" 21452 ac_need_defaults=false ;; 21453 21454 esac 21455 shift 21456done 21457 21458ac_configure_extra_args= 21459 21460if $ac_cs_silent; then 21461 exec 6>/dev/null 21462 ac_configure_extra_args="$ac_configure_extra_args --silent" 21463fi 21464 21465_ACEOF 21466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21467if \$ac_cs_recheck; then 21468 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21469 shift 21470 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21471 CONFIG_SHELL='$SHELL' 21472 export CONFIG_SHELL 21473 exec "\$@" 21474fi 21475 21476_ACEOF 21477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21478exec 5>>config.log 21479{ 21480 echo 21481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21482## Running $as_me. ## 21483_ASBOX 21484 printf "%s\n" "$ac_log" 21485} >&5 21486 21487_ACEOF 21488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21489# 21490# INIT-COMMANDS 21491# 21492AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21493 21494 21495# The HP-UX ksh and POSIX shell print the target directory to stdout 21496# if CDPATH is set. 21497(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21498 21499sed_quote_subst='$sed_quote_subst' 21500double_quote_subst='$double_quote_subst' 21501delay_variable_subst='$delay_variable_subst' 21502enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21503macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21504macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21505enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21506pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21507enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21508shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21509SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21510ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21511PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21512host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21513host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21514host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21515build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21516build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21517build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21518SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21519Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21520GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21521EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21522FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21523LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21524NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21525LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21526max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21527ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21528exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21529lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21530lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21531lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21532lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21533lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21534reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21535reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21536OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21537deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21538file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21539file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21540want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21541DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21542sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21543AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21544AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21545archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21546STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21547RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21548old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21549old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21550old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21551lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21552CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21553CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21554compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21555GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21556lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21557lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21558lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21559lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21560lt_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"`' 21561lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21562nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21563lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21564lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21565objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21566MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21567lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21568lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21569lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21570lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21571lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21572need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21573MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21574DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21575NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21576LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21577OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21578OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21579libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21580shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21581extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21582archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21583enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21584export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21585whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21586compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21587old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21588old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21589archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21590archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21591module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21592module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21593with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21594allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21595no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21596hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21597hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21598hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21599hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21600hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21601hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21602hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21603inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21604link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21605always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21606export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21607exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21608include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21609prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21610postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21611file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21612variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21613need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21614need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21615version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21616runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21617shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21618shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21619libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21620library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21621soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21622install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21623postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21624postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21625finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21626finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21627hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21628sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21629configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21630configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21631hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21632enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21633enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21634enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21635old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21636striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21637 21638LTCC='$LTCC' 21639LTCFLAGS='$LTCFLAGS' 21640compiler='$compiler_DEFAULT' 21641 21642# A function that is used when there is no print builtin or printf. 21643func_fallback_echo () 21644{ 21645 eval 'cat <<_LTECHO_EOF 21646\$1 21647_LTECHO_EOF' 21648} 21649 21650# Quote evaled strings. 21651for var in SHELL \ 21652ECHO \ 21653PATH_SEPARATOR \ 21654SED \ 21655GREP \ 21656EGREP \ 21657FGREP \ 21658LD \ 21659NM \ 21660LN_S \ 21661lt_SP2NL \ 21662lt_NL2SP \ 21663reload_flag \ 21664OBJDUMP \ 21665deplibs_check_method \ 21666file_magic_cmd \ 21667file_magic_glob \ 21668want_nocaseglob \ 21669DLLTOOL \ 21670sharedlib_from_linklib_cmd \ 21671AR \ 21672AR_FLAGS \ 21673archiver_list_spec \ 21674STRIP \ 21675RANLIB \ 21676CC \ 21677CFLAGS \ 21678compiler \ 21679lt_cv_sys_global_symbol_pipe \ 21680lt_cv_sys_global_symbol_to_cdecl \ 21681lt_cv_sys_global_symbol_to_import \ 21682lt_cv_sys_global_symbol_to_c_name_address \ 21683lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21684lt_cv_nm_interface \ 21685nm_file_list_spec \ 21686lt_cv_truncate_bin \ 21687lt_prog_compiler_no_builtin_flag \ 21688lt_prog_compiler_pic \ 21689lt_prog_compiler_wl \ 21690lt_prog_compiler_static \ 21691lt_cv_prog_compiler_c_o \ 21692need_locks \ 21693MANIFEST_TOOL \ 21694DSYMUTIL \ 21695NMEDIT \ 21696LIPO \ 21697OTOOL \ 21698OTOOL64 \ 21699shrext_cmds \ 21700export_dynamic_flag_spec \ 21701whole_archive_flag_spec \ 21702compiler_needs_object \ 21703with_gnu_ld \ 21704allow_undefined_flag \ 21705no_undefined_flag \ 21706hardcode_libdir_flag_spec \ 21707hardcode_libdir_separator \ 21708exclude_expsyms \ 21709include_expsyms \ 21710file_list_spec \ 21711variables_saved_for_relink \ 21712libname_spec \ 21713library_names_spec \ 21714soname_spec \ 21715install_override_mode \ 21716finish_eval \ 21717old_striplib \ 21718striplib; do 21719 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21720 *[\\\\\\\`\\"\\\$]*) 21721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21722 ;; 21723 *) 21724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21725 ;; 21726 esac 21727done 21728 21729# Double-quote double-evaled strings. 21730for var in reload_cmds \ 21731old_postinstall_cmds \ 21732old_postuninstall_cmds \ 21733old_archive_cmds \ 21734extract_expsyms_cmds \ 21735old_archive_from_new_cmds \ 21736old_archive_from_expsyms_cmds \ 21737archive_cmds \ 21738archive_expsym_cmds \ 21739module_cmds \ 21740module_expsym_cmds \ 21741export_symbols_cmds \ 21742prelink_cmds \ 21743postlink_cmds \ 21744postinstall_cmds \ 21745postuninstall_cmds \ 21746finish_cmds \ 21747sys_lib_search_path_spec \ 21748configure_time_dlsearch_path \ 21749configure_time_lt_sys_library_path; do 21750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21751 *[\\\\\\\`\\"\\\$]*) 21752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21753 ;; 21754 *) 21755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21756 ;; 21757 esac 21758done 21759 21760ac_aux_dir='$ac_aux_dir' 21761 21762# See if we are running on zsh, and set the options that allow our 21763# commands through without removal of \ escapes INIT. 21764if test -n "\${ZSH_VERSION+set}"; then 21765 setopt NO_GLOB_SUBST 21766fi 21767 21768 21769 PACKAGE='$PACKAGE' 21770 VERSION='$VERSION' 21771 RM='$RM' 21772 ofile='$ofile' 21773 21774 21775 21776 21777_ACEOF 21778 21779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21780 21781# Handling of arguments. 21782for ac_config_target in $ac_config_targets 21783do 21784 case $ac_config_target in 21785 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21786 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21787 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21788 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21789 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21790 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21791 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 21792 21793 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21794 esac 21795done 21796 21797 21798# If the user did not use the arguments to specify the items to instantiate, 21799# then the envvar interface is used. Set only those that are not. 21800# We use the long form for the default assignment because of an extremely 21801# bizarre bug on SunOS 4.1.3. 21802if $ac_need_defaults; then 21803 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21804 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21805 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21806fi 21807 21808# Have a temporary directory for convenience. Make it in the build tree 21809# simply because there is no reason against having it here, and in addition, 21810# creating and moving files from /tmp can sometimes cause problems. 21811# Hook for its removal unless debugging. 21812# Note that there is a small window in which the directory will not be cleaned: 21813# after its creation but before its name has been assigned to `$tmp'. 21814$debug || 21815{ 21816 tmp= ac_tmp= 21817 trap 'exit_status=$? 21818 : "${ac_tmp:=$tmp}" 21819 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21820' 0 21821 trap 'as_fn_exit 1' 1 2 13 15 21822} 21823# Create a (secure) tmp directory for tmp files. 21824 21825{ 21826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21827 test -d "$tmp" 21828} || 21829{ 21830 tmp=./conf$$-$RANDOM 21831 (umask 077 && mkdir "$tmp") 21832} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21833ac_tmp=$tmp 21834 21835# Set up the scripts for CONFIG_FILES section. 21836# No need to generate them if there are no CONFIG_FILES. 21837# This happens for instance with `./config.status config.h'. 21838if test -n "$CONFIG_FILES"; then 21839 21840 21841ac_cr=`echo X | tr X '\015'` 21842# On cygwin, bash can eat \r inside `` if the user requested igncr. 21843# But we know of no other shell where ac_cr would be empty at this 21844# point, so we can use a bashism as a fallback. 21845if test "x$ac_cr" = x; then 21846 eval ac_cr=\$\'\\r\' 21847fi 21848ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21849if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21850 ac_cs_awk_cr='\\r' 21851else 21852 ac_cs_awk_cr=$ac_cr 21853fi 21854 21855echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21856_ACEOF 21857 21858 21859{ 21860 echo "cat >conf$$subs.awk <<_ACEOF" && 21861 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21862 echo "_ACEOF" 21863} >conf$$subs.sh || 21864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21865ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21866ac_delim='%!_!# ' 21867for ac_last_try in false false false false false :; do 21868 . ./conf$$subs.sh || 21869 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21870 21871 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21872 if test $ac_delim_n = $ac_delim_num; then 21873 break 21874 elif $ac_last_try; then 21875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21876 else 21877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21878 fi 21879done 21880rm -f conf$$subs.sh 21881 21882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21883cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21884_ACEOF 21885sed -n ' 21886h 21887s/^/S["/; s/!.*/"]=/ 21888p 21889g 21890s/^[^!]*!// 21891:repl 21892t repl 21893s/'"$ac_delim"'$// 21894t delim 21895:nl 21896h 21897s/\(.\{148\}\)..*/\1/ 21898t more1 21899s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21900p 21901n 21902b repl 21903:more1 21904s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21905p 21906g 21907s/.\{148\}// 21908t nl 21909:delim 21910h 21911s/\(.\{148\}\)..*/\1/ 21912t more2 21913s/["\\]/\\&/g; s/^/"/; s/$/"/ 21914p 21915b 21916:more2 21917s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21918p 21919g 21920s/.\{148\}// 21921t delim 21922' <conf$$subs.awk | sed ' 21923/^[^""]/{ 21924 N 21925 s/\n// 21926} 21927' >>$CONFIG_STATUS || ac_write_fail=1 21928rm -f conf$$subs.awk 21929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21930_ACAWK 21931cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21932 for (key in S) S_is_set[key] = 1 21933 FS = "" 21934 21935} 21936{ 21937 line = $ 0 21938 nfields = split(line, field, "@") 21939 substed = 0 21940 len = length(field[1]) 21941 for (i = 2; i < nfields; i++) { 21942 key = field[i] 21943 keylen = length(key) 21944 if (S_is_set[key]) { 21945 value = S[key] 21946 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21947 len += length(value) + length(field[++i]) 21948 substed = 1 21949 } else 21950 len += 1 + keylen 21951 } 21952 21953 print line 21954} 21955 21956_ACAWK 21957_ACEOF 21958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21959if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21960 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21961else 21962 cat 21963fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21964 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21965_ACEOF 21966 21967# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21968# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21969# trailing colons and then remove the whole line if VPATH becomes empty 21970# (actually we leave an empty line to preserve line numbers). 21971if test "x$srcdir" = x.; then 21972 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21973h 21974s/// 21975s/^/:/ 21976s/[ ]*$/:/ 21977s/:\$(srcdir):/:/g 21978s/:\${srcdir}:/:/g 21979s/:@srcdir@:/:/g 21980s/^:*// 21981s/:*$// 21982x 21983s/\(=[ ]*\).*/\1/ 21984G 21985s/\n// 21986s/^[^=]*=[ ]*$// 21987}' 21988fi 21989 21990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21991fi # test -n "$CONFIG_FILES" 21992 21993# Set up the scripts for CONFIG_HEADERS section. 21994# No need to generate them if there are no CONFIG_HEADERS. 21995# This happens for instance with `./config.status Makefile'. 21996if test -n "$CONFIG_HEADERS"; then 21997cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21998BEGIN { 21999_ACEOF 22000 22001# Transform confdefs.h into an awk script `defines.awk', embedded as 22002# here-document in config.status, that substitutes the proper values into 22003# config.h.in to produce config.h. 22004 22005# Create a delimiter string that does not exist in confdefs.h, to ease 22006# handling of long lines. 22007ac_delim='%!_!# ' 22008for ac_last_try in false false :; do 22009 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22010 if test -z "$ac_tt"; then 22011 break 22012 elif $ac_last_try; then 22013 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22014 else 22015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22016 fi 22017done 22018 22019# For the awk script, D is an array of macro values keyed by name, 22020# likewise P contains macro parameters if any. Preserve backslash 22021# newline sequences. 22022 22023ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22024sed -n ' 22025s/.\{148\}/&'"$ac_delim"'/g 22026t rset 22027:rset 22028s/^[ ]*#[ ]*define[ ][ ]*/ / 22029t def 22030d 22031:def 22032s/\\$// 22033t bsnl 22034s/["\\]/\\&/g 22035s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22036D["\1"]=" \3"/p 22037s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22038d 22039:bsnl 22040s/["\\]/\\&/g 22041s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22042D["\1"]=" \3\\\\\\n"\\/p 22043t cont 22044s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22045t cont 22046d 22047:cont 22048n 22049s/.\{148\}/&'"$ac_delim"'/g 22050t clear 22051:clear 22052s/\\$// 22053t bsnlc 22054s/["\\]/\\&/g; s/^/"/; s/$/"/p 22055d 22056:bsnlc 22057s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22058b cont 22059' <confdefs.h | sed ' 22060s/'"$ac_delim"'/"\\\ 22061"/g' >>$CONFIG_STATUS || ac_write_fail=1 22062 22063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22064 for (key in D) D_is_set[key] = 1 22065 FS = "" 22066} 22067/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22068 line = \$ 0 22069 split(line, arg, " ") 22070 if (arg[1] == "#") { 22071 defundef = arg[2] 22072 mac1 = arg[3] 22073 } else { 22074 defundef = substr(arg[1], 2) 22075 mac1 = arg[2] 22076 } 22077 split(mac1, mac2, "(") #) 22078 macro = mac2[1] 22079 prefix = substr(line, 1, index(line, defundef) - 1) 22080 if (D_is_set[macro]) { 22081 # Preserve the white space surrounding the "#". 22082 print prefix "define", macro P[macro] D[macro] 22083 next 22084 } else { 22085 # Replace #undef with comments. This is necessary, for example, 22086 # in the case of _POSIX_SOURCE, which is predefined and required 22087 # on some systems where configure will not decide to define it. 22088 if (defundef == "undef") { 22089 print "/*", prefix defundef, macro, "*/" 22090 next 22091 } 22092 } 22093} 22094{ print } 22095_ACAWK 22096_ACEOF 22097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22098 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22099fi # test -n "$CONFIG_HEADERS" 22100 22101 22102eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22103shift 22104for ac_tag 22105do 22106 case $ac_tag in 22107 :[FHLC]) ac_mode=$ac_tag; continue;; 22108 esac 22109 case $ac_mode$ac_tag in 22110 :[FHL]*:*);; 22111 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22112 :[FH]-) ac_tag=-:-;; 22113 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22114 esac 22115 ac_save_IFS=$IFS 22116 IFS=: 22117 set x $ac_tag 22118 IFS=$ac_save_IFS 22119 shift 22120 ac_file=$1 22121 shift 22122 22123 case $ac_mode in 22124 :L) ac_source=$1;; 22125 :[FH]) 22126 ac_file_inputs= 22127 for ac_f 22128 do 22129 case $ac_f in 22130 -) ac_f="$ac_tmp/stdin";; 22131 *) # Look for the file first in the build tree, then in the source tree 22132 # (if the path is not absolute). The absolute path cannot be DOS-style, 22133 # because $ac_f cannot contain `:'. 22134 test -f "$ac_f" || 22135 case $ac_f in 22136 [\\/$]*) false;; 22137 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22138 esac || 22139 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22140 esac 22141 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22142 as_fn_append ac_file_inputs " '$ac_f'" 22143 done 22144 22145 # Let's still pretend it is `configure' which instantiates (i.e., don't 22146 # use $as_me), people would be surprised to read: 22147 # /* config.h. Generated by config.status. */ 22148 configure_input='Generated from '` 22149 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22150 `' by configure.' 22151 if test x"$ac_file" != x-; then 22152 configure_input="$ac_file. $configure_input" 22153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22154printf "%s\n" "$as_me: creating $ac_file" >&6;} 22155 fi 22156 # Neutralize special characters interpreted by sed in replacement strings. 22157 case $configure_input in #( 22158 *\&* | *\|* | *\\* ) 22159 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22160 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22161 *) ac_sed_conf_input=$configure_input;; 22162 esac 22163 22164 case $ac_tag in 22165 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22167 esac 22168 ;; 22169 esac 22170 22171 ac_dir=`$as_dirname -- "$ac_file" || 22172$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22173 X"$ac_file" : 'X\(//\)[^/]' \| \ 22174 X"$ac_file" : 'X\(//\)$' \| \ 22175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22176printf "%s\n" X"$ac_file" | 22177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22178 s//\1/ 22179 q 22180 } 22181 /^X\(\/\/\)[^/].*/{ 22182 s//\1/ 22183 q 22184 } 22185 /^X\(\/\/\)$/{ 22186 s//\1/ 22187 q 22188 } 22189 /^X\(\/\).*/{ 22190 s//\1/ 22191 q 22192 } 22193 s/.*/./; q'` 22194 as_dir="$ac_dir"; as_fn_mkdir_p 22195 ac_builddir=. 22196 22197case "$ac_dir" in 22198.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22199*) 22200 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22201 # A ".." for each directory in $ac_dir_suffix. 22202 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22203 case $ac_top_builddir_sub in 22204 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22205 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22206 esac ;; 22207esac 22208ac_abs_top_builddir=$ac_pwd 22209ac_abs_builddir=$ac_pwd$ac_dir_suffix 22210# for backward compatibility: 22211ac_top_builddir=$ac_top_build_prefix 22212 22213case $srcdir in 22214 .) # We are building in place. 22215 ac_srcdir=. 22216 ac_top_srcdir=$ac_top_builddir_sub 22217 ac_abs_top_srcdir=$ac_pwd ;; 22218 [\\/]* | ?:[\\/]* ) # Absolute name. 22219 ac_srcdir=$srcdir$ac_dir_suffix; 22220 ac_top_srcdir=$srcdir 22221 ac_abs_top_srcdir=$srcdir ;; 22222 *) # Relative name. 22223 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22224 ac_top_srcdir=$ac_top_build_prefix$srcdir 22225 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22226esac 22227ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22228 22229 22230 case $ac_mode in 22231 :F) 22232 # 22233 # CONFIG_FILE 22234 # 22235 22236 case $INSTALL in 22237 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22238 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22239 esac 22240 ac_MKDIR_P=$MKDIR_P 22241 case $MKDIR_P in 22242 [\\/$]* | ?:[\\/]* ) ;; 22243 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22244 esac 22245_ACEOF 22246 22247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22248# If the template does not know about datarootdir, expand it. 22249# FIXME: This hack should be removed a few years after 2.60. 22250ac_datarootdir_hack=; ac_datarootdir_seen= 22251ac_sed_dataroot=' 22252/datarootdir/ { 22253 p 22254 q 22255} 22256/@datadir@/p 22257/@docdir@/p 22258/@infodir@/p 22259/@localedir@/p 22260/@mandir@/p' 22261case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22262*datarootdir*) ac_datarootdir_seen=yes;; 22263*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22265printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22266_ACEOF 22267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22268 ac_datarootdir_hack=' 22269 s&@datadir@&$datadir&g 22270 s&@docdir@&$docdir&g 22271 s&@infodir@&$infodir&g 22272 s&@localedir@&$localedir&g 22273 s&@mandir@&$mandir&g 22274 s&\\\${datarootdir}&$datarootdir&g' ;; 22275esac 22276_ACEOF 22277 22278# Neutralize VPATH when `$srcdir' = `.'. 22279# Shell code in configure.ac might set extrasub. 22280# FIXME: do we really want to maintain this feature? 22281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22282ac_sed_extra="$ac_vpsub 22283$extrasub 22284_ACEOF 22285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22286:t 22287/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22288s|@configure_input@|$ac_sed_conf_input|;t t 22289s&@top_builddir@&$ac_top_builddir_sub&;t t 22290s&@top_build_prefix@&$ac_top_build_prefix&;t t 22291s&@srcdir@&$ac_srcdir&;t t 22292s&@abs_srcdir@&$ac_abs_srcdir&;t t 22293s&@top_srcdir@&$ac_top_srcdir&;t t 22294s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22295s&@builddir@&$ac_builddir&;t t 22296s&@abs_builddir@&$ac_abs_builddir&;t t 22297s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22298s&@INSTALL@&$ac_INSTALL&;t t 22299s&@MKDIR_P@&$ac_MKDIR_P&;t t 22300$ac_datarootdir_hack 22301" 22302eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22303 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22304 22305test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22306 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22308 "$ac_tmp/out"`; test -z "$ac_out"; } && 22309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22310which seems to be undefined. Please make sure it is defined" >&5 22311printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22312which seems to be undefined. Please make sure it is defined" >&2;} 22313 22314 rm -f "$ac_tmp/stdin" 22315 case $ac_file in 22316 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22317 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22318 esac \ 22319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22320 ;; 22321 :H) 22322 # 22323 # CONFIG_HEADER 22324 # 22325 if test x"$ac_file" != x-; then 22326 { 22327 printf "%s\n" "/* $configure_input */" >&1 \ 22328 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22329 } >"$ac_tmp/config.h" \ 22330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22331 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22333printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22334 else 22335 rm -f "$ac_file" 22336 mv "$ac_tmp/config.h" "$ac_file" \ 22337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22338 fi 22339 else 22340 printf "%s\n" "/* $configure_input */" >&1 \ 22341 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22342 || as_fn_error $? "could not create -" "$LINENO" 5 22343 fi 22344# Compute "$ac_file"'s index in $config_headers. 22345_am_arg="$ac_file" 22346_am_stamp_count=1 22347for _am_header in $config_headers :; do 22348 case $_am_header in 22349 $_am_arg | $_am_arg:* ) 22350 break ;; 22351 * ) 22352 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22353 esac 22354done 22355echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22356$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22357 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22358 X"$_am_arg" : 'X\(//\)$' \| \ 22359 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22360printf "%s\n" X"$_am_arg" | 22361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22362 s//\1/ 22363 q 22364 } 22365 /^X\(\/\/\)[^/].*/{ 22366 s//\1/ 22367 q 22368 } 22369 /^X\(\/\/\)$/{ 22370 s//\1/ 22371 q 22372 } 22373 /^X\(\/\).*/{ 22374 s//\1/ 22375 q 22376 } 22377 s/.*/./; q'`/stamp-h$_am_stamp_count 22378 ;; 22379 22380 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22381printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22382 ;; 22383 esac 22384 22385 22386 case $ac_file$ac_mode in 22387 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22388 # Older Autoconf quotes --file arguments for eval, but not when files 22389 # are listed without --file. Let's play safe and only enable the eval 22390 # if we detect the quoting. 22391 # TODO: see whether this extra hack can be removed once we start 22392 # requiring Autoconf 2.70 or later. 22393 case $CONFIG_FILES in #( 22394 *\'*) : 22395 eval set x "$CONFIG_FILES" ;; #( 22396 *) : 22397 set x $CONFIG_FILES ;; #( 22398 *) : 22399 ;; 22400esac 22401 shift 22402 # Used to flag and report bootstrapping failures. 22403 am_rc=0 22404 for am_mf 22405 do 22406 # Strip MF so we end up with the name of the file. 22407 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22408 # Check whether this is an Automake generated Makefile which includes 22409 # dependency-tracking related rules and includes. 22410 # Grep'ing the whole file directly is not great: AIX grep has a line 22411 # limit of 2048, but all sed's we know have understand at least 4000. 22412 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22413 || continue 22414 am_dirpart=`$as_dirname -- "$am_mf" || 22415$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22416 X"$am_mf" : 'X\(//\)[^/]' \| \ 22417 X"$am_mf" : 'X\(//\)$' \| \ 22418 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22419printf "%s\n" X"$am_mf" | 22420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22421 s//\1/ 22422 q 22423 } 22424 /^X\(\/\/\)[^/].*/{ 22425 s//\1/ 22426 q 22427 } 22428 /^X\(\/\/\)$/{ 22429 s//\1/ 22430 q 22431 } 22432 /^X\(\/\).*/{ 22433 s//\1/ 22434 q 22435 } 22436 s/.*/./; q'` 22437 am_filepart=`$as_basename -- "$am_mf" || 22438$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22439 X"$am_mf" : 'X\(//\)$' \| \ 22440 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22441printf "%s\n" X/"$am_mf" | 22442 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22443 s//\1/ 22444 q 22445 } 22446 /^X\/\(\/\/\)$/{ 22447 s//\1/ 22448 q 22449 } 22450 /^X\/\(\/\).*/{ 22451 s//\1/ 22452 q 22453 } 22454 s/.*/./; q'` 22455 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22456 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22457 | $MAKE -f - am--depfiles" >&5 22458 (cd "$am_dirpart" \ 22459 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22460 | $MAKE -f - am--depfiles) >&5 2>&5 22461 ac_status=$? 22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22463 (exit $ac_status); } || am_rc=$? 22464 done 22465 if test $am_rc -ne 0; then 22466 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22467printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22468as_fn_error $? "Something went wrong bootstrapping makefile fragments 22469 for automatic dependency tracking. If GNU make was not used, consider 22470 re-running the configure script with MAKE=\"gmake\" (or whatever is 22471 necessary). You can also try re-running configure with the 22472 '--disable-dependency-tracking' option to at least be able to build 22473 the package (albeit without support for automatic dependency tracking). 22474See \`config.log' for more details" "$LINENO" 5; } 22475 fi 22476 { am_dirpart=; unset am_dirpart;} 22477 { am_filepart=; unset am_filepart;} 22478 { am_mf=; unset am_mf;} 22479 { am_rc=; unset am_rc;} 22480 rm -f conftest-deps.mk 22481} 22482 ;; 22483 "libtool":C) 22484 22485 # See if we are running on zsh, and set the options that allow our 22486 # commands through without removal of \ escapes. 22487 if test -n "${ZSH_VERSION+set}"; then 22488 setopt NO_GLOB_SUBST 22489 fi 22490 22491 cfgfile=${ofile}T 22492 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22493 $RM "$cfgfile" 22494 22495 cat <<_LT_EOF >> "$cfgfile" 22496#! $SHELL 22497# Generated automatically by $as_me ($PACKAGE) $VERSION 22498# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22499 22500# Provide generalized library-building support services. 22501# Written by Gordon Matzigkeit, 1996 22502 22503# Copyright (C) 2014 Free Software Foundation, Inc. 22504# This is free software; see the source for copying conditions. There is NO 22505# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22506 22507# GNU Libtool is free software; you can redistribute it and/or modify 22508# it under the terms of the GNU General Public License as published by 22509# the Free Software Foundation; either version 2 of of the License, or 22510# (at your option) any later version. 22511# 22512# As a special exception to the GNU General Public License, if you 22513# distribute this file as part of a program or library that is built 22514# using GNU Libtool, you may include this file under the same 22515# distribution terms that you use for the rest of that program. 22516# 22517# GNU Libtool is distributed in the hope that it will be useful, but 22518# WITHOUT ANY WARRANTY; without even the implied warranty of 22519# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22520# GNU General Public License for more details. 22521# 22522# You should have received a copy of the GNU General Public License 22523# along with this program. If not, see <http://www.gnu.org/licenses/>. 22524 22525 22526# The names of the tagged configurations supported by this script. 22527available_tags='' 22528 22529# Configured defaults for sys_lib_dlsearch_path munging. 22530: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22531 22532# ### BEGIN LIBTOOL CONFIG 22533 22534# Whether or not to build static libraries. 22535build_old_libs=$enable_static 22536 22537# Which release of libtool.m4 was used? 22538macro_version=$macro_version 22539macro_revision=$macro_revision 22540 22541# Whether or not to build shared libraries. 22542build_libtool_libs=$enable_shared 22543 22544# What type of objects to build. 22545pic_mode=$pic_mode 22546 22547# Whether or not to optimize for fast installation. 22548fast_install=$enable_fast_install 22549 22550# Shared archive member basename,for filename based shared library versioning on AIX. 22551shared_archive_member_spec=$shared_archive_member_spec 22552 22553# Shell to use when invoking shell scripts. 22554SHELL=$lt_SHELL 22555 22556# An echo program that protects backslashes. 22557ECHO=$lt_ECHO 22558 22559# The PATH separator for the build system. 22560PATH_SEPARATOR=$lt_PATH_SEPARATOR 22561 22562# The host system. 22563host_alias=$host_alias 22564host=$host 22565host_os=$host_os 22566 22567# The build system. 22568build_alias=$build_alias 22569build=$build 22570build_os=$build_os 22571 22572# A sed program that does not truncate output. 22573SED=$lt_SED 22574 22575# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22576Xsed="\$SED -e 1s/^X//" 22577 22578# A grep program that handles long lines. 22579GREP=$lt_GREP 22580 22581# An ERE matcher. 22582EGREP=$lt_EGREP 22583 22584# A literal string matcher. 22585FGREP=$lt_FGREP 22586 22587# A BSD- or MS-compatible name lister. 22588NM=$lt_NM 22589 22590# Whether we need soft or hard links. 22591LN_S=$lt_LN_S 22592 22593# What is the maximum length of a command? 22594max_cmd_len=$max_cmd_len 22595 22596# Object file suffix (normally "o"). 22597objext=$ac_objext 22598 22599# Executable file suffix (normally ""). 22600exeext=$exeext 22601 22602# whether the shell understands "unset". 22603lt_unset=$lt_unset 22604 22605# turn spaces into newlines. 22606SP2NL=$lt_lt_SP2NL 22607 22608# turn newlines into spaces. 22609NL2SP=$lt_lt_NL2SP 22610 22611# convert \$build file names to \$host format. 22612to_host_file_cmd=$lt_cv_to_host_file_cmd 22613 22614# convert \$build files to toolchain format. 22615to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22616 22617# An object symbol dumper. 22618OBJDUMP=$lt_OBJDUMP 22619 22620# Method to check whether dependent libraries are shared objects. 22621deplibs_check_method=$lt_deplibs_check_method 22622 22623# Command to use when deplibs_check_method = "file_magic". 22624file_magic_cmd=$lt_file_magic_cmd 22625 22626# How to find potential files when deplibs_check_method = "file_magic". 22627file_magic_glob=$lt_file_magic_glob 22628 22629# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22630want_nocaseglob=$lt_want_nocaseglob 22631 22632# DLL creation program. 22633DLLTOOL=$lt_DLLTOOL 22634 22635# Command to associate shared and link libraries. 22636sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22637 22638# The archiver. 22639AR=$lt_AR 22640 22641# Flags to create an archive. 22642AR_FLAGS=$lt_AR_FLAGS 22643 22644# How to feed a file listing to the archiver. 22645archiver_list_spec=$lt_archiver_list_spec 22646 22647# A symbol stripping program. 22648STRIP=$lt_STRIP 22649 22650# Commands used to install an old-style archive. 22651RANLIB=$lt_RANLIB 22652old_postinstall_cmds=$lt_old_postinstall_cmds 22653old_postuninstall_cmds=$lt_old_postuninstall_cmds 22654 22655# Whether to use a lock for old archive extraction. 22656lock_old_archive_extraction=$lock_old_archive_extraction 22657 22658# A C compiler. 22659LTCC=$lt_CC 22660 22661# LTCC compiler flags. 22662LTCFLAGS=$lt_CFLAGS 22663 22664# Take the output of nm and produce a listing of raw symbols and C names. 22665global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22666 22667# Transform the output of nm in a proper C declaration. 22668global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22669 22670# Transform the output of nm into a list of symbols to manually relocate. 22671global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22672 22673# Transform the output of nm in a C name address pair. 22674global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22675 22676# Transform the output of nm in a C name address pair when lib prefix is needed. 22677global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22678 22679# The name lister interface. 22680nm_interface=$lt_lt_cv_nm_interface 22681 22682# Specify filename containing input files for \$NM. 22683nm_file_list_spec=$lt_nm_file_list_spec 22684 22685# The root where to search for dependent libraries,and where our libraries should be installed. 22686lt_sysroot=$lt_sysroot 22687 22688# Command to truncate a binary pipe. 22689lt_truncate_bin=$lt_lt_cv_truncate_bin 22690 22691# The name of the directory that contains temporary libtool files. 22692objdir=$objdir 22693 22694# Used to examine libraries when file_magic_cmd begins with "file". 22695MAGIC_CMD=$MAGIC_CMD 22696 22697# Must we lock files when doing compilation? 22698need_locks=$lt_need_locks 22699 22700# Manifest tool. 22701MANIFEST_TOOL=$lt_MANIFEST_TOOL 22702 22703# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22704DSYMUTIL=$lt_DSYMUTIL 22705 22706# Tool to change global to local symbols on Mac OS X. 22707NMEDIT=$lt_NMEDIT 22708 22709# Tool to manipulate fat objects and archives on Mac OS X. 22710LIPO=$lt_LIPO 22711 22712# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22713OTOOL=$lt_OTOOL 22714 22715# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22716OTOOL64=$lt_OTOOL64 22717 22718# Old archive suffix (normally "a"). 22719libext=$libext 22720 22721# Shared library suffix (normally ".so"). 22722shrext_cmds=$lt_shrext_cmds 22723 22724# The commands to extract the exported symbol list from a shared archive. 22725extract_expsyms_cmds=$lt_extract_expsyms_cmds 22726 22727# Variables whose values should be saved in libtool wrapper scripts and 22728# restored at link time. 22729variables_saved_for_relink=$lt_variables_saved_for_relink 22730 22731# Do we need the "lib" prefix for modules? 22732need_lib_prefix=$need_lib_prefix 22733 22734# Do we need a version for libraries? 22735need_version=$need_version 22736 22737# Library versioning type. 22738version_type=$version_type 22739 22740# Shared library runtime path variable. 22741runpath_var=$runpath_var 22742 22743# Shared library path variable. 22744shlibpath_var=$shlibpath_var 22745 22746# Is shlibpath searched before the hard-coded library search path? 22747shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22748 22749# Format of library name prefix. 22750libname_spec=$lt_libname_spec 22751 22752# List of archive names. First name is the real one, the rest are links. 22753# The last name is the one that the linker finds with -lNAME 22754library_names_spec=$lt_library_names_spec 22755 22756# The coded name of the library, if different from the real name. 22757soname_spec=$lt_soname_spec 22758 22759# Permission mode override for installation of shared libraries. 22760install_override_mode=$lt_install_override_mode 22761 22762# Command to use after installation of a shared archive. 22763postinstall_cmds=$lt_postinstall_cmds 22764 22765# Command to use after uninstallation of a shared archive. 22766postuninstall_cmds=$lt_postuninstall_cmds 22767 22768# Commands used to finish a libtool library installation in a directory. 22769finish_cmds=$lt_finish_cmds 22770 22771# As "finish_cmds", except a single script fragment to be evaled but 22772# not shown. 22773finish_eval=$lt_finish_eval 22774 22775# Whether we should hardcode library paths into libraries. 22776hardcode_into_libs=$hardcode_into_libs 22777 22778# Compile-time system search path for libraries. 22779sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22780 22781# Detected run-time system search path for libraries. 22782sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22783 22784# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22785configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22786 22787# Whether dlopen is supported. 22788dlopen_support=$enable_dlopen 22789 22790# Whether dlopen of programs is supported. 22791dlopen_self=$enable_dlopen_self 22792 22793# Whether dlopen of statically linked programs is supported. 22794dlopen_self_static=$enable_dlopen_self_static 22795 22796# Commands to strip libraries. 22797old_striplib=$lt_old_striplib 22798striplib=$lt_striplib 22799 22800 22801# The linker used to build libraries. 22802LD=$lt_LD 22803 22804# How to create reloadable object files. 22805reload_flag=$lt_reload_flag 22806reload_cmds=$lt_reload_cmds 22807 22808# Commands used to build an old-style archive. 22809old_archive_cmds=$lt_old_archive_cmds 22810 22811# A language specific compiler. 22812CC=$lt_compiler 22813 22814# Is the compiler the GNU compiler? 22815with_gcc=$GCC 22816 22817# Compiler flag to turn off builtin functions. 22818no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22819 22820# Additional compiler flags for building library objects. 22821pic_flag=$lt_lt_prog_compiler_pic 22822 22823# How to pass a linker flag through the compiler. 22824wl=$lt_lt_prog_compiler_wl 22825 22826# Compiler flag to prevent dynamic linking. 22827link_static_flag=$lt_lt_prog_compiler_static 22828 22829# Does compiler simultaneously support -c and -o options? 22830compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22831 22832# Whether or not to add -lc for building shared libraries. 22833build_libtool_need_lc=$archive_cmds_need_lc 22834 22835# Whether or not to disallow shared libs when runtime libs are static. 22836allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22837 22838# Compiler flag to allow reflexive dlopens. 22839export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22840 22841# Compiler flag to generate shared objects directly from archives. 22842whole_archive_flag_spec=$lt_whole_archive_flag_spec 22843 22844# Whether the compiler copes with passing no objects directly. 22845compiler_needs_object=$lt_compiler_needs_object 22846 22847# Create an old-style archive from a shared archive. 22848old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22849 22850# Create a temporary old-style archive to link instead of a shared archive. 22851old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22852 22853# Commands used to build a shared archive. 22854archive_cmds=$lt_archive_cmds 22855archive_expsym_cmds=$lt_archive_expsym_cmds 22856 22857# Commands used to build a loadable module if different from building 22858# a shared archive. 22859module_cmds=$lt_module_cmds 22860module_expsym_cmds=$lt_module_expsym_cmds 22861 22862# Whether we are building with GNU ld or not. 22863with_gnu_ld=$lt_with_gnu_ld 22864 22865# Flag that allows shared libraries with undefined symbols to be built. 22866allow_undefined_flag=$lt_allow_undefined_flag 22867 22868# Flag that enforces no undefined symbols. 22869no_undefined_flag=$lt_no_undefined_flag 22870 22871# Flag to hardcode \$libdir into a binary during linking. 22872# This must work even if \$libdir does not exist 22873hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22874 22875# Whether we need a single "-rpath" flag with a separated argument. 22876hardcode_libdir_separator=$lt_hardcode_libdir_separator 22877 22878# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22879# DIR into the resulting binary. 22880hardcode_direct=$hardcode_direct 22881 22882# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22883# DIR into the resulting binary and the resulting library dependency is 22884# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22885# library is relocated. 22886hardcode_direct_absolute=$hardcode_direct_absolute 22887 22888# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22889# into the resulting binary. 22890hardcode_minus_L=$hardcode_minus_L 22891 22892# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22893# into the resulting binary. 22894hardcode_shlibpath_var=$hardcode_shlibpath_var 22895 22896# Set to "yes" if building a shared library automatically hardcodes DIR 22897# into the library and all subsequent libraries and executables linked 22898# against it. 22899hardcode_automatic=$hardcode_automatic 22900 22901# Set to yes if linker adds runtime paths of dependent libraries 22902# to runtime path list. 22903inherit_rpath=$inherit_rpath 22904 22905# Whether libtool must link a program against all its dependency libraries. 22906link_all_deplibs=$link_all_deplibs 22907 22908# Set to "yes" if exported symbols are required. 22909always_export_symbols=$always_export_symbols 22910 22911# The commands to list exported symbols. 22912export_symbols_cmds=$lt_export_symbols_cmds 22913 22914# Symbols that should not be listed in the preloaded symbols. 22915exclude_expsyms=$lt_exclude_expsyms 22916 22917# Symbols that must always be exported. 22918include_expsyms=$lt_include_expsyms 22919 22920# Commands necessary for linking programs (against libraries) with templates. 22921prelink_cmds=$lt_prelink_cmds 22922 22923# Commands necessary for finishing linking programs. 22924postlink_cmds=$lt_postlink_cmds 22925 22926# Specify filename containing input files. 22927file_list_spec=$lt_file_list_spec 22928 22929# How to hardcode a shared library path into an executable. 22930hardcode_action=$hardcode_action 22931 22932# ### END LIBTOOL CONFIG 22933 22934_LT_EOF 22935 22936 cat <<'_LT_EOF' >> "$cfgfile" 22937 22938# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22939 22940# func_munge_path_list VARIABLE PATH 22941# ----------------------------------- 22942# VARIABLE is name of variable containing _space_ separated list of 22943# directories to be munged by the contents of PATH, which is string 22944# having a format: 22945# "DIR[:DIR]:" 22946# string "DIR[ DIR]" will be prepended to VARIABLE 22947# ":DIR[:DIR]" 22948# string "DIR[ DIR]" will be appended to VARIABLE 22949# "DIRP[:DIRP]::[DIRA:]DIRA" 22950# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22951# "DIRA[ DIRA]" will be appended to VARIABLE 22952# "DIR[:DIR]" 22953# VARIABLE will be replaced by "DIR[ DIR]" 22954func_munge_path_list () 22955{ 22956 case x$2 in 22957 x) 22958 ;; 22959 *:) 22960 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22961 ;; 22962 x:*) 22963 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22964 ;; 22965 *::*) 22966 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22967 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22968 ;; 22969 *) 22970 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22971 ;; 22972 esac 22973} 22974 22975 22976# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22977func_cc_basename () 22978{ 22979 for cc_temp in $*""; do 22980 case $cc_temp in 22981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22983 \-*) ;; 22984 *) break;; 22985 esac 22986 done 22987 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22988} 22989 22990 22991# ### END FUNCTIONS SHARED WITH CONFIGURE 22992 22993_LT_EOF 22994 22995 case $host_os in 22996 aix3*) 22997 cat <<\_LT_EOF >> "$cfgfile" 22998# AIX sometimes has problems with the GCC collect2 program. For some 22999# reason, if we set the COLLECT_NAMES environment variable, the problems 23000# vanish in a puff of smoke. 23001if test set != "${COLLECT_NAMES+set}"; then 23002 COLLECT_NAMES= 23003 export COLLECT_NAMES 23004fi 23005_LT_EOF 23006 ;; 23007 esac 23008 23009 23010 23011ltmain=$ac_aux_dir/ltmain.sh 23012 23013 23014 # We use sed instead of cat because bash on DJGPP gets confused if 23015 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23016 # text mode, it properly converts lines to CR/LF. This bash problem 23017 # is reportedly fixed, but why not run on old versions too? 23018 sed '$q' "$ltmain" >> "$cfgfile" \ 23019 || (rm -f "$cfgfile"; exit 1) 23020 23021 mv -f "$cfgfile" "$ofile" || 23022 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23023 chmod +x "$ofile" 23024 23025 ;; 23026 23027 esac 23028done # for ac_tag 23029 23030 23031as_fn_exit 0 23032_ACEOF 23033ac_clean_files=$ac_clean_files_save 23034 23035test $ac_write_fail = 0 || 23036 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23037 23038 23039# configure is writing to config.log, and then calls config.status. 23040# config.status does its own redirection, appending to config.log. 23041# Unfortunately, on DOS this fails, as config.log is still kept open 23042# by configure, so config.status won't be able to write to it; its 23043# output is simply discarded. So we exec the FD to /dev/null, 23044# effectively closing config.log, so it can be properly (re)opened and 23045# appended to by config.status. When coming back to configure, we 23046# need to make the FD available again. 23047if test "$no_create" != yes; then 23048 ac_cs_success=: 23049 ac_config_status_args= 23050 test "$silent" = yes && 23051 ac_config_status_args="$ac_config_status_args --quiet" 23052 exec 5>/dev/null 23053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23054 exec 5>>config.log 23055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23056 # would make configure fail if this is the last instruction. 23057 $ac_cs_success || as_fn_exit 1 23058fi 23059if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23061printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23062fi 23063 23064 23065echo "" 23066echo " prefix: $prefix" 23067echo " exec_prefix: $exec_prefix" 23068echo " libdir: $libdir" 23069echo " includedir: $includedir" 23070echo " configdir: $configdir" 23071 23072echo "" 23073echo " CFLAGS: $CFLAGS" 23074echo " CXXFLAGS: $CXXFLAGS" 23075echo " Macros: $DEFINES" 23076 23077echo "" 23078echo " Run '${MAKE-make}' to build xf86-video-amdgpu" 23079echo "" 23080 23081