1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-mach64 6.9.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/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-mach64/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-mach64' 624PACKAGE_TARNAME='xf86-video-mach64' 625PACKAGE_VERSION='6.9.7' 626PACKAGE_STRING='xf86-video-mach64 6.9.7' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/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 669XSERVER_LIBPCIACCESS_FALSE 670XSERVER_LIBPCIACCESS_TRUE 671PCIACCESS_LIBS 672PCIACCESS_CFLAGS 673USE_EXA_FALSE 674USE_EXA_TRUE 675XAA_FALSE 676XAA_TRUE 677CPP 678ATIMISC_TV_OUT_FALSE 679ATIMISC_TV_OUT_TRUE 680ATIMISC_DGA_FALSE 681ATIMISC_DGA_TRUE 682ATIMISC_CPIO_FALSE 683ATIMISC_CPIO_TRUE 684DRI_LIBS 685DRI_CFLAGS 686DRI_FALSE 687DRI_TRUE 688HAVE_XEXTPROTO_71_FALSE 689HAVE_XEXTPROTO_71_TRUE 690XEXT_LIBS 691XEXT_CFLAGS 692XORG_LIBS 693XORG_CFLAGS 694LT_SYS_LIBRARY_PATH 695OTOOL64 696OTOOL 697LIPO 698NMEDIT 699DSYMUTIL 700MANIFEST_TOOL 701RANLIB 702ac_ct_AR 703AR 704DLLTOOL 705OBJDUMP 706FILECMD 707LN_S 708NM 709ac_ct_DUMPBIN 710DUMPBIN 711LD 712FGREP 713EGREP 714GREP 715LIBTOOL 716MAN_SUBSTS 717XORG_MAN_PAGE 718ADMIN_MAN_DIR 719DRIVER_MAN_DIR 720MISC_MAN_DIR 721FILE_MAN_DIR 722LIB_MAN_DIR 723APP_MAN_DIR 724ADMIN_MAN_SUFFIX 725DRIVER_MAN_SUFFIX 726MISC_MAN_SUFFIX 727FILE_MAN_SUFFIX 728LIB_MAN_SUFFIX 729APP_MAN_SUFFIX 730SED 731host_os 732host_vendor 733host_cpu 734host 735build_os 736build_vendor 737build_cpu 738build 739INSTALL_CMD 740PKG_CONFIG_LIBDIR 741PKG_CONFIG_PATH 742PKG_CONFIG 743CHANGELOG_CMD 744STRICT_CFLAGS 745CWARNFLAGS 746BASE_CFLAGS 747am__fastdepCC_FALSE 748am__fastdepCC_TRUE 749CCDEPMODE 750am__nodep 751AMDEPBACKSLASH 752AMDEP_FALSE 753AMDEP_TRUE 754am__include 755DEPDIR 756OBJEXT 757EXEEXT 758ac_ct_CC 759CPPFLAGS 760LDFLAGS 761CFLAGS 762CC 763AM_BACKSLASH 764AM_DEFAULT_VERBOSITY 765AM_DEFAULT_V 766AM_V 767CSCOPE 768ETAGS 769CTAGS 770am__untar 771am__tar 772AMTAR 773am__leading_dot 774SET_MAKE 775AWK 776mkdir_p 777MKDIR_P 778INSTALL_STRIP_PROGRAM 779STRIP 780install_sh 781MAKEINFO 782AUTOHEADER 783AUTOMAKE 784AUTOCONF 785ACLOCAL 786VERSION 787PACKAGE 788CYGPATH_W 789am__isrc 790INSTALL_DATA 791INSTALL_SCRIPT 792INSTALL_PROGRAM 793target_alias 794host_alias 795build_alias 796LIBS 797ECHO_T 798ECHO_N 799ECHO_C 800DEFS 801mandir 802localedir 803libdir 804psdir 805pdfdir 806dvidir 807htmldir 808infodir 809docdir 810oldincludedir 811includedir 812runstatedir 813localstatedir 814sharedstatedir 815sysconfdir 816datadir 817datarootdir 818libexecdir 819sbindir 820bindir 821program_transform_name 822prefix 823exec_prefix 824PACKAGE_URL 825PACKAGE_BUGREPORT 826PACKAGE_STRING 827PACKAGE_VERSION 828PACKAGE_TARNAME 829PACKAGE_NAME 830PATH_SEPARATOR 831SHELL 832am__quote' 833ac_subst_files='' 834ac_user_opts=' 835enable_option_checking 836enable_silent_rules 837enable_dependency_tracking 838enable_selective_werror 839enable_strict_compilation 840enable_static 841enable_shared 842with_pic 843enable_fast_install 844with_aix_soname 845with_gnu_ld 846with_sysroot 847enable_libtool_lock 848with_xorg_module_dir 849enable_dri 850enable_exa 851enable_xaa 852' 853 ac_precious_vars='build_alias 854host_alias 855target_alias 856CC 857CFLAGS 858LDFLAGS 859LIBS 860CPPFLAGS 861PKG_CONFIG 862PKG_CONFIG_PATH 863PKG_CONFIG_LIBDIR 864LT_SYS_LIBRARY_PATH 865XORG_CFLAGS 866XORG_LIBS 867XEXT_CFLAGS 868XEXT_LIBS 869DRI_CFLAGS 870DRI_LIBS 871CPP 872PCIACCESS_CFLAGS 873PCIACCESS_LIBS' 874 875 876# Initialize some variables set by options. 877ac_init_help= 878ac_init_version=false 879ac_unrecognized_opts= 880ac_unrecognized_sep= 881# The variables have the same names as the options, with 882# dashes changed to underlines. 883cache_file=/dev/null 884exec_prefix=NONE 885no_create= 886no_recursion= 887prefix=NONE 888program_prefix=NONE 889program_suffix=NONE 890program_transform_name=s,x,x, 891silent= 892site= 893srcdir= 894verbose= 895x_includes=NONE 896x_libraries=NONE 897 898# Installation directory options. 899# These are left unexpanded so users can "make install exec_prefix=/foo" 900# and all the variables that are supposed to be based on exec_prefix 901# by default will actually change. 902# Use braces instead of parens because sh, perl, etc. also accept them. 903# (The list follows the same order as the GNU Coding Standards.) 904bindir='${exec_prefix}/bin' 905sbindir='${exec_prefix}/sbin' 906libexecdir='${exec_prefix}/libexec' 907datarootdir='${prefix}/share' 908datadir='${datarootdir}' 909sysconfdir='${prefix}/etc' 910sharedstatedir='${prefix}/com' 911localstatedir='${prefix}/var' 912runstatedir='${localstatedir}/run' 913includedir='${prefix}/include' 914oldincludedir='/usr/include' 915docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 916infodir='${datarootdir}/info' 917htmldir='${docdir}' 918dvidir='${docdir}' 919pdfdir='${docdir}' 920psdir='${docdir}' 921libdir='${exec_prefix}/lib' 922localedir='${datarootdir}/locale' 923mandir='${datarootdir}/man' 924 925ac_prev= 926ac_dashdash= 927for ac_option 928do 929 # If the previous option needs an argument, assign it. 930 if test -n "$ac_prev"; then 931 eval $ac_prev=\$ac_option 932 ac_prev= 933 continue 934 fi 935 936 case $ac_option in 937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 938 *=) ac_optarg= ;; 939 *) ac_optarg=yes ;; 940 esac 941 942 case $ac_dashdash$ac_option in 943 --) 944 ac_dashdash=yes ;; 945 946 -bindir | --bindir | --bindi | --bind | --bin | --bi) 947 ac_prev=bindir ;; 948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 949 bindir=$ac_optarg ;; 950 951 -build | --build | --buil | --bui | --bu) 952 ac_prev=build_alias ;; 953 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 954 build_alias=$ac_optarg ;; 955 956 -cache-file | --cache-file | --cache-fil | --cache-fi \ 957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 958 ac_prev=cache_file ;; 959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 961 cache_file=$ac_optarg ;; 962 963 --config-cache | -C) 964 cache_file=config.cache ;; 965 966 -datadir | --datadir | --datadi | --datad) 967 ac_prev=datadir ;; 968 -datadir=* | --datadir=* | --datadi=* | --datad=*) 969 datadir=$ac_optarg ;; 970 971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 972 | --dataroo | --dataro | --datar) 973 ac_prev=datarootdir ;; 974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 976 datarootdir=$ac_optarg ;; 977 978 -disable-* | --disable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: \`$ac_useropt'" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987"enable_$ac_useropt" 988"*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=no ;; 993 994 -docdir | --docdir | --docdi | --doc | --do) 995 ac_prev=docdir ;; 996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 997 docdir=$ac_optarg ;; 998 999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1000 ac_prev=dvidir ;; 1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1002 dvidir=$ac_optarg ;; 1003 1004 -enable-* | --enable-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013"enable_$ac_useropt" 1014"*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval enable_$ac_useropt=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1164 | --runstate | --runstat | --runsta | --runst | --runs \ 1165 | --run | --ru | --r) 1166 ac_prev=runstatedir ;; 1167 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1168 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1169 | --run=* | --ru=* | --r=*) 1170 runstatedir=$ac_optarg ;; 1171 1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1173 ac_prev=sbindir ;; 1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1175 | --sbi=* | --sb=*) 1176 sbindir=$ac_optarg ;; 1177 1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1180 | --sharedst | --shareds | --shared | --share | --shar \ 1181 | --sha | --sh) 1182 ac_prev=sharedstatedir ;; 1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1186 | --sha=* | --sh=*) 1187 sharedstatedir=$ac_optarg ;; 1188 1189 -site | --site | --sit) 1190 ac_prev=site ;; 1191 -site=* | --site=* | --sit=*) 1192 site=$ac_optarg ;; 1193 1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1195 ac_prev=srcdir ;; 1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1197 srcdir=$ac_optarg ;; 1198 1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1200 | --syscon | --sysco | --sysc | --sys | --sy) 1201 ac_prev=sysconfdir ;; 1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1204 sysconfdir=$ac_optarg ;; 1205 1206 -target | --target | --targe | --targ | --tar | --ta | --t) 1207 ac_prev=target_alias ;; 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1209 target_alias=$ac_optarg ;; 1210 1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1212 verbose=yes ;; 1213 1214 -version | --version | --versio | --versi | --vers | -V) 1215 ac_init_version=: ;; 1216 1217 -with-* | --with-*) 1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1221 as_fn_error $? "invalid package name: \`$ac_useropt'" 1222 ac_useropt_orig=$ac_useropt 1223 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1224 case $ac_user_opts in 1225 *" 1226"with_$ac_useropt" 1227"*) ;; 1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1229 ac_unrecognized_sep=', ';; 1230 esac 1231 eval with_$ac_useropt=\$ac_optarg ;; 1232 1233 -without-* | --without-*) 1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1235 # Reject names that are not valid shell variable names. 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1237 as_fn_error $? "invalid package name: \`$ac_useropt'" 1238 ac_useropt_orig=$ac_useropt 1239 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1240 case $ac_user_opts in 1241 *" 1242"with_$ac_useropt" 1243"*) ;; 1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1245 ac_unrecognized_sep=', ';; 1246 esac 1247 eval with_$ac_useropt=no ;; 1248 1249 --x) 1250 # Obsolete; use --with-x. 1251 with_x=yes ;; 1252 1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1254 | --x-incl | --x-inc | --x-in | --x-i) 1255 ac_prev=x_includes ;; 1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1258 x_includes=$ac_optarg ;; 1259 1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1262 ac_prev=x_libraries ;; 1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1265 x_libraries=$ac_optarg ;; 1266 1267 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1268Try \`$0 --help' for more information" 1269 ;; 1270 1271 *=*) 1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1273 # Reject names that are not valid shell variable names. 1274 case $ac_envvar in #( 1275 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1277 esac 1278 eval $ac_envvar=\$ac_optarg 1279 export $ac_envvar ;; 1280 1281 *) 1282 # FIXME: should be removed in autoconf 3.0. 1283 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1285 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1286 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1287 ;; 1288 1289 esac 1290done 1291 1292if test -n "$ac_prev"; then 1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1294 as_fn_error $? "missing argument to $ac_option" 1295fi 1296 1297if test -n "$ac_unrecognized_opts"; then 1298 case $enable_option_checking in 1299 no) ;; 1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1301 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1302 esac 1303fi 1304 1305# Check all directory arguments for consistency. 1306for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1307 datadir sysconfdir sharedstatedir localstatedir includedir \ 1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1309 libdir localedir mandir runstatedir 1310do 1311 eval ac_val=\$$ac_var 1312 # Remove trailing slashes. 1313 case $ac_val in 1314 */ ) 1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1316 eval $ac_var=\$ac_val;; 1317 esac 1318 # Be sure to have absolute directory names. 1319 case $ac_val in 1320 [\\/$]* | ?:[\\/]* ) continue;; 1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1322 esac 1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1324done 1325 1326# There might be people who depend on the old broken behavior: `$host' 1327# used to hold the argument of --host etc. 1328# FIXME: To remove some day. 1329build=$build_alias 1330host=$host_alias 1331target=$target_alias 1332 1333# FIXME: To remove some day. 1334if test "x$host_alias" != x; then 1335 if test "x$build_alias" = x; then 1336 cross_compiling=maybe 1337 elif test "x$build_alias" != "x$host_alias"; then 1338 cross_compiling=yes 1339 fi 1340fi 1341 1342ac_tool_prefix= 1343test -n "$host_alias" && ac_tool_prefix=$host_alias- 1344 1345test "$silent" = yes && exec 6>/dev/null 1346 1347 1348ac_pwd=`pwd` && test -n "$ac_pwd" && 1349ac_ls_di=`ls -di .` && 1350ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1351 as_fn_error $? "working directory cannot be determined" 1352test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1353 as_fn_error $? "pwd does not report name of working directory" 1354 1355 1356# Find the source files, if location was not specified. 1357if test -z "$srcdir"; then 1358 ac_srcdir_defaulted=yes 1359 # Try the directory containing this script, then the parent directory. 1360 ac_confdir=`$as_dirname -- "$as_myself" || 1361$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1362 X"$as_myself" : 'X\(//\)[^/]' \| \ 1363 X"$as_myself" : 'X\(//\)$' \| \ 1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1365printf "%s\n" X"$as_myself" | 1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\/\)[^/].*/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\/\)$/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\).*/{ 1379 s//\1/ 1380 q 1381 } 1382 s/.*/./; q'` 1383 srcdir=$ac_confdir 1384 if test ! -r "$srcdir/$ac_unique_file"; then 1385 srcdir=.. 1386 fi 1387else 1388 ac_srcdir_defaulted=no 1389fi 1390if test ! -r "$srcdir/$ac_unique_file"; then 1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1392 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1393fi 1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1395ac_abs_confdir=`( 1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1397 pwd)` 1398# When building in place, set srcdir=. 1399if test "$ac_abs_confdir" = "$ac_pwd"; then 1400 srcdir=. 1401fi 1402# Remove unnecessary trailing slashes from srcdir. 1403# Double slashes in file names in object file debugging info 1404# mess up M-x gdb in Emacs. 1405case $srcdir in 1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1407esac 1408for ac_var in $ac_precious_vars; do 1409 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_env_${ac_var}_value=\$${ac_var} 1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1412 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1413done 1414 1415# 1416# Report the --help message. 1417# 1418if test "$ac_init_help" = "long"; then 1419 # Omit some internal or obsolete options to make the list less imposing. 1420 # This message is too long to be a string in the A/UX 3.1 sh. 1421 cat <<_ACEOF 1422\`configure' configures xf86-video-mach64 6.9.7 to adapt to many kinds of systems. 1423 1424Usage: $0 [OPTION]... [VAR=VALUE]... 1425 1426To assign environment variables (e.g., CC, CFLAGS...), specify them as 1427VAR=VALUE. See below for descriptions of some of the useful variables. 1428 1429Defaults for the options are specified in brackets. 1430 1431Configuration: 1432 -h, --help display this help and exit 1433 --help=short display options specific to this package 1434 --help=recursive display the short help of all the included packages 1435 -V, --version display version information and exit 1436 -q, --quiet, --silent do not print \`checking ...' messages 1437 --cache-file=FILE cache test results in FILE [disabled] 1438 -C, --config-cache alias for \`--cache-file=config.cache' 1439 -n, --no-create do not create output files 1440 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1441 1442Installation directories: 1443 --prefix=PREFIX install architecture-independent files in PREFIX 1444 [$ac_default_prefix] 1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1446 [PREFIX] 1447 1448By default, \`make install' will install all the files in 1449\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1450an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1451for instance \`--prefix=\$HOME'. 1452 1453For better control, use the options below. 1454 1455Fine tuning of the installation directories: 1456 --bindir=DIR user executables [EPREFIX/bin] 1457 --sbindir=DIR system admin executables [EPREFIX/sbin] 1458 --libexecdir=DIR program executables [EPREFIX/libexec] 1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1462 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1463 --libdir=DIR object code libraries [EPREFIX/lib] 1464 --includedir=DIR C header files [PREFIX/include] 1465 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1468 --infodir=DIR info documentation [DATAROOTDIR/info] 1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1470 --mandir=DIR man documentation [DATAROOTDIR/man] 1471 --docdir=DIR documentation root 1472 [DATAROOTDIR/doc/xf86-video-mach64] 1473 --htmldir=DIR html documentation [DOCDIR] 1474 --dvidir=DIR dvi documentation [DOCDIR] 1475 --pdfdir=DIR pdf documentation [DOCDIR] 1476 --psdir=DIR ps documentation [DOCDIR] 1477_ACEOF 1478 1479 cat <<\_ACEOF 1480 1481Program names: 1482 --program-prefix=PREFIX prepend PREFIX to installed program names 1483 --program-suffix=SUFFIX append SUFFIX to installed program names 1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1485 1486System types: 1487 --build=BUILD configure for building on BUILD [guessed] 1488 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1489_ACEOF 1490fi 1491 1492if test -n "$ac_init_help"; then 1493 case $ac_init_help in 1494 short | recursive ) echo "Configuration of xf86-video-mach64 6.9.7:";; 1495 esac 1496 cat <<\_ACEOF 1497 1498Optional Features: 1499 --disable-option-checking ignore unrecognized --enable/--with options 1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1502 --enable-silent-rules less verbose build output (undo: "make V=1") 1503 --disable-silent-rules verbose build output (undo: "make V=0") 1504 --enable-dependency-tracking 1505 do not reject slow dependency extractors 1506 --disable-dependency-tracking 1507 speeds up one-time build 1508 --disable-selective-werror 1509 Turn off selective compiler errors. (default: 1510 enabled) 1511 --enable-strict-compilation 1512 Enable all warnings from compiler and make them 1513 errors (default: disabled) 1514 --enable-static[=PKGS] build static libraries [default=no] 1515 --enable-shared[=PKGS] build shared libraries [default=yes] 1516 --enable-fast-install[=PKGS] 1517 optimize for fast installation [default=yes] 1518 --disable-libtool-lock avoid locking (might break parallel builds) 1519 --disable-dri Disable DRI support [[default=auto]] 1520 --disable-exa Disable EXA support [[default=enabled]] 1521 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1522 [default=auto] 1523 1524Optional Packages: 1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1527 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1528 both] 1529 --with-aix-soname=aix|svr4|both 1530 shared library versioning (aka "SONAME") variant to 1531 provide on AIX, [default=aix]. 1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1533 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1534 compiler's sysroot if not specified). 1535 --with-xorg-module-dir=DIR 1536 Default xorg module directory 1537 [[default=$libdir/xorg/modules]] 1538 1539Some influential environment variables: 1540 CC C compiler command 1541 CFLAGS C compiler flags 1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1543 nonstandard directory <lib dir> 1544 LIBS libraries to pass to the linker, e.g. -l<library> 1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1546 you have headers in a nonstandard directory <include dir> 1547 PKG_CONFIG path to pkg-config utility 1548 PKG_CONFIG_PATH 1549 directories to add to pkg-config's search path 1550 PKG_CONFIG_LIBDIR 1551 path overriding pkg-config's built-in search path 1552 LT_SYS_LIBRARY_PATH 1553 User-defined run-time library search path. 1554 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1555 XORG_LIBS linker flags for XORG, overriding pkg-config 1556 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1557 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1558 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1559 DRI_LIBS linker flags for DRI, overriding pkg-config 1560 CPP C preprocessor 1561 PCIACCESS_CFLAGS 1562 C compiler flags for PCIACCESS, overriding pkg-config 1563 PCIACCESS_LIBS 1564 linker flags for PCIACCESS, overriding pkg-config 1565 1566Use these variables to override the choices made by `configure' or to help 1567it to find libraries and programs with nonstandard names/locations. 1568 1569Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/issues>. 1570_ACEOF 1571ac_status=$? 1572fi 1573 1574if test "$ac_init_help" = "recursive"; then 1575 # If there are subdirs, report their specific --help. 1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1577 test -d "$ac_dir" || 1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1579 continue 1580 ac_builddir=. 1581 1582case "$ac_dir" in 1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584*) 1585 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1586 # A ".." for each directory in $ac_dir_suffix. 1587 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1588 case $ac_top_builddir_sub in 1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1591 esac ;; 1592esac 1593ac_abs_top_builddir=$ac_pwd 1594ac_abs_builddir=$ac_pwd$ac_dir_suffix 1595# for backward compatibility: 1596ac_top_builddir=$ac_top_build_prefix 1597 1598case $srcdir in 1599 .) # We are building in place. 1600 ac_srcdir=. 1601 ac_top_srcdir=$ac_top_builddir_sub 1602 ac_abs_top_srcdir=$ac_pwd ;; 1603 [\\/]* | ?:[\\/]* ) # Absolute name. 1604 ac_srcdir=$srcdir$ac_dir_suffix; 1605 ac_top_srcdir=$srcdir 1606 ac_abs_top_srcdir=$srcdir ;; 1607 *) # Relative name. 1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1609 ac_top_srcdir=$ac_top_build_prefix$srcdir 1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1611esac 1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1613 1614 cd "$ac_dir" || { ac_status=$?; continue; } 1615 # Check for configure.gnu first; this name is used for a wrapper for 1616 # Metaconfig's "Configure" on case-insensitive file systems. 1617 if test -f "$ac_srcdir/configure.gnu"; then 1618 echo && 1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1620 elif test -f "$ac_srcdir/configure"; then 1621 echo && 1622 $SHELL "$ac_srcdir/configure" --help=recursive 1623 else 1624 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1625 fi || ac_status=$? 1626 cd "$ac_pwd" || { ac_status=$?; break; } 1627 done 1628fi 1629 1630test -n "$ac_init_help" && exit $ac_status 1631if $ac_init_version; then 1632 cat <<\_ACEOF 1633xf86-video-mach64 configure 6.9.7 1634generated by GNU Autoconf 2.71 1635 1636Copyright (C) 2021 Free Software Foundation, Inc. 1637This configure script is free software; the Free Software Foundation 1638gives unlimited permission to copy, distribute and modify it. 1639_ACEOF 1640 exit 1641fi 1642 1643## ------------------------ ## 1644## Autoconf initialization. ## 1645## ------------------------ ## 1646 1647# ac_fn_c_try_compile LINENO 1648# -------------------------- 1649# Try to compile conftest.$ac_ext, and return whether this succeeded. 1650ac_fn_c_try_compile () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 rm -f conftest.$ac_objext conftest.beam 1654 if { { ac_try="$ac_compile" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660printf "%s\n" "$ac_try_echo"; } >&5 1661 (eval "$ac_compile") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } && { 1670 test -z "$ac_c_werror_flag" || 1671 test ! -s conftest.err 1672 } && test -s conftest.$ac_objext 1673then : 1674 ac_retval=0 1675else $as_nop 1676 printf "%s\n" "$as_me: failed program was:" >&5 1677sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=1 1680fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684} # ac_fn_c_try_compile 1685 1686# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1687# ------------------------------------------------------------------ 1688# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1689# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1690ac_fn_check_decl () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 as_decl_name=`echo $2|sed 's/ *(.*//'` 1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1695printf %s "checking whether $as_decl_name is declared... " >&6; } 1696if eval test \${$3+y} 1697then : 1698 printf %s "(cached) " >&6 1699else $as_nop 1700 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1701 eval ac_save_FLAGS=\$$6 1702 as_fn_append $6 " $5" 1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704/* end confdefs.h. */ 1705$4 1706int 1707main (void) 1708{ 1709#ifndef $as_decl_name 1710#ifdef __cplusplus 1711 (void) $as_decl_use; 1712#else 1713 (void) $as_decl_name; 1714#endif 1715#endif 1716 1717 ; 1718 return 0; 1719} 1720_ACEOF 1721if ac_fn_c_try_compile "$LINENO" 1722then : 1723 eval "$3=yes" 1724else $as_nop 1725 eval "$3=no" 1726fi 1727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1728 eval $6=\$ac_save_FLAGS 1729 1730fi 1731eval ac_res=\$$3 1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1733printf "%s\n" "$ac_res" >&6; } 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 1736} # ac_fn_check_decl 1737 1738# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1739# ------------------------------------------------------- 1740# Tests whether HEADER exists and can be compiled using the include files in 1741# INCLUDES, setting the cache variable VAR accordingly. 1742ac_fn_c_check_header_compile () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1746printf %s "checking for $2... " >&6; } 1747if eval test \${$3+y} 1748then : 1749 printf %s "(cached) " >&6 1750else $as_nop 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_compile "$LINENO" 1757then : 1758 eval "$3=yes" 1759else $as_nop 1760 eval "$3=no" 1761fi 1762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1763fi 1764eval ac_res=\$$3 1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1766printf "%s\n" "$ac_res" >&6; } 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 1769} # ac_fn_c_check_header_compile 1770 1771# ac_fn_c_try_link LINENO 1772# ----------------------- 1773# Try to link conftest.$ac_ext, and return whether this succeeded. 1774ac_fn_c_try_link () 1775{ 1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1777 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1778 if { { ac_try="$ac_link" 1779case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784printf "%s\n" "$ac_try_echo"; } >&5 1785 (eval "$ac_link") 2>conftest.err 1786 ac_status=$? 1787 if test -s conftest.err; then 1788 grep -v '^ *+' conftest.err >conftest.er1 1789 cat conftest.er1 >&5 1790 mv -f conftest.er1 conftest.err 1791 fi 1792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; } && { 1794 test -z "$ac_c_werror_flag" || 1795 test ! -s conftest.err 1796 } && test -s conftest$ac_exeext && { 1797 test "$cross_compiling" = yes || 1798 test -x conftest$ac_exeext 1799 } 1800then : 1801 ac_retval=0 1802else $as_nop 1803 printf "%s\n" "$as_me: failed program was:" >&5 1804sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=1 1807fi 1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1810 # interfere with the next link command; also delete a directory that is 1811 # left behind by Apple's compiler. We do this before executing the actions. 1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 as_fn_set_status $ac_retval 1815 1816} # ac_fn_c_try_link 1817 1818# ac_fn_c_check_func LINENO FUNC VAR 1819# ---------------------------------- 1820# Tests whether FUNC exists, setting the cache variable VAR accordingly 1821ac_fn_c_check_func () 1822{ 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1825printf %s "checking for $2... " >&6; } 1826if eval test \${$3+y} 1827then : 1828 printf %s "(cached) " >&6 1829else $as_nop 1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831/* end confdefs.h. */ 1832/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1834#define $2 innocuous_$2 1835 1836/* System header to define __stub macros and hopefully few prototypes, 1837 which can conflict with char $2 (); below. */ 1838 1839#include <limits.h> 1840#undef $2 1841 1842/* Override any GCC internal prototype to avoid an error. 1843 Use char because int might match the return type of a GCC 1844 builtin and then its argument prototype would still apply. */ 1845#ifdef __cplusplus 1846extern "C" 1847#endif 1848char $2 (); 1849/* The GNU C library defines this for functions which it implements 1850 to always fail with ENOSYS. Some functions are actually named 1851 something starting with __ and the normal name is an alias. */ 1852#if defined __stub_$2 || defined __stub___$2 1853choke me 1854#endif 1855 1856int 1857main (void) 1858{ 1859return $2 (); 1860 ; 1861 return 0; 1862} 1863_ACEOF 1864if ac_fn_c_try_link "$LINENO" 1865then : 1866 eval "$3=yes" 1867else $as_nop 1868 eval "$3=no" 1869fi 1870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1871 conftest$ac_exeext conftest.$ac_ext 1872fi 1873eval ac_res=\$$3 1874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1875printf "%s\n" "$ac_res" >&6; } 1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1877 1878} # ac_fn_c_check_func 1879 1880# ac_fn_c_try_cpp LINENO 1881# ---------------------- 1882# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1883ac_fn_c_try_cpp () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 if { { ac_try="$ac_cpp conftest.$ac_ext" 1887case "(($ac_try" in 1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1889 *) ac_try_echo=$ac_try;; 1890esac 1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1892printf "%s\n" "$ac_try_echo"; } >&5 1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1894 ac_status=$? 1895 if test -s conftest.err; then 1896 grep -v '^ *+' conftest.err >conftest.er1 1897 cat conftest.er1 >&5 1898 mv -f conftest.er1 conftest.err 1899 fi 1900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1901 test $ac_status = 0; } > conftest.i && { 1902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1903 test ! -s conftest.err 1904 } 1905then : 1906 ac_retval=0 1907else $as_nop 1908 printf "%s\n" "$as_me: failed program was:" >&5 1909sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=1 1912fi 1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1914 as_fn_set_status $ac_retval 1915 1916} # ac_fn_c_try_cpp 1917ac_configure_args_raw= 1918for ac_arg 1919do 1920 case $ac_arg in 1921 *\'*) 1922 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1923 esac 1924 as_fn_append ac_configure_args_raw " '$ac_arg'" 1925done 1926 1927case $ac_configure_args_raw in 1928 *$as_nl*) 1929 ac_safe_unquote= ;; 1930 *) 1931 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1932 ac_unsafe_a="$ac_unsafe_z#~" 1933 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1934 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1935esac 1936 1937cat >config.log <<_ACEOF 1938This file contains any messages produced by compilers while 1939running configure, to aid debugging if configure makes a mistake. 1940 1941It was created by xf86-video-mach64 $as_me 6.9.7, which was 1942generated by GNU Autoconf 2.71. Invocation command line was 1943 1944 $ $0$ac_configure_args_raw 1945 1946_ACEOF 1947exec 5>>config.log 1948{ 1949cat <<_ASUNAME 1950## --------- ## 1951## Platform. ## 1952## --------- ## 1953 1954hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1955uname -m = `(uname -m) 2>/dev/null || echo unknown` 1956uname -r = `(uname -r) 2>/dev/null || echo unknown` 1957uname -s = `(uname -s) 2>/dev/null || echo unknown` 1958uname -v = `(uname -v) 2>/dev/null || echo unknown` 1959 1960/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1961/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1962 1963/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1964/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1965/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1966/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1967/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1968/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1969/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1970 1971_ASUNAME 1972 1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 case $as_dir in #((( 1978 '') as_dir=./ ;; 1979 */) ;; 1980 *) as_dir=$as_dir/ ;; 1981 esac 1982 printf "%s\n" "PATH: $as_dir" 1983 done 1984IFS=$as_save_IFS 1985 1986} >&5 1987 1988cat >&5 <<_ACEOF 1989 1990 1991## ----------- ## 1992## Core tests. ## 1993## ----------- ## 1994 1995_ACEOF 1996 1997 1998# Keep a trace of the command line. 1999# Strip out --no-create and --no-recursion so they do not pile up. 2000# Strip out --silent because we don't want to record it for future runs. 2001# Also quote any args containing shell meta-characters. 2002# Make two passes to allow for proper duplicate-argument suppression. 2003ac_configure_args= 2004ac_configure_args0= 2005ac_configure_args1= 2006ac_must_keep_next=false 2007for ac_pass in 1 2 2008do 2009 for ac_arg 2010 do 2011 case $ac_arg in 2012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2014 | -silent | --silent | --silen | --sile | --sil) 2015 continue ;; 2016 *\'*) 2017 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2018 esac 2019 case $ac_pass in 2020 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2021 2) 2022 as_fn_append ac_configure_args1 " '$ac_arg'" 2023 if test $ac_must_keep_next = true; then 2024 ac_must_keep_next=false # Got value, back to normal. 2025 else 2026 case $ac_arg in 2027 *=* | --config-cache | -C | -disable-* | --disable-* \ 2028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2030 | -with-* | --with-* | -without-* | --without-* | --x) 2031 case "$ac_configure_args0 " in 2032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2033 esac 2034 ;; 2035 -* ) ac_must_keep_next=true ;; 2036 esac 2037 fi 2038 as_fn_append ac_configure_args " '$ac_arg'" 2039 ;; 2040 esac 2041 done 2042done 2043{ ac_configure_args0=; unset ac_configure_args0;} 2044{ ac_configure_args1=; unset ac_configure_args1;} 2045 2046# When interrupted or exit'd, cleanup temporary files, and complete 2047# config.log. We remove comments because anyway the quotes in there 2048# would cause problems or look ugly. 2049# WARNING: Use '\'' to represent an apostrophe within the trap. 2050# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2051trap 'exit_status=$? 2052 # Sanitize IFS. 2053 IFS=" "" $as_nl" 2054 # Save into config.log some information that might help in debugging. 2055 { 2056 echo 2057 2058 printf "%s\n" "## ---------------- ## 2059## Cache variables. ## 2060## ---------------- ##" 2061 echo 2062 # The following way of writing the cache mishandles newlines in values, 2063( 2064 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2065 eval ac_val=\$$ac_var 2066 case $ac_val in #( 2067 *${as_nl}*) 2068 case $ac_var in #( 2069 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2070printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2071 esac 2072 case $ac_var in #( 2073 _ | IFS | as_nl) ;; #( 2074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2075 *) { eval $ac_var=; unset $ac_var;} ;; 2076 esac ;; 2077 esac 2078 done 2079 (set) 2>&1 | 2080 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2081 *${as_nl}ac_space=\ *) 2082 sed -n \ 2083 "s/'\''/'\''\\\\'\'''\''/g; 2084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2085 ;; #( 2086 *) 2087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2088 ;; 2089 esac | 2090 sort 2091) 2092 echo 2093 2094 printf "%s\n" "## ----------------- ## 2095## Output variables. ## 2096## ----------------- ##" 2097 echo 2098 for ac_var in $ac_subst_vars 2099 do 2100 eval ac_val=\$$ac_var 2101 case $ac_val in 2102 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2103 esac 2104 printf "%s\n" "$ac_var='\''$ac_val'\''" 2105 done | sort 2106 echo 2107 2108 if test -n "$ac_subst_files"; then 2109 printf "%s\n" "## ------------------- ## 2110## File substitutions. ## 2111## ------------------- ##" 2112 echo 2113 for ac_var in $ac_subst_files 2114 do 2115 eval ac_val=\$$ac_var 2116 case $ac_val in 2117 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2118 esac 2119 printf "%s\n" "$ac_var='\''$ac_val'\''" 2120 done | sort 2121 echo 2122 fi 2123 2124 if test -s confdefs.h; then 2125 printf "%s\n" "## ----------- ## 2126## confdefs.h. ## 2127## ----------- ##" 2128 echo 2129 cat confdefs.h 2130 echo 2131 fi 2132 test "$ac_signal" != 0 && 2133 printf "%s\n" "$as_me: caught signal $ac_signal" 2134 printf "%s\n" "$as_me: exit $exit_status" 2135 } >&5 2136 rm -f core *.core core.conftest.* && 2137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2138 exit $exit_status 2139' 0 2140for ac_signal in 1 2 13 15; do 2141 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2142done 2143ac_signal=0 2144 2145# confdefs.h avoids OS command line length limits that DEFS can exceed. 2146rm -f -r conftest* confdefs.h 2147 2148printf "%s\n" "/* confdefs.h */" > confdefs.h 2149 2150# Predefined preprocessor variables. 2151 2152printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2153 2154printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2155 2156printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2157 2158printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2159 2160printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2161 2162printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2163 2164 2165# Let the site file select an alternate cache file if it wants to. 2166# Prefer an explicitly selected file to automatically selected ones. 2167if test -n "$CONFIG_SITE"; then 2168 ac_site_files="$CONFIG_SITE" 2169elif test "x$prefix" != xNONE; then 2170 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2171else 2172 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2173fi 2174 2175for ac_site_file in $ac_site_files 2176do 2177 case $ac_site_file in #( 2178 */*) : 2179 ;; #( 2180 *) : 2181 ac_site_file=./$ac_site_file ;; 2182esac 2183 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2185printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2186 sed 's/^/| /' "$ac_site_file" >&5 2187 . "$ac_site_file" \ 2188 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2189printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2190as_fn_error $? "failed to load site script $ac_site_file 2191See \`config.log' for more details" "$LINENO" 5; } 2192 fi 2193done 2194 2195if test -r "$cache_file"; then 2196 # Some versions of bash will fail to source /dev/null (special files 2197 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2198 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2200printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2201 case $cache_file in 2202 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2203 *) . "./$cache_file";; 2204 esac 2205 fi 2206else 2207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2208printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2209 >$cache_file 2210fi 2211 2212# Test code for whether the C compiler supports C89 (global declarations) 2213ac_c_conftest_c89_globals=' 2214/* Does the compiler advertise C89 conformance? 2215 Do not test the value of __STDC__, because some compilers set it to 0 2216 while being otherwise adequately conformant. */ 2217#if !defined __STDC__ 2218# error "Compiler does not advertise C89 conformance" 2219#endif 2220 2221#include <stddef.h> 2222#include <stdarg.h> 2223struct stat; 2224/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2225struct buf { int x; }; 2226struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2227static char *e (p, i) 2228 char **p; 2229 int i; 2230{ 2231 return p[i]; 2232} 2233static char *f (char * (*g) (char **, int), char **p, ...) 2234{ 2235 char *s; 2236 va_list v; 2237 va_start (v,p); 2238 s = g (p, va_arg (v,int)); 2239 va_end (v); 2240 return s; 2241} 2242 2243/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2244 function prototypes and stuff, but not \xHH hex character constants. 2245 These do not provoke an error unfortunately, instead are silently treated 2246 as an "x". The following induces an error, until -std is added to get 2247 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2248 array size at least. It is necessary to write \x00 == 0 to get something 2249 that is true only with -std. */ 2250int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2251 2252/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2253 inside strings and character constants. */ 2254#define FOO(x) '\''x'\'' 2255int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2256 2257int test (int i, double x); 2258struct s1 {int (*f) (int a);}; 2259struct s2 {int (*f) (double a);}; 2260int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2261 int, int);' 2262 2263# Test code for whether the C compiler supports C89 (body of main). 2264ac_c_conftest_c89_main=' 2265ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2266' 2267 2268# Test code for whether the C compiler supports C99 (global declarations) 2269ac_c_conftest_c99_globals=' 2270// Does the compiler advertise C99 conformance? 2271#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2272# error "Compiler does not advertise C99 conformance" 2273#endif 2274 2275#include <stdbool.h> 2276extern int puts (const char *); 2277extern int printf (const char *, ...); 2278extern int dprintf (int, const char *, ...); 2279extern void *malloc (size_t); 2280 2281// Check varargs macros. These examples are taken from C99 6.10.3.5. 2282// dprintf is used instead of fprintf to avoid needing to declare 2283// FILE and stderr. 2284#define debug(...) dprintf (2, __VA_ARGS__) 2285#define showlist(...) puts (#__VA_ARGS__) 2286#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2287static void 2288test_varargs_macros (void) 2289{ 2290 int x = 1234; 2291 int y = 5678; 2292 debug ("Flag"); 2293 debug ("X = %d\n", x); 2294 showlist (The first, second, and third items.); 2295 report (x>y, "x is %d but y is %d", x, y); 2296} 2297 2298// Check long long types. 2299#define BIG64 18446744073709551615ull 2300#define BIG32 4294967295ul 2301#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2302#if !BIG_OK 2303 #error "your preprocessor is broken" 2304#endif 2305#if BIG_OK 2306#else 2307 #error "your preprocessor is broken" 2308#endif 2309static long long int bignum = -9223372036854775807LL; 2310static unsigned long long int ubignum = BIG64; 2311 2312struct incomplete_array 2313{ 2314 int datasize; 2315 double data[]; 2316}; 2317 2318struct named_init { 2319 int number; 2320 const wchar_t *name; 2321 double average; 2322}; 2323 2324typedef const char *ccp; 2325 2326static inline int 2327test_restrict (ccp restrict text) 2328{ 2329 // See if C++-style comments work. 2330 // Iterate through items via the restricted pointer. 2331 // Also check for declarations in for loops. 2332 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2333 continue; 2334 return 0; 2335} 2336 2337// Check varargs and va_copy. 2338static bool 2339test_varargs (const char *format, ...) 2340{ 2341 va_list args; 2342 va_start (args, format); 2343 va_list args_copy; 2344 va_copy (args_copy, args); 2345 2346 const char *str = ""; 2347 int number = 0; 2348 float fnumber = 0; 2349 2350 while (*format) 2351 { 2352 switch (*format++) 2353 { 2354 case '\''s'\'': // string 2355 str = va_arg (args_copy, const char *); 2356 break; 2357 case '\''d'\'': // int 2358 number = va_arg (args_copy, int); 2359 break; 2360 case '\''f'\'': // float 2361 fnumber = va_arg (args_copy, double); 2362 break; 2363 default: 2364 break; 2365 } 2366 } 2367 va_end (args_copy); 2368 va_end (args); 2369 2370 return *str && number && fnumber; 2371} 2372' 2373 2374# Test code for whether the C compiler supports C99 (body of main). 2375ac_c_conftest_c99_main=' 2376 // Check bool. 2377 _Bool success = false; 2378 success |= (argc != 0); 2379 2380 // Check restrict. 2381 if (test_restrict ("String literal") == 0) 2382 success = true; 2383 char *restrict newvar = "Another string"; 2384 2385 // Check varargs. 2386 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2387 test_varargs_macros (); 2388 2389 // Check flexible array members. 2390 struct incomplete_array *ia = 2391 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2392 ia->datasize = 10; 2393 for (int i = 0; i < ia->datasize; ++i) 2394 ia->data[i] = i * 1.234; 2395 2396 // Check named initializers. 2397 struct named_init ni = { 2398 .number = 34, 2399 .name = L"Test wide string", 2400 .average = 543.34343, 2401 }; 2402 2403 ni.number = 58; 2404 2405 int dynamic_array[ni.number]; 2406 dynamic_array[0] = argv[0][0]; 2407 dynamic_array[ni.number - 1] = 543; 2408 2409 // work around unused variable warnings 2410 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2411 || dynamic_array[ni.number - 1] != 543); 2412' 2413 2414# Test code for whether the C compiler supports C11 (global declarations) 2415ac_c_conftest_c11_globals=' 2416// Does the compiler advertise C11 conformance? 2417#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2418# error "Compiler does not advertise C11 conformance" 2419#endif 2420 2421// Check _Alignas. 2422char _Alignas (double) aligned_as_double; 2423char _Alignas (0) no_special_alignment; 2424extern char aligned_as_int; 2425char _Alignas (0) _Alignas (int) aligned_as_int; 2426 2427// Check _Alignof. 2428enum 2429{ 2430 int_alignment = _Alignof (int), 2431 int_array_alignment = _Alignof (int[100]), 2432 char_alignment = _Alignof (char) 2433}; 2434_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2435 2436// Check _Noreturn. 2437int _Noreturn does_not_return (void) { for (;;) continue; } 2438 2439// Check _Static_assert. 2440struct test_static_assert 2441{ 2442 int x; 2443 _Static_assert (sizeof (int) <= sizeof (long int), 2444 "_Static_assert does not work in struct"); 2445 long int y; 2446}; 2447 2448// Check UTF-8 literals. 2449#define u8 syntax error! 2450char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2451 2452// Check duplicate typedefs. 2453typedef long *long_ptr; 2454typedef long int *long_ptr; 2455typedef long_ptr long_ptr; 2456 2457// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2458struct anonymous 2459{ 2460 union { 2461 struct { int i; int j; }; 2462 struct { int k; long int l; } w; 2463 }; 2464 int m; 2465} v1; 2466' 2467 2468# Test code for whether the C compiler supports C11 (body of main). 2469ac_c_conftest_c11_main=' 2470 _Static_assert ((offsetof (struct anonymous, i) 2471 == offsetof (struct anonymous, w.k)), 2472 "Anonymous union alignment botch"); 2473 v1.i = 2; 2474 v1.w.k = 5; 2475 ok |= v1.i != 5; 2476' 2477 2478# Test code for whether the C compiler supports C11 (complete). 2479ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2480${ac_c_conftest_c99_globals} 2481${ac_c_conftest_c11_globals} 2482 2483int 2484main (int argc, char **argv) 2485{ 2486 int ok = 0; 2487 ${ac_c_conftest_c89_main} 2488 ${ac_c_conftest_c99_main} 2489 ${ac_c_conftest_c11_main} 2490 return ok; 2491} 2492" 2493 2494# Test code for whether the C compiler supports C99 (complete). 2495ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2496${ac_c_conftest_c99_globals} 2497 2498int 2499main (int argc, char **argv) 2500{ 2501 int ok = 0; 2502 ${ac_c_conftest_c89_main} 2503 ${ac_c_conftest_c99_main} 2504 return ok; 2505} 2506" 2507 2508# Test code for whether the C compiler supports C89 (complete). 2509ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2510 2511int 2512main (int argc, char **argv) 2513{ 2514 int ok = 0; 2515 ${ac_c_conftest_c89_main} 2516 return ok; 2517} 2518" 2519 2520as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2521as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2522as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2523as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2524as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2525as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2526as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2527as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2528as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2529 2530# Auxiliary files required by this configure script. 2531ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2532 2533# Locations in which to look for auxiliary files. 2534ac_aux_dir_candidates="${srcdir}/." 2535 2536# Search for a directory containing all of the required auxiliary files, 2537# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2538# If we don't find one directory that contains all the files we need, 2539# we report the set of missing files from the *first* directory in 2540# $ac_aux_dir_candidates and give up. 2541ac_missing_aux_files="" 2542ac_first_candidate=: 2543printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2545as_found=false 2546for as_dir in $ac_aux_dir_candidates 2547do 2548 IFS=$as_save_IFS 2549 case $as_dir in #((( 2550 '') as_dir=./ ;; 2551 */) ;; 2552 *) as_dir=$as_dir/ ;; 2553 esac 2554 as_found=: 2555 2556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2557 ac_aux_dir_found=yes 2558 ac_install_sh= 2559 for ac_aux in $ac_aux_files 2560 do 2561 # As a special case, if "install-sh" is required, that requirement 2562 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2563 # and $ac_install_sh is set appropriately for whichever one is found. 2564 if test x"$ac_aux" = x"install-sh" 2565 then 2566 if test -f "${as_dir}install-sh"; then 2567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2568 ac_install_sh="${as_dir}install-sh -c" 2569 elif test -f "${as_dir}install.sh"; then 2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2571 ac_install_sh="${as_dir}install.sh -c" 2572 elif test -f "${as_dir}shtool"; then 2573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2574 ac_install_sh="${as_dir}shtool install -c" 2575 else 2576 ac_aux_dir_found=no 2577 if $ac_first_candidate; then 2578 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2579 else 2580 break 2581 fi 2582 fi 2583 else 2584 if test -f "${as_dir}${ac_aux}"; then 2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2586 else 2587 ac_aux_dir_found=no 2588 if $ac_first_candidate; then 2589 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2590 else 2591 break 2592 fi 2593 fi 2594 fi 2595 done 2596 if test "$ac_aux_dir_found" = yes; then 2597 ac_aux_dir="$as_dir" 2598 break 2599 fi 2600 ac_first_candidate=false 2601 2602 as_found=false 2603done 2604IFS=$as_save_IFS 2605if $as_found 2606then : 2607 2608else $as_nop 2609 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2610fi 2611 2612 2613# These three variables are undocumented and unsupported, 2614# and are intended to be withdrawn in a future Autoconf release. 2615# They can cause serious problems if a builder's source tree is in a directory 2616# whose full name contains unusual characters. 2617if test -f "${ac_aux_dir}config.guess"; then 2618 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2619fi 2620if test -f "${ac_aux_dir}config.sub"; then 2621 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2622fi 2623if test -f "$ac_aux_dir/configure"; then 2624 ac_configure="$SHELL ${ac_aux_dir}configure" 2625fi 2626 2627# Check that the precious variables saved in the cache have kept the same 2628# value. 2629ac_cache_corrupted=false 2630for ac_var in $ac_precious_vars; do 2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2632 eval ac_new_set=\$ac_env_${ac_var}_set 2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2634 eval ac_new_val=\$ac_env_${ac_var}_value 2635 case $ac_old_set,$ac_new_set in 2636 set,) 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2638printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2639 ac_cache_corrupted=: ;; 2640 ,set) 2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2642printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2643 ac_cache_corrupted=: ;; 2644 ,);; 2645 *) 2646 if test "x$ac_old_val" != "x$ac_new_val"; then 2647 # differences in whitespace do not lead to failure. 2648 ac_old_val_w=`echo x $ac_old_val` 2649 ac_new_val_w=`echo x $ac_new_val` 2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2652printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2653 ac_cache_corrupted=: 2654 else 2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2656printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2657 eval $ac_var=\$ac_old_val 2658 fi 2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2660printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2662printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2663 fi;; 2664 esac 2665 # Pass precious variables to config.status. 2666 if test "$ac_new_set" = set; then 2667 case $ac_new_val in 2668 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2669 *) ac_arg=$ac_var=$ac_new_val ;; 2670 esac 2671 case " $ac_configure_args " in 2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2674 esac 2675 fi 2676done 2677if $ac_cache_corrupted; then 2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2679printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2681printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2682 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2683 and start over" "$LINENO" 5 2684fi 2685## -------------------- ## 2686## Main body of script. ## 2687## -------------------- ## 2688 2689ac_ext=c 2690ac_cpp='$CPP $CPPFLAGS' 2691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2693ac_compiler_gnu=$ac_cv_c_compiler_gnu 2694 2695 2696 2697ac_config_headers="$ac_config_headers config.h" 2698 2699 2700 2701# Initialize Automake 2702am__api_version='1.16' 2703 2704 2705 2706 # Find a good install program. We prefer a C program (faster), 2707# so one script is as good as another. But avoid the broken or 2708# incompatible versions: 2709# SysV /etc/install, /usr/sbin/install 2710# SunOS /usr/etc/install 2711# IRIX /sbin/install 2712# AIX /bin/install 2713# AmigaOS /C/install, which installs bootblocks on floppy discs 2714# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2715# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2716# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2717# OS/2's system install, which has a completely different semantic 2718# ./install, which can be erroneously created by make from ./install.sh. 2719# Reject install programs that cannot install multiple files. 2720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2721printf %s "checking for a BSD-compatible install... " >&6; } 2722if test -z "$INSTALL"; then 2723if test ${ac_cv_path_install+y} 2724then : 2725 printf %s "(cached) " >&6 2726else $as_nop 2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 case $as_dir in #((( 2732 '') as_dir=./ ;; 2733 */) ;; 2734 *) as_dir=$as_dir/ ;; 2735 esac 2736 # Account for fact that we put trailing slashes in our PATH walk. 2737case $as_dir in #(( 2738 ./ | /[cC]/* | \ 2739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2740 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2741 /usr/ucb/* ) ;; 2742 *) 2743 # OSF1 and SCO ODT 3.0 have their own names for install. 2744 # Don't use installbsd from OSF since it installs stuff as root 2745 # by default. 2746 for ac_prog in ginstall scoinst install; do 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2749 if test $ac_prog = install && 2750 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2751 # AIX install. It has an incompatible calling convention. 2752 : 2753 elif test $ac_prog = install && 2754 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2755 # program-specific install script used by HP pwplus--don't use. 2756 : 2757 else 2758 rm -rf conftest.one conftest.two conftest.dir 2759 echo one > conftest.one 2760 echo two > conftest.two 2761 mkdir conftest.dir 2762 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2763 test -s conftest.one && test -s conftest.two && 2764 test -s conftest.dir/conftest.one && 2765 test -s conftest.dir/conftest.two 2766 then 2767 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2768 break 3 2769 fi 2770 fi 2771 fi 2772 done 2773 done 2774 ;; 2775esac 2776 2777 done 2778IFS=$as_save_IFS 2779 2780rm -rf conftest.one conftest.two conftest.dir 2781 2782fi 2783 if test ${ac_cv_path_install+y}; then 2784 INSTALL=$ac_cv_path_install 2785 else 2786 # As a last resort, use the slow shell script. Don't cache a 2787 # value for INSTALL within a source directory, because that will 2788 # break other packages using the cache if that directory is 2789 # removed, or if the value is a relative name. 2790 INSTALL=$ac_install_sh 2791 fi 2792fi 2793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2794printf "%s\n" "$INSTALL" >&6; } 2795 2796# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2797# It thinks the first close brace ends the variable substitution. 2798test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2799 2800test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2801 2802test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2803 2804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2805printf %s "checking whether build environment is sane... " >&6; } 2806# Reject unsafe characters in $srcdir or the absolute working directory 2807# name. Accept space and tab only in the latter. 2808am_lf=' 2809' 2810case `pwd` in 2811 *[\\\"\#\$\&\'\`$am_lf]*) 2812 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2813esac 2814case $srcdir in 2815 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2816 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2817esac 2818 2819# Do 'set' in a subshell so we don't clobber the current shell's 2820# arguments. Must try -L first in case configure is actually a 2821# symlink; some systems play weird games with the mod time of symlinks 2822# (eg FreeBSD returns the mod time of the symlink's containing 2823# directory). 2824if ( 2825 am_has_slept=no 2826 for am_try in 1 2; do 2827 echo "timestamp, slept: $am_has_slept" > conftest.file 2828 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2829 if test "$*" = "X"; then 2830 # -L didn't work. 2831 set X `ls -t "$srcdir/configure" conftest.file` 2832 fi 2833 if test "$*" != "X $srcdir/configure conftest.file" \ 2834 && test "$*" != "X conftest.file $srcdir/configure"; then 2835 2836 # If neither matched, then we have a broken ls. This can happen 2837 # if, for instance, CONFIG_SHELL is bash and it inherits a 2838 # broken ls alias from the environment. This has actually 2839 # happened. Such a system could not be considered "sane". 2840 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2841 alias in your environment" "$LINENO" 5 2842 fi 2843 if test "$2" = conftest.file || test $am_try -eq 2; then 2844 break 2845 fi 2846 # Just in case. 2847 sleep 1 2848 am_has_slept=yes 2849 done 2850 test "$2" = conftest.file 2851 ) 2852then 2853 # Ok. 2854 : 2855else 2856 as_fn_error $? "newly created file is older than distributed files! 2857Check your system clock" "$LINENO" 5 2858fi 2859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2860printf "%s\n" "yes" >&6; } 2861# If we didn't sleep, we still need to ensure time stamps of config.status and 2862# generated files are strictly newer. 2863am_sleep_pid= 2864if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2865 ( sleep 1 ) & 2866 am_sleep_pid=$! 2867fi 2868 2869rm -f conftest.file 2870 2871test "$program_prefix" != NONE && 2872 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2873# Use a double $ so make ignores it. 2874test "$program_suffix" != NONE && 2875 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2876# Double any \ or $. 2877# By default was `s,x,x', remove it if useless. 2878ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2879program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2880 2881 2882# Expand $ac_aux_dir to an absolute path. 2883am_aux_dir=`cd "$ac_aux_dir" && pwd` 2884 2885 2886 if test x"${MISSING+set}" != xset; then 2887 MISSING="\${SHELL} '$am_aux_dir/missing'" 2888fi 2889# Use eval to expand $SHELL 2890if eval "$MISSING --is-lightweight"; then 2891 am_missing_run="$MISSING " 2892else 2893 am_missing_run= 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2895printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2896fi 2897 2898if test x"${install_sh+set}" != xset; then 2899 case $am_aux_dir in 2900 *\ * | *\ *) 2901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2902 *) 2903 install_sh="\${SHELL} $am_aux_dir/install-sh" 2904 esac 2905fi 2906 2907# Installed binaries are usually stripped using 'strip' when the user 2908# run "make install-strip". However 'strip' might not be the right 2909# tool to use in cross-compilation environments, therefore Automake 2910# will honor the 'STRIP' environment variable to overrule this program. 2911if test "$cross_compiling" != no; then 2912 if test -n "$ac_tool_prefix"; then 2913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2914set dummy ${ac_tool_prefix}strip; ac_word=$2 2915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2916printf %s "checking for $ac_word... " >&6; } 2917if test ${ac_cv_prog_STRIP+y} 2918then : 2919 printf %s "(cached) " >&6 2920else $as_nop 2921 if test -n "$STRIP"; then 2922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2923else 2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2925for as_dir in $PATH 2926do 2927 IFS=$as_save_IFS 2928 case $as_dir in #((( 2929 '') as_dir=./ ;; 2930 */) ;; 2931 *) as_dir=$as_dir/ ;; 2932 esac 2933 for ac_exec_ext in '' $ac_executable_extensions; do 2934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2935 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2937 break 2 2938 fi 2939done 2940 done 2941IFS=$as_save_IFS 2942 2943fi 2944fi 2945STRIP=$ac_cv_prog_STRIP 2946if test -n "$STRIP"; then 2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2948printf "%s\n" "$STRIP" >&6; } 2949else 2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2951printf "%s\n" "no" >&6; } 2952fi 2953 2954 2955fi 2956if test -z "$ac_cv_prog_STRIP"; then 2957 ac_ct_STRIP=$STRIP 2958 # Extract the first word of "strip", so it can be a program name with args. 2959set dummy strip; ac_word=$2 2960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2961printf %s "checking for $ac_word... " >&6; } 2962if test ${ac_cv_prog_ac_ct_STRIP+y} 2963then : 2964 printf %s "(cached) " >&6 2965else $as_nop 2966 if test -n "$ac_ct_STRIP"; then 2967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2968else 2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2970for as_dir in $PATH 2971do 2972 IFS=$as_save_IFS 2973 case $as_dir in #((( 2974 '') as_dir=./ ;; 2975 */) ;; 2976 *) as_dir=$as_dir/ ;; 2977 esac 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2980 ac_cv_prog_ac_ct_STRIP="strip" 2981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2982 break 2 2983 fi 2984done 2985 done 2986IFS=$as_save_IFS 2987 2988fi 2989fi 2990ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2991if test -n "$ac_ct_STRIP"; then 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2993printf "%s\n" "$ac_ct_STRIP" >&6; } 2994else 2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2996printf "%s\n" "no" >&6; } 2997fi 2998 2999 if test "x$ac_ct_STRIP" = x; then 3000 STRIP=":" 3001 else 3002 case $cross_compiling:$ac_tool_warned in 3003yes:) 3004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3005printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3006ac_tool_warned=yes ;; 3007esac 3008 STRIP=$ac_ct_STRIP 3009 fi 3010else 3011 STRIP="$ac_cv_prog_STRIP" 3012fi 3013 3014fi 3015INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3016 3017 3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3019printf %s "checking for a race-free mkdir -p... " >&6; } 3020if test -z "$MKDIR_P"; then 3021 if test ${ac_cv_path_mkdir+y} 3022then : 3023 printf %s "(cached) " >&6 3024else $as_nop 3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3027do 3028 IFS=$as_save_IFS 3029 case $as_dir in #((( 3030 '') as_dir=./ ;; 3031 */) ;; 3032 *) as_dir=$as_dir/ ;; 3033 esac 3034 for ac_prog in mkdir gmkdir; do 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3037 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3038 'mkdir ('*'coreutils) '* | \ 3039 'BusyBox '* | \ 3040 'mkdir (fileutils) '4.1*) 3041 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3042 break 3;; 3043 esac 3044 done 3045 done 3046 done 3047IFS=$as_save_IFS 3048 3049fi 3050 3051 test -d ./--version && rmdir ./--version 3052 if test ${ac_cv_path_mkdir+y}; then 3053 MKDIR_P="$ac_cv_path_mkdir -p" 3054 else 3055 # As a last resort, use the slow shell script. Don't cache a 3056 # value for MKDIR_P within a source directory, because that will 3057 # break other packages using the cache if that directory is 3058 # removed, or if the value is a relative name. 3059 MKDIR_P="$ac_install_sh -d" 3060 fi 3061fi 3062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3063printf "%s\n" "$MKDIR_P" >&6; } 3064 3065for ac_prog in gawk mawk nawk awk 3066do 3067 # Extract the first word of "$ac_prog", so it can be a program name with args. 3068set dummy $ac_prog; ac_word=$2 3069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3070printf %s "checking for $ac_word... " >&6; } 3071if test ${ac_cv_prog_AWK+y} 3072then : 3073 printf %s "(cached) " >&6 3074else $as_nop 3075 if test -n "$AWK"; then 3076 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3077else 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 case $as_dir in #((( 3083 '') as_dir=./ ;; 3084 */) ;; 3085 *) as_dir=$as_dir/ ;; 3086 esac 3087 for ac_exec_ext in '' $ac_executable_extensions; do 3088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3089 ac_cv_prog_AWK="$ac_prog" 3090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3091 break 2 3092 fi 3093done 3094 done 3095IFS=$as_save_IFS 3096 3097fi 3098fi 3099AWK=$ac_cv_prog_AWK 3100if test -n "$AWK"; then 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3102printf "%s\n" "$AWK" >&6; } 3103else 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3105printf "%s\n" "no" >&6; } 3106fi 3107 3108 3109 test -n "$AWK" && break 3110done 3111 3112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3113printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3114set x ${MAKE-make} 3115ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3116if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3117then : 3118 printf %s "(cached) " >&6 3119else $as_nop 3120 cat >conftest.make <<\_ACEOF 3121SHELL = /bin/sh 3122all: 3123 @echo '@@@%%%=$(MAKE)=@@@%%%' 3124_ACEOF 3125# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3126case `${MAKE-make} -f conftest.make 2>/dev/null` in 3127 *@@@%%%=?*=@@@%%%*) 3128 eval ac_cv_prog_make_${ac_make}_set=yes;; 3129 *) 3130 eval ac_cv_prog_make_${ac_make}_set=no;; 3131esac 3132rm -f conftest.make 3133fi 3134if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3136printf "%s\n" "yes" >&6; } 3137 SET_MAKE= 3138else 3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3140printf "%s\n" "no" >&6; } 3141 SET_MAKE="MAKE=${MAKE-make}" 3142fi 3143 3144rm -rf .tst 2>/dev/null 3145mkdir .tst 2>/dev/null 3146if test -d .tst; then 3147 am__leading_dot=. 3148else 3149 am__leading_dot=_ 3150fi 3151rmdir .tst 2>/dev/null 3152 3153# Check whether --enable-silent-rules was given. 3154if test ${enable_silent_rules+y} 3155then : 3156 enableval=$enable_silent_rules; 3157fi 3158 3159case $enable_silent_rules in # ((( 3160 yes) AM_DEFAULT_VERBOSITY=0;; 3161 no) AM_DEFAULT_VERBOSITY=1;; 3162 *) AM_DEFAULT_VERBOSITY=1;; 3163esac 3164am_make=${MAKE-make} 3165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3166printf %s "checking whether $am_make supports nested variables... " >&6; } 3167if test ${am_cv_make_support_nested_variables+y} 3168then : 3169 printf %s "(cached) " >&6 3170else $as_nop 3171 if printf "%s\n" 'TRUE=$(BAR$(V)) 3172BAR0=false 3173BAR1=true 3174V=1 3175am__doit: 3176 @$(TRUE) 3177.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3178 am_cv_make_support_nested_variables=yes 3179else 3180 am_cv_make_support_nested_variables=no 3181fi 3182fi 3183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3184printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3185if test $am_cv_make_support_nested_variables = yes; then 3186 AM_V='$(V)' 3187 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3188else 3189 AM_V=$AM_DEFAULT_VERBOSITY 3190 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3191fi 3192AM_BACKSLASH='\' 3193 3194if test "`cd $srcdir && pwd`" != "`pwd`"; then 3195 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3196 # is not polluted with repeated "-I." 3197 am__isrc=' -I$(srcdir)' 3198 # test to see if srcdir already configured 3199 if test -f $srcdir/config.status; then 3200 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3201 fi 3202fi 3203 3204# test whether we have cygpath 3205if test -z "$CYGPATH_W"; then 3206 if (cygpath --version) >/dev/null 2>/dev/null; then 3207 CYGPATH_W='cygpath -w' 3208 else 3209 CYGPATH_W=echo 3210 fi 3211fi 3212 3213 3214# Define the identity of the package. 3215 PACKAGE='xf86-video-mach64' 3216 VERSION='6.9.7' 3217 3218 3219printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3220 3221 3222printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3223 3224# Some tools Automake needs. 3225 3226ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3227 3228 3229AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3230 3231 3232AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3233 3234 3235AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3236 3237 3238MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3239 3240# For better backward compatibility. To be removed once Automake 1.9.x 3241# dies out for good. For more background, see: 3242# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3243# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3244mkdir_p='$(MKDIR_P)' 3245 3246# We need awk for the "check" target (and possibly the TAP driver). The 3247# system "awk" is bad on some platforms. 3248# Always define AMTAR for backward compatibility. Yes, it's still used 3249# in the wild :-( We should find a proper way to deprecate it ... 3250AMTAR='$${TAR-tar}' 3251 3252 3253# We'll loop over all known methods to create a tar archive until one works. 3254_am_tools='gnutar pax cpio none' 3255 3256am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3257 3258 3259 3260 3261 3262# Variables for tags utilities; see am/tags.am 3263if test -z "$CTAGS"; then 3264 CTAGS=ctags 3265fi 3266 3267if test -z "$ETAGS"; then 3268 ETAGS=etags 3269fi 3270 3271if test -z "$CSCOPE"; then 3272 CSCOPE=cscope 3273fi 3274 3275 3276 3277# POSIX will say in a future version that running "rm -f" with no argument 3278# is OK; and we want to be able to make that assumption in our Makefile 3279# recipes. So use an aggressive probe to check that the usage we want is 3280# actually supported "in the wild" to an acceptable degree. 3281# See automake bug#10828. 3282# To make any issue more visible, cause the running configure to be aborted 3283# by default if the 'rm' program in use doesn't match our expectations; the 3284# user can still override this though. 3285if rm -f && rm -fr && rm -rf; then : OK; else 3286 cat >&2 <<'END' 3287Oops! 3288 3289Your 'rm' program seems unable to run without file operands specified 3290on the command line, even when the '-f' option is present. This is contrary 3291to the behaviour of most rm programs out there, and not conforming with 3292the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3293 3294Please tell bug-automake@gnu.org about your system, including the value 3295of your $PATH and any error possibly output before this message. This 3296can help us improve future automake versions. 3297 3298END 3299 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3300 echo 'Configuration will proceed anyway, since you have set the' >&2 3301 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3302 echo >&2 3303 else 3304 cat >&2 <<'END' 3305Aborting the configuration process, to ensure you take notice of the issue. 3306 3307You can download and install GNU coreutils to get an 'rm' implementation 3308that behaves properly: <https://www.gnu.org/software/coreutils/>. 3309 3310If you want to complete the configuration process using your problematic 3311'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3312to "yes", and re-run configure. 3313 3314END 3315 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3316 fi 3317fi 3318 3319 3320# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341DEPDIR="${am__leading_dot}deps" 3342 3343ac_config_commands="$ac_config_commands depfiles" 3344 3345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3346printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3347cat > confinc.mk << 'END' 3348am__doit: 3349 @echo this is the am__doit target >confinc.out 3350.PHONY: am__doit 3351END 3352am__include="#" 3353am__quote= 3354# BSD make does it like this. 3355echo '.include "confinc.mk" # ignored' > confmf.BSD 3356# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3357echo 'include confinc.mk # ignored' > confmf.GNU 3358_am_result=no 3359for s in GNU BSD; do 3360 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3361 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3362 ac_status=$? 3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3364 (exit $ac_status); } 3365 case $?:`cat confinc.out 2>/dev/null` in #( 3366 '0:this is the am__doit target') : 3367 case $s in #( 3368 BSD) : 3369 am__include='.include' am__quote='"' ;; #( 3370 *) : 3371 am__include='include' am__quote='' ;; 3372esac ;; #( 3373 *) : 3374 ;; 3375esac 3376 if test "$am__include" != "#"; then 3377 _am_result="yes ($s style)" 3378 break 3379 fi 3380done 3381rm -f confinc.* confmf.* 3382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3383printf "%s\n" "${_am_result}" >&6; } 3384 3385# Check whether --enable-dependency-tracking was given. 3386if test ${enable_dependency_tracking+y} 3387then : 3388 enableval=$enable_dependency_tracking; 3389fi 3390 3391if test "x$enable_dependency_tracking" != xno; then 3392 am_depcomp="$ac_aux_dir/depcomp" 3393 AMDEPBACKSLASH='\' 3394 am__nodep='_no' 3395fi 3396 if test "x$enable_dependency_tracking" != xno; then 3397 AMDEP_TRUE= 3398 AMDEP_FALSE='#' 3399else 3400 AMDEP_TRUE='#' 3401 AMDEP_FALSE= 3402fi 3403 3404 3405ac_ext=c 3406ac_cpp='$CPP $CPPFLAGS' 3407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3409ac_compiler_gnu=$ac_cv_c_compiler_gnu 3410if test -n "$ac_tool_prefix"; then 3411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3412set dummy ${ac_tool_prefix}gcc; ac_word=$2 3413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3414printf %s "checking for $ac_word... " >&6; } 3415if test ${ac_cv_prog_CC+y} 3416then : 3417 printf %s "(cached) " >&6 3418else $as_nop 3419 if test -n "$CC"; then 3420 ac_cv_prog_CC="$CC" # Let the user override the test. 3421else 3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3423for as_dir in $PATH 3424do 3425 IFS=$as_save_IFS 3426 case $as_dir in #((( 3427 '') as_dir=./ ;; 3428 */) ;; 3429 *) as_dir=$as_dir/ ;; 3430 esac 3431 for ac_exec_ext in '' $ac_executable_extensions; do 3432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3433 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3435 break 2 3436 fi 3437done 3438 done 3439IFS=$as_save_IFS 3440 3441fi 3442fi 3443CC=$ac_cv_prog_CC 3444if test -n "$CC"; then 3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3446printf "%s\n" "$CC" >&6; } 3447else 3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3449printf "%s\n" "no" >&6; } 3450fi 3451 3452 3453fi 3454if test -z "$ac_cv_prog_CC"; then 3455 ac_ct_CC=$CC 3456 # Extract the first word of "gcc", so it can be a program name with args. 3457set dummy gcc; ac_word=$2 3458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3459printf %s "checking for $ac_word... " >&6; } 3460if test ${ac_cv_prog_ac_ct_CC+y} 3461then : 3462 printf %s "(cached) " >&6 3463else $as_nop 3464 if test -n "$ac_ct_CC"; then 3465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3466else 3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3468for as_dir in $PATH 3469do 3470 IFS=$as_save_IFS 3471 case $as_dir in #((( 3472 '') as_dir=./ ;; 3473 */) ;; 3474 *) as_dir=$as_dir/ ;; 3475 esac 3476 for ac_exec_ext in '' $ac_executable_extensions; do 3477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3478 ac_cv_prog_ac_ct_CC="gcc" 3479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3480 break 2 3481 fi 3482done 3483 done 3484IFS=$as_save_IFS 3485 3486fi 3487fi 3488ac_ct_CC=$ac_cv_prog_ac_ct_CC 3489if test -n "$ac_ct_CC"; then 3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3491printf "%s\n" "$ac_ct_CC" >&6; } 3492else 3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3494printf "%s\n" "no" >&6; } 3495fi 3496 3497 if test "x$ac_ct_CC" = x; then 3498 CC="" 3499 else 3500 case $cross_compiling:$ac_tool_warned in 3501yes:) 3502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3503printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3504ac_tool_warned=yes ;; 3505esac 3506 CC=$ac_ct_CC 3507 fi 3508else 3509 CC="$ac_cv_prog_CC" 3510fi 3511 3512if test -z "$CC"; then 3513 if test -n "$ac_tool_prefix"; then 3514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3515set dummy ${ac_tool_prefix}cc; ac_word=$2 3516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3517printf %s "checking for $ac_word... " >&6; } 3518if test ${ac_cv_prog_CC+y} 3519then : 3520 printf %s "(cached) " >&6 3521else $as_nop 3522 if test -n "$CC"; then 3523 ac_cv_prog_CC="$CC" # Let the user override the test. 3524else 3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3526for as_dir in $PATH 3527do 3528 IFS=$as_save_IFS 3529 case $as_dir in #((( 3530 '') as_dir=./ ;; 3531 */) ;; 3532 *) as_dir=$as_dir/ ;; 3533 esac 3534 for ac_exec_ext in '' $ac_executable_extensions; do 3535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3536 ac_cv_prog_CC="${ac_tool_prefix}cc" 3537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3538 break 2 3539 fi 3540done 3541 done 3542IFS=$as_save_IFS 3543 3544fi 3545fi 3546CC=$ac_cv_prog_CC 3547if test -n "$CC"; then 3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3549printf "%s\n" "$CC" >&6; } 3550else 3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3552printf "%s\n" "no" >&6; } 3553fi 3554 3555 3556 fi 3557fi 3558if test -z "$CC"; then 3559 # Extract the first word of "cc", so it can be a program name with args. 3560set dummy cc; ac_word=$2 3561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3562printf %s "checking for $ac_word... " >&6; } 3563if test ${ac_cv_prog_CC+y} 3564then : 3565 printf %s "(cached) " >&6 3566else $as_nop 3567 if test -n "$CC"; then 3568 ac_cv_prog_CC="$CC" # Let the user override the test. 3569else 3570 ac_prog_rejected=no 3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572for as_dir in $PATH 3573do 3574 IFS=$as_save_IFS 3575 case $as_dir in #((( 3576 '') as_dir=./ ;; 3577 */) ;; 3578 *) as_dir=$as_dir/ ;; 3579 esac 3580 for ac_exec_ext in '' $ac_executable_extensions; do 3581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3582 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3583 ac_prog_rejected=yes 3584 continue 3585 fi 3586 ac_cv_prog_CC="cc" 3587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3588 break 2 3589 fi 3590done 3591 done 3592IFS=$as_save_IFS 3593 3594if test $ac_prog_rejected = yes; then 3595 # We found a bogon in the path, so make sure we never use it. 3596 set dummy $ac_cv_prog_CC 3597 shift 3598 if test $# != 0; then 3599 # We chose a different compiler from the bogus one. 3600 # However, it has the same basename, so the bogon will be chosen 3601 # first if we set CC to just the basename; use the full file name. 3602 shift 3603 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3604 fi 3605fi 3606fi 3607fi 3608CC=$ac_cv_prog_CC 3609if test -n "$CC"; then 3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3611printf "%s\n" "$CC" >&6; } 3612else 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614printf "%s\n" "no" >&6; } 3615fi 3616 3617 3618fi 3619if test -z "$CC"; then 3620 if test -n "$ac_tool_prefix"; then 3621 for ac_prog in cl.exe 3622 do 3623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3624set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3626printf %s "checking for $ac_word... " >&6; } 3627if test ${ac_cv_prog_CC+y} 3628then : 3629 printf %s "(cached) " >&6 3630else $as_nop 3631 if test -n "$CC"; then 3632 ac_cv_prog_CC="$CC" # Let the user override the test. 3633else 3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3635for as_dir in $PATH 3636do 3637 IFS=$as_save_IFS 3638 case $as_dir in #((( 3639 '') as_dir=./ ;; 3640 */) ;; 3641 *) as_dir=$as_dir/ ;; 3642 esac 3643 for ac_exec_ext in '' $ac_executable_extensions; do 3644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3647 break 2 3648 fi 3649done 3650 done 3651IFS=$as_save_IFS 3652 3653fi 3654fi 3655CC=$ac_cv_prog_CC 3656if test -n "$CC"; then 3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3658printf "%s\n" "$CC" >&6; } 3659else 3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3661printf "%s\n" "no" >&6; } 3662fi 3663 3664 3665 test -n "$CC" && break 3666 done 3667fi 3668if test -z "$CC"; then 3669 ac_ct_CC=$CC 3670 for ac_prog in cl.exe 3671do 3672 # Extract the first word of "$ac_prog", so it can be a program name with args. 3673set dummy $ac_prog; ac_word=$2 3674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3675printf %s "checking for $ac_word... " >&6; } 3676if test ${ac_cv_prog_ac_ct_CC+y} 3677then : 3678 printf %s "(cached) " >&6 3679else $as_nop 3680 if test -n "$ac_ct_CC"; then 3681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3682else 3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3684for as_dir in $PATH 3685do 3686 IFS=$as_save_IFS 3687 case $as_dir in #((( 3688 '') as_dir=./ ;; 3689 */) ;; 3690 *) as_dir=$as_dir/ ;; 3691 esac 3692 for ac_exec_ext in '' $ac_executable_extensions; do 3693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3694 ac_cv_prog_ac_ct_CC="$ac_prog" 3695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3696 break 2 3697 fi 3698done 3699 done 3700IFS=$as_save_IFS 3701 3702fi 3703fi 3704ac_ct_CC=$ac_cv_prog_ac_ct_CC 3705if test -n "$ac_ct_CC"; then 3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3707printf "%s\n" "$ac_ct_CC" >&6; } 3708else 3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3710printf "%s\n" "no" >&6; } 3711fi 3712 3713 3714 test -n "$ac_ct_CC" && break 3715done 3716 3717 if test "x$ac_ct_CC" = x; then 3718 CC="" 3719 else 3720 case $cross_compiling:$ac_tool_warned in 3721yes:) 3722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3723printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3724ac_tool_warned=yes ;; 3725esac 3726 CC=$ac_ct_CC 3727 fi 3728fi 3729 3730fi 3731if test -z "$CC"; then 3732 if test -n "$ac_tool_prefix"; then 3733 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3734set dummy ${ac_tool_prefix}clang; ac_word=$2 3735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3736printf %s "checking for $ac_word... " >&6; } 3737if test ${ac_cv_prog_CC+y} 3738then : 3739 printf %s "(cached) " >&6 3740else $as_nop 3741 if test -n "$CC"; then 3742 ac_cv_prog_CC="$CC" # Let the user override the test. 3743else 3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3745for as_dir in $PATH 3746do 3747 IFS=$as_save_IFS 3748 case $as_dir in #((( 3749 '') as_dir=./ ;; 3750 */) ;; 3751 *) as_dir=$as_dir/ ;; 3752 esac 3753 for ac_exec_ext in '' $ac_executable_extensions; do 3754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3755 ac_cv_prog_CC="${ac_tool_prefix}clang" 3756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3757 break 2 3758 fi 3759done 3760 done 3761IFS=$as_save_IFS 3762 3763fi 3764fi 3765CC=$ac_cv_prog_CC 3766if test -n "$CC"; then 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3768printf "%s\n" "$CC" >&6; } 3769else 3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3771printf "%s\n" "no" >&6; } 3772fi 3773 3774 3775fi 3776if test -z "$ac_cv_prog_CC"; then 3777 ac_ct_CC=$CC 3778 # Extract the first word of "clang", so it can be a program name with args. 3779set dummy clang; ac_word=$2 3780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3781printf %s "checking for $ac_word... " >&6; } 3782if test ${ac_cv_prog_ac_ct_CC+y} 3783then : 3784 printf %s "(cached) " >&6 3785else $as_nop 3786 if test -n "$ac_ct_CC"; then 3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3788else 3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790for as_dir in $PATH 3791do 3792 IFS=$as_save_IFS 3793 case $as_dir in #((( 3794 '') as_dir=./ ;; 3795 */) ;; 3796 *) as_dir=$as_dir/ ;; 3797 esac 3798 for ac_exec_ext in '' $ac_executable_extensions; do 3799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3800 ac_cv_prog_ac_ct_CC="clang" 3801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3802 break 2 3803 fi 3804done 3805 done 3806IFS=$as_save_IFS 3807 3808fi 3809fi 3810ac_ct_CC=$ac_cv_prog_ac_ct_CC 3811if test -n "$ac_ct_CC"; then 3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3813printf "%s\n" "$ac_ct_CC" >&6; } 3814else 3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3816printf "%s\n" "no" >&6; } 3817fi 3818 3819 if test "x$ac_ct_CC" = x; then 3820 CC="" 3821 else 3822 case $cross_compiling:$ac_tool_warned in 3823yes:) 3824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3825printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3826ac_tool_warned=yes ;; 3827esac 3828 CC=$ac_ct_CC 3829 fi 3830else 3831 CC="$ac_cv_prog_CC" 3832fi 3833 3834fi 3835 3836 3837test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3838printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3839as_fn_error $? "no acceptable C compiler found in \$PATH 3840See \`config.log' for more details" "$LINENO" 5; } 3841 3842# Provide some information about the compiler. 3843printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3844set X $ac_compile 3845ac_compiler=$2 3846for ac_option in --version -v -V -qversion -version; do 3847 { { ac_try="$ac_compiler $ac_option >&5" 3848case "(($ac_try" in 3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3850 *) ac_try_echo=$ac_try;; 3851esac 3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3853printf "%s\n" "$ac_try_echo"; } >&5 3854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3855 ac_status=$? 3856 if test -s conftest.err; then 3857 sed '10a\ 3858... rest of stderr output deleted ... 3859 10q' conftest.err >conftest.er1 3860 cat conftest.er1 >&5 3861 fi 3862 rm -f conftest.er1 conftest.err 3863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3864 test $ac_status = 0; } 3865done 3866 3867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869 3870int 3871main (void) 3872{ 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878ac_clean_files_save=$ac_clean_files 3879ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3880# Try to create an executable without -o first, disregard a.out. 3881# It will help us diagnose broken compilers, and finding out an intuition 3882# of exeext. 3883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3884printf %s "checking whether the C compiler works... " >&6; } 3885ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3886 3887# The possible output files: 3888ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3889 3890ac_rmfiles= 3891for ac_file in $ac_files 3892do 3893 case $ac_file in 3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3895 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3896 esac 3897done 3898rm -f $ac_rmfiles 3899 3900if { { ac_try="$ac_link_default" 3901case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904esac 3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3906printf "%s\n" "$ac_try_echo"; } >&5 3907 (eval "$ac_link_default") 2>&5 3908 ac_status=$? 3909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; } 3911then : 3912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3913# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3914# in a Makefile. We should not override ac_cv_exeext if it was cached, 3915# so that the user can short-circuit this test for compilers unknown to 3916# Autoconf. 3917for ac_file in $ac_files '' 3918do 3919 test -f "$ac_file" || continue 3920 case $ac_file in 3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3922 ;; 3923 [ab].out ) 3924 # We found the default executable, but exeext='' is most 3925 # certainly right. 3926 break;; 3927 *.* ) 3928 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3929 then :; else 3930 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3931 fi 3932 # We set ac_cv_exeext here because the later test for it is not 3933 # safe: cross compilers may not add the suffix if given an `-o' 3934 # argument, so we may need to know it at that point already. 3935 # Even if this section looks crufty: it has the advantage of 3936 # actually working. 3937 break;; 3938 * ) 3939 break;; 3940 esac 3941done 3942test "$ac_cv_exeext" = no && ac_cv_exeext= 3943 3944else $as_nop 3945 ac_file='' 3946fi 3947if test -z "$ac_file" 3948then : 3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3950printf "%s\n" "no" >&6; } 3951printf "%s\n" "$as_me: failed program was:" >&5 3952sed 's/^/| /' conftest.$ac_ext >&5 3953 3954{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3955printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3956as_fn_error 77 "C compiler cannot create executables 3957See \`config.log' for more details" "$LINENO" 5; } 3958else $as_nop 3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3960printf "%s\n" "yes" >&6; } 3961fi 3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3963printf %s "checking for C compiler default output file name... " >&6; } 3964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3965printf "%s\n" "$ac_file" >&6; } 3966ac_exeext=$ac_cv_exeext 3967 3968rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3969ac_clean_files=$ac_clean_files_save 3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3971printf %s "checking for suffix of executables... " >&6; } 3972if { { ac_try="$ac_link" 3973case "(($ac_try" in 3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3975 *) ac_try_echo=$ac_try;; 3976esac 3977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3978printf "%s\n" "$ac_try_echo"; } >&5 3979 (eval "$ac_link") 2>&5 3980 ac_status=$? 3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3982 test $ac_status = 0; } 3983then : 3984 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3985# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3986# work properly (i.e., refer to `conftest.exe'), while it won't with 3987# `rm'. 3988for ac_file in conftest.exe conftest conftest.*; do 3989 test -f "$ac_file" || continue 3990 case $ac_file in 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3993 break;; 3994 * ) break;; 3995 esac 3996done 3997else $as_nop 3998 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3999printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4000as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4001See \`config.log' for more details" "$LINENO" 5; } 4002fi 4003rm -f conftest conftest$ac_cv_exeext 4004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4005printf "%s\n" "$ac_cv_exeext" >&6; } 4006 4007rm -f conftest.$ac_ext 4008EXEEXT=$ac_cv_exeext 4009ac_exeext=$EXEEXT 4010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4011/* end confdefs.h. */ 4012#include <stdio.h> 4013int 4014main (void) 4015{ 4016FILE *f = fopen ("conftest.out", "w"); 4017 return ferror (f) || fclose (f) != 0; 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023ac_clean_files="$ac_clean_files conftest.out" 4024# Check that the compiler produces executables we can run. If not, either 4025# the compiler is broken, or we cross compile. 4026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4027printf %s "checking whether we are cross compiling... " >&6; } 4028if test "$cross_compiling" != yes; then 4029 { { ac_try="$ac_link" 4030case "(($ac_try" in 4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4032 *) ac_try_echo=$ac_try;; 4033esac 4034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4035printf "%s\n" "$ac_try_echo"; } >&5 4036 (eval "$ac_link") 2>&5 4037 ac_status=$? 4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4039 test $ac_status = 0; } 4040 if { ac_try='./conftest$ac_cv_exeext' 4041 { { case "(($ac_try" in 4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4043 *) ac_try_echo=$ac_try;; 4044esac 4045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4046printf "%s\n" "$ac_try_echo"; } >&5 4047 (eval "$ac_try") 2>&5 4048 ac_status=$? 4049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4050 test $ac_status = 0; }; }; then 4051 cross_compiling=no 4052 else 4053 if test "$cross_compiling" = maybe; then 4054 cross_compiling=yes 4055 else 4056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4057printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4058as_fn_error 77 "cannot run C compiled programs. 4059If you meant to cross compile, use \`--host'. 4060See \`config.log' for more details" "$LINENO" 5; } 4061 fi 4062 fi 4063fi 4064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4065printf "%s\n" "$cross_compiling" >&6; } 4066 4067rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4068ac_clean_files=$ac_clean_files_save 4069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4070printf %s "checking for suffix of object files... " >&6; } 4071if test ${ac_cv_objext+y} 4072then : 4073 printf %s "(cached) " >&6 4074else $as_nop 4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4076/* end confdefs.h. */ 4077 4078int 4079main (void) 4080{ 4081 4082 ; 4083 return 0; 4084} 4085_ACEOF 4086rm -f conftest.o conftest.obj 4087if { { ac_try="$ac_compile" 4088case "(($ac_try" in 4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4090 *) ac_try_echo=$ac_try;; 4091esac 4092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4093printf "%s\n" "$ac_try_echo"; } >&5 4094 (eval "$ac_compile") 2>&5 4095 ac_status=$? 4096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4097 test $ac_status = 0; } 4098then : 4099 for ac_file in conftest.o conftest.obj conftest.*; do 4100 test -f "$ac_file" || continue; 4101 case $ac_file in 4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4104 break;; 4105 esac 4106done 4107else $as_nop 4108 printf "%s\n" "$as_me: failed program was:" >&5 4109sed 's/^/| /' conftest.$ac_ext >&5 4110 4111{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4112printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4113as_fn_error $? "cannot compute suffix of object files: cannot compile 4114See \`config.log' for more details" "$LINENO" 5; } 4115fi 4116rm -f conftest.$ac_cv_objext conftest.$ac_ext 4117fi 4118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4119printf "%s\n" "$ac_cv_objext" >&6; } 4120OBJEXT=$ac_cv_objext 4121ac_objext=$OBJEXT 4122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4123printf %s "checking whether the compiler supports GNU C... " >&6; } 4124if test ${ac_cv_c_compiler_gnu+y} 4125then : 4126 printf %s "(cached) " >&6 4127else $as_nop 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130 4131int 4132main (void) 4133{ 4134#ifndef __GNUC__ 4135 choke me 4136#endif 4137 4138 ; 4139 return 0; 4140} 4141_ACEOF 4142if ac_fn_c_try_compile "$LINENO" 4143then : 4144 ac_compiler_gnu=yes 4145else $as_nop 4146 ac_compiler_gnu=no 4147fi 4148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4149ac_cv_c_compiler_gnu=$ac_compiler_gnu 4150 4151fi 4152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4153printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4154ac_compiler_gnu=$ac_cv_c_compiler_gnu 4155 4156if test $ac_compiler_gnu = yes; then 4157 GCC=yes 4158else 4159 GCC= 4160fi 4161ac_test_CFLAGS=${CFLAGS+y} 4162ac_save_CFLAGS=$CFLAGS 4163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4164printf %s "checking whether $CC accepts -g... " >&6; } 4165if test ${ac_cv_prog_cc_g+y} 4166then : 4167 printf %s "(cached) " >&6 4168else $as_nop 4169 ac_save_c_werror_flag=$ac_c_werror_flag 4170 ac_c_werror_flag=yes 4171 ac_cv_prog_cc_g=no 4172 CFLAGS="-g" 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175 4176int 4177main (void) 4178{ 4179 4180 ; 4181 return 0; 4182} 4183_ACEOF 4184if ac_fn_c_try_compile "$LINENO" 4185then : 4186 ac_cv_prog_cc_g=yes 4187else $as_nop 4188 CFLAGS="" 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 4203else $as_nop 4204 ac_c_werror_flag=$ac_save_c_werror_flag 4205 CFLAGS="-g" 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207/* end confdefs.h. */ 4208 4209int 4210main (void) 4211{ 4212 4213 ; 4214 return 0; 4215} 4216_ACEOF 4217if ac_fn_c_try_compile "$LINENO" 4218then : 4219 ac_cv_prog_cc_g=yes 4220fi 4221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4222fi 4223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4224fi 4225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4226 ac_c_werror_flag=$ac_save_c_werror_flag 4227fi 4228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4229printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4230if test $ac_test_CFLAGS; then 4231 CFLAGS=$ac_save_CFLAGS 4232elif test $ac_cv_prog_cc_g = yes; then 4233 if test "$GCC" = yes; then 4234 CFLAGS="-g -O2" 4235 else 4236 CFLAGS="-g" 4237 fi 4238else 4239 if test "$GCC" = yes; then 4240 CFLAGS="-O2" 4241 else 4242 CFLAGS= 4243 fi 4244fi 4245ac_prog_cc_stdc=no 4246if test x$ac_prog_cc_stdc = xno 4247then : 4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4249printf %s "checking for $CC option to enable C11 features... " >&6; } 4250if test ${ac_cv_prog_cc_c11+y} 4251then : 4252 printf %s "(cached) " >&6 4253else $as_nop 4254 ac_cv_prog_cc_c11=no 4255ac_save_CC=$CC 4256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4257/* end confdefs.h. */ 4258$ac_c_conftest_c11_program 4259_ACEOF 4260for ac_arg in '' -std=gnu11 4261do 4262 CC="$ac_save_CC $ac_arg" 4263 if ac_fn_c_try_compile "$LINENO" 4264then : 4265 ac_cv_prog_cc_c11=$ac_arg 4266fi 4267rm -f core conftest.err conftest.$ac_objext conftest.beam 4268 test "x$ac_cv_prog_cc_c11" != "xno" && break 4269done 4270rm -f conftest.$ac_ext 4271CC=$ac_save_CC 4272fi 4273 4274if test "x$ac_cv_prog_cc_c11" = xno 4275then : 4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4277printf "%s\n" "unsupported" >&6; } 4278else $as_nop 4279 if test "x$ac_cv_prog_cc_c11" = x 4280then : 4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4282printf "%s\n" "none needed" >&6; } 4283else $as_nop 4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4285printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4286 CC="$CC $ac_cv_prog_cc_c11" 4287fi 4288 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4289 ac_prog_cc_stdc=c11 4290fi 4291fi 4292if test x$ac_prog_cc_stdc = xno 4293then : 4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4295printf %s "checking for $CC option to enable C99 features... " >&6; } 4296if test ${ac_cv_prog_cc_c99+y} 4297then : 4298 printf %s "(cached) " >&6 4299else $as_nop 4300 ac_cv_prog_cc_c99=no 4301ac_save_CC=$CC 4302cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4303/* end confdefs.h. */ 4304$ac_c_conftest_c99_program 4305_ACEOF 4306for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4307do 4308 CC="$ac_save_CC $ac_arg" 4309 if ac_fn_c_try_compile "$LINENO" 4310then : 4311 ac_cv_prog_cc_c99=$ac_arg 4312fi 4313rm -f core conftest.err conftest.$ac_objext conftest.beam 4314 test "x$ac_cv_prog_cc_c99" != "xno" && break 4315done 4316rm -f conftest.$ac_ext 4317CC=$ac_save_CC 4318fi 4319 4320if test "x$ac_cv_prog_cc_c99" = xno 4321then : 4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4323printf "%s\n" "unsupported" >&6; } 4324else $as_nop 4325 if test "x$ac_cv_prog_cc_c99" = x 4326then : 4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4328printf "%s\n" "none needed" >&6; } 4329else $as_nop 4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4331printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4332 CC="$CC $ac_cv_prog_cc_c99" 4333fi 4334 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4335 ac_prog_cc_stdc=c99 4336fi 4337fi 4338if test x$ac_prog_cc_stdc = xno 4339then : 4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4341printf %s "checking for $CC option to enable C89 features... " >&6; } 4342if test ${ac_cv_prog_cc_c89+y} 4343then : 4344 printf %s "(cached) " >&6 4345else $as_nop 4346 ac_cv_prog_cc_c89=no 4347ac_save_CC=$CC 4348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4349/* end confdefs.h. */ 4350$ac_c_conftest_c89_program 4351_ACEOF 4352for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4353do 4354 CC="$ac_save_CC $ac_arg" 4355 if ac_fn_c_try_compile "$LINENO" 4356then : 4357 ac_cv_prog_cc_c89=$ac_arg 4358fi 4359rm -f core conftest.err conftest.$ac_objext conftest.beam 4360 test "x$ac_cv_prog_cc_c89" != "xno" && break 4361done 4362rm -f conftest.$ac_ext 4363CC=$ac_save_CC 4364fi 4365 4366if test "x$ac_cv_prog_cc_c89" = xno 4367then : 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4369printf "%s\n" "unsupported" >&6; } 4370else $as_nop 4371 if test "x$ac_cv_prog_cc_c89" = x 4372then : 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4374printf "%s\n" "none needed" >&6; } 4375else $as_nop 4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4377printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4378 CC="$CC $ac_cv_prog_cc_c89" 4379fi 4380 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4381 ac_prog_cc_stdc=c89 4382fi 4383fi 4384 4385ac_ext=c 4386ac_cpp='$CPP $CPPFLAGS' 4387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4389ac_compiler_gnu=$ac_cv_c_compiler_gnu 4390 4391 4392 ac_ext=c 4393ac_cpp='$CPP $CPPFLAGS' 4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4396ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4398printf %s "checking whether $CC understands -c and -o together... " >&6; } 4399if test ${am_cv_prog_cc_c_o+y} 4400then : 4401 printf %s "(cached) " >&6 4402else $as_nop 4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4404/* end confdefs.h. */ 4405 4406int 4407main (void) 4408{ 4409 4410 ; 4411 return 0; 4412} 4413_ACEOF 4414 # Make sure it works both with $CC and with simple cc. 4415 # Following AC_PROG_CC_C_O, we do the test twice because some 4416 # compilers refuse to overwrite an existing .o file with -o, 4417 # though they will create one. 4418 am_cv_prog_cc_c_o=yes 4419 for am_i in 1 2; do 4420 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4421 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4422 ac_status=$? 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); } \ 4425 && test -f conftest2.$ac_objext; then 4426 : OK 4427 else 4428 am_cv_prog_cc_c_o=no 4429 break 4430 fi 4431 done 4432 rm -f core conftest* 4433 unset am_i 4434fi 4435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4436printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4437if test "$am_cv_prog_cc_c_o" != yes; then 4438 # Losing compiler, so override with the script. 4439 # FIXME: It is wrong to rewrite CC. 4440 # But if we don't then we get into trouble of one sort or another. 4441 # A longer-term fix would be to have automake use am__CC in this case, 4442 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4443 CC="$am_aux_dir/compile $CC" 4444fi 4445ac_ext=c 4446ac_cpp='$CPP $CPPFLAGS' 4447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4449ac_compiler_gnu=$ac_cv_c_compiler_gnu 4450 4451 4452depcc="$CC" am_compiler_list= 4453 4454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4455printf %s "checking dependency style of $depcc... " >&6; } 4456if test ${am_cv_CC_dependencies_compiler_type+y} 4457then : 4458 printf %s "(cached) " >&6 4459else $as_nop 4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4461 # We make a subdir and do the tests there. Otherwise we can end up 4462 # making bogus files that we don't know about and never remove. For 4463 # instance it was reported that on HP-UX the gcc test will end up 4464 # making a dummy file named 'D' -- because '-MD' means "put the output 4465 # in D". 4466 rm -rf conftest.dir 4467 mkdir conftest.dir 4468 # Copy depcomp to subdir because otherwise we won't find it if we're 4469 # using a relative directory. 4470 cp "$am_depcomp" conftest.dir 4471 cd conftest.dir 4472 # We will build objects and dependencies in a subdirectory because 4473 # it helps to detect inapplicable dependency modes. For instance 4474 # both Tru64's cc and ICC support -MD to output dependencies as a 4475 # side effect of compilation, but ICC will put the dependencies in 4476 # the current directory while Tru64 will put them in the object 4477 # directory. 4478 mkdir sub 4479 4480 am_cv_CC_dependencies_compiler_type=none 4481 if test "$am_compiler_list" = ""; then 4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4483 fi 4484 am__universal=false 4485 case " $depcc " in #( 4486 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4487 esac 4488 4489 for depmode in $am_compiler_list; do 4490 # Setup a source with many dependencies, because some compilers 4491 # like to wrap large dependency lists on column 80 (with \), and 4492 # we should not choose a depcomp mode which is confused by this. 4493 # 4494 # We need to recreate these files for each test, as the compiler may 4495 # overwrite some of them when testing with obscure command lines. 4496 # This happens at least with the AIX C compiler. 4497 : > sub/conftest.c 4498 for i in 1 2 3 4 5 6; do 4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4501 # Solaris 10 /bin/sh. 4502 echo '/* dummy */' > sub/conftst$i.h 4503 done 4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4505 4506 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4507 # mode. It turns out that the SunPro C++ compiler does not properly 4508 # handle '-M -o', and we need to detect this. Also, some Intel 4509 # versions had trouble with output in subdirs. 4510 am__obj=sub/conftest.${OBJEXT-o} 4511 am__minus_obj="-o $am__obj" 4512 case $depmode in 4513 gcc) 4514 # This depmode causes a compiler race in universal mode. 4515 test "$am__universal" = false || continue 4516 ;; 4517 nosideeffect) 4518 # After this tag, mechanisms are not by side-effect, so they'll 4519 # only be used when explicitly requested. 4520 if test "x$enable_dependency_tracking" = xyes; then 4521 continue 4522 else 4523 break 4524 fi 4525 ;; 4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4527 # This compiler won't grok '-c -o', but also, the minuso test has 4528 # not run yet. These depmodes are late enough in the game, and 4529 # so weak that their functioning should not be impacted. 4530 am__obj=conftest.${OBJEXT-o} 4531 am__minus_obj= 4532 ;; 4533 none) break ;; 4534 esac 4535 if depmode=$depmode \ 4536 source=sub/conftest.c object=$am__obj \ 4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4539 >/dev/null 2>conftest.err && 4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4544 # icc doesn't choke on unknown options, it will just issue warnings 4545 # or remarks (even with -Werror). So we grep stderr for any message 4546 # that says an option was ignored or not supported. 4547 # When given -MP, icc 7.0 and 7.1 complain thusly: 4548 # icc: Command line warning: ignoring option '-M'; no argument required 4549 # The diagnosis changed in icc 8.0: 4550 # icc: Command line remark: option '-MP' not supported 4551 if (grep 'ignoring option' conftest.err || 4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4553 am_cv_CC_dependencies_compiler_type=$depmode 4554 break 4555 fi 4556 fi 4557 done 4558 4559 cd .. 4560 rm -rf conftest.dir 4561else 4562 am_cv_CC_dependencies_compiler_type=none 4563fi 4564 4565fi 4566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4567printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4568CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4569 4570 if 4571 test "x$enable_dependency_tracking" != xno \ 4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4573 am__fastdepCC_TRUE= 4574 am__fastdepCC_FALSE='#' 4575else 4576 am__fastdepCC_TRUE='#' 4577 am__fastdepCC_FALSE= 4578fi 4579 4580 4581 4582 4583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4584printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4585if test ${ac_cv_c_undeclared_builtin_options+y} 4586then : 4587 printf %s "(cached) " >&6 4588else $as_nop 4589 ac_save_CFLAGS=$CFLAGS 4590 ac_cv_c_undeclared_builtin_options='cannot detect' 4591 for ac_arg in '' -fno-builtin; do 4592 CFLAGS="$ac_save_CFLAGS $ac_arg" 4593 # This test program should *not* compile successfully. 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595/* end confdefs.h. */ 4596 4597int 4598main (void) 4599{ 4600(void) strchr; 4601 ; 4602 return 0; 4603} 4604_ACEOF 4605if ac_fn_c_try_compile "$LINENO" 4606then : 4607 4608else $as_nop 4609 # This test program should compile successfully. 4610 # No library function is consistently available on 4611 # freestanding implementations, so test against a dummy 4612 # declaration. Include always-available headers on the 4613 # off chance that they somehow elicit warnings. 4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4615/* end confdefs.h. */ 4616#include <float.h> 4617#include <limits.h> 4618#include <stdarg.h> 4619#include <stddef.h> 4620extern void ac_decl (int, char *); 4621 4622int 4623main (void) 4624{ 4625(void) ac_decl (0, (char *) 0); 4626 (void) ac_decl; 4627 4628 ; 4629 return 0; 4630} 4631_ACEOF 4632if ac_fn_c_try_compile "$LINENO" 4633then : 4634 if test x"$ac_arg" = x 4635then : 4636 ac_cv_c_undeclared_builtin_options='none needed' 4637else $as_nop 4638 ac_cv_c_undeclared_builtin_options=$ac_arg 4639fi 4640 break 4641fi 4642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4643fi 4644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4645 done 4646 CFLAGS=$ac_save_CFLAGS 4647 4648fi 4649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4650printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4651 case $ac_cv_c_undeclared_builtin_options in #( 4652 'cannot detect') : 4653 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4654printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4655as_fn_error $? "cannot make $CC report undeclared builtins 4656See \`config.log' for more details" "$LINENO" 5; } ;; #( 4657 'none needed') : 4658 ac_c_undeclared_builtin_options='' ;; #( 4659 *) : 4660 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4661esac 4662 4663ac_header= ac_cache= 4664for ac_item in $ac_header_c_list 4665do 4666 if test $ac_cache; then 4667 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4668 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4669 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4670 fi 4671 ac_header= ac_cache= 4672 elif test $ac_header; then 4673 ac_cache=$ac_item 4674 else 4675 ac_header=$ac_item 4676 fi 4677done 4678 4679 4680 4681 4682 4683 4684 4685 4686if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4687then : 4688 4689printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4690 4691fi 4692 4693 4694 4695 4696ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4697if test "x$ac_cv_have_decl___clang__" = xyes 4698then : 4699 CLANGCC="yes" 4700else $as_nop 4701 CLANGCC="no" 4702fi 4703ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4704if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4705then : 4706 INTELCC="yes" 4707else $as_nop 4708 INTELCC="no" 4709fi 4710ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4711if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4712then : 4713 SUNCC="yes" 4714else $as_nop 4715 SUNCC="no" 4716fi 4717 4718 4719 4720 4721 4722 4723 4724 4725if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4726 if test -n "$ac_tool_prefix"; then 4727 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4728set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4730printf %s "checking for $ac_word... " >&6; } 4731if test ${ac_cv_path_PKG_CONFIG+y} 4732then : 4733 printf %s "(cached) " >&6 4734else $as_nop 4735 case $PKG_CONFIG in 4736 [\\/]* | ?:[\\/]*) 4737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4738 ;; 4739 *) 4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4741for as_dir in $PATH 4742do 4743 IFS=$as_save_IFS 4744 case $as_dir in #((( 4745 '') as_dir=./ ;; 4746 */) ;; 4747 *) as_dir=$as_dir/ ;; 4748 esac 4749 for ac_exec_ext in '' $ac_executable_extensions; do 4750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4751 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4753 break 2 4754 fi 4755done 4756 done 4757IFS=$as_save_IFS 4758 4759 ;; 4760esac 4761fi 4762PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4763if test -n "$PKG_CONFIG"; then 4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4765printf "%s\n" "$PKG_CONFIG" >&6; } 4766else 4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4768printf "%s\n" "no" >&6; } 4769fi 4770 4771 4772fi 4773if test -z "$ac_cv_path_PKG_CONFIG"; then 4774 ac_pt_PKG_CONFIG=$PKG_CONFIG 4775 # Extract the first word of "pkg-config", so it can be a program name with args. 4776set dummy pkg-config; ac_word=$2 4777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4778printf %s "checking for $ac_word... " >&6; } 4779if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4780then : 4781 printf %s "(cached) " >&6 4782else $as_nop 4783 case $ac_pt_PKG_CONFIG in 4784 [\\/]* | ?:[\\/]*) 4785 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4786 ;; 4787 *) 4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4789for as_dir in $PATH 4790do 4791 IFS=$as_save_IFS 4792 case $as_dir in #((( 4793 '') as_dir=./ ;; 4794 */) ;; 4795 *) as_dir=$as_dir/ ;; 4796 esac 4797 for ac_exec_ext in '' $ac_executable_extensions; do 4798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4799 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4801 break 2 4802 fi 4803done 4804 done 4805IFS=$as_save_IFS 4806 4807 ;; 4808esac 4809fi 4810ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4811if test -n "$ac_pt_PKG_CONFIG"; then 4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4813printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4814else 4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4816printf "%s\n" "no" >&6; } 4817fi 4818 4819 if test "x$ac_pt_PKG_CONFIG" = x; then 4820 PKG_CONFIG="" 4821 else 4822 case $cross_compiling:$ac_tool_warned in 4823yes:) 4824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4825printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4826ac_tool_warned=yes ;; 4827esac 4828 PKG_CONFIG=$ac_pt_PKG_CONFIG 4829 fi 4830else 4831 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4832fi 4833 4834fi 4835if test -n "$PKG_CONFIG"; then 4836 _pkg_min_version=0.9.0 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4838printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4839 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4841printf "%s\n" "yes" >&6; } 4842 else 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4844printf "%s\n" "no" >&6; } 4845 PKG_CONFIG="" 4846 fi 4847fi 4848 4849 4850 # Make sure we can run config.sub. 4851$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4852 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4853 4854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4855printf %s "checking build system type... " >&6; } 4856if test ${ac_cv_build+y} 4857then : 4858 printf %s "(cached) " >&6 4859else $as_nop 4860 ac_build_alias=$build_alias 4861test "x$ac_build_alias" = x && 4862 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4863test "x$ac_build_alias" = x && 4864 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4865ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4866 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4867 4868fi 4869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4870printf "%s\n" "$ac_cv_build" >&6; } 4871case $ac_cv_build in 4872*-*-*) ;; 4873*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4874esac 4875build=$ac_cv_build 4876ac_save_IFS=$IFS; IFS='-' 4877set x $ac_cv_build 4878shift 4879build_cpu=$1 4880build_vendor=$2 4881shift; shift 4882# Remember, the first character of IFS is used to create $*, 4883# except with old shells: 4884build_os=$* 4885IFS=$ac_save_IFS 4886case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4887 4888 4889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4890printf %s "checking host system type... " >&6; } 4891if test ${ac_cv_host+y} 4892then : 4893 printf %s "(cached) " >&6 4894else $as_nop 4895 if test "x$host_alias" = x; then 4896 ac_cv_host=$ac_cv_build 4897else 4898 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4899 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4900fi 4901 4902fi 4903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4904printf "%s\n" "$ac_cv_host" >&6; } 4905case $ac_cv_host in 4906*-*-*) ;; 4907*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4908esac 4909host=$ac_cv_host 4910ac_save_IFS=$IFS; IFS='-' 4911set x $ac_cv_host 4912shift 4913host_cpu=$1 4914host_vendor=$2 4915shift; shift 4916# Remember, the first character of IFS is used to create $*, 4917# except with old shells: 4918host_os=$* 4919IFS=$ac_save_IFS 4920case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4921 4922 4923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4924printf %s "checking for a sed that does not truncate output... " >&6; } 4925if test ${ac_cv_path_SED+y} 4926then : 4927 printf %s "(cached) " >&6 4928else $as_nop 4929 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4930 for ac_i in 1 2 3 4 5 6 7; do 4931 ac_script="$ac_script$as_nl$ac_script" 4932 done 4933 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4934 { ac_script=; unset ac_script;} 4935 if test -z "$SED"; then 4936 ac_path_SED_found=false 4937 # Loop through the user's path and test for each of PROGNAME-LIST 4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4939for as_dir in $PATH 4940do 4941 IFS=$as_save_IFS 4942 case $as_dir in #((( 4943 '') as_dir=./ ;; 4944 */) ;; 4945 *) as_dir=$as_dir/ ;; 4946 esac 4947 for ac_prog in sed gsed 4948 do 4949 for ac_exec_ext in '' $ac_executable_extensions; do 4950 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4951 as_fn_executable_p "$ac_path_SED" || continue 4952# Check for GNU ac_path_SED and select it if it is found. 4953 # Check for GNU $ac_path_SED 4954case `"$ac_path_SED" --version 2>&1` in 4955*GNU*) 4956 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4957*) 4958 ac_count=0 4959 printf %s 0123456789 >"conftest.in" 4960 while : 4961 do 4962 cat "conftest.in" "conftest.in" >"conftest.tmp" 4963 mv "conftest.tmp" "conftest.in" 4964 cp "conftest.in" "conftest.nl" 4965 printf "%s\n" '' >> "conftest.nl" 4966 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4968 as_fn_arith $ac_count + 1 && ac_count=$as_val 4969 if test $ac_count -gt ${ac_path_SED_max-0}; then 4970 # Best one so far, save it but keep looking for a better one 4971 ac_cv_path_SED="$ac_path_SED" 4972 ac_path_SED_max=$ac_count 4973 fi 4974 # 10*(2^10) chars as input seems more than enough 4975 test $ac_count -gt 10 && break 4976 done 4977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4978esac 4979 4980 $ac_path_SED_found && break 3 4981 done 4982 done 4983 done 4984IFS=$as_save_IFS 4985 if test -z "$ac_cv_path_SED"; then 4986 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4987 fi 4988else 4989 ac_cv_path_SED=$SED 4990fi 4991 4992fi 4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4994printf "%s\n" "$ac_cv_path_SED" >&6; } 4995 SED="$ac_cv_path_SED" 4996 rm -f conftest.sed 4997 4998 4999 5000 5001 5002 5003# Check whether --enable-selective-werror was given. 5004if test ${enable_selective_werror+y} 5005then : 5006 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5007else $as_nop 5008 SELECTIVE_WERROR=yes 5009fi 5010 5011 5012 5013 5014 5015# -v is too short to test reliably with XORG_TESTSET_CFLAG 5016if test "x$SUNCC" = "xyes"; then 5017 BASE_CFLAGS="-v" 5018else 5019 BASE_CFLAGS="" 5020fi 5021 5022# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036xorg_testset_save_CFLAGS="$CFLAGS" 5037 5038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5042if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5043then : 5044 printf %s "(cached) " >&6 5045else $as_nop 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047/* end confdefs.h. */ 5048int i; 5049_ACEOF 5050if ac_fn_c_try_compile "$LINENO" 5051then : 5052 xorg_cv_cc_flag_unknown_warning_option=yes 5053else $as_nop 5054 xorg_cv_cc_flag_unknown_warning_option=no 5055fi 5056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5057fi 5058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5059printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5061 CFLAGS="$xorg_testset_save_CFLAGS" 5062fi 5063 5064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5067 fi 5068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5070printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5071if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5072then : 5073 printf %s "(cached) " >&6 5074else $as_nop 5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5076/* end confdefs.h. */ 5077int i; 5078_ACEOF 5079if ac_fn_c_try_compile "$LINENO" 5080then : 5081 xorg_cv_cc_flag_unused_command_line_argument=yes 5082else $as_nop 5083 xorg_cv_cc_flag_unused_command_line_argument=no 5084fi 5085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5086fi 5087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5090 CFLAGS="$xorg_testset_save_CFLAGS" 5091fi 5092 5093found="no" 5094 5095 if test $found = "no" ; then 5096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5098 fi 5099 5100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5102 fi 5103 5104 CFLAGS="$CFLAGS -Wall" 5105 5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5107printf %s "checking if $CC supports -Wall... " >&6; } 5108 cacheid=xorg_cv_cc_flag__Wall 5109 if eval test \${$cacheid+y} 5110then : 5111 printf %s "(cached) " >&6 5112else $as_nop 5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5114/* end confdefs.h. */ 5115int i; 5116int 5117main (void) 5118{ 5119 5120 ; 5121 return 0; 5122} 5123_ACEOF 5124if ac_fn_c_try_link "$LINENO" 5125then : 5126 eval $cacheid=yes 5127else $as_nop 5128 eval $cacheid=no 5129fi 5130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5131 conftest$ac_exeext conftest.$ac_ext 5132fi 5133 5134 5135 CFLAGS="$xorg_testset_save_CFLAGS" 5136 5137 eval supported=\$$cacheid 5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5139printf "%s\n" "$supported" >&6; } 5140 if test "$supported" = "yes" ; then 5141 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5142 found="yes" 5143 fi 5144 fi 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160xorg_testset_save_CFLAGS="$CFLAGS" 5161 5162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5165printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5166if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5167then : 5168 printf %s "(cached) " >&6 5169else $as_nop 5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5171/* end confdefs.h. */ 5172int i; 5173_ACEOF 5174if ac_fn_c_try_compile "$LINENO" 5175then : 5176 xorg_cv_cc_flag_unknown_warning_option=yes 5177else $as_nop 5178 xorg_cv_cc_flag_unknown_warning_option=no 5179fi 5180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5181fi 5182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5183printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5185 CFLAGS="$xorg_testset_save_CFLAGS" 5186fi 5187 5188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5191 fi 5192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5194printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5195if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5196then : 5197 printf %s "(cached) " >&6 5198else $as_nop 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201int i; 5202_ACEOF 5203if ac_fn_c_try_compile "$LINENO" 5204then : 5205 xorg_cv_cc_flag_unused_command_line_argument=yes 5206else $as_nop 5207 xorg_cv_cc_flag_unused_command_line_argument=no 5208fi 5209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5210fi 5211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5214 CFLAGS="$xorg_testset_save_CFLAGS" 5215fi 5216 5217found="no" 5218 5219 if test $found = "no" ; then 5220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5222 fi 5223 5224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5226 fi 5227 5228 CFLAGS="$CFLAGS -Wpointer-arith" 5229 5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5231printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5232 cacheid=xorg_cv_cc_flag__Wpointer_arith 5233 if eval test \${$cacheid+y} 5234then : 5235 printf %s "(cached) " >&6 5236else $as_nop 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238/* end confdefs.h. */ 5239int i; 5240int 5241main (void) 5242{ 5243 5244 ; 5245 return 0; 5246} 5247_ACEOF 5248if ac_fn_c_try_link "$LINENO" 5249then : 5250 eval $cacheid=yes 5251else $as_nop 5252 eval $cacheid=no 5253fi 5254rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5255 conftest$ac_exeext conftest.$ac_ext 5256fi 5257 5258 5259 CFLAGS="$xorg_testset_save_CFLAGS" 5260 5261 eval supported=\$$cacheid 5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5263printf "%s\n" "$supported" >&6; } 5264 if test "$supported" = "yes" ; then 5265 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5266 found="yes" 5267 fi 5268 fi 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284xorg_testset_save_CFLAGS="$CFLAGS" 5285 5286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5289printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5290if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5291then : 5292 printf %s "(cached) " >&6 5293else $as_nop 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5295/* end confdefs.h. */ 5296int i; 5297_ACEOF 5298if ac_fn_c_try_compile "$LINENO" 5299then : 5300 xorg_cv_cc_flag_unknown_warning_option=yes 5301else $as_nop 5302 xorg_cv_cc_flag_unknown_warning_option=no 5303fi 5304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5305fi 5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5307printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5309 CFLAGS="$xorg_testset_save_CFLAGS" 5310fi 5311 5312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5315 fi 5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5318printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5319if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5320then : 5321 printf %s "(cached) " >&6 5322else $as_nop 5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5324/* end confdefs.h. */ 5325int i; 5326_ACEOF 5327if ac_fn_c_try_compile "$LINENO" 5328then : 5329 xorg_cv_cc_flag_unused_command_line_argument=yes 5330else $as_nop 5331 xorg_cv_cc_flag_unused_command_line_argument=no 5332fi 5333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5334fi 5335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5338 CFLAGS="$xorg_testset_save_CFLAGS" 5339fi 5340 5341found="no" 5342 5343 if test $found = "no" ; then 5344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5346 fi 5347 5348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5350 fi 5351 5352 CFLAGS="$CFLAGS -Wmissing-declarations" 5353 5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5355printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5356 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5357 if eval test \${$cacheid+y} 5358then : 5359 printf %s "(cached) " >&6 5360else $as_nop 5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5362/* end confdefs.h. */ 5363int i; 5364int 5365main (void) 5366{ 5367 5368 ; 5369 return 0; 5370} 5371_ACEOF 5372if ac_fn_c_try_link "$LINENO" 5373then : 5374 eval $cacheid=yes 5375else $as_nop 5376 eval $cacheid=no 5377fi 5378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5379 conftest$ac_exeext conftest.$ac_ext 5380fi 5381 5382 5383 CFLAGS="$xorg_testset_save_CFLAGS" 5384 5385 eval supported=\$$cacheid 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5387printf "%s\n" "$supported" >&6; } 5388 if test "$supported" = "yes" ; then 5389 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5390 found="yes" 5391 fi 5392 fi 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408xorg_testset_save_CFLAGS="$CFLAGS" 5409 5410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5413printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5414if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5415then : 5416 printf %s "(cached) " >&6 5417else $as_nop 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420int i; 5421_ACEOF 5422if ac_fn_c_try_compile "$LINENO" 5423then : 5424 xorg_cv_cc_flag_unknown_warning_option=yes 5425else $as_nop 5426 xorg_cv_cc_flag_unknown_warning_option=no 5427fi 5428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5429fi 5430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5433 CFLAGS="$xorg_testset_save_CFLAGS" 5434fi 5435 5436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5439 fi 5440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5443if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5444then : 5445 printf %s "(cached) " >&6 5446else $as_nop 5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5448/* end confdefs.h. */ 5449int i; 5450_ACEOF 5451if ac_fn_c_try_compile "$LINENO" 5452then : 5453 xorg_cv_cc_flag_unused_command_line_argument=yes 5454else $as_nop 5455 xorg_cv_cc_flag_unused_command_line_argument=no 5456fi 5457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5458fi 5459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5460printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5462 CFLAGS="$xorg_testset_save_CFLAGS" 5463fi 5464 5465found="no" 5466 5467 if test $found = "no" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5474 fi 5475 5476 CFLAGS="$CFLAGS -Wformat=2" 5477 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5479printf %s "checking if $CC supports -Wformat=2... " >&6; } 5480 cacheid=xorg_cv_cc_flag__Wformat_2 5481 if eval test \${$cacheid+y} 5482then : 5483 printf %s "(cached) " >&6 5484else $as_nop 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486/* end confdefs.h. */ 5487int i; 5488int 5489main (void) 5490{ 5491 5492 ; 5493 return 0; 5494} 5495_ACEOF 5496if ac_fn_c_try_link "$LINENO" 5497then : 5498 eval $cacheid=yes 5499else $as_nop 5500 eval $cacheid=no 5501fi 5502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5503 conftest$ac_exeext conftest.$ac_ext 5504fi 5505 5506 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508 5509 eval supported=\$$cacheid 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5511printf "%s\n" "$supported" >&6; } 5512 if test "$supported" = "yes" ; then 5513 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5514 found="yes" 5515 fi 5516 fi 5517 5518 if test $found = "no" ; then 5519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5521 fi 5522 5523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5525 fi 5526 5527 CFLAGS="$CFLAGS -Wformat" 5528 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5530printf %s "checking if $CC supports -Wformat... " >&6; } 5531 cacheid=xorg_cv_cc_flag__Wformat 5532 if eval test \${$cacheid+y} 5533then : 5534 printf %s "(cached) " >&6 5535else $as_nop 5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537/* end confdefs.h. */ 5538int i; 5539int 5540main (void) 5541{ 5542 5543 ; 5544 return 0; 5545} 5546_ACEOF 5547if ac_fn_c_try_link "$LINENO" 5548then : 5549 eval $cacheid=yes 5550else $as_nop 5551 eval $cacheid=no 5552fi 5553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5554 conftest$ac_exeext conftest.$ac_ext 5555fi 5556 5557 5558 CFLAGS="$xorg_testset_save_CFLAGS" 5559 5560 eval supported=\$$cacheid 5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5562printf "%s\n" "$supported" >&6; } 5563 if test "$supported" = "yes" ; then 5564 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5565 found="yes" 5566 fi 5567 fi 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585xorg_testset_save_CFLAGS="$CFLAGS" 5586 5587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5591if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5592then : 5593 printf %s "(cached) " >&6 5594else $as_nop 5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5596/* end confdefs.h. */ 5597int i; 5598_ACEOF 5599if ac_fn_c_try_compile "$LINENO" 5600then : 5601 xorg_cv_cc_flag_unknown_warning_option=yes 5602else $as_nop 5603 xorg_cv_cc_flag_unknown_warning_option=no 5604fi 5605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5606fi 5607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5610 CFLAGS="$xorg_testset_save_CFLAGS" 5611fi 5612 5613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5616 fi 5617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5620if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5621then : 5622 printf %s "(cached) " >&6 5623else $as_nop 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626int i; 5627_ACEOF 5628if ac_fn_c_try_compile "$LINENO" 5629then : 5630 xorg_cv_cc_flag_unused_command_line_argument=yes 5631else $as_nop 5632 xorg_cv_cc_flag_unused_command_line_argument=no 5633fi 5634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5635fi 5636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5639 CFLAGS="$xorg_testset_save_CFLAGS" 5640fi 5641 5642found="no" 5643 5644 if test $found = "no" ; then 5645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5647 fi 5648 5649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5651 fi 5652 5653 CFLAGS="$CFLAGS -Wstrict-prototypes" 5654 5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5656printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5657 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5658 if eval test \${$cacheid+y} 5659then : 5660 printf %s "(cached) " >&6 5661else $as_nop 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5663/* end confdefs.h. */ 5664int i; 5665int 5666main (void) 5667{ 5668 5669 ; 5670 return 0; 5671} 5672_ACEOF 5673if ac_fn_c_try_link "$LINENO" 5674then : 5675 eval $cacheid=yes 5676else $as_nop 5677 eval $cacheid=no 5678fi 5679rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5680 conftest$ac_exeext conftest.$ac_ext 5681fi 5682 5683 5684 CFLAGS="$xorg_testset_save_CFLAGS" 5685 5686 eval supported=\$$cacheid 5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5688printf "%s\n" "$supported" >&6; } 5689 if test "$supported" = "yes" ; then 5690 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5691 found="yes" 5692 fi 5693 fi 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709xorg_testset_save_CFLAGS="$CFLAGS" 5710 5711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5715if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5716then : 5717 printf %s "(cached) " >&6 5718else $as_nop 5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5720/* end confdefs.h. */ 5721int i; 5722_ACEOF 5723if ac_fn_c_try_compile "$LINENO" 5724then : 5725 xorg_cv_cc_flag_unknown_warning_option=yes 5726else $as_nop 5727 xorg_cv_cc_flag_unknown_warning_option=no 5728fi 5729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5730fi 5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5734 CFLAGS="$xorg_testset_save_CFLAGS" 5735fi 5736 5737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5740 fi 5741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5744if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5745then : 5746 printf %s "(cached) " >&6 5747else $as_nop 5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749/* end confdefs.h. */ 5750int i; 5751_ACEOF 5752if ac_fn_c_try_compile "$LINENO" 5753then : 5754 xorg_cv_cc_flag_unused_command_line_argument=yes 5755else $as_nop 5756 xorg_cv_cc_flag_unused_command_line_argument=no 5757fi 5758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5759fi 5760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5761printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5763 CFLAGS="$xorg_testset_save_CFLAGS" 5764fi 5765 5766found="no" 5767 5768 if test $found = "no" ; then 5769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5771 fi 5772 5773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5775 fi 5776 5777 CFLAGS="$CFLAGS -Wmissing-prototypes" 5778 5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5780printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5781 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5782 if eval test \${$cacheid+y} 5783then : 5784 printf %s "(cached) " >&6 5785else $as_nop 5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5787/* end confdefs.h. */ 5788int i; 5789int 5790main (void) 5791{ 5792 5793 ; 5794 return 0; 5795} 5796_ACEOF 5797if ac_fn_c_try_link "$LINENO" 5798then : 5799 eval $cacheid=yes 5800else $as_nop 5801 eval $cacheid=no 5802fi 5803rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5804 conftest$ac_exeext conftest.$ac_ext 5805fi 5806 5807 5808 CFLAGS="$xorg_testset_save_CFLAGS" 5809 5810 eval supported=\$$cacheid 5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5812printf "%s\n" "$supported" >&6; } 5813 if test "$supported" = "yes" ; then 5814 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5815 found="yes" 5816 fi 5817 fi 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833xorg_testset_save_CFLAGS="$CFLAGS" 5834 5835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5839if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5840then : 5841 printf %s "(cached) " >&6 5842else $as_nop 5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5844/* end confdefs.h. */ 5845int i; 5846_ACEOF 5847if ac_fn_c_try_compile "$LINENO" 5848then : 5849 xorg_cv_cc_flag_unknown_warning_option=yes 5850else $as_nop 5851 xorg_cv_cc_flag_unknown_warning_option=no 5852fi 5853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5854fi 5855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5858 CFLAGS="$xorg_testset_save_CFLAGS" 5859fi 5860 5861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5864 fi 5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5868if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5869then : 5870 printf %s "(cached) " >&6 5871else $as_nop 5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5873/* end confdefs.h. */ 5874int i; 5875_ACEOF 5876if ac_fn_c_try_compile "$LINENO" 5877then : 5878 xorg_cv_cc_flag_unused_command_line_argument=yes 5879else $as_nop 5880 xorg_cv_cc_flag_unused_command_line_argument=no 5881fi 5882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5883fi 5884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5887 CFLAGS="$xorg_testset_save_CFLAGS" 5888fi 5889 5890found="no" 5891 5892 if test $found = "no" ; then 5893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5895 fi 5896 5897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5899 fi 5900 5901 CFLAGS="$CFLAGS -Wnested-externs" 5902 5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5904printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5905 cacheid=xorg_cv_cc_flag__Wnested_externs 5906 if eval test \${$cacheid+y} 5907then : 5908 printf %s "(cached) " >&6 5909else $as_nop 5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5911/* end confdefs.h. */ 5912int i; 5913int 5914main (void) 5915{ 5916 5917 ; 5918 return 0; 5919} 5920_ACEOF 5921if ac_fn_c_try_link "$LINENO" 5922then : 5923 eval $cacheid=yes 5924else $as_nop 5925 eval $cacheid=no 5926fi 5927rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5928 conftest$ac_exeext conftest.$ac_ext 5929fi 5930 5931 5932 CFLAGS="$xorg_testset_save_CFLAGS" 5933 5934 eval supported=\$$cacheid 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5936printf "%s\n" "$supported" >&6; } 5937 if test "$supported" = "yes" ; then 5938 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5939 found="yes" 5940 fi 5941 fi 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957xorg_testset_save_CFLAGS="$CFLAGS" 5958 5959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5963if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5964then : 5965 printf %s "(cached) " >&6 5966else $as_nop 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968/* end confdefs.h. */ 5969int i; 5970_ACEOF 5971if ac_fn_c_try_compile "$LINENO" 5972then : 5973 xorg_cv_cc_flag_unknown_warning_option=yes 5974else $as_nop 5975 xorg_cv_cc_flag_unknown_warning_option=no 5976fi 5977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5978fi 5979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983fi 5984 5985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988 fi 5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5992if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5993then : 5994 printf %s "(cached) " >&6 5995else $as_nop 5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997/* end confdefs.h. */ 5998int i; 5999_ACEOF 6000if ac_fn_c_try_compile "$LINENO" 6001then : 6002 xorg_cv_cc_flag_unused_command_line_argument=yes 6003else $as_nop 6004 xorg_cv_cc_flag_unused_command_line_argument=no 6005fi 6006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6007fi 6008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6011 CFLAGS="$xorg_testset_save_CFLAGS" 6012fi 6013 6014found="no" 6015 6016 if test $found = "no" ; then 6017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6019 fi 6020 6021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6023 fi 6024 6025 CFLAGS="$CFLAGS -Wbad-function-cast" 6026 6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6028printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6029 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6030 if eval test \${$cacheid+y} 6031then : 6032 printf %s "(cached) " >&6 6033else $as_nop 6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6035/* end confdefs.h. */ 6036int i; 6037int 6038main (void) 6039{ 6040 6041 ; 6042 return 0; 6043} 6044_ACEOF 6045if ac_fn_c_try_link "$LINENO" 6046then : 6047 eval $cacheid=yes 6048else $as_nop 6049 eval $cacheid=no 6050fi 6051rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6052 conftest$ac_exeext conftest.$ac_ext 6053fi 6054 6055 6056 CFLAGS="$xorg_testset_save_CFLAGS" 6057 6058 eval supported=\$$cacheid 6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6060printf "%s\n" "$supported" >&6; } 6061 if test "$supported" = "yes" ; then 6062 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6063 found="yes" 6064 fi 6065 fi 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081xorg_testset_save_CFLAGS="$CFLAGS" 6082 6083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6087if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6088then : 6089 printf %s "(cached) " >&6 6090else $as_nop 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093int i; 6094_ACEOF 6095if ac_fn_c_try_compile "$LINENO" 6096then : 6097 xorg_cv_cc_flag_unknown_warning_option=yes 6098else $as_nop 6099 xorg_cv_cc_flag_unknown_warning_option=no 6100fi 6101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6102fi 6103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6104printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6106 CFLAGS="$xorg_testset_save_CFLAGS" 6107fi 6108 6109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 fi 6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6115printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6116if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6117then : 6118 printf %s "(cached) " >&6 6119else $as_nop 6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121/* end confdefs.h. */ 6122int i; 6123_ACEOF 6124if ac_fn_c_try_compile "$LINENO" 6125then : 6126 xorg_cv_cc_flag_unused_command_line_argument=yes 6127else $as_nop 6128 xorg_cv_cc_flag_unused_command_line_argument=no 6129fi 6130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6131fi 6132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6133printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6135 CFLAGS="$xorg_testset_save_CFLAGS" 6136fi 6137 6138found="no" 6139 6140 if test $found = "no" ; then 6141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6143 fi 6144 6145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6147 fi 6148 6149 CFLAGS="$CFLAGS -Wold-style-definition" 6150 6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6152printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6153 cacheid=xorg_cv_cc_flag__Wold_style_definition 6154 if eval test \${$cacheid+y} 6155then : 6156 printf %s "(cached) " >&6 6157else $as_nop 6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6159/* end confdefs.h. */ 6160int i; 6161int 6162main (void) 6163{ 6164 6165 ; 6166 return 0; 6167} 6168_ACEOF 6169if ac_fn_c_try_link "$LINENO" 6170then : 6171 eval $cacheid=yes 6172else $as_nop 6173 eval $cacheid=no 6174fi 6175rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6176 conftest$ac_exeext conftest.$ac_ext 6177fi 6178 6179 6180 CFLAGS="$xorg_testset_save_CFLAGS" 6181 6182 eval supported=\$$cacheid 6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6184printf "%s\n" "$supported" >&6; } 6185 if test "$supported" = "yes" ; then 6186 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6187 found="yes" 6188 fi 6189 fi 6190 6191 if test $found = "no" ; then 6192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6194 fi 6195 6196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6198 fi 6199 6200 CFLAGS="$CFLAGS -fd" 6201 6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6203printf %s "checking if $CC supports -fd... " >&6; } 6204 cacheid=xorg_cv_cc_flag__fd 6205 if eval test \${$cacheid+y} 6206then : 6207 printf %s "(cached) " >&6 6208else $as_nop 6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210/* end confdefs.h. */ 6211int i; 6212int 6213main (void) 6214{ 6215 6216 ; 6217 return 0; 6218} 6219_ACEOF 6220if ac_fn_c_try_link "$LINENO" 6221then : 6222 eval $cacheid=yes 6223else $as_nop 6224 eval $cacheid=no 6225fi 6226rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6227 conftest$ac_exeext conftest.$ac_ext 6228fi 6229 6230 6231 CFLAGS="$xorg_testset_save_CFLAGS" 6232 6233 eval supported=\$$cacheid 6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6235printf "%s\n" "$supported" >&6; } 6236 if test "$supported" = "yes" ; then 6237 BASE_CFLAGS="$BASE_CFLAGS -fd" 6238 found="yes" 6239 fi 6240 fi 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256xorg_testset_save_CFLAGS="$CFLAGS" 6257 6258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6262if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6263then : 6264 printf %s "(cached) " >&6 6265else $as_nop 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267/* end confdefs.h. */ 6268int i; 6269_ACEOF 6270if ac_fn_c_try_compile "$LINENO" 6271then : 6272 xorg_cv_cc_flag_unknown_warning_option=yes 6273else $as_nop 6274 xorg_cv_cc_flag_unknown_warning_option=no 6275fi 6276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6277fi 6278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6279printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6281 CFLAGS="$xorg_testset_save_CFLAGS" 6282fi 6283 6284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6287 fi 6288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6290printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6291if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6292then : 6293 printf %s "(cached) " >&6 6294else $as_nop 6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6296/* end confdefs.h. */ 6297int i; 6298_ACEOF 6299if ac_fn_c_try_compile "$LINENO" 6300then : 6301 xorg_cv_cc_flag_unused_command_line_argument=yes 6302else $as_nop 6303 xorg_cv_cc_flag_unused_command_line_argument=no 6304fi 6305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6306fi 6307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6308printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6310 CFLAGS="$xorg_testset_save_CFLAGS" 6311fi 6312 6313found="no" 6314 6315 if test $found = "no" ; then 6316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6318 fi 6319 6320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6322 fi 6323 6324 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6325 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6327printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6328 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6329 if eval test \${$cacheid+y} 6330then : 6331 printf %s "(cached) " >&6 6332else $as_nop 6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334/* end confdefs.h. */ 6335int i; 6336int 6337main (void) 6338{ 6339 6340 ; 6341 return 0; 6342} 6343_ACEOF 6344if ac_fn_c_try_link "$LINENO" 6345then : 6346 eval $cacheid=yes 6347else $as_nop 6348 eval $cacheid=no 6349fi 6350rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6351 conftest$ac_exeext conftest.$ac_ext 6352fi 6353 6354 6355 CFLAGS="$xorg_testset_save_CFLAGS" 6356 6357 eval supported=\$$cacheid 6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6359printf "%s\n" "$supported" >&6; } 6360 if test "$supported" = "yes" ; then 6361 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6362 found="yes" 6363 fi 6364 fi 6365 6366 6367 6368 6369 6370# This chunk adds additional warnings that could catch undesired effects. 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384xorg_testset_save_CFLAGS="$CFLAGS" 6385 6386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6389printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6390if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6391then : 6392 printf %s "(cached) " >&6 6393else $as_nop 6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6395/* end confdefs.h. */ 6396int i; 6397_ACEOF 6398if ac_fn_c_try_compile "$LINENO" 6399then : 6400 xorg_cv_cc_flag_unknown_warning_option=yes 6401else $as_nop 6402 xorg_cv_cc_flag_unknown_warning_option=no 6403fi 6404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6405fi 6406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6407printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410fi 6411 6412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6415 fi 6416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6418printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6419if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6420then : 6421 printf %s "(cached) " >&6 6422else $as_nop 6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6424/* end confdefs.h. */ 6425int i; 6426_ACEOF 6427if ac_fn_c_try_compile "$LINENO" 6428then : 6429 xorg_cv_cc_flag_unused_command_line_argument=yes 6430else $as_nop 6431 xorg_cv_cc_flag_unused_command_line_argument=no 6432fi 6433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6434fi 6435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6436printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6438 CFLAGS="$xorg_testset_save_CFLAGS" 6439fi 6440 6441found="no" 6442 6443 if test $found = "no" ; then 6444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6446 fi 6447 6448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6450 fi 6451 6452 CFLAGS="$CFLAGS -Wunused" 6453 6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6455printf %s "checking if $CC supports -Wunused... " >&6; } 6456 cacheid=xorg_cv_cc_flag__Wunused 6457 if eval test \${$cacheid+y} 6458then : 6459 printf %s "(cached) " >&6 6460else $as_nop 6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6462/* end confdefs.h. */ 6463int i; 6464int 6465main (void) 6466{ 6467 6468 ; 6469 return 0; 6470} 6471_ACEOF 6472if ac_fn_c_try_link "$LINENO" 6473then : 6474 eval $cacheid=yes 6475else $as_nop 6476 eval $cacheid=no 6477fi 6478rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6479 conftest$ac_exeext conftest.$ac_ext 6480fi 6481 6482 6483 CFLAGS="$xorg_testset_save_CFLAGS" 6484 6485 eval supported=\$$cacheid 6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6487printf "%s\n" "$supported" >&6; } 6488 if test "$supported" = "yes" ; then 6489 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6490 found="yes" 6491 fi 6492 fi 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508xorg_testset_save_CFLAGS="$CFLAGS" 6509 6510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6513printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6514if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6515then : 6516 printf %s "(cached) " >&6 6517else $as_nop 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519/* end confdefs.h. */ 6520int i; 6521_ACEOF 6522if ac_fn_c_try_compile "$LINENO" 6523then : 6524 xorg_cv_cc_flag_unknown_warning_option=yes 6525else $as_nop 6526 xorg_cv_cc_flag_unknown_warning_option=no 6527fi 6528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6529fi 6530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6533 CFLAGS="$xorg_testset_save_CFLAGS" 6534fi 6535 6536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 fi 6540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6543if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6544then : 6545 printf %s "(cached) " >&6 6546else $as_nop 6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6548/* end confdefs.h. */ 6549int i; 6550_ACEOF 6551if ac_fn_c_try_compile "$LINENO" 6552then : 6553 xorg_cv_cc_flag_unused_command_line_argument=yes 6554else $as_nop 6555 xorg_cv_cc_flag_unused_command_line_argument=no 6556fi 6557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6558fi 6559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6560printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6562 CFLAGS="$xorg_testset_save_CFLAGS" 6563fi 6564 6565found="no" 6566 6567 if test $found = "no" ; then 6568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6570 fi 6571 6572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6574 fi 6575 6576 CFLAGS="$CFLAGS -Wuninitialized" 6577 6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6579printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6580 cacheid=xorg_cv_cc_flag__Wuninitialized 6581 if eval test \${$cacheid+y} 6582then : 6583 printf %s "(cached) " >&6 6584else $as_nop 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587int i; 6588int 6589main (void) 6590{ 6591 6592 ; 6593 return 0; 6594} 6595_ACEOF 6596if ac_fn_c_try_link "$LINENO" 6597then : 6598 eval $cacheid=yes 6599else $as_nop 6600 eval $cacheid=no 6601fi 6602rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6603 conftest$ac_exeext conftest.$ac_ext 6604fi 6605 6606 6607 CFLAGS="$xorg_testset_save_CFLAGS" 6608 6609 eval supported=\$$cacheid 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6611printf "%s\n" "$supported" >&6; } 6612 if test "$supported" = "yes" ; then 6613 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6614 found="yes" 6615 fi 6616 fi 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632xorg_testset_save_CFLAGS="$CFLAGS" 6633 6634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6637printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6638if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6639then : 6640 printf %s "(cached) " >&6 6641else $as_nop 6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643/* end confdefs.h. */ 6644int i; 6645_ACEOF 6646if ac_fn_c_try_compile "$LINENO" 6647then : 6648 xorg_cv_cc_flag_unknown_warning_option=yes 6649else $as_nop 6650 xorg_cv_cc_flag_unknown_warning_option=no 6651fi 6652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6653fi 6654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6655printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6657 CFLAGS="$xorg_testset_save_CFLAGS" 6658fi 6659 6660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6663 fi 6664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6666printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6667if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6668then : 6669 printf %s "(cached) " >&6 6670else $as_nop 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673int i; 6674_ACEOF 6675if ac_fn_c_try_compile "$LINENO" 6676then : 6677 xorg_cv_cc_flag_unused_command_line_argument=yes 6678else $as_nop 6679 xorg_cv_cc_flag_unused_command_line_argument=no 6680fi 6681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6682fi 6683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6684printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6686 CFLAGS="$xorg_testset_save_CFLAGS" 6687fi 6688 6689found="no" 6690 6691 if test $found = "no" ; then 6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6694 fi 6695 6696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6698 fi 6699 6700 CFLAGS="$CFLAGS -Wshadow" 6701 6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6703printf %s "checking if $CC supports -Wshadow... " >&6; } 6704 cacheid=xorg_cv_cc_flag__Wshadow 6705 if eval test \${$cacheid+y} 6706then : 6707 printf %s "(cached) " >&6 6708else $as_nop 6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6710/* end confdefs.h. */ 6711int i; 6712int 6713main (void) 6714{ 6715 6716 ; 6717 return 0; 6718} 6719_ACEOF 6720if ac_fn_c_try_link "$LINENO" 6721then : 6722 eval $cacheid=yes 6723else $as_nop 6724 eval $cacheid=no 6725fi 6726rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6727 conftest$ac_exeext conftest.$ac_ext 6728fi 6729 6730 6731 CFLAGS="$xorg_testset_save_CFLAGS" 6732 6733 eval supported=\$$cacheid 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6735printf "%s\n" "$supported" >&6; } 6736 if test "$supported" = "yes" ; then 6737 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6738 found="yes" 6739 fi 6740 fi 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756xorg_testset_save_CFLAGS="$CFLAGS" 6757 6758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6761printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6762if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6763then : 6764 printf %s "(cached) " >&6 6765else $as_nop 6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767/* end confdefs.h. */ 6768int i; 6769_ACEOF 6770if ac_fn_c_try_compile "$LINENO" 6771then : 6772 xorg_cv_cc_flag_unknown_warning_option=yes 6773else $as_nop 6774 xorg_cv_cc_flag_unknown_warning_option=no 6775fi 6776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6777fi 6778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6779printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6781 CFLAGS="$xorg_testset_save_CFLAGS" 6782fi 6783 6784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6787 fi 6788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6790printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6791if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6792then : 6793 printf %s "(cached) " >&6 6794else $as_nop 6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796/* end confdefs.h. */ 6797int i; 6798_ACEOF 6799if ac_fn_c_try_compile "$LINENO" 6800then : 6801 xorg_cv_cc_flag_unused_command_line_argument=yes 6802else $as_nop 6803 xorg_cv_cc_flag_unused_command_line_argument=no 6804fi 6805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6806fi 6807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6808printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6810 CFLAGS="$xorg_testset_save_CFLAGS" 6811fi 6812 6813found="no" 6814 6815 if test $found = "no" ; then 6816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6818 fi 6819 6820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6822 fi 6823 6824 CFLAGS="$CFLAGS -Wmissing-noreturn" 6825 6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6827printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6828 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6829 if eval test \${$cacheid+y} 6830then : 6831 printf %s "(cached) " >&6 6832else $as_nop 6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6834/* end confdefs.h. */ 6835int i; 6836int 6837main (void) 6838{ 6839 6840 ; 6841 return 0; 6842} 6843_ACEOF 6844if ac_fn_c_try_link "$LINENO" 6845then : 6846 eval $cacheid=yes 6847else $as_nop 6848 eval $cacheid=no 6849fi 6850rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6851 conftest$ac_exeext conftest.$ac_ext 6852fi 6853 6854 6855 CFLAGS="$xorg_testset_save_CFLAGS" 6856 6857 eval supported=\$$cacheid 6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6859printf "%s\n" "$supported" >&6; } 6860 if test "$supported" = "yes" ; then 6861 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6862 found="yes" 6863 fi 6864 fi 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880xorg_testset_save_CFLAGS="$CFLAGS" 6881 6882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6885printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6886if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6887then : 6888 printf %s "(cached) " >&6 6889else $as_nop 6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6891/* end confdefs.h. */ 6892int i; 6893_ACEOF 6894if ac_fn_c_try_compile "$LINENO" 6895then : 6896 xorg_cv_cc_flag_unknown_warning_option=yes 6897else $as_nop 6898 xorg_cv_cc_flag_unknown_warning_option=no 6899fi 6900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6901fi 6902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906fi 6907 6908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6911 fi 6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6915if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6916then : 6917 printf %s "(cached) " >&6 6918else $as_nop 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921int i; 6922_ACEOF 6923if ac_fn_c_try_compile "$LINENO" 6924then : 6925 xorg_cv_cc_flag_unused_command_line_argument=yes 6926else $as_nop 6927 xorg_cv_cc_flag_unused_command_line_argument=no 6928fi 6929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6930fi 6931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6932printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6934 CFLAGS="$xorg_testset_save_CFLAGS" 6935fi 6936 6937found="no" 6938 6939 if test $found = "no" ; then 6940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6942 fi 6943 6944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6946 fi 6947 6948 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6949 6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6951printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6952 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6953 if eval test \${$cacheid+y} 6954then : 6955 printf %s "(cached) " >&6 6956else $as_nop 6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6958/* end confdefs.h. */ 6959int i; 6960int 6961main (void) 6962{ 6963 6964 ; 6965 return 0; 6966} 6967_ACEOF 6968if ac_fn_c_try_link "$LINENO" 6969then : 6970 eval $cacheid=yes 6971else $as_nop 6972 eval $cacheid=no 6973fi 6974rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6975 conftest$ac_exeext conftest.$ac_ext 6976fi 6977 6978 6979 CFLAGS="$xorg_testset_save_CFLAGS" 6980 6981 eval supported=\$$cacheid 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6983printf "%s\n" "$supported" >&6; } 6984 if test "$supported" = "yes" ; then 6985 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6986 found="yes" 6987 fi 6988 fi 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004xorg_testset_save_CFLAGS="$CFLAGS" 7005 7006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7009printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7010if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7011then : 7012 printf %s "(cached) " >&6 7013else $as_nop 7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015/* end confdefs.h. */ 7016int i; 7017_ACEOF 7018if ac_fn_c_try_compile "$LINENO" 7019then : 7020 xorg_cv_cc_flag_unknown_warning_option=yes 7021else $as_nop 7022 xorg_cv_cc_flag_unknown_warning_option=no 7023fi 7024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7025fi 7026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7027printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7029 CFLAGS="$xorg_testset_save_CFLAGS" 7030fi 7031 7032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7035 fi 7036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7038printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7039if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7040then : 7041 printf %s "(cached) " >&6 7042else $as_nop 7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044/* end confdefs.h. */ 7045int i; 7046_ACEOF 7047if ac_fn_c_try_compile "$LINENO" 7048then : 7049 xorg_cv_cc_flag_unused_command_line_argument=yes 7050else $as_nop 7051 xorg_cv_cc_flag_unused_command_line_argument=no 7052fi 7053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7054fi 7055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7056printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7058 CFLAGS="$xorg_testset_save_CFLAGS" 7059fi 7060 7061found="no" 7062 7063 if test $found = "no" ; then 7064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7066 fi 7067 7068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7070 fi 7071 7072 CFLAGS="$CFLAGS -Wredundant-decls" 7073 7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7075printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7076 cacheid=xorg_cv_cc_flag__Wredundant_decls 7077 if eval test \${$cacheid+y} 7078then : 7079 printf %s "(cached) " >&6 7080else $as_nop 7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7082/* end confdefs.h. */ 7083int i; 7084int 7085main (void) 7086{ 7087 7088 ; 7089 return 0; 7090} 7091_ACEOF 7092if ac_fn_c_try_link "$LINENO" 7093then : 7094 eval $cacheid=yes 7095else $as_nop 7096 eval $cacheid=no 7097fi 7098rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7099 conftest$ac_exeext conftest.$ac_ext 7100fi 7101 7102 7103 CFLAGS="$xorg_testset_save_CFLAGS" 7104 7105 eval supported=\$$cacheid 7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7107printf "%s\n" "$supported" >&6; } 7108 if test "$supported" = "yes" ; then 7109 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7110 found="yes" 7111 fi 7112 fi 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128xorg_testset_save_CFLAGS="$CFLAGS" 7129 7130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7134if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7135then : 7136 printf %s "(cached) " >&6 7137else $as_nop 7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7139/* end confdefs.h. */ 7140int i; 7141_ACEOF 7142if ac_fn_c_try_compile "$LINENO" 7143then : 7144 xorg_cv_cc_flag_unknown_warning_option=yes 7145else $as_nop 7146 xorg_cv_cc_flag_unknown_warning_option=no 7147fi 7148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7149fi 7150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7151printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7153 CFLAGS="$xorg_testset_save_CFLAGS" 7154fi 7155 7156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7159 fi 7160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7162printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7163if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7164then : 7165 printf %s "(cached) " >&6 7166else $as_nop 7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7168/* end confdefs.h. */ 7169int i; 7170_ACEOF 7171if ac_fn_c_try_compile "$LINENO" 7172then : 7173 xorg_cv_cc_flag_unused_command_line_argument=yes 7174else $as_nop 7175 xorg_cv_cc_flag_unused_command_line_argument=no 7176fi 7177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7178fi 7179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7180printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7182 CFLAGS="$xorg_testset_save_CFLAGS" 7183fi 7184 7185found="no" 7186 7187 if test $found = "no" ; then 7188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7190 fi 7191 7192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7194 fi 7195 7196 CFLAGS="$CFLAGS -Wlogical-op" 7197 7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7199printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7200 cacheid=xorg_cv_cc_flag__Wlogical_op 7201 if eval test \${$cacheid+y} 7202then : 7203 printf %s "(cached) " >&6 7204else $as_nop 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207int i; 7208int 7209main (void) 7210{ 7211 7212 ; 7213 return 0; 7214} 7215_ACEOF 7216if ac_fn_c_try_link "$LINENO" 7217then : 7218 eval $cacheid=yes 7219else $as_nop 7220 eval $cacheid=no 7221fi 7222rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7223 conftest$ac_exeext conftest.$ac_ext 7224fi 7225 7226 7227 CFLAGS="$xorg_testset_save_CFLAGS" 7228 7229 eval supported=\$$cacheid 7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7231printf "%s\n" "$supported" >&6; } 7232 if test "$supported" = "yes" ; then 7233 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7234 found="yes" 7235 fi 7236 fi 7237 7238 7239 7240# These are currently disabled because they are noisy. They will be enabled 7241# in the future once the codebase is sufficiently modernized to silence 7242# them. For now, I don't want them to drown out the other warnings. 7243# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7244# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7245# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7246 7247# Turn some warnings into errors, so we don't accidently get successful builds 7248# when there are problems that should be fixed. 7249 7250if test "x$SELECTIVE_WERROR" = "xyes" ; then 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264xorg_testset_save_CFLAGS="$CFLAGS" 7265 7266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7269printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7270if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7271then : 7272 printf %s "(cached) " >&6 7273else $as_nop 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276int i; 7277_ACEOF 7278if ac_fn_c_try_compile "$LINENO" 7279then : 7280 xorg_cv_cc_flag_unknown_warning_option=yes 7281else $as_nop 7282 xorg_cv_cc_flag_unknown_warning_option=no 7283fi 7284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7285fi 7286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7289 CFLAGS="$xorg_testset_save_CFLAGS" 7290fi 7291 7292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7295 fi 7296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7299if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7300then : 7301 printf %s "(cached) " >&6 7302else $as_nop 7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7304/* end confdefs.h. */ 7305int i; 7306_ACEOF 7307if ac_fn_c_try_compile "$LINENO" 7308then : 7309 xorg_cv_cc_flag_unused_command_line_argument=yes 7310else $as_nop 7311 xorg_cv_cc_flag_unused_command_line_argument=no 7312fi 7313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7314fi 7315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7316printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7318 CFLAGS="$xorg_testset_save_CFLAGS" 7319fi 7320 7321found="no" 7322 7323 if test $found = "no" ; then 7324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7326 fi 7327 7328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7330 fi 7331 7332 CFLAGS="$CFLAGS -Werror=implicit" 7333 7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7335printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7336 cacheid=xorg_cv_cc_flag__Werror_implicit 7337 if eval test \${$cacheid+y} 7338then : 7339 printf %s "(cached) " >&6 7340else $as_nop 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342/* end confdefs.h. */ 7343int i; 7344int 7345main (void) 7346{ 7347 7348 ; 7349 return 0; 7350} 7351_ACEOF 7352if ac_fn_c_try_link "$LINENO" 7353then : 7354 eval $cacheid=yes 7355else $as_nop 7356 eval $cacheid=no 7357fi 7358rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7359 conftest$ac_exeext conftest.$ac_ext 7360fi 7361 7362 7363 CFLAGS="$xorg_testset_save_CFLAGS" 7364 7365 eval supported=\$$cacheid 7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7367printf "%s\n" "$supported" >&6; } 7368 if test "$supported" = "yes" ; then 7369 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7370 found="yes" 7371 fi 7372 fi 7373 7374 if test $found = "no" ; then 7375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7377 fi 7378 7379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7381 fi 7382 7383 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7384 7385 { 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 7386printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7387 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7388 if eval test \${$cacheid+y} 7389then : 7390 printf %s "(cached) " >&6 7391else $as_nop 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393/* end confdefs.h. */ 7394int i; 7395int 7396main (void) 7397{ 7398 7399 ; 7400 return 0; 7401} 7402_ACEOF 7403if ac_fn_c_try_link "$LINENO" 7404then : 7405 eval $cacheid=yes 7406else $as_nop 7407 eval $cacheid=no 7408fi 7409rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7410 conftest$ac_exeext conftest.$ac_ext 7411fi 7412 7413 7414 CFLAGS="$xorg_testset_save_CFLAGS" 7415 7416 eval supported=\$$cacheid 7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7418printf "%s\n" "$supported" >&6; } 7419 if test "$supported" = "yes" ; then 7420 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7421 found="yes" 7422 fi 7423 fi 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439xorg_testset_save_CFLAGS="$CFLAGS" 7440 7441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7445if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7446then : 7447 printf %s "(cached) " >&6 7448else $as_nop 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451int i; 7452_ACEOF 7453if ac_fn_c_try_compile "$LINENO" 7454then : 7455 xorg_cv_cc_flag_unknown_warning_option=yes 7456else $as_nop 7457 xorg_cv_cc_flag_unknown_warning_option=no 7458fi 7459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7460fi 7461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465fi 7466 7467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 fi 7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7474if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7475then : 7476 printf %s "(cached) " >&6 7477else $as_nop 7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7479/* end confdefs.h. */ 7480int i; 7481_ACEOF 7482if ac_fn_c_try_compile "$LINENO" 7483then : 7484 xorg_cv_cc_flag_unused_command_line_argument=yes 7485else $as_nop 7486 xorg_cv_cc_flag_unused_command_line_argument=no 7487fi 7488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7489fi 7490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7493 CFLAGS="$xorg_testset_save_CFLAGS" 7494fi 7495 7496found="no" 7497 7498 if test $found = "no" ; then 7499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7501 fi 7502 7503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7505 fi 7506 7507 CFLAGS="$CFLAGS -Werror=nonnull" 7508 7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7510printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7511 cacheid=xorg_cv_cc_flag__Werror_nonnull 7512 if eval test \${$cacheid+y} 7513then : 7514 printf %s "(cached) " >&6 7515else $as_nop 7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7517/* end confdefs.h. */ 7518int i; 7519int 7520main (void) 7521{ 7522 7523 ; 7524 return 0; 7525} 7526_ACEOF 7527if ac_fn_c_try_link "$LINENO" 7528then : 7529 eval $cacheid=yes 7530else $as_nop 7531 eval $cacheid=no 7532fi 7533rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7534 conftest$ac_exeext conftest.$ac_ext 7535fi 7536 7537 7538 CFLAGS="$xorg_testset_save_CFLAGS" 7539 7540 eval supported=\$$cacheid 7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7542printf "%s\n" "$supported" >&6; } 7543 if test "$supported" = "yes" ; then 7544 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7545 found="yes" 7546 fi 7547 fi 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563xorg_testset_save_CFLAGS="$CFLAGS" 7564 7565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7569if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7570then : 7571 printf %s "(cached) " >&6 7572else $as_nop 7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7574/* end confdefs.h. */ 7575int i; 7576_ACEOF 7577if ac_fn_c_try_compile "$LINENO" 7578then : 7579 xorg_cv_cc_flag_unknown_warning_option=yes 7580else $as_nop 7581 xorg_cv_cc_flag_unknown_warning_option=no 7582fi 7583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7584fi 7585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7588 CFLAGS="$xorg_testset_save_CFLAGS" 7589fi 7590 7591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7594 fi 7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7598if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7599then : 7600 printf %s "(cached) " >&6 7601else $as_nop 7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7603/* end confdefs.h. */ 7604int i; 7605_ACEOF 7606if ac_fn_c_try_compile "$LINENO" 7607then : 7608 xorg_cv_cc_flag_unused_command_line_argument=yes 7609else $as_nop 7610 xorg_cv_cc_flag_unused_command_line_argument=no 7611fi 7612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7613fi 7614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7615printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7617 CFLAGS="$xorg_testset_save_CFLAGS" 7618fi 7619 7620found="no" 7621 7622 if test $found = "no" ; then 7623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7625 fi 7626 7627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7629 fi 7630 7631 CFLAGS="$CFLAGS -Werror=init-self" 7632 7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7634printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7635 cacheid=xorg_cv_cc_flag__Werror_init_self 7636 if eval test \${$cacheid+y} 7637then : 7638 printf %s "(cached) " >&6 7639else $as_nop 7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7641/* end confdefs.h. */ 7642int i; 7643int 7644main (void) 7645{ 7646 7647 ; 7648 return 0; 7649} 7650_ACEOF 7651if ac_fn_c_try_link "$LINENO" 7652then : 7653 eval $cacheid=yes 7654else $as_nop 7655 eval $cacheid=no 7656fi 7657rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7658 conftest$ac_exeext conftest.$ac_ext 7659fi 7660 7661 7662 CFLAGS="$xorg_testset_save_CFLAGS" 7663 7664 eval supported=\$$cacheid 7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7666printf "%s\n" "$supported" >&6; } 7667 if test "$supported" = "yes" ; then 7668 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7669 found="yes" 7670 fi 7671 fi 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687xorg_testset_save_CFLAGS="$CFLAGS" 7688 7689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7693if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7694then : 7695 printf %s "(cached) " >&6 7696else $as_nop 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698/* end confdefs.h. */ 7699int i; 7700_ACEOF 7701if ac_fn_c_try_compile "$LINENO" 7702then : 7703 xorg_cv_cc_flag_unknown_warning_option=yes 7704else $as_nop 7705 xorg_cv_cc_flag_unknown_warning_option=no 7706fi 7707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7708fi 7709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7712 CFLAGS="$xorg_testset_save_CFLAGS" 7713fi 7714 7715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7718 fi 7719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7722if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7723then : 7724 printf %s "(cached) " >&6 7725else $as_nop 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728int i; 7729_ACEOF 7730if ac_fn_c_try_compile "$LINENO" 7731then : 7732 xorg_cv_cc_flag_unused_command_line_argument=yes 7733else $as_nop 7734 xorg_cv_cc_flag_unused_command_line_argument=no 7735fi 7736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7737fi 7738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7741 CFLAGS="$xorg_testset_save_CFLAGS" 7742fi 7743 7744found="no" 7745 7746 if test $found = "no" ; then 7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7749 fi 7750 7751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7753 fi 7754 7755 CFLAGS="$CFLAGS -Werror=main" 7756 7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7758printf %s "checking if $CC supports -Werror=main... " >&6; } 7759 cacheid=xorg_cv_cc_flag__Werror_main 7760 if eval test \${$cacheid+y} 7761then : 7762 printf %s "(cached) " >&6 7763else $as_nop 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765/* end confdefs.h. */ 7766int i; 7767int 7768main (void) 7769{ 7770 7771 ; 7772 return 0; 7773} 7774_ACEOF 7775if ac_fn_c_try_link "$LINENO" 7776then : 7777 eval $cacheid=yes 7778else $as_nop 7779 eval $cacheid=no 7780fi 7781rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7782 conftest$ac_exeext conftest.$ac_ext 7783fi 7784 7785 7786 CFLAGS="$xorg_testset_save_CFLAGS" 7787 7788 eval supported=\$$cacheid 7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7790printf "%s\n" "$supported" >&6; } 7791 if test "$supported" = "yes" ; then 7792 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7793 found="yes" 7794 fi 7795 fi 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811xorg_testset_save_CFLAGS="$CFLAGS" 7812 7813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7817if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7818then : 7819 printf %s "(cached) " >&6 7820else $as_nop 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822/* end confdefs.h. */ 7823int i; 7824_ACEOF 7825if ac_fn_c_try_compile "$LINENO" 7826then : 7827 xorg_cv_cc_flag_unknown_warning_option=yes 7828else $as_nop 7829 xorg_cv_cc_flag_unknown_warning_option=no 7830fi 7831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7832fi 7833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7836 CFLAGS="$xorg_testset_save_CFLAGS" 7837fi 7838 7839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7842 fi 7843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7846if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7847then : 7848 printf %s "(cached) " >&6 7849else $as_nop 7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7851/* end confdefs.h. */ 7852int i; 7853_ACEOF 7854if ac_fn_c_try_compile "$LINENO" 7855then : 7856 xorg_cv_cc_flag_unused_command_line_argument=yes 7857else $as_nop 7858 xorg_cv_cc_flag_unused_command_line_argument=no 7859fi 7860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7861fi 7862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7865 CFLAGS="$xorg_testset_save_CFLAGS" 7866fi 7867 7868found="no" 7869 7870 if test $found = "no" ; then 7871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7873 fi 7874 7875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7877 fi 7878 7879 CFLAGS="$CFLAGS -Werror=missing-braces" 7880 7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7882printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7883 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7884 if eval test \${$cacheid+y} 7885then : 7886 printf %s "(cached) " >&6 7887else $as_nop 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891int 7892main (void) 7893{ 7894 7895 ; 7896 return 0; 7897} 7898_ACEOF 7899if ac_fn_c_try_link "$LINENO" 7900then : 7901 eval $cacheid=yes 7902else $as_nop 7903 eval $cacheid=no 7904fi 7905rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7906 conftest$ac_exeext conftest.$ac_ext 7907fi 7908 7909 7910 CFLAGS="$xorg_testset_save_CFLAGS" 7911 7912 eval supported=\$$cacheid 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7914printf "%s\n" "$supported" >&6; } 7915 if test "$supported" = "yes" ; then 7916 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7917 found="yes" 7918 fi 7919 fi 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935xorg_testset_save_CFLAGS="$CFLAGS" 7936 7937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7941if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7942then : 7943 printf %s "(cached) " >&6 7944else $as_nop 7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7946/* end confdefs.h. */ 7947int i; 7948_ACEOF 7949if ac_fn_c_try_compile "$LINENO" 7950then : 7951 xorg_cv_cc_flag_unknown_warning_option=yes 7952else $as_nop 7953 xorg_cv_cc_flag_unknown_warning_option=no 7954fi 7955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7956fi 7957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7958printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7960 CFLAGS="$xorg_testset_save_CFLAGS" 7961fi 7962 7963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7966 fi 7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7969printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7970if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7971then : 7972 printf %s "(cached) " >&6 7973else $as_nop 7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7975/* end confdefs.h. */ 7976int i; 7977_ACEOF 7978if ac_fn_c_try_compile "$LINENO" 7979then : 7980 xorg_cv_cc_flag_unused_command_line_argument=yes 7981else $as_nop 7982 xorg_cv_cc_flag_unused_command_line_argument=no 7983fi 7984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7985fi 7986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7987printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7989 CFLAGS="$xorg_testset_save_CFLAGS" 7990fi 7991 7992found="no" 7993 7994 if test $found = "no" ; then 7995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7997 fi 7998 7999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8001 fi 8002 8003 CFLAGS="$CFLAGS -Werror=sequence-point" 8004 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8006printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8007 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8008 if eval test \${$cacheid+y} 8009then : 8010 printf %s "(cached) " >&6 8011else $as_nop 8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8013/* end confdefs.h. */ 8014int i; 8015int 8016main (void) 8017{ 8018 8019 ; 8020 return 0; 8021} 8022_ACEOF 8023if ac_fn_c_try_link "$LINENO" 8024then : 8025 eval $cacheid=yes 8026else $as_nop 8027 eval $cacheid=no 8028fi 8029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8030 conftest$ac_exeext conftest.$ac_ext 8031fi 8032 8033 8034 CFLAGS="$xorg_testset_save_CFLAGS" 8035 8036 eval supported=\$$cacheid 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8038printf "%s\n" "$supported" >&6; } 8039 if test "$supported" = "yes" ; then 8040 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8041 found="yes" 8042 fi 8043 fi 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059xorg_testset_save_CFLAGS="$CFLAGS" 8060 8061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8065if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8066then : 8067 printf %s "(cached) " >&6 8068else $as_nop 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072_ACEOF 8073if ac_fn_c_try_compile "$LINENO" 8074then : 8075 xorg_cv_cc_flag_unknown_warning_option=yes 8076else $as_nop 8077 xorg_cv_cc_flag_unknown_warning_option=no 8078fi 8079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8080fi 8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085fi 8086 8087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 fi 8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8094if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8095then : 8096 printf %s "(cached) " >&6 8097else $as_nop 8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8099/* end confdefs.h. */ 8100int i; 8101_ACEOF 8102if ac_fn_c_try_compile "$LINENO" 8103then : 8104 xorg_cv_cc_flag_unused_command_line_argument=yes 8105else $as_nop 8106 xorg_cv_cc_flag_unused_command_line_argument=no 8107fi 8108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8109fi 8110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114fi 8115 8116found="no" 8117 8118 if test $found = "no" ; then 8119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8121 fi 8122 8123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8125 fi 8126 8127 CFLAGS="$CFLAGS -Werror=return-type" 8128 8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8130printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8131 cacheid=xorg_cv_cc_flag__Werror_return_type 8132 if eval test \${$cacheid+y} 8133then : 8134 printf %s "(cached) " >&6 8135else $as_nop 8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8137/* end confdefs.h. */ 8138int i; 8139int 8140main (void) 8141{ 8142 8143 ; 8144 return 0; 8145} 8146_ACEOF 8147if ac_fn_c_try_link "$LINENO" 8148then : 8149 eval $cacheid=yes 8150else $as_nop 8151 eval $cacheid=no 8152fi 8153rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8154 conftest$ac_exeext conftest.$ac_ext 8155fi 8156 8157 8158 CFLAGS="$xorg_testset_save_CFLAGS" 8159 8160 eval supported=\$$cacheid 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8162printf "%s\n" "$supported" >&6; } 8163 if test "$supported" = "yes" ; then 8164 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8165 found="yes" 8166 fi 8167 fi 8168 8169 if test $found = "no" ; then 8170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8172 fi 8173 8174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8176 fi 8177 8178 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8179 8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8181printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8182 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8183 if eval test \${$cacheid+y} 8184then : 8185 printf %s "(cached) " >&6 8186else $as_nop 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189int i; 8190int 8191main (void) 8192{ 8193 8194 ; 8195 return 0; 8196} 8197_ACEOF 8198if ac_fn_c_try_link "$LINENO" 8199then : 8200 eval $cacheid=yes 8201else $as_nop 8202 eval $cacheid=no 8203fi 8204rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8205 conftest$ac_exeext conftest.$ac_ext 8206fi 8207 8208 8209 CFLAGS="$xorg_testset_save_CFLAGS" 8210 8211 eval supported=\$$cacheid 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8213printf "%s\n" "$supported" >&6; } 8214 if test "$supported" = "yes" ; then 8215 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8216 found="yes" 8217 fi 8218 fi 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234xorg_testset_save_CFLAGS="$CFLAGS" 8235 8236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8239printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8240if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8241then : 8242 printf %s "(cached) " >&6 8243else $as_nop 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246int i; 8247_ACEOF 8248if ac_fn_c_try_compile "$LINENO" 8249then : 8250 xorg_cv_cc_flag_unknown_warning_option=yes 8251else $as_nop 8252 xorg_cv_cc_flag_unknown_warning_option=no 8253fi 8254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8255fi 8256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8257printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8259 CFLAGS="$xorg_testset_save_CFLAGS" 8260fi 8261 8262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8265 fi 8266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8268printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8269if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8270then : 8271 printf %s "(cached) " >&6 8272else $as_nop 8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8274/* end confdefs.h. */ 8275int i; 8276_ACEOF 8277if ac_fn_c_try_compile "$LINENO" 8278then : 8279 xorg_cv_cc_flag_unused_command_line_argument=yes 8280else $as_nop 8281 xorg_cv_cc_flag_unused_command_line_argument=no 8282fi 8283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8284fi 8285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8286printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8288 CFLAGS="$xorg_testset_save_CFLAGS" 8289fi 8290 8291found="no" 8292 8293 if test $found = "no" ; then 8294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8296 fi 8297 8298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8300 fi 8301 8302 CFLAGS="$CFLAGS -Werror=trigraphs" 8303 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8305printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8306 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8307 if eval test \${$cacheid+y} 8308then : 8309 printf %s "(cached) " >&6 8310else $as_nop 8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8312/* end confdefs.h. */ 8313int i; 8314int 8315main (void) 8316{ 8317 8318 ; 8319 return 0; 8320} 8321_ACEOF 8322if ac_fn_c_try_link "$LINENO" 8323then : 8324 eval $cacheid=yes 8325else $as_nop 8326 eval $cacheid=no 8327fi 8328rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8329 conftest$ac_exeext conftest.$ac_ext 8330fi 8331 8332 8333 CFLAGS="$xorg_testset_save_CFLAGS" 8334 8335 eval supported=\$$cacheid 8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8337printf "%s\n" "$supported" >&6; } 8338 if test "$supported" = "yes" ; then 8339 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8340 found="yes" 8341 fi 8342 fi 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358xorg_testset_save_CFLAGS="$CFLAGS" 8359 8360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8364if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8365then : 8366 printf %s "(cached) " >&6 8367else $as_nop 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370int i; 8371_ACEOF 8372if ac_fn_c_try_compile "$LINENO" 8373then : 8374 xorg_cv_cc_flag_unknown_warning_option=yes 8375else $as_nop 8376 xorg_cv_cc_flag_unknown_warning_option=no 8377fi 8378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8379fi 8380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8381printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8383 CFLAGS="$xorg_testset_save_CFLAGS" 8384fi 8385 8386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8389 fi 8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8392printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8393if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8394then : 8395 printf %s "(cached) " >&6 8396else $as_nop 8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8398/* end confdefs.h. */ 8399int i; 8400_ACEOF 8401if ac_fn_c_try_compile "$LINENO" 8402then : 8403 xorg_cv_cc_flag_unused_command_line_argument=yes 8404else $as_nop 8405 xorg_cv_cc_flag_unused_command_line_argument=no 8406fi 8407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8408fi 8409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8412 CFLAGS="$xorg_testset_save_CFLAGS" 8413fi 8414 8415found="no" 8416 8417 if test $found = "no" ; then 8418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8420 fi 8421 8422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8424 fi 8425 8426 CFLAGS="$CFLAGS -Werror=array-bounds" 8427 8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8429printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8430 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8431 if eval test \${$cacheid+y} 8432then : 8433 printf %s "(cached) " >&6 8434else $as_nop 8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8436/* end confdefs.h. */ 8437int i; 8438int 8439main (void) 8440{ 8441 8442 ; 8443 return 0; 8444} 8445_ACEOF 8446if ac_fn_c_try_link "$LINENO" 8447then : 8448 eval $cacheid=yes 8449else $as_nop 8450 eval $cacheid=no 8451fi 8452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8453 conftest$ac_exeext conftest.$ac_ext 8454fi 8455 8456 8457 CFLAGS="$xorg_testset_save_CFLAGS" 8458 8459 eval supported=\$$cacheid 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8461printf "%s\n" "$supported" >&6; } 8462 if test "$supported" = "yes" ; then 8463 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8464 found="yes" 8465 fi 8466 fi 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482xorg_testset_save_CFLAGS="$CFLAGS" 8483 8484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8488if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8489then : 8490 printf %s "(cached) " >&6 8491else $as_nop 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495_ACEOF 8496if ac_fn_c_try_compile "$LINENO" 8497then : 8498 xorg_cv_cc_flag_unknown_warning_option=yes 8499else $as_nop 8500 xorg_cv_cc_flag_unknown_warning_option=no 8501fi 8502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8503fi 8504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8505printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8507 CFLAGS="$xorg_testset_save_CFLAGS" 8508fi 8509 8510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8513 fi 8514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8516printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8517if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8518then : 8519 printf %s "(cached) " >&6 8520else $as_nop 8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8522/* end confdefs.h. */ 8523int i; 8524_ACEOF 8525if ac_fn_c_try_compile "$LINENO" 8526then : 8527 xorg_cv_cc_flag_unused_command_line_argument=yes 8528else $as_nop 8529 xorg_cv_cc_flag_unused_command_line_argument=no 8530fi 8531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8532fi 8533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8534printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8536 CFLAGS="$xorg_testset_save_CFLAGS" 8537fi 8538 8539found="no" 8540 8541 if test $found = "no" ; then 8542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8544 fi 8545 8546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8548 fi 8549 8550 CFLAGS="$CFLAGS -Werror=write-strings" 8551 8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8553printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8554 cacheid=xorg_cv_cc_flag__Werror_write_strings 8555 if eval test \${$cacheid+y} 8556then : 8557 printf %s "(cached) " >&6 8558else $as_nop 8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8560/* end confdefs.h. */ 8561int i; 8562int 8563main (void) 8564{ 8565 8566 ; 8567 return 0; 8568} 8569_ACEOF 8570if ac_fn_c_try_link "$LINENO" 8571then : 8572 eval $cacheid=yes 8573else $as_nop 8574 eval $cacheid=no 8575fi 8576rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8577 conftest$ac_exeext conftest.$ac_ext 8578fi 8579 8580 8581 CFLAGS="$xorg_testset_save_CFLAGS" 8582 8583 eval supported=\$$cacheid 8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8585printf "%s\n" "$supported" >&6; } 8586 if test "$supported" = "yes" ; then 8587 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8588 found="yes" 8589 fi 8590 fi 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606xorg_testset_save_CFLAGS="$CFLAGS" 8607 8608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8611printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8612if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8613then : 8614 printf %s "(cached) " >&6 8615else $as_nop 8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8617/* end confdefs.h. */ 8618int i; 8619_ACEOF 8620if ac_fn_c_try_compile "$LINENO" 8621then : 8622 xorg_cv_cc_flag_unknown_warning_option=yes 8623else $as_nop 8624 xorg_cv_cc_flag_unknown_warning_option=no 8625fi 8626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8627fi 8628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8629printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8631 CFLAGS="$xorg_testset_save_CFLAGS" 8632fi 8633 8634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8637 fi 8638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8640printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8641if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8642then : 8643 printf %s "(cached) " >&6 8644else $as_nop 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646/* end confdefs.h. */ 8647int i; 8648_ACEOF 8649if ac_fn_c_try_compile "$LINENO" 8650then : 8651 xorg_cv_cc_flag_unused_command_line_argument=yes 8652else $as_nop 8653 xorg_cv_cc_flag_unused_command_line_argument=no 8654fi 8655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8656fi 8657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8658printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8660 CFLAGS="$xorg_testset_save_CFLAGS" 8661fi 8662 8663found="no" 8664 8665 if test $found = "no" ; then 8666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8668 fi 8669 8670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8672 fi 8673 8674 CFLAGS="$CFLAGS -Werror=address" 8675 8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8677printf %s "checking if $CC supports -Werror=address... " >&6; } 8678 cacheid=xorg_cv_cc_flag__Werror_address 8679 if eval test \${$cacheid+y} 8680then : 8681 printf %s "(cached) " >&6 8682else $as_nop 8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684/* end confdefs.h. */ 8685int i; 8686int 8687main (void) 8688{ 8689 8690 ; 8691 return 0; 8692} 8693_ACEOF 8694if ac_fn_c_try_link "$LINENO" 8695then : 8696 eval $cacheid=yes 8697else $as_nop 8698 eval $cacheid=no 8699fi 8700rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8701 conftest$ac_exeext conftest.$ac_ext 8702fi 8703 8704 8705 CFLAGS="$xorg_testset_save_CFLAGS" 8706 8707 eval supported=\$$cacheid 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8709printf "%s\n" "$supported" >&6; } 8710 if test "$supported" = "yes" ; then 8711 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8712 found="yes" 8713 fi 8714 fi 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730xorg_testset_save_CFLAGS="$CFLAGS" 8731 8732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8735printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8736if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8737then : 8738 printf %s "(cached) " >&6 8739else $as_nop 8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742int i; 8743_ACEOF 8744if ac_fn_c_try_compile "$LINENO" 8745then : 8746 xorg_cv_cc_flag_unknown_warning_option=yes 8747else $as_nop 8748 xorg_cv_cc_flag_unknown_warning_option=no 8749fi 8750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8751fi 8752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8753printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8755 CFLAGS="$xorg_testset_save_CFLAGS" 8756fi 8757 8758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8761 fi 8762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8764printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8765if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8766then : 8767 printf %s "(cached) " >&6 8768else $as_nop 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770/* end confdefs.h. */ 8771int i; 8772_ACEOF 8773if ac_fn_c_try_compile "$LINENO" 8774then : 8775 xorg_cv_cc_flag_unused_command_line_argument=yes 8776else $as_nop 8777 xorg_cv_cc_flag_unused_command_line_argument=no 8778fi 8779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8780fi 8781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8782printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8784 CFLAGS="$xorg_testset_save_CFLAGS" 8785fi 8786 8787found="no" 8788 8789 if test $found = "no" ; then 8790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8792 fi 8793 8794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8796 fi 8797 8798 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8799 8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8801printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8802 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8803 if eval test \${$cacheid+y} 8804then : 8805 printf %s "(cached) " >&6 8806else $as_nop 8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8808/* end confdefs.h. */ 8809int i; 8810int 8811main (void) 8812{ 8813 8814 ; 8815 return 0; 8816} 8817_ACEOF 8818if ac_fn_c_try_link "$LINENO" 8819then : 8820 eval $cacheid=yes 8821else $as_nop 8822 eval $cacheid=no 8823fi 8824rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8825 conftest$ac_exeext conftest.$ac_ext 8826fi 8827 8828 8829 CFLAGS="$xorg_testset_save_CFLAGS" 8830 8831 eval supported=\$$cacheid 8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8833printf "%s\n" "$supported" >&6; } 8834 if test "$supported" = "yes" ; then 8835 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8836 found="yes" 8837 fi 8838 fi 8839 8840 if test $found = "no" ; then 8841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8843 fi 8844 8845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8847 fi 8848 8849 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8850 8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8852printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8853 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8854 if eval test \${$cacheid+y} 8855then : 8856 printf %s "(cached) " >&6 8857else $as_nop 8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8859/* end confdefs.h. */ 8860int i; 8861int 8862main (void) 8863{ 8864 8865 ; 8866 return 0; 8867} 8868_ACEOF 8869if ac_fn_c_try_link "$LINENO" 8870then : 8871 eval $cacheid=yes 8872else $as_nop 8873 eval $cacheid=no 8874fi 8875rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8876 conftest$ac_exeext conftest.$ac_ext 8877fi 8878 8879 8880 CFLAGS="$xorg_testset_save_CFLAGS" 8881 8882 eval supported=\$$cacheid 8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8884printf "%s\n" "$supported" >&6; } 8885 if test "$supported" = "yes" ; then 8886 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8887 found="yes" 8888 fi 8889 fi 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905xorg_testset_save_CFLAGS="$CFLAGS" 8906 8907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8910printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8911if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8912then : 8913 printf %s "(cached) " >&6 8914else $as_nop 8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8916/* end confdefs.h. */ 8917int i; 8918_ACEOF 8919if ac_fn_c_try_compile "$LINENO" 8920then : 8921 xorg_cv_cc_flag_unknown_warning_option=yes 8922else $as_nop 8923 xorg_cv_cc_flag_unknown_warning_option=no 8924fi 8925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8926fi 8927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8928printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8930 CFLAGS="$xorg_testset_save_CFLAGS" 8931fi 8932 8933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8936 fi 8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8939printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8940if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8941then : 8942 printf %s "(cached) " >&6 8943else $as_nop 8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8945/* end confdefs.h. */ 8946int i; 8947_ACEOF 8948if ac_fn_c_try_compile "$LINENO" 8949then : 8950 xorg_cv_cc_flag_unused_command_line_argument=yes 8951else $as_nop 8952 xorg_cv_cc_flag_unused_command_line_argument=no 8953fi 8954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8955fi 8956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8959 CFLAGS="$xorg_testset_save_CFLAGS" 8960fi 8961 8962found="no" 8963 8964 if test $found = "no" ; then 8965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8967 fi 8968 8969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8971 fi 8972 8973 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8974 8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8976printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8977 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8978 if eval test \${$cacheid+y} 8979then : 8980 printf %s "(cached) " >&6 8981else $as_nop 8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8983/* end confdefs.h. */ 8984int i; 8985int 8986main (void) 8987{ 8988 8989 ; 8990 return 0; 8991} 8992_ACEOF 8993if ac_fn_c_try_link "$LINENO" 8994then : 8995 eval $cacheid=yes 8996else $as_nop 8997 eval $cacheid=no 8998fi 8999rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9000 conftest$ac_exeext conftest.$ac_ext 9001fi 9002 9003 9004 CFLAGS="$xorg_testset_save_CFLAGS" 9005 9006 eval supported=\$$cacheid 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9008printf "%s\n" "$supported" >&6; } 9009 if test "$supported" = "yes" ; then 9010 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9011 found="yes" 9012 fi 9013 fi 9014 9015 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9016else 9017{ 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 9018printf "%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;} 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032xorg_testset_save_CFLAGS="$CFLAGS" 9033 9034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9038if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9039then : 9040 printf %s "(cached) " >&6 9041else $as_nop 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044int i; 9045_ACEOF 9046if ac_fn_c_try_compile "$LINENO" 9047then : 9048 xorg_cv_cc_flag_unknown_warning_option=yes 9049else $as_nop 9050 xorg_cv_cc_flag_unknown_warning_option=no 9051fi 9052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9053fi 9054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9057 CFLAGS="$xorg_testset_save_CFLAGS" 9058fi 9059 9060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9063 fi 9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9067if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9068then : 9069 printf %s "(cached) " >&6 9070else $as_nop 9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9072/* end confdefs.h. */ 9073int i; 9074_ACEOF 9075if ac_fn_c_try_compile "$LINENO" 9076then : 9077 xorg_cv_cc_flag_unused_command_line_argument=yes 9078else $as_nop 9079 xorg_cv_cc_flag_unused_command_line_argument=no 9080fi 9081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9082fi 9083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9084printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9086 CFLAGS="$xorg_testset_save_CFLAGS" 9087fi 9088 9089found="no" 9090 9091 if test $found = "no" ; then 9092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9094 fi 9095 9096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9098 fi 9099 9100 CFLAGS="$CFLAGS -Wimplicit" 9101 9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9103printf %s "checking if $CC supports -Wimplicit... " >&6; } 9104 cacheid=xorg_cv_cc_flag__Wimplicit 9105 if eval test \${$cacheid+y} 9106then : 9107 printf %s "(cached) " >&6 9108else $as_nop 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9110/* end confdefs.h. */ 9111int i; 9112int 9113main (void) 9114{ 9115 9116 ; 9117 return 0; 9118} 9119_ACEOF 9120if ac_fn_c_try_link "$LINENO" 9121then : 9122 eval $cacheid=yes 9123else $as_nop 9124 eval $cacheid=no 9125fi 9126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9127 conftest$ac_exeext conftest.$ac_ext 9128fi 9129 9130 9131 CFLAGS="$xorg_testset_save_CFLAGS" 9132 9133 eval supported=\$$cacheid 9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9135printf "%s\n" "$supported" >&6; } 9136 if test "$supported" = "yes" ; then 9137 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9138 found="yes" 9139 fi 9140 fi 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156xorg_testset_save_CFLAGS="$CFLAGS" 9157 9158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9162if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9163then : 9164 printf %s "(cached) " >&6 9165else $as_nop 9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9167/* end confdefs.h. */ 9168int i; 9169_ACEOF 9170if ac_fn_c_try_compile "$LINENO" 9171then : 9172 xorg_cv_cc_flag_unknown_warning_option=yes 9173else $as_nop 9174 xorg_cv_cc_flag_unknown_warning_option=no 9175fi 9176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9177fi 9178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9179printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9181 CFLAGS="$xorg_testset_save_CFLAGS" 9182fi 9183 9184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9187 fi 9188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9190printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9191if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9192then : 9193 printf %s "(cached) " >&6 9194else $as_nop 9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9196/* end confdefs.h. */ 9197int i; 9198_ACEOF 9199if ac_fn_c_try_compile "$LINENO" 9200then : 9201 xorg_cv_cc_flag_unused_command_line_argument=yes 9202else $as_nop 9203 xorg_cv_cc_flag_unused_command_line_argument=no 9204fi 9205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9206fi 9207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9208printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9210 CFLAGS="$xorg_testset_save_CFLAGS" 9211fi 9212 9213found="no" 9214 9215 if test $found = "no" ; then 9216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9218 fi 9219 9220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9222 fi 9223 9224 CFLAGS="$CFLAGS -Wnonnull" 9225 9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9227printf %s "checking if $CC supports -Wnonnull... " >&6; } 9228 cacheid=xorg_cv_cc_flag__Wnonnull 9229 if eval test \${$cacheid+y} 9230then : 9231 printf %s "(cached) " >&6 9232else $as_nop 9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9234/* end confdefs.h. */ 9235int i; 9236int 9237main (void) 9238{ 9239 9240 ; 9241 return 0; 9242} 9243_ACEOF 9244if ac_fn_c_try_link "$LINENO" 9245then : 9246 eval $cacheid=yes 9247else $as_nop 9248 eval $cacheid=no 9249fi 9250rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9251 conftest$ac_exeext conftest.$ac_ext 9252fi 9253 9254 9255 CFLAGS="$xorg_testset_save_CFLAGS" 9256 9257 eval supported=\$$cacheid 9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9259printf "%s\n" "$supported" >&6; } 9260 if test "$supported" = "yes" ; then 9261 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9262 found="yes" 9263 fi 9264 fi 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280xorg_testset_save_CFLAGS="$CFLAGS" 9281 9282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9286if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9287then : 9288 printf %s "(cached) " >&6 9289else $as_nop 9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9291/* end confdefs.h. */ 9292int i; 9293_ACEOF 9294if ac_fn_c_try_compile "$LINENO" 9295then : 9296 xorg_cv_cc_flag_unknown_warning_option=yes 9297else $as_nop 9298 xorg_cv_cc_flag_unknown_warning_option=no 9299fi 9300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9301fi 9302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9303printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9305 CFLAGS="$xorg_testset_save_CFLAGS" 9306fi 9307 9308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9311 fi 9312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9314printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9315if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9316then : 9317 printf %s "(cached) " >&6 9318else $as_nop 9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9320/* end confdefs.h. */ 9321int i; 9322_ACEOF 9323if ac_fn_c_try_compile "$LINENO" 9324then : 9325 xorg_cv_cc_flag_unused_command_line_argument=yes 9326else $as_nop 9327 xorg_cv_cc_flag_unused_command_line_argument=no 9328fi 9329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9330fi 9331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9332printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9334 CFLAGS="$xorg_testset_save_CFLAGS" 9335fi 9336 9337found="no" 9338 9339 if test $found = "no" ; then 9340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 fi 9343 9344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9346 fi 9347 9348 CFLAGS="$CFLAGS -Winit-self" 9349 9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9351printf %s "checking if $CC supports -Winit-self... " >&6; } 9352 cacheid=xorg_cv_cc_flag__Winit_self 9353 if eval test \${$cacheid+y} 9354then : 9355 printf %s "(cached) " >&6 9356else $as_nop 9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9358/* end confdefs.h. */ 9359int i; 9360int 9361main (void) 9362{ 9363 9364 ; 9365 return 0; 9366} 9367_ACEOF 9368if ac_fn_c_try_link "$LINENO" 9369then : 9370 eval $cacheid=yes 9371else $as_nop 9372 eval $cacheid=no 9373fi 9374rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9375 conftest$ac_exeext conftest.$ac_ext 9376fi 9377 9378 9379 CFLAGS="$xorg_testset_save_CFLAGS" 9380 9381 eval supported=\$$cacheid 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9383printf "%s\n" "$supported" >&6; } 9384 if test "$supported" = "yes" ; then 9385 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9386 found="yes" 9387 fi 9388 fi 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404xorg_testset_save_CFLAGS="$CFLAGS" 9405 9406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9409printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9410if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9411then : 9412 printf %s "(cached) " >&6 9413else $as_nop 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416int i; 9417_ACEOF 9418if ac_fn_c_try_compile "$LINENO" 9419then : 9420 xorg_cv_cc_flag_unknown_warning_option=yes 9421else $as_nop 9422 xorg_cv_cc_flag_unknown_warning_option=no 9423fi 9424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9425fi 9426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9429 CFLAGS="$xorg_testset_save_CFLAGS" 9430fi 9431 9432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9435 fi 9436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9439if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9440then : 9441 printf %s "(cached) " >&6 9442else $as_nop 9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9444/* end confdefs.h. */ 9445int i; 9446_ACEOF 9447if ac_fn_c_try_compile "$LINENO" 9448then : 9449 xorg_cv_cc_flag_unused_command_line_argument=yes 9450else $as_nop 9451 xorg_cv_cc_flag_unused_command_line_argument=no 9452fi 9453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9454fi 9455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9458 CFLAGS="$xorg_testset_save_CFLAGS" 9459fi 9460 9461found="no" 9462 9463 if test $found = "no" ; then 9464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9466 fi 9467 9468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9470 fi 9471 9472 CFLAGS="$CFLAGS -Wmain" 9473 9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9475printf %s "checking if $CC supports -Wmain... " >&6; } 9476 cacheid=xorg_cv_cc_flag__Wmain 9477 if eval test \${$cacheid+y} 9478then : 9479 printf %s "(cached) " >&6 9480else $as_nop 9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9482/* end confdefs.h. */ 9483int i; 9484int 9485main (void) 9486{ 9487 9488 ; 9489 return 0; 9490} 9491_ACEOF 9492if ac_fn_c_try_link "$LINENO" 9493then : 9494 eval $cacheid=yes 9495else $as_nop 9496 eval $cacheid=no 9497fi 9498rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9499 conftest$ac_exeext conftest.$ac_ext 9500fi 9501 9502 9503 CFLAGS="$xorg_testset_save_CFLAGS" 9504 9505 eval supported=\$$cacheid 9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9507printf "%s\n" "$supported" >&6; } 9508 if test "$supported" = "yes" ; then 9509 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9510 found="yes" 9511 fi 9512 fi 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528xorg_testset_save_CFLAGS="$CFLAGS" 9529 9530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9533printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9534if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9535then : 9536 printf %s "(cached) " >&6 9537else $as_nop 9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539/* end confdefs.h. */ 9540int i; 9541_ACEOF 9542if ac_fn_c_try_compile "$LINENO" 9543then : 9544 xorg_cv_cc_flag_unknown_warning_option=yes 9545else $as_nop 9546 xorg_cv_cc_flag_unknown_warning_option=no 9547fi 9548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9549fi 9550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9551printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554fi 9555 9556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9559 fi 9560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9562printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9563if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9564then : 9565 printf %s "(cached) " >&6 9566else $as_nop 9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9568/* end confdefs.h. */ 9569int i; 9570_ACEOF 9571if ac_fn_c_try_compile "$LINENO" 9572then : 9573 xorg_cv_cc_flag_unused_command_line_argument=yes 9574else $as_nop 9575 xorg_cv_cc_flag_unused_command_line_argument=no 9576fi 9577rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9578fi 9579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9580printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9582 CFLAGS="$xorg_testset_save_CFLAGS" 9583fi 9584 9585found="no" 9586 9587 if test $found = "no" ; then 9588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9590 fi 9591 9592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9594 fi 9595 9596 CFLAGS="$CFLAGS -Wmissing-braces" 9597 9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9599printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9600 cacheid=xorg_cv_cc_flag__Wmissing_braces 9601 if eval test \${$cacheid+y} 9602then : 9603 printf %s "(cached) " >&6 9604else $as_nop 9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9606/* end confdefs.h. */ 9607int i; 9608int 9609main (void) 9610{ 9611 9612 ; 9613 return 0; 9614} 9615_ACEOF 9616if ac_fn_c_try_link "$LINENO" 9617then : 9618 eval $cacheid=yes 9619else $as_nop 9620 eval $cacheid=no 9621fi 9622rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9623 conftest$ac_exeext conftest.$ac_ext 9624fi 9625 9626 9627 CFLAGS="$xorg_testset_save_CFLAGS" 9628 9629 eval supported=\$$cacheid 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9631printf "%s\n" "$supported" >&6; } 9632 if test "$supported" = "yes" ; then 9633 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9634 found="yes" 9635 fi 9636 fi 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652xorg_testset_save_CFLAGS="$CFLAGS" 9653 9654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9657printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9658if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9659then : 9660 printf %s "(cached) " >&6 9661else $as_nop 9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663/* end confdefs.h. */ 9664int i; 9665_ACEOF 9666if ac_fn_c_try_compile "$LINENO" 9667then : 9668 xorg_cv_cc_flag_unknown_warning_option=yes 9669else $as_nop 9670 xorg_cv_cc_flag_unknown_warning_option=no 9671fi 9672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9673fi 9674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9675printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9677 CFLAGS="$xorg_testset_save_CFLAGS" 9678fi 9679 9680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9683 fi 9684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9686printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9687if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9688then : 9689 printf %s "(cached) " >&6 9690else $as_nop 9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9692/* end confdefs.h. */ 9693int i; 9694_ACEOF 9695if ac_fn_c_try_compile "$LINENO" 9696then : 9697 xorg_cv_cc_flag_unused_command_line_argument=yes 9698else $as_nop 9699 xorg_cv_cc_flag_unused_command_line_argument=no 9700fi 9701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9702fi 9703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9704printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9706 CFLAGS="$xorg_testset_save_CFLAGS" 9707fi 9708 9709found="no" 9710 9711 if test $found = "no" ; then 9712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9714 fi 9715 9716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9718 fi 9719 9720 CFLAGS="$CFLAGS -Wsequence-point" 9721 9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9723printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9724 cacheid=xorg_cv_cc_flag__Wsequence_point 9725 if eval test \${$cacheid+y} 9726then : 9727 printf %s "(cached) " >&6 9728else $as_nop 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730/* end confdefs.h. */ 9731int i; 9732int 9733main (void) 9734{ 9735 9736 ; 9737 return 0; 9738} 9739_ACEOF 9740if ac_fn_c_try_link "$LINENO" 9741then : 9742 eval $cacheid=yes 9743else $as_nop 9744 eval $cacheid=no 9745fi 9746rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9747 conftest$ac_exeext conftest.$ac_ext 9748fi 9749 9750 9751 CFLAGS="$xorg_testset_save_CFLAGS" 9752 9753 eval supported=\$$cacheid 9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9755printf "%s\n" "$supported" >&6; } 9756 if test "$supported" = "yes" ; then 9757 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9758 found="yes" 9759 fi 9760 fi 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776xorg_testset_save_CFLAGS="$CFLAGS" 9777 9778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9781printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9782if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9783then : 9784 printf %s "(cached) " >&6 9785else $as_nop 9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787/* end confdefs.h. */ 9788int i; 9789_ACEOF 9790if ac_fn_c_try_compile "$LINENO" 9791then : 9792 xorg_cv_cc_flag_unknown_warning_option=yes 9793else $as_nop 9794 xorg_cv_cc_flag_unknown_warning_option=no 9795fi 9796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9797fi 9798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9799printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802fi 9803 9804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9807 fi 9808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9810printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9811if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9812then : 9813 printf %s "(cached) " >&6 9814else $as_nop 9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9816/* end confdefs.h. */ 9817int i; 9818_ACEOF 9819if ac_fn_c_try_compile "$LINENO" 9820then : 9821 xorg_cv_cc_flag_unused_command_line_argument=yes 9822else $as_nop 9823 xorg_cv_cc_flag_unused_command_line_argument=no 9824fi 9825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9826fi 9827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9828printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9830 CFLAGS="$xorg_testset_save_CFLAGS" 9831fi 9832 9833found="no" 9834 9835 if test $found = "no" ; then 9836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9838 fi 9839 9840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9842 fi 9843 9844 CFLAGS="$CFLAGS -Wreturn-type" 9845 9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9847printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9848 cacheid=xorg_cv_cc_flag__Wreturn_type 9849 if eval test \${$cacheid+y} 9850then : 9851 printf %s "(cached) " >&6 9852else $as_nop 9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9854/* end confdefs.h. */ 9855int i; 9856int 9857main (void) 9858{ 9859 9860 ; 9861 return 0; 9862} 9863_ACEOF 9864if ac_fn_c_try_link "$LINENO" 9865then : 9866 eval $cacheid=yes 9867else $as_nop 9868 eval $cacheid=no 9869fi 9870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9871 conftest$ac_exeext conftest.$ac_ext 9872fi 9873 9874 9875 CFLAGS="$xorg_testset_save_CFLAGS" 9876 9877 eval supported=\$$cacheid 9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9879printf "%s\n" "$supported" >&6; } 9880 if test "$supported" = "yes" ; then 9881 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9882 found="yes" 9883 fi 9884 fi 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900xorg_testset_save_CFLAGS="$CFLAGS" 9901 9902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9905printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9906if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9907then : 9908 printf %s "(cached) " >&6 9909else $as_nop 9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911/* end confdefs.h. */ 9912int i; 9913_ACEOF 9914if ac_fn_c_try_compile "$LINENO" 9915then : 9916 xorg_cv_cc_flag_unknown_warning_option=yes 9917else $as_nop 9918 xorg_cv_cc_flag_unknown_warning_option=no 9919fi 9920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9921fi 9922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9923printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926fi 9927 9928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9931 fi 9932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9934printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9935if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9936then : 9937 printf %s "(cached) " >&6 9938else $as_nop 9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9940/* end confdefs.h. */ 9941int i; 9942_ACEOF 9943if ac_fn_c_try_compile "$LINENO" 9944then : 9945 xorg_cv_cc_flag_unused_command_line_argument=yes 9946else $as_nop 9947 xorg_cv_cc_flag_unused_command_line_argument=no 9948fi 9949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9950fi 9951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9952printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9954 CFLAGS="$xorg_testset_save_CFLAGS" 9955fi 9956 9957found="no" 9958 9959 if test $found = "no" ; then 9960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9962 fi 9963 9964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9966 fi 9967 9968 CFLAGS="$CFLAGS -Wtrigraphs" 9969 9970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9971printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9972 cacheid=xorg_cv_cc_flag__Wtrigraphs 9973 if eval test \${$cacheid+y} 9974then : 9975 printf %s "(cached) " >&6 9976else $as_nop 9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9978/* end confdefs.h. */ 9979int i; 9980int 9981main (void) 9982{ 9983 9984 ; 9985 return 0; 9986} 9987_ACEOF 9988if ac_fn_c_try_link "$LINENO" 9989then : 9990 eval $cacheid=yes 9991else $as_nop 9992 eval $cacheid=no 9993fi 9994rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9995 conftest$ac_exeext conftest.$ac_ext 9996fi 9997 9998 9999 CFLAGS="$xorg_testset_save_CFLAGS" 10000 10001 eval supported=\$$cacheid 10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10003printf "%s\n" "$supported" >&6; } 10004 if test "$supported" = "yes" ; then 10005 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10006 found="yes" 10007 fi 10008 fi 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024xorg_testset_save_CFLAGS="$CFLAGS" 10025 10026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10029printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10030if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10031then : 10032 printf %s "(cached) " >&6 10033else $as_nop 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036int i; 10037_ACEOF 10038if ac_fn_c_try_compile "$LINENO" 10039then : 10040 xorg_cv_cc_flag_unknown_warning_option=yes 10041else $as_nop 10042 xorg_cv_cc_flag_unknown_warning_option=no 10043fi 10044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10045fi 10046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10047printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10049 CFLAGS="$xorg_testset_save_CFLAGS" 10050fi 10051 10052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10055 fi 10056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10058printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10059if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10060then : 10061 printf %s "(cached) " >&6 10062else $as_nop 10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10064/* end confdefs.h. */ 10065int i; 10066_ACEOF 10067if ac_fn_c_try_compile "$LINENO" 10068then : 10069 xorg_cv_cc_flag_unused_command_line_argument=yes 10070else $as_nop 10071 xorg_cv_cc_flag_unused_command_line_argument=no 10072fi 10073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10074fi 10075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10076printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10078 CFLAGS="$xorg_testset_save_CFLAGS" 10079fi 10080 10081found="no" 10082 10083 if test $found = "no" ; then 10084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10086 fi 10087 10088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10090 fi 10091 10092 CFLAGS="$CFLAGS -Warray-bounds" 10093 10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10095printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10096 cacheid=xorg_cv_cc_flag__Warray_bounds 10097 if eval test \${$cacheid+y} 10098then : 10099 printf %s "(cached) " >&6 10100else $as_nop 10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10102/* end confdefs.h. */ 10103int i; 10104int 10105main (void) 10106{ 10107 10108 ; 10109 return 0; 10110} 10111_ACEOF 10112if ac_fn_c_try_link "$LINENO" 10113then : 10114 eval $cacheid=yes 10115else $as_nop 10116 eval $cacheid=no 10117fi 10118rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10119 conftest$ac_exeext conftest.$ac_ext 10120fi 10121 10122 10123 CFLAGS="$xorg_testset_save_CFLAGS" 10124 10125 eval supported=\$$cacheid 10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10127printf "%s\n" "$supported" >&6; } 10128 if test "$supported" = "yes" ; then 10129 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10130 found="yes" 10131 fi 10132 fi 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148xorg_testset_save_CFLAGS="$CFLAGS" 10149 10150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10153printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10154if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10155then : 10156 printf %s "(cached) " >&6 10157else $as_nop 10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159/* end confdefs.h. */ 10160int i; 10161_ACEOF 10162if ac_fn_c_try_compile "$LINENO" 10163then : 10164 xorg_cv_cc_flag_unknown_warning_option=yes 10165else $as_nop 10166 xorg_cv_cc_flag_unknown_warning_option=no 10167fi 10168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10169fi 10170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10171printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10173 CFLAGS="$xorg_testset_save_CFLAGS" 10174fi 10175 10176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10179 fi 10180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10182printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10183if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10184then : 10185 printf %s "(cached) " >&6 10186else $as_nop 10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10188/* end confdefs.h. */ 10189int i; 10190_ACEOF 10191if ac_fn_c_try_compile "$LINENO" 10192then : 10193 xorg_cv_cc_flag_unused_command_line_argument=yes 10194else $as_nop 10195 xorg_cv_cc_flag_unused_command_line_argument=no 10196fi 10197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10198fi 10199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10200printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10202 CFLAGS="$xorg_testset_save_CFLAGS" 10203fi 10204 10205found="no" 10206 10207 if test $found = "no" ; then 10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10210 fi 10211 10212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10214 fi 10215 10216 CFLAGS="$CFLAGS -Wwrite-strings" 10217 10218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10219printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10220 cacheid=xorg_cv_cc_flag__Wwrite_strings 10221 if eval test \${$cacheid+y} 10222then : 10223 printf %s "(cached) " >&6 10224else $as_nop 10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227int i; 10228int 10229main (void) 10230{ 10231 10232 ; 10233 return 0; 10234} 10235_ACEOF 10236if ac_fn_c_try_link "$LINENO" 10237then : 10238 eval $cacheid=yes 10239else $as_nop 10240 eval $cacheid=no 10241fi 10242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10243 conftest$ac_exeext conftest.$ac_ext 10244fi 10245 10246 10247 CFLAGS="$xorg_testset_save_CFLAGS" 10248 10249 eval supported=\$$cacheid 10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10251printf "%s\n" "$supported" >&6; } 10252 if test "$supported" = "yes" ; then 10253 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10254 found="yes" 10255 fi 10256 fi 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272xorg_testset_save_CFLAGS="$CFLAGS" 10273 10274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10277printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10278if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10279then : 10280 printf %s "(cached) " >&6 10281else $as_nop 10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10283/* end confdefs.h. */ 10284int i; 10285_ACEOF 10286if ac_fn_c_try_compile "$LINENO" 10287then : 10288 xorg_cv_cc_flag_unknown_warning_option=yes 10289else $as_nop 10290 xorg_cv_cc_flag_unknown_warning_option=no 10291fi 10292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10293fi 10294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10295printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10297 CFLAGS="$xorg_testset_save_CFLAGS" 10298fi 10299 10300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10303 fi 10304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10306printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10307if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10308then : 10309 printf %s "(cached) " >&6 10310else $as_nop 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10312/* end confdefs.h. */ 10313int i; 10314_ACEOF 10315if ac_fn_c_try_compile "$LINENO" 10316then : 10317 xorg_cv_cc_flag_unused_command_line_argument=yes 10318else $as_nop 10319 xorg_cv_cc_flag_unused_command_line_argument=no 10320fi 10321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10322fi 10323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10324printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10326 CFLAGS="$xorg_testset_save_CFLAGS" 10327fi 10328 10329found="no" 10330 10331 if test $found = "no" ; then 10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10334 fi 10335 10336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10338 fi 10339 10340 CFLAGS="$CFLAGS -Waddress" 10341 10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10343printf %s "checking if $CC supports -Waddress... " >&6; } 10344 cacheid=xorg_cv_cc_flag__Waddress 10345 if eval test \${$cacheid+y} 10346then : 10347 printf %s "(cached) " >&6 10348else $as_nop 10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350/* end confdefs.h. */ 10351int i; 10352int 10353main (void) 10354{ 10355 10356 ; 10357 return 0; 10358} 10359_ACEOF 10360if ac_fn_c_try_link "$LINENO" 10361then : 10362 eval $cacheid=yes 10363else $as_nop 10364 eval $cacheid=no 10365fi 10366rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10367 conftest$ac_exeext conftest.$ac_ext 10368fi 10369 10370 10371 CFLAGS="$xorg_testset_save_CFLAGS" 10372 10373 eval supported=\$$cacheid 10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10375printf "%s\n" "$supported" >&6; } 10376 if test "$supported" = "yes" ; then 10377 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10378 found="yes" 10379 fi 10380 fi 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396xorg_testset_save_CFLAGS="$CFLAGS" 10397 10398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10402if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10403then : 10404 printf %s "(cached) " >&6 10405else $as_nop 10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10407/* end confdefs.h. */ 10408int i; 10409_ACEOF 10410if ac_fn_c_try_compile "$LINENO" 10411then : 10412 xorg_cv_cc_flag_unknown_warning_option=yes 10413else $as_nop 10414 xorg_cv_cc_flag_unknown_warning_option=no 10415fi 10416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10417fi 10418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10421 CFLAGS="$xorg_testset_save_CFLAGS" 10422fi 10423 10424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10427 fi 10428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10431if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10432then : 10433 printf %s "(cached) " >&6 10434else $as_nop 10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10436/* end confdefs.h. */ 10437int i; 10438_ACEOF 10439if ac_fn_c_try_compile "$LINENO" 10440then : 10441 xorg_cv_cc_flag_unused_command_line_argument=yes 10442else $as_nop 10443 xorg_cv_cc_flag_unused_command_line_argument=no 10444fi 10445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10446fi 10447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10450 CFLAGS="$xorg_testset_save_CFLAGS" 10451fi 10452 10453found="no" 10454 10455 if test $found = "no" ; then 10456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10458 fi 10459 10460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10462 fi 10463 10464 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10465 10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10467printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10468 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10469 if eval test \${$cacheid+y} 10470then : 10471 printf %s "(cached) " >&6 10472else $as_nop 10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10474/* end confdefs.h. */ 10475int i; 10476int 10477main (void) 10478{ 10479 10480 ; 10481 return 0; 10482} 10483_ACEOF 10484if ac_fn_c_try_link "$LINENO" 10485then : 10486 eval $cacheid=yes 10487else $as_nop 10488 eval $cacheid=no 10489fi 10490rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10491 conftest$ac_exeext conftest.$ac_ext 10492fi 10493 10494 10495 CFLAGS="$xorg_testset_save_CFLAGS" 10496 10497 eval supported=\$$cacheid 10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10499printf "%s\n" "$supported" >&6; } 10500 if test "$supported" = "yes" ; then 10501 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10502 found="yes" 10503 fi 10504 fi 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520xorg_testset_save_CFLAGS="$CFLAGS" 10521 10522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10525printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10526if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10527then : 10528 printf %s "(cached) " >&6 10529else $as_nop 10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10531/* end confdefs.h. */ 10532int i; 10533_ACEOF 10534if ac_fn_c_try_compile "$LINENO" 10535then : 10536 xorg_cv_cc_flag_unknown_warning_option=yes 10537else $as_nop 10538 xorg_cv_cc_flag_unknown_warning_option=no 10539fi 10540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10541fi 10542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10545 CFLAGS="$xorg_testset_save_CFLAGS" 10546fi 10547 10548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10551 fi 10552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10555if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10556then : 10557 printf %s "(cached) " >&6 10558else $as_nop 10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10560/* end confdefs.h. */ 10561int i; 10562_ACEOF 10563if ac_fn_c_try_compile "$LINENO" 10564then : 10565 xorg_cv_cc_flag_unused_command_line_argument=yes 10566else $as_nop 10567 xorg_cv_cc_flag_unused_command_line_argument=no 10568fi 10569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10570fi 10571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10572printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10574 CFLAGS="$xorg_testset_save_CFLAGS" 10575fi 10576 10577found="no" 10578 10579 if test $found = "no" ; then 10580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10582 fi 10583 10584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10586 fi 10587 10588 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10589 10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10591printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10592 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10593 if eval test \${$cacheid+y} 10594then : 10595 printf %s "(cached) " >&6 10596else $as_nop 10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10598/* end confdefs.h. */ 10599int i; 10600int 10601main (void) 10602{ 10603 10604 ; 10605 return 0; 10606} 10607_ACEOF 10608if ac_fn_c_try_link "$LINENO" 10609then : 10610 eval $cacheid=yes 10611else $as_nop 10612 eval $cacheid=no 10613fi 10614rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10615 conftest$ac_exeext conftest.$ac_ext 10616fi 10617 10618 10619 CFLAGS="$xorg_testset_save_CFLAGS" 10620 10621 eval supported=\$$cacheid 10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10623printf "%s\n" "$supported" >&6; } 10624 if test "$supported" = "yes" ; then 10625 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10626 found="yes" 10627 fi 10628 fi 10629 10630 10631fi 10632 10633 10634 10635 10636 10637 10638 10639 CWARNFLAGS="$BASE_CFLAGS" 10640 if test "x$GCC" = xyes ; then 10641 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10642 fi 10643 10644 10645 10646 10647 10648 10649 10650 10651# Check whether --enable-strict-compilation was given. 10652if test ${enable_strict_compilation+y} 10653then : 10654 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10655else $as_nop 10656 STRICT_COMPILE=no 10657fi 10658 10659 10660 10661 10662 10663 10664STRICT_CFLAGS="" 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678xorg_testset_save_CFLAGS="$CFLAGS" 10679 10680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10683printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10684if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10685then : 10686 printf %s "(cached) " >&6 10687else $as_nop 10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10689/* end confdefs.h. */ 10690int i; 10691_ACEOF 10692if ac_fn_c_try_compile "$LINENO" 10693then : 10694 xorg_cv_cc_flag_unknown_warning_option=yes 10695else $as_nop 10696 xorg_cv_cc_flag_unknown_warning_option=no 10697fi 10698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10699fi 10700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10703 CFLAGS="$xorg_testset_save_CFLAGS" 10704fi 10705 10706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10709 fi 10710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10713if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10714then : 10715 printf %s "(cached) " >&6 10716else $as_nop 10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10718/* end confdefs.h. */ 10719int i; 10720_ACEOF 10721if ac_fn_c_try_compile "$LINENO" 10722then : 10723 xorg_cv_cc_flag_unused_command_line_argument=yes 10724else $as_nop 10725 xorg_cv_cc_flag_unused_command_line_argument=no 10726fi 10727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10728fi 10729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10730printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10732 CFLAGS="$xorg_testset_save_CFLAGS" 10733fi 10734 10735found="no" 10736 10737 if test $found = "no" ; then 10738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10740 fi 10741 10742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10744 fi 10745 10746 CFLAGS="$CFLAGS -pedantic" 10747 10748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10749printf %s "checking if $CC supports -pedantic... " >&6; } 10750 cacheid=xorg_cv_cc_flag__pedantic 10751 if eval test \${$cacheid+y} 10752then : 10753 printf %s "(cached) " >&6 10754else $as_nop 10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10756/* end confdefs.h. */ 10757int i; 10758int 10759main (void) 10760{ 10761 10762 ; 10763 return 0; 10764} 10765_ACEOF 10766if ac_fn_c_try_link "$LINENO" 10767then : 10768 eval $cacheid=yes 10769else $as_nop 10770 eval $cacheid=no 10771fi 10772rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10773 conftest$ac_exeext conftest.$ac_ext 10774fi 10775 10776 10777 CFLAGS="$xorg_testset_save_CFLAGS" 10778 10779 eval supported=\$$cacheid 10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10781printf "%s\n" "$supported" >&6; } 10782 if test "$supported" = "yes" ; then 10783 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10784 found="yes" 10785 fi 10786 fi 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802xorg_testset_save_CFLAGS="$CFLAGS" 10803 10804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10807printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10808if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10809then : 10810 printf %s "(cached) " >&6 10811else $as_nop 10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10813/* end confdefs.h. */ 10814int i; 10815_ACEOF 10816if ac_fn_c_try_compile "$LINENO" 10817then : 10818 xorg_cv_cc_flag_unknown_warning_option=yes 10819else $as_nop 10820 xorg_cv_cc_flag_unknown_warning_option=no 10821fi 10822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10823fi 10824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10827 CFLAGS="$xorg_testset_save_CFLAGS" 10828fi 10829 10830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10833 fi 10834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10837if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10838then : 10839 printf %s "(cached) " >&6 10840else $as_nop 10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843int i; 10844_ACEOF 10845if ac_fn_c_try_compile "$LINENO" 10846then : 10847 xorg_cv_cc_flag_unused_command_line_argument=yes 10848else $as_nop 10849 xorg_cv_cc_flag_unused_command_line_argument=no 10850fi 10851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10852fi 10853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10854printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10856 CFLAGS="$xorg_testset_save_CFLAGS" 10857fi 10858 10859found="no" 10860 10861 if test $found = "no" ; then 10862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10864 fi 10865 10866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10868 fi 10869 10870 CFLAGS="$CFLAGS -Werror" 10871 10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10873printf %s "checking if $CC supports -Werror... " >&6; } 10874 cacheid=xorg_cv_cc_flag__Werror 10875 if eval test \${$cacheid+y} 10876then : 10877 printf %s "(cached) " >&6 10878else $as_nop 10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10880/* end confdefs.h. */ 10881int i; 10882int 10883main (void) 10884{ 10885 10886 ; 10887 return 0; 10888} 10889_ACEOF 10890if ac_fn_c_try_link "$LINENO" 10891then : 10892 eval $cacheid=yes 10893else $as_nop 10894 eval $cacheid=no 10895fi 10896rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10897 conftest$ac_exeext conftest.$ac_ext 10898fi 10899 10900 10901 CFLAGS="$xorg_testset_save_CFLAGS" 10902 10903 eval supported=\$$cacheid 10904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10905printf "%s\n" "$supported" >&6; } 10906 if test "$supported" = "yes" ; then 10907 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10908 found="yes" 10909 fi 10910 fi 10911 10912 if test $found = "no" ; then 10913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10915 fi 10916 10917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10919 fi 10920 10921 CFLAGS="$CFLAGS -errwarn" 10922 10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10924printf %s "checking if $CC supports -errwarn... " >&6; } 10925 cacheid=xorg_cv_cc_flag__errwarn 10926 if eval test \${$cacheid+y} 10927then : 10928 printf %s "(cached) " >&6 10929else $as_nop 10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10931/* end confdefs.h. */ 10932int i; 10933int 10934main (void) 10935{ 10936 10937 ; 10938 return 0; 10939} 10940_ACEOF 10941if ac_fn_c_try_link "$LINENO" 10942then : 10943 eval $cacheid=yes 10944else $as_nop 10945 eval $cacheid=no 10946fi 10947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10948 conftest$ac_exeext conftest.$ac_ext 10949fi 10950 10951 10952 CFLAGS="$xorg_testset_save_CFLAGS" 10953 10954 eval supported=\$$cacheid 10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10956printf "%s\n" "$supported" >&6; } 10957 if test "$supported" = "yes" ; then 10958 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10959 found="yes" 10960 fi 10961 fi 10962 10963 10964 10965# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10966# activate it with -Werror, so we add it here explicitly. 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980xorg_testset_save_CFLAGS="$CFLAGS" 10981 10982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10985printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10986if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10987then : 10988 printf %s "(cached) " >&6 10989else $as_nop 10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10991/* end confdefs.h. */ 10992int i; 10993_ACEOF 10994if ac_fn_c_try_compile "$LINENO" 10995then : 10996 xorg_cv_cc_flag_unknown_warning_option=yes 10997else $as_nop 10998 xorg_cv_cc_flag_unknown_warning_option=no 10999fi 11000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11001fi 11002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11003printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11005 CFLAGS="$xorg_testset_save_CFLAGS" 11006fi 11007 11008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11011 fi 11012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11014printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11015if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11016then : 11017 printf %s "(cached) " >&6 11018else $as_nop 11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11020/* end confdefs.h. */ 11021int i; 11022_ACEOF 11023if ac_fn_c_try_compile "$LINENO" 11024then : 11025 xorg_cv_cc_flag_unused_command_line_argument=yes 11026else $as_nop 11027 xorg_cv_cc_flag_unused_command_line_argument=no 11028fi 11029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11030fi 11031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11032printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11034 CFLAGS="$xorg_testset_save_CFLAGS" 11035fi 11036 11037found="no" 11038 11039 if test $found = "no" ; then 11040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11042 fi 11043 11044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11046 fi 11047 11048 CFLAGS="$CFLAGS -Werror=attributes" 11049 11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11051printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11052 cacheid=xorg_cv_cc_flag__Werror_attributes 11053 if eval test \${$cacheid+y} 11054then : 11055 printf %s "(cached) " >&6 11056else $as_nop 11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11058/* end confdefs.h. */ 11059int i; 11060int 11061main (void) 11062{ 11063 11064 ; 11065 return 0; 11066} 11067_ACEOF 11068if ac_fn_c_try_link "$LINENO" 11069then : 11070 eval $cacheid=yes 11071else $as_nop 11072 eval $cacheid=no 11073fi 11074rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11075 conftest$ac_exeext conftest.$ac_ext 11076fi 11077 11078 11079 CFLAGS="$xorg_testset_save_CFLAGS" 11080 11081 eval supported=\$$cacheid 11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11083printf "%s\n" "$supported" >&6; } 11084 if test "$supported" = "yes" ; then 11085 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11086 found="yes" 11087 fi 11088 fi 11089 11090 11091 11092if test "x$STRICT_COMPILE" = "xyes"; then 11093 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11094 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11095fi 11096 11097 11098 11099 11100 11101 11102cat >>confdefs.h <<_ACEOF 11103#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11104_ACEOF 11105 11106 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11107 if test "x$PVM" = "x"; then 11108 PVM="0" 11109 fi 11110 11111printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11112 11113 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11114 if test "x$PVP" = "x"; then 11115 PVP="0" 11116 fi 11117 11118printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11119 11120 11121 11122CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11123mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11124|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11125touch \$(top_srcdir)/ChangeLog; \ 11126echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11127 11128 11129 11130 11131macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11132INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11133mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11134|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11135touch \$(top_srcdir)/INSTALL; \ 11136echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11137 11138 11139 11140 11141 11142 11143case $host_os in 11144 solaris*) 11145 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11146 # check for a man page file found in later versions that use 11147 # traditional section numbers instead 11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11149printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11150if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11151then : 11152 printf %s "(cached) " >&6 11153else $as_nop 11154 test "$cross_compiling" = yes && 11155 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11156if test -r "/usr/share/man/man7/attributes.7"; then 11157 ac_cv_file__usr_share_man_man7_attributes_7=yes 11158else 11159 ac_cv_file__usr_share_man_man7_attributes_7=no 11160fi 11161fi 11162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11163printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11164if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11165then : 11166 SYSV_MAN_SECTIONS=false 11167else $as_nop 11168 SYSV_MAN_SECTIONS=true 11169fi 11170 11171 ;; 11172 *) SYSV_MAN_SECTIONS=false ;; 11173esac 11174 11175if test x$APP_MAN_SUFFIX = x ; then 11176 APP_MAN_SUFFIX=1 11177fi 11178if test x$APP_MAN_DIR = x ; then 11179 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11180fi 11181 11182if test x$LIB_MAN_SUFFIX = x ; then 11183 LIB_MAN_SUFFIX=3 11184fi 11185if test x$LIB_MAN_DIR = x ; then 11186 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11187fi 11188 11189if test x$FILE_MAN_SUFFIX = x ; then 11190 case $SYSV_MAN_SECTIONS in 11191 true) FILE_MAN_SUFFIX=4 ;; 11192 *) FILE_MAN_SUFFIX=5 ;; 11193 esac 11194fi 11195if test x$FILE_MAN_DIR = x ; then 11196 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11197fi 11198 11199if test x$MISC_MAN_SUFFIX = x ; then 11200 case $SYSV_MAN_SECTIONS in 11201 true) MISC_MAN_SUFFIX=5 ;; 11202 *) MISC_MAN_SUFFIX=7 ;; 11203 esac 11204fi 11205if test x$MISC_MAN_DIR = x ; then 11206 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11207fi 11208 11209if test x$DRIVER_MAN_SUFFIX = x ; then 11210 case $SYSV_MAN_SECTIONS in 11211 true) DRIVER_MAN_SUFFIX=7 ;; 11212 *) DRIVER_MAN_SUFFIX=4 ;; 11213 esac 11214fi 11215if test x$DRIVER_MAN_DIR = x ; then 11216 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11217fi 11218 11219if test x$ADMIN_MAN_SUFFIX = x ; then 11220 case $SYSV_MAN_SECTIONS in 11221 true) ADMIN_MAN_SUFFIX=1m ;; 11222 *) ADMIN_MAN_SUFFIX=8 ;; 11223 esac 11224fi 11225if test x$ADMIN_MAN_DIR = x ; then 11226 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11227fi 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243XORG_MAN_PAGE="X Version 11" 11244 11245MAN_SUBSTS="\ 11246 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11247 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11248 -e 's|__xservername__|Xorg|g' \ 11249 -e 's|__xconfigfile__|xorg.conf|g' \ 11250 -e 's|__projectroot__|\$(prefix)|g' \ 11251 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11252 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11253 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11254 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11255 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11256 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11257 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11258 11259 11260 11261# Check whether --enable-silent-rules was given. 11262if test ${enable_silent_rules+y} 11263then : 11264 enableval=$enable_silent_rules; 11265fi 11266 11267case $enable_silent_rules in # ((( 11268 yes) AM_DEFAULT_VERBOSITY=0;; 11269 no) AM_DEFAULT_VERBOSITY=1;; 11270 *) AM_DEFAULT_VERBOSITY=0;; 11271esac 11272am_make=${MAKE-make} 11273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11274printf %s "checking whether $am_make supports nested variables... " >&6; } 11275if test ${am_cv_make_support_nested_variables+y} 11276then : 11277 printf %s "(cached) " >&6 11278else $as_nop 11279 if printf "%s\n" 'TRUE=$(BAR$(V)) 11280BAR0=false 11281BAR1=true 11282V=1 11283am__doit: 11284 @$(TRUE) 11285.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11286 am_cv_make_support_nested_variables=yes 11287else 11288 am_cv_make_support_nested_variables=no 11289fi 11290fi 11291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11292printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11293if test $am_cv_make_support_nested_variables = yes; then 11294 AM_V='$(V)' 11295 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11296else 11297 AM_V=$AM_DEFAULT_VERBOSITY 11298 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11299fi 11300AM_BACKSLASH='\' 11301 11302 11303 11304# Initialize libtool 11305# Check whether --enable-static was given. 11306if test ${enable_static+y} 11307then : 11308 enableval=$enable_static; p=${PACKAGE-default} 11309 case $enableval in 11310 yes) enable_static=yes ;; 11311 no) enable_static=no ;; 11312 *) 11313 enable_static=no 11314 # Look at the argument we got. We use all the common list separators. 11315 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11316 for pkg in $enableval; do 11317 IFS=$lt_save_ifs 11318 if test "X$pkg" = "X$p"; then 11319 enable_static=yes 11320 fi 11321 done 11322 IFS=$lt_save_ifs 11323 ;; 11324 esac 11325else $as_nop 11326 enable_static=no 11327fi 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337case `pwd` in 11338 *\ * | *\ *) 11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11340printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11341esac 11342 11343 11344 11345macro_version='2.4.7' 11346macro_revision='2.4.7' 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361ltmain=$ac_aux_dir/ltmain.sh 11362 11363# Backslashify metacharacters that are still active within 11364# double-quoted strings. 11365sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11366 11367# Same as above, but do not quote variable references. 11368double_quote_subst='s/\(["`\\]\)/\\\1/g' 11369 11370# Sed substitution to delay expansion of an escaped shell variable in a 11371# double_quote_subst'ed string. 11372delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11373 11374# Sed substitution to delay expansion of an escaped single quote. 11375delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11376 11377# Sed substitution to avoid accidental globbing in evaled expressions 11378no_glob_subst='s/\*/\\\*/g' 11379 11380ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11381ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11382ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11383 11384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11385printf %s "checking how to print strings... " >&6; } 11386# Test print first, because it will be a builtin if present. 11387if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11388 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11389 ECHO='print -r --' 11390elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11391 ECHO='printf %s\n' 11392else 11393 # Use this function as a fallback that always works. 11394 func_fallback_echo () 11395 { 11396 eval 'cat <<_LTECHO_EOF 11397$1 11398_LTECHO_EOF' 11399 } 11400 ECHO='func_fallback_echo' 11401fi 11402 11403# func_echo_all arg... 11404# Invoke $ECHO with all args, space-separated. 11405func_echo_all () 11406{ 11407 $ECHO "" 11408} 11409 11410case $ECHO in 11411 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11412printf "%s\n" "printf" >&6; } ;; 11413 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11414printf "%s\n" "print -r" >&6; } ;; 11415 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11416printf "%s\n" "cat" >&6; } ;; 11417esac 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11433printf %s "checking for a sed that does not truncate output... " >&6; } 11434if test ${ac_cv_path_SED+y} 11435then : 11436 printf %s "(cached) " >&6 11437else $as_nop 11438 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11439 for ac_i in 1 2 3 4 5 6 7; do 11440 ac_script="$ac_script$as_nl$ac_script" 11441 done 11442 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11443 { ac_script=; unset ac_script;} 11444 if test -z "$SED"; then 11445 ac_path_SED_found=false 11446 # Loop through the user's path and test for each of PROGNAME-LIST 11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11448for as_dir in $PATH 11449do 11450 IFS=$as_save_IFS 11451 case $as_dir in #((( 11452 '') as_dir=./ ;; 11453 */) ;; 11454 *) as_dir=$as_dir/ ;; 11455 esac 11456 for ac_prog in sed gsed 11457 do 11458 for ac_exec_ext in '' $ac_executable_extensions; do 11459 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11460 as_fn_executable_p "$ac_path_SED" || continue 11461# Check for GNU ac_path_SED and select it if it is found. 11462 # Check for GNU $ac_path_SED 11463case `"$ac_path_SED" --version 2>&1` in 11464*GNU*) 11465 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11466*) 11467 ac_count=0 11468 printf %s 0123456789 >"conftest.in" 11469 while : 11470 do 11471 cat "conftest.in" "conftest.in" >"conftest.tmp" 11472 mv "conftest.tmp" "conftest.in" 11473 cp "conftest.in" "conftest.nl" 11474 printf "%s\n" '' >> "conftest.nl" 11475 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11477 as_fn_arith $ac_count + 1 && ac_count=$as_val 11478 if test $ac_count -gt ${ac_path_SED_max-0}; then 11479 # Best one so far, save it but keep looking for a better one 11480 ac_cv_path_SED="$ac_path_SED" 11481 ac_path_SED_max=$ac_count 11482 fi 11483 # 10*(2^10) chars as input seems more than enough 11484 test $ac_count -gt 10 && break 11485 done 11486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11487esac 11488 11489 $ac_path_SED_found && break 3 11490 done 11491 done 11492 done 11493IFS=$as_save_IFS 11494 if test -z "$ac_cv_path_SED"; then 11495 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11496 fi 11497else 11498 ac_cv_path_SED=$SED 11499fi 11500 11501fi 11502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11503printf "%s\n" "$ac_cv_path_SED" >&6; } 11504 SED="$ac_cv_path_SED" 11505 rm -f conftest.sed 11506 11507test -z "$SED" && SED=sed 11508Xsed="$SED -e 1s/^X//" 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11521printf %s "checking for grep that handles long lines and -e... " >&6; } 11522if test ${ac_cv_path_GREP+y} 11523then : 11524 printf %s "(cached) " >&6 11525else $as_nop 11526 if test -z "$GREP"; then 11527 ac_path_GREP_found=false 11528 # Loop through the user's path and test for each of PROGNAME-LIST 11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11530for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11531do 11532 IFS=$as_save_IFS 11533 case $as_dir in #((( 11534 '') as_dir=./ ;; 11535 */) ;; 11536 *) as_dir=$as_dir/ ;; 11537 esac 11538 for ac_prog in grep ggrep 11539 do 11540 for ac_exec_ext in '' $ac_executable_extensions; do 11541 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11542 as_fn_executable_p "$ac_path_GREP" || continue 11543# Check for GNU ac_path_GREP and select it if it is found. 11544 # Check for GNU $ac_path_GREP 11545case `"$ac_path_GREP" --version 2>&1` in 11546*GNU*) 11547 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11548*) 11549 ac_count=0 11550 printf %s 0123456789 >"conftest.in" 11551 while : 11552 do 11553 cat "conftest.in" "conftest.in" >"conftest.tmp" 11554 mv "conftest.tmp" "conftest.in" 11555 cp "conftest.in" "conftest.nl" 11556 printf "%s\n" 'GREP' >> "conftest.nl" 11557 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11559 as_fn_arith $ac_count + 1 && ac_count=$as_val 11560 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11561 # Best one so far, save it but keep looking for a better one 11562 ac_cv_path_GREP="$ac_path_GREP" 11563 ac_path_GREP_max=$ac_count 11564 fi 11565 # 10*(2^10) chars as input seems more than enough 11566 test $ac_count -gt 10 && break 11567 done 11568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11569esac 11570 11571 $ac_path_GREP_found && break 3 11572 done 11573 done 11574 done 11575IFS=$as_save_IFS 11576 if test -z "$ac_cv_path_GREP"; then 11577 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11578 fi 11579else 11580 ac_cv_path_GREP=$GREP 11581fi 11582 11583fi 11584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11585printf "%s\n" "$ac_cv_path_GREP" >&6; } 11586 GREP="$ac_cv_path_GREP" 11587 11588 11589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11590printf %s "checking for egrep... " >&6; } 11591if test ${ac_cv_path_EGREP+y} 11592then : 11593 printf %s "(cached) " >&6 11594else $as_nop 11595 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11596 then ac_cv_path_EGREP="$GREP -E" 11597 else 11598 if test -z "$EGREP"; then 11599 ac_path_EGREP_found=false 11600 # Loop through the user's path and test for each of PROGNAME-LIST 11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11602for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11603do 11604 IFS=$as_save_IFS 11605 case $as_dir in #((( 11606 '') as_dir=./ ;; 11607 */) ;; 11608 *) as_dir=$as_dir/ ;; 11609 esac 11610 for ac_prog in egrep 11611 do 11612 for ac_exec_ext in '' $ac_executable_extensions; do 11613 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11614 as_fn_executable_p "$ac_path_EGREP" || continue 11615# Check for GNU ac_path_EGREP and select it if it is found. 11616 # Check for GNU $ac_path_EGREP 11617case `"$ac_path_EGREP" --version 2>&1` in 11618*GNU*) 11619 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11620*) 11621 ac_count=0 11622 printf %s 0123456789 >"conftest.in" 11623 while : 11624 do 11625 cat "conftest.in" "conftest.in" >"conftest.tmp" 11626 mv "conftest.tmp" "conftest.in" 11627 cp "conftest.in" "conftest.nl" 11628 printf "%s\n" 'EGREP' >> "conftest.nl" 11629 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11631 as_fn_arith $ac_count + 1 && ac_count=$as_val 11632 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11633 # Best one so far, save it but keep looking for a better one 11634 ac_cv_path_EGREP="$ac_path_EGREP" 11635 ac_path_EGREP_max=$ac_count 11636 fi 11637 # 10*(2^10) chars as input seems more than enough 11638 test $ac_count -gt 10 && break 11639 done 11640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11641esac 11642 11643 $ac_path_EGREP_found && break 3 11644 done 11645 done 11646 done 11647IFS=$as_save_IFS 11648 if test -z "$ac_cv_path_EGREP"; then 11649 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11650 fi 11651else 11652 ac_cv_path_EGREP=$EGREP 11653fi 11654 11655 fi 11656fi 11657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11658printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11659 EGREP="$ac_cv_path_EGREP" 11660 11661 11662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11663printf %s "checking for fgrep... " >&6; } 11664if test ${ac_cv_path_FGREP+y} 11665then : 11666 printf %s "(cached) " >&6 11667else $as_nop 11668 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11669 then ac_cv_path_FGREP="$GREP -F" 11670 else 11671 if test -z "$FGREP"; then 11672 ac_path_FGREP_found=false 11673 # Loop through the user's path and test for each of PROGNAME-LIST 11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11675for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11676do 11677 IFS=$as_save_IFS 11678 case $as_dir in #((( 11679 '') as_dir=./ ;; 11680 */) ;; 11681 *) as_dir=$as_dir/ ;; 11682 esac 11683 for ac_prog in fgrep 11684 do 11685 for ac_exec_ext in '' $ac_executable_extensions; do 11686 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11687 as_fn_executable_p "$ac_path_FGREP" || continue 11688# Check for GNU ac_path_FGREP and select it if it is found. 11689 # Check for GNU $ac_path_FGREP 11690case `"$ac_path_FGREP" --version 2>&1` in 11691*GNU*) 11692 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11693*) 11694 ac_count=0 11695 printf %s 0123456789 >"conftest.in" 11696 while : 11697 do 11698 cat "conftest.in" "conftest.in" >"conftest.tmp" 11699 mv "conftest.tmp" "conftest.in" 11700 cp "conftest.in" "conftest.nl" 11701 printf "%s\n" 'FGREP' >> "conftest.nl" 11702 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11704 as_fn_arith $ac_count + 1 && ac_count=$as_val 11705 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11706 # Best one so far, save it but keep looking for a better one 11707 ac_cv_path_FGREP="$ac_path_FGREP" 11708 ac_path_FGREP_max=$ac_count 11709 fi 11710 # 10*(2^10) chars as input seems more than enough 11711 test $ac_count -gt 10 && break 11712 done 11713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11714esac 11715 11716 $ac_path_FGREP_found && break 3 11717 done 11718 done 11719 done 11720IFS=$as_save_IFS 11721 if test -z "$ac_cv_path_FGREP"; then 11722 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11723 fi 11724else 11725 ac_cv_path_FGREP=$FGREP 11726fi 11727 11728 fi 11729fi 11730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11731printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11732 FGREP="$ac_cv_path_FGREP" 11733 11734 11735test -z "$GREP" && GREP=grep 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755# Check whether --with-gnu-ld was given. 11756if test ${with_gnu_ld+y} 11757then : 11758 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11759else $as_nop 11760 with_gnu_ld=no 11761fi 11762 11763ac_prog=ld 11764if test yes = "$GCC"; then 11765 # Check if gcc -print-prog-name=ld gives a path. 11766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11767printf %s "checking for ld used by $CC... " >&6; } 11768 case $host in 11769 *-*-mingw*) 11770 # gcc leaves a trailing carriage return, which upsets mingw 11771 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11772 *) 11773 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11774 esac 11775 case $ac_prog in 11776 # Accept absolute paths. 11777 [\\/]* | ?:[\\/]*) 11778 re_direlt='/[^/][^/]*/\.\./' 11779 # Canonicalize the pathname of ld 11780 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11781 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11782 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11783 done 11784 test -z "$LD" && LD=$ac_prog 11785 ;; 11786 "") 11787 # If it fails, then pretend we aren't using GCC. 11788 ac_prog=ld 11789 ;; 11790 *) 11791 # If it is relative, then search for the first ld in PATH. 11792 with_gnu_ld=unknown 11793 ;; 11794 esac 11795elif test yes = "$with_gnu_ld"; then 11796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11797printf %s "checking for GNU ld... " >&6; } 11798else 11799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11800printf %s "checking for non-GNU ld... " >&6; } 11801fi 11802if test ${lt_cv_path_LD+y} 11803then : 11804 printf %s "(cached) " >&6 11805else $as_nop 11806 if test -z "$LD"; then 11807 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11808 for ac_dir in $PATH; do 11809 IFS=$lt_save_ifs 11810 test -z "$ac_dir" && ac_dir=. 11811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11812 lt_cv_path_LD=$ac_dir/$ac_prog 11813 # Check to see if the program is GNU ld. I'd rather use --version, 11814 # but apparently some variants of GNU ld only accept -v. 11815 # Break only if it was the GNU/non-GNU ld that we prefer. 11816 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11817 *GNU* | *'with BFD'*) 11818 test no != "$with_gnu_ld" && break 11819 ;; 11820 *) 11821 test yes != "$with_gnu_ld" && break 11822 ;; 11823 esac 11824 fi 11825 done 11826 IFS=$lt_save_ifs 11827else 11828 lt_cv_path_LD=$LD # Let the user override the test with a path. 11829fi 11830fi 11831 11832LD=$lt_cv_path_LD 11833if test -n "$LD"; then 11834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11835printf "%s\n" "$LD" >&6; } 11836else 11837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11838printf "%s\n" "no" >&6; } 11839fi 11840test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11842printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11843if test ${lt_cv_prog_gnu_ld+y} 11844then : 11845 printf %s "(cached) " >&6 11846else $as_nop 11847 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11848case `$LD -v 2>&1 </dev/null` in 11849*GNU* | *'with BFD'*) 11850 lt_cv_prog_gnu_ld=yes 11851 ;; 11852*) 11853 lt_cv_prog_gnu_ld=no 11854 ;; 11855esac 11856fi 11857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11858printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11859with_gnu_ld=$lt_cv_prog_gnu_ld 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11870printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11871if test ${lt_cv_path_NM+y} 11872then : 11873 printf %s "(cached) " >&6 11874else $as_nop 11875 if test -n "$NM"; then 11876 # Let the user override the test. 11877 lt_cv_path_NM=$NM 11878else 11879 lt_nm_to_check=${ac_tool_prefix}nm 11880 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11881 lt_nm_to_check="$lt_nm_to_check nm" 11882 fi 11883 for lt_tmp_nm in $lt_nm_to_check; do 11884 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11885 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11886 IFS=$lt_save_ifs 11887 test -z "$ac_dir" && ac_dir=. 11888 tmp_nm=$ac_dir/$lt_tmp_nm 11889 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11890 # Check to see if the nm accepts a BSD-compat flag. 11891 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11892 # nm: unknown option "B" ignored 11893 # Tru64's nm complains that /dev/null is an invalid object file 11894 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11895 case $build_os in 11896 mingw*) lt_bad_file=conftest.nm/nofile ;; 11897 *) lt_bad_file=/dev/null ;; 11898 esac 11899 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11900 *$lt_bad_file* | *'Invalid file or object type'*) 11901 lt_cv_path_NM="$tmp_nm -B" 11902 break 2 11903 ;; 11904 *) 11905 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11906 */dev/null*) 11907 lt_cv_path_NM="$tmp_nm -p" 11908 break 2 11909 ;; 11910 *) 11911 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11912 continue # so that we can try to find one that supports BSD flags 11913 ;; 11914 esac 11915 ;; 11916 esac 11917 fi 11918 done 11919 IFS=$lt_save_ifs 11920 done 11921 : ${lt_cv_path_NM=no} 11922fi 11923fi 11924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11925printf "%s\n" "$lt_cv_path_NM" >&6; } 11926if test no != "$lt_cv_path_NM"; then 11927 NM=$lt_cv_path_NM 11928else 11929 # Didn't find any BSD compatible name lister, look for dumpbin. 11930 if test -n "$DUMPBIN"; then : 11931 # Let the user override the test. 11932 else 11933 if test -n "$ac_tool_prefix"; then 11934 for ac_prog in dumpbin "link -dump" 11935 do 11936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11937set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11939printf %s "checking for $ac_word... " >&6; } 11940if test ${ac_cv_prog_DUMPBIN+y} 11941then : 11942 printf %s "(cached) " >&6 11943else $as_nop 11944 if test -n "$DUMPBIN"; then 11945 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11946else 11947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11948for as_dir in $PATH 11949do 11950 IFS=$as_save_IFS 11951 case $as_dir in #((( 11952 '') as_dir=./ ;; 11953 */) ;; 11954 *) as_dir=$as_dir/ ;; 11955 esac 11956 for ac_exec_ext in '' $ac_executable_extensions; do 11957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11958 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11960 break 2 11961 fi 11962done 11963 done 11964IFS=$as_save_IFS 11965 11966fi 11967fi 11968DUMPBIN=$ac_cv_prog_DUMPBIN 11969if test -n "$DUMPBIN"; then 11970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11971printf "%s\n" "$DUMPBIN" >&6; } 11972else 11973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11974printf "%s\n" "no" >&6; } 11975fi 11976 11977 11978 test -n "$DUMPBIN" && break 11979 done 11980fi 11981if test -z "$DUMPBIN"; then 11982 ac_ct_DUMPBIN=$DUMPBIN 11983 for ac_prog in dumpbin "link -dump" 11984do 11985 # Extract the first word of "$ac_prog", so it can be a program name with args. 11986set dummy $ac_prog; ac_word=$2 11987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11988printf %s "checking for $ac_word... " >&6; } 11989if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11990then : 11991 printf %s "(cached) " >&6 11992else $as_nop 11993 if test -n "$ac_ct_DUMPBIN"; then 11994 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11995else 11996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11997for as_dir in $PATH 11998do 11999 IFS=$as_save_IFS 12000 case $as_dir in #((( 12001 '') as_dir=./ ;; 12002 */) ;; 12003 *) as_dir=$as_dir/ ;; 12004 esac 12005 for ac_exec_ext in '' $ac_executable_extensions; do 12006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12007 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12009 break 2 12010 fi 12011done 12012 done 12013IFS=$as_save_IFS 12014 12015fi 12016fi 12017ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12018if test -n "$ac_ct_DUMPBIN"; then 12019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12020printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12021else 12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12023printf "%s\n" "no" >&6; } 12024fi 12025 12026 12027 test -n "$ac_ct_DUMPBIN" && break 12028done 12029 12030 if test "x$ac_ct_DUMPBIN" = x; then 12031 DUMPBIN=":" 12032 else 12033 case $cross_compiling:$ac_tool_warned in 12034yes:) 12035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12037ac_tool_warned=yes ;; 12038esac 12039 DUMPBIN=$ac_ct_DUMPBIN 12040 fi 12041fi 12042 12043 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12044 *COFF*) 12045 DUMPBIN="$DUMPBIN -symbols -headers" 12046 ;; 12047 *) 12048 DUMPBIN=: 12049 ;; 12050 esac 12051 fi 12052 12053 if test : != "$DUMPBIN"; then 12054 NM=$DUMPBIN 12055 fi 12056fi 12057test -z "$NM" && NM=nm 12058 12059 12060 12061 12062 12063 12064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12065printf %s "checking the name lister ($NM) interface... " >&6; } 12066if test ${lt_cv_nm_interface+y} 12067then : 12068 printf %s "(cached) " >&6 12069else $as_nop 12070 lt_cv_nm_interface="BSD nm" 12071 echo "int some_variable = 0;" > conftest.$ac_ext 12072 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12073 (eval "$ac_compile" 2>conftest.err) 12074 cat conftest.err >&5 12075 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12076 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12077 cat conftest.err >&5 12078 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12079 cat conftest.out >&5 12080 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12081 lt_cv_nm_interface="MS dumpbin" 12082 fi 12083 rm -f conftest* 12084fi 12085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12086printf "%s\n" "$lt_cv_nm_interface" >&6; } 12087 12088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12089printf %s "checking whether ln -s works... " >&6; } 12090LN_S=$as_ln_s 12091if test "$LN_S" = "ln -s"; then 12092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12093printf "%s\n" "yes" >&6; } 12094else 12095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12096printf "%s\n" "no, using $LN_S" >&6; } 12097fi 12098 12099# find the maximum length of command line arguments 12100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12101printf %s "checking the maximum length of command line arguments... " >&6; } 12102if test ${lt_cv_sys_max_cmd_len+y} 12103then : 12104 printf %s "(cached) " >&6 12105else $as_nop 12106 i=0 12107 teststring=ABCD 12108 12109 case $build_os in 12110 msdosdjgpp*) 12111 # On DJGPP, this test can blow up pretty badly due to problems in libc 12112 # (any single argument exceeding 2000 bytes causes a buffer overrun 12113 # during glob expansion). Even if it were fixed, the result of this 12114 # check would be larger than it should be. 12115 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12116 ;; 12117 12118 gnu*) 12119 # Under GNU Hurd, this test is not required because there is 12120 # no limit to the length of command line arguments. 12121 # Libtool will interpret -1 as no limit whatsoever 12122 lt_cv_sys_max_cmd_len=-1; 12123 ;; 12124 12125 cygwin* | mingw* | cegcc*) 12126 # On Win9x/ME, this test blows up -- it succeeds, but takes 12127 # about 5 minutes as the teststring grows exponentially. 12128 # Worse, since 9x/ME are not pre-emptively multitasking, 12129 # you end up with a "frozen" computer, even though with patience 12130 # the test eventually succeeds (with a max line length of 256k). 12131 # Instead, let's just punt: use the minimum linelength reported by 12132 # all of the supported platforms: 8192 (on NT/2K/XP). 12133 lt_cv_sys_max_cmd_len=8192; 12134 ;; 12135 12136 mint*) 12137 # On MiNT this can take a long time and run out of memory. 12138 lt_cv_sys_max_cmd_len=8192; 12139 ;; 12140 12141 amigaos*) 12142 # On AmigaOS with pdksh, this test takes hours, literally. 12143 # So we just punt and use a minimum line length of 8192. 12144 lt_cv_sys_max_cmd_len=8192; 12145 ;; 12146 12147 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12148 # This has been around since 386BSD, at least. Likely further. 12149 if test -x /sbin/sysctl; then 12150 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12151 elif test -x /usr/sbin/sysctl; then 12152 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12153 else 12154 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12155 fi 12156 # And add a safety zone 12157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12159 ;; 12160 12161 interix*) 12162 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12163 lt_cv_sys_max_cmd_len=196608 12164 ;; 12165 12166 os2*) 12167 # The test takes a long time on OS/2. 12168 lt_cv_sys_max_cmd_len=8192 12169 ;; 12170 12171 osf*) 12172 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12173 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12174 # nice to cause kernel panics so lets avoid the loop below. 12175 # First set a reasonable default. 12176 lt_cv_sys_max_cmd_len=16384 12177 # 12178 if test -x /sbin/sysconfig; then 12179 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12180 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12181 esac 12182 fi 12183 ;; 12184 sco3.2v5*) 12185 lt_cv_sys_max_cmd_len=102400 12186 ;; 12187 sysv5* | sco5v6* | sysv4.2uw2*) 12188 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12189 if test -n "$kargmax"; then 12190 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12191 else 12192 lt_cv_sys_max_cmd_len=32768 12193 fi 12194 ;; 12195 *) 12196 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12197 if test -n "$lt_cv_sys_max_cmd_len" && \ 12198 test undefined != "$lt_cv_sys_max_cmd_len"; then 12199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12201 else 12202 # Make teststring a little bigger before we do anything with it. 12203 # a 1K string should be a reasonable start. 12204 for i in 1 2 3 4 5 6 7 8; do 12205 teststring=$teststring$teststring 12206 done 12207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12208 # If test is not a shell built-in, we'll probably end up computing a 12209 # maximum length that is only half of the actual maximum length, but 12210 # we can't tell. 12211 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12212 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12213 test 17 != "$i" # 1/2 MB should be enough 12214 do 12215 i=`expr $i + 1` 12216 teststring=$teststring$teststring 12217 done 12218 # Only check the string length outside the loop. 12219 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12220 teststring= 12221 # Add a significant safety factor because C++ compilers can tack on 12222 # massive amounts of additional arguments before passing them to the 12223 # linker. It appears as though 1/2 is a usable value. 12224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12225 fi 12226 ;; 12227 esac 12228 12229fi 12230 12231if test -n "$lt_cv_sys_max_cmd_len"; then 12232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12233printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12234else 12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12236printf "%s\n" "none" >&6; } 12237fi 12238max_cmd_len=$lt_cv_sys_max_cmd_len 12239 12240 12241 12242 12243 12244 12245: ${CP="cp -f"} 12246: ${MV="mv -f"} 12247: ${RM="rm -f"} 12248 12249if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12250 lt_unset=unset 12251else 12252 lt_unset=false 12253fi 12254 12255 12256 12257 12258 12259# test EBCDIC or ASCII 12260case `echo X|tr X '\101'` in 12261 A) # ASCII based system 12262 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12263 lt_SP2NL='tr \040 \012' 12264 lt_NL2SP='tr \015\012 \040\040' 12265 ;; 12266 *) # EBCDIC based system 12267 lt_SP2NL='tr \100 \n' 12268 lt_NL2SP='tr \r\n \100\100' 12269 ;; 12270esac 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12281printf %s "checking how to convert $build file names to $host format... " >&6; } 12282if test ${lt_cv_to_host_file_cmd+y} 12283then : 12284 printf %s "(cached) " >&6 12285else $as_nop 12286 case $host in 12287 *-*-mingw* ) 12288 case $build in 12289 *-*-mingw* ) # actually msys 12290 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12291 ;; 12292 *-*-cygwin* ) 12293 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12294 ;; 12295 * ) # otherwise, assume *nix 12296 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12297 ;; 12298 esac 12299 ;; 12300 *-*-cygwin* ) 12301 case $build in 12302 *-*-mingw* ) # actually msys 12303 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12304 ;; 12305 *-*-cygwin* ) 12306 lt_cv_to_host_file_cmd=func_convert_file_noop 12307 ;; 12308 * ) # otherwise, assume *nix 12309 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12310 ;; 12311 esac 12312 ;; 12313 * ) # unhandled hosts (and "normal" native builds) 12314 lt_cv_to_host_file_cmd=func_convert_file_noop 12315 ;; 12316esac 12317 12318fi 12319 12320to_host_file_cmd=$lt_cv_to_host_file_cmd 12321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12322printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12323 12324 12325 12326 12327 12328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12329printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12330if test ${lt_cv_to_tool_file_cmd+y} 12331then : 12332 printf %s "(cached) " >&6 12333else $as_nop 12334 #assume ordinary cross tools, or native build. 12335lt_cv_to_tool_file_cmd=func_convert_file_noop 12336case $host in 12337 *-*-mingw* ) 12338 case $build in 12339 *-*-mingw* ) # actually msys 12340 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12341 ;; 12342 esac 12343 ;; 12344esac 12345 12346fi 12347 12348to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12350printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12351 12352 12353 12354 12355 12356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12357printf %s "checking for $LD option to reload object files... " >&6; } 12358if test ${lt_cv_ld_reload_flag+y} 12359then : 12360 printf %s "(cached) " >&6 12361else $as_nop 12362 lt_cv_ld_reload_flag='-r' 12363fi 12364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12365printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12366reload_flag=$lt_cv_ld_reload_flag 12367case $reload_flag in 12368"" | " "*) ;; 12369*) reload_flag=" $reload_flag" ;; 12370esac 12371reload_cmds='$LD$reload_flag -o $output$reload_objs' 12372case $host_os in 12373 cygwin* | mingw* | pw32* | cegcc*) 12374 if test yes != "$GCC"; then 12375 reload_cmds=false 12376 fi 12377 ;; 12378 darwin*) 12379 if test yes = "$GCC"; then 12380 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12381 else 12382 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12383 fi 12384 ;; 12385esac 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395if test -n "$ac_tool_prefix"; then 12396 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12397set dummy ${ac_tool_prefix}file; ac_word=$2 12398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12399printf %s "checking for $ac_word... " >&6; } 12400if test ${ac_cv_prog_FILECMD+y} 12401then : 12402 printf %s "(cached) " >&6 12403else $as_nop 12404 if test -n "$FILECMD"; then 12405 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12406else 12407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12408for as_dir in $PATH 12409do 12410 IFS=$as_save_IFS 12411 case $as_dir in #((( 12412 '') as_dir=./ ;; 12413 */) ;; 12414 *) as_dir=$as_dir/ ;; 12415 esac 12416 for ac_exec_ext in '' $ac_executable_extensions; do 12417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12418 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12420 break 2 12421 fi 12422done 12423 done 12424IFS=$as_save_IFS 12425 12426fi 12427fi 12428FILECMD=$ac_cv_prog_FILECMD 12429if test -n "$FILECMD"; then 12430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12431printf "%s\n" "$FILECMD" >&6; } 12432else 12433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12434printf "%s\n" "no" >&6; } 12435fi 12436 12437 12438fi 12439if test -z "$ac_cv_prog_FILECMD"; then 12440 ac_ct_FILECMD=$FILECMD 12441 # Extract the first word of "file", so it can be a program name with args. 12442set dummy file; ac_word=$2 12443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12444printf %s "checking for $ac_word... " >&6; } 12445if test ${ac_cv_prog_ac_ct_FILECMD+y} 12446then : 12447 printf %s "(cached) " >&6 12448else $as_nop 12449 if test -n "$ac_ct_FILECMD"; then 12450 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12451else 12452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12453for as_dir in $PATH 12454do 12455 IFS=$as_save_IFS 12456 case $as_dir in #((( 12457 '') as_dir=./ ;; 12458 */) ;; 12459 *) as_dir=$as_dir/ ;; 12460 esac 12461 for ac_exec_ext in '' $ac_executable_extensions; do 12462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12463 ac_cv_prog_ac_ct_FILECMD="file" 12464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12465 break 2 12466 fi 12467done 12468 done 12469IFS=$as_save_IFS 12470 12471fi 12472fi 12473ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12474if test -n "$ac_ct_FILECMD"; then 12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12476printf "%s\n" "$ac_ct_FILECMD" >&6; } 12477else 12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12479printf "%s\n" "no" >&6; } 12480fi 12481 12482 if test "x$ac_ct_FILECMD" = x; then 12483 FILECMD=":" 12484 else 12485 case $cross_compiling:$ac_tool_warned in 12486yes:) 12487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12488printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12489ac_tool_warned=yes ;; 12490esac 12491 FILECMD=$ac_ct_FILECMD 12492 fi 12493else 12494 FILECMD="$ac_cv_prog_FILECMD" 12495fi 12496 12497 12498 12499 12500 12501 12502 12503if test -n "$ac_tool_prefix"; then 12504 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12505set dummy ${ac_tool_prefix}objdump; ac_word=$2 12506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12507printf %s "checking for $ac_word... " >&6; } 12508if test ${ac_cv_prog_OBJDUMP+y} 12509then : 12510 printf %s "(cached) " >&6 12511else $as_nop 12512 if test -n "$OBJDUMP"; then 12513 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12514else 12515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12516for as_dir in $PATH 12517do 12518 IFS=$as_save_IFS 12519 case $as_dir in #((( 12520 '') as_dir=./ ;; 12521 */) ;; 12522 *) as_dir=$as_dir/ ;; 12523 esac 12524 for ac_exec_ext in '' $ac_executable_extensions; do 12525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12526 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12528 break 2 12529 fi 12530done 12531 done 12532IFS=$as_save_IFS 12533 12534fi 12535fi 12536OBJDUMP=$ac_cv_prog_OBJDUMP 12537if test -n "$OBJDUMP"; then 12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12539printf "%s\n" "$OBJDUMP" >&6; } 12540else 12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12542printf "%s\n" "no" >&6; } 12543fi 12544 12545 12546fi 12547if test -z "$ac_cv_prog_OBJDUMP"; then 12548 ac_ct_OBJDUMP=$OBJDUMP 12549 # Extract the first word of "objdump", so it can be a program name with args. 12550set dummy objdump; ac_word=$2 12551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12552printf %s "checking for $ac_word... " >&6; } 12553if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12554then : 12555 printf %s "(cached) " >&6 12556else $as_nop 12557 if test -n "$ac_ct_OBJDUMP"; then 12558 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12559else 12560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12561for as_dir in $PATH 12562do 12563 IFS=$as_save_IFS 12564 case $as_dir in #((( 12565 '') as_dir=./ ;; 12566 */) ;; 12567 *) as_dir=$as_dir/ ;; 12568 esac 12569 for ac_exec_ext in '' $ac_executable_extensions; do 12570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12571 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12573 break 2 12574 fi 12575done 12576 done 12577IFS=$as_save_IFS 12578 12579fi 12580fi 12581ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12582if test -n "$ac_ct_OBJDUMP"; then 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12584printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12585else 12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12587printf "%s\n" "no" >&6; } 12588fi 12589 12590 if test "x$ac_ct_OBJDUMP" = x; then 12591 OBJDUMP="false" 12592 else 12593 case $cross_compiling:$ac_tool_warned in 12594yes:) 12595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12596printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12597ac_tool_warned=yes ;; 12598esac 12599 OBJDUMP=$ac_ct_OBJDUMP 12600 fi 12601else 12602 OBJDUMP="$ac_cv_prog_OBJDUMP" 12603fi 12604 12605test -z "$OBJDUMP" && OBJDUMP=objdump 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12616printf %s "checking how to recognize dependent libraries... " >&6; } 12617if test ${lt_cv_deplibs_check_method+y} 12618then : 12619 printf %s "(cached) " >&6 12620else $as_nop 12621 lt_cv_file_magic_cmd='$MAGIC_CMD' 12622lt_cv_file_magic_test_file= 12623lt_cv_deplibs_check_method='unknown' 12624# Need to set the preceding variable on all platforms that support 12625# interlibrary dependencies. 12626# 'none' -- dependencies not supported. 12627# 'unknown' -- same as none, but documents that we really don't know. 12628# 'pass_all' -- all dependencies passed with no checks. 12629# 'test_compile' -- check by making test program. 12630# 'file_magic [[regex]]' -- check by looking for files in library path 12631# that responds to the $file_magic_cmd with a given extended regex. 12632# If you have 'file' or equivalent on your system and you're not sure 12633# whether 'pass_all' will *always* work, you probably want this one. 12634 12635case $host_os in 12636aix[4-9]*) 12637 lt_cv_deplibs_check_method=pass_all 12638 ;; 12639 12640beos*) 12641 lt_cv_deplibs_check_method=pass_all 12642 ;; 12643 12644bsdi[45]*) 12645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12646 lt_cv_file_magic_cmd='$FILECMD -L' 12647 lt_cv_file_magic_test_file=/shlib/libc.so 12648 ;; 12649 12650cygwin*) 12651 # func_win32_libid is a shell function defined in ltmain.sh 12652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12653 lt_cv_file_magic_cmd='func_win32_libid' 12654 ;; 12655 12656mingw* | pw32*) 12657 # Base MSYS/MinGW do not provide the 'file' command needed by 12658 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12659 # unless we find 'file', for example because we are cross-compiling. 12660 if ( file / ) >/dev/null 2>&1; then 12661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12662 lt_cv_file_magic_cmd='func_win32_libid' 12663 else 12664 # Keep this pattern in sync with the one in func_win32_libid. 12665 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12666 lt_cv_file_magic_cmd='$OBJDUMP -f' 12667 fi 12668 ;; 12669 12670cegcc*) 12671 # use the weaker test based on 'objdump'. See mingw*. 12672 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12673 lt_cv_file_magic_cmd='$OBJDUMP -f' 12674 ;; 12675 12676darwin* | rhapsody*) 12677 lt_cv_deplibs_check_method=pass_all 12678 ;; 12679 12680freebsd* | dragonfly* | midnightbsd*) 12681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12682 case $host_cpu in 12683 i*86 ) 12684 # Not sure whether the presence of OpenBSD here was a mistake. 12685 # Let's accept both of them until this is cleared up. 12686 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12687 lt_cv_file_magic_cmd=$FILECMD 12688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12689 ;; 12690 esac 12691 else 12692 lt_cv_deplibs_check_method=pass_all 12693 fi 12694 ;; 12695 12696haiku*) 12697 lt_cv_deplibs_check_method=pass_all 12698 ;; 12699 12700hpux10.20* | hpux11*) 12701 lt_cv_file_magic_cmd=$FILECMD 12702 case $host_cpu in 12703 ia64*) 12704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12705 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12706 ;; 12707 hppa*64*) 12708 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]' 12709 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12710 ;; 12711 *) 12712 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12713 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12714 ;; 12715 esac 12716 ;; 12717 12718interix[3-9]*) 12719 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12721 ;; 12722 12723irix5* | irix6* | nonstopux*) 12724 case $LD in 12725 *-32|*"-32 ") libmagic=32-bit;; 12726 *-n32|*"-n32 ") libmagic=N32;; 12727 *-64|*"-64 ") libmagic=64-bit;; 12728 *) libmagic=never-match;; 12729 esac 12730 lt_cv_deplibs_check_method=pass_all 12731 ;; 12732 12733# This must be glibc/ELF. 12734linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12735 lt_cv_deplibs_check_method=pass_all 12736 ;; 12737 12738netbsd*) 12739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12741 else 12742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12743 fi 12744 ;; 12745 12746newos6*) 12747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12748 lt_cv_file_magic_cmd=$FILECMD 12749 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12750 ;; 12751 12752*nto* | *qnx*) 12753 lt_cv_deplibs_check_method=pass_all 12754 ;; 12755 12756openbsd* | bitrig*) 12757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12759 else 12760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12761 fi 12762 ;; 12763 12764osf3* | osf4* | osf5*) 12765 lt_cv_deplibs_check_method=pass_all 12766 ;; 12767 12768rdos*) 12769 lt_cv_deplibs_check_method=pass_all 12770 ;; 12771 12772solaris*) 12773 lt_cv_deplibs_check_method=pass_all 12774 ;; 12775 12776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12777 lt_cv_deplibs_check_method=pass_all 12778 ;; 12779 12780sysv4 | sysv4.3*) 12781 case $host_vendor in 12782 motorola) 12783 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]' 12784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12785 ;; 12786 ncr) 12787 lt_cv_deplibs_check_method=pass_all 12788 ;; 12789 sequent) 12790 lt_cv_file_magic_cmd='/bin/file' 12791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12792 ;; 12793 sni) 12794 lt_cv_file_magic_cmd='/bin/file' 12795 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12796 lt_cv_file_magic_test_file=/lib/libc.so 12797 ;; 12798 siemens) 12799 lt_cv_deplibs_check_method=pass_all 12800 ;; 12801 pc) 12802 lt_cv_deplibs_check_method=pass_all 12803 ;; 12804 esac 12805 ;; 12806 12807tpf*) 12808 lt_cv_deplibs_check_method=pass_all 12809 ;; 12810os2*) 12811 lt_cv_deplibs_check_method=pass_all 12812 ;; 12813esac 12814 12815fi 12816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12817printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12818 12819file_magic_glob= 12820want_nocaseglob=no 12821if test "$build" = "$host"; then 12822 case $host_os in 12823 mingw* | pw32*) 12824 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12825 want_nocaseglob=yes 12826 else 12827 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12828 fi 12829 ;; 12830 esac 12831fi 12832 12833file_magic_cmd=$lt_cv_file_magic_cmd 12834deplibs_check_method=$lt_cv_deplibs_check_method 12835test -z "$deplibs_check_method" && deplibs_check_method=unknown 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858if test -n "$ac_tool_prefix"; then 12859 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12860set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12862printf %s "checking for $ac_word... " >&6; } 12863if test ${ac_cv_prog_DLLTOOL+y} 12864then : 12865 printf %s "(cached) " >&6 12866else $as_nop 12867 if test -n "$DLLTOOL"; then 12868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12869else 12870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12871for as_dir in $PATH 12872do 12873 IFS=$as_save_IFS 12874 case $as_dir in #((( 12875 '') as_dir=./ ;; 12876 */) ;; 12877 *) as_dir=$as_dir/ ;; 12878 esac 12879 for ac_exec_ext in '' $ac_executable_extensions; do 12880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12881 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12883 break 2 12884 fi 12885done 12886 done 12887IFS=$as_save_IFS 12888 12889fi 12890fi 12891DLLTOOL=$ac_cv_prog_DLLTOOL 12892if test -n "$DLLTOOL"; then 12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12894printf "%s\n" "$DLLTOOL" >&6; } 12895else 12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12897printf "%s\n" "no" >&6; } 12898fi 12899 12900 12901fi 12902if test -z "$ac_cv_prog_DLLTOOL"; then 12903 ac_ct_DLLTOOL=$DLLTOOL 12904 # Extract the first word of "dlltool", so it can be a program name with args. 12905set dummy dlltool; ac_word=$2 12906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12907printf %s "checking for $ac_word... " >&6; } 12908if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12909then : 12910 printf %s "(cached) " >&6 12911else $as_nop 12912 if test -n "$ac_ct_DLLTOOL"; then 12913 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12914else 12915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12916for as_dir in $PATH 12917do 12918 IFS=$as_save_IFS 12919 case $as_dir in #((( 12920 '') as_dir=./ ;; 12921 */) ;; 12922 *) as_dir=$as_dir/ ;; 12923 esac 12924 for ac_exec_ext in '' $ac_executable_extensions; do 12925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12926 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12928 break 2 12929 fi 12930done 12931 done 12932IFS=$as_save_IFS 12933 12934fi 12935fi 12936ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12937if test -n "$ac_ct_DLLTOOL"; then 12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12939printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12940else 12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12942printf "%s\n" "no" >&6; } 12943fi 12944 12945 if test "x$ac_ct_DLLTOOL" = x; then 12946 DLLTOOL="false" 12947 else 12948 case $cross_compiling:$ac_tool_warned in 12949yes:) 12950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12951printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12952ac_tool_warned=yes ;; 12953esac 12954 DLLTOOL=$ac_ct_DLLTOOL 12955 fi 12956else 12957 DLLTOOL="$ac_cv_prog_DLLTOOL" 12958fi 12959 12960test -z "$DLLTOOL" && DLLTOOL=dlltool 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12972printf %s "checking how to associate runtime and link libraries... " >&6; } 12973if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12974then : 12975 printf %s "(cached) " >&6 12976else $as_nop 12977 lt_cv_sharedlib_from_linklib_cmd='unknown' 12978 12979case $host_os in 12980cygwin* | mingw* | pw32* | cegcc*) 12981 # two different shell functions defined in ltmain.sh; 12982 # decide which one to use based on capabilities of $DLLTOOL 12983 case `$DLLTOOL --help 2>&1` in 12984 *--identify-strict*) 12985 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12986 ;; 12987 *) 12988 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12989 ;; 12990 esac 12991 ;; 12992*) 12993 # fallback: assume linklib IS sharedlib 12994 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12995 ;; 12996esac 12997 12998fi 12999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13000printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13001sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13002test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13003 13004 13005 13006 13007 13008 13009 13010if test -n "$ac_tool_prefix"; then 13011 for ac_prog in ar 13012 do 13013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13014set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13016printf %s "checking for $ac_word... " >&6; } 13017if test ${ac_cv_prog_AR+y} 13018then : 13019 printf %s "(cached) " >&6 13020else $as_nop 13021 if test -n "$AR"; then 13022 ac_cv_prog_AR="$AR" # Let the user override the test. 13023else 13024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13025for as_dir in $PATH 13026do 13027 IFS=$as_save_IFS 13028 case $as_dir in #((( 13029 '') as_dir=./ ;; 13030 */) ;; 13031 *) as_dir=$as_dir/ ;; 13032 esac 13033 for ac_exec_ext in '' $ac_executable_extensions; do 13034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13035 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13037 break 2 13038 fi 13039done 13040 done 13041IFS=$as_save_IFS 13042 13043fi 13044fi 13045AR=$ac_cv_prog_AR 13046if test -n "$AR"; then 13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13048printf "%s\n" "$AR" >&6; } 13049else 13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13051printf "%s\n" "no" >&6; } 13052fi 13053 13054 13055 test -n "$AR" && break 13056 done 13057fi 13058if test -z "$AR"; then 13059 ac_ct_AR=$AR 13060 for ac_prog in ar 13061do 13062 # Extract the first word of "$ac_prog", so it can be a program name with args. 13063set dummy $ac_prog; ac_word=$2 13064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13065printf %s "checking for $ac_word... " >&6; } 13066if test ${ac_cv_prog_ac_ct_AR+y} 13067then : 13068 printf %s "(cached) " >&6 13069else $as_nop 13070 if test -n "$ac_ct_AR"; then 13071 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13072else 13073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13074for as_dir in $PATH 13075do 13076 IFS=$as_save_IFS 13077 case $as_dir in #((( 13078 '') as_dir=./ ;; 13079 */) ;; 13080 *) as_dir=$as_dir/ ;; 13081 esac 13082 for ac_exec_ext in '' $ac_executable_extensions; do 13083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13084 ac_cv_prog_ac_ct_AR="$ac_prog" 13085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13086 break 2 13087 fi 13088done 13089 done 13090IFS=$as_save_IFS 13091 13092fi 13093fi 13094ac_ct_AR=$ac_cv_prog_ac_ct_AR 13095if test -n "$ac_ct_AR"; then 13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13097printf "%s\n" "$ac_ct_AR" >&6; } 13098else 13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13100printf "%s\n" "no" >&6; } 13101fi 13102 13103 13104 test -n "$ac_ct_AR" && break 13105done 13106 13107 if test "x$ac_ct_AR" = x; then 13108 AR="false" 13109 else 13110 case $cross_compiling:$ac_tool_warned in 13111yes:) 13112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13113printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13114ac_tool_warned=yes ;; 13115esac 13116 AR=$ac_ct_AR 13117 fi 13118fi 13119 13120: ${AR=ar} 13121 13122 13123 13124 13125 13126 13127# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13128# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13129# higher priority because thats what people were doing historically (setting 13130# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13131# variable obsoleted/removed. 13132 13133test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13134lt_ar_flags=$AR_FLAGS 13135 13136 13137 13138 13139 13140 13141# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13142# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13143 13144 13145 13146 13147 13148 13149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13150printf %s "checking for archiver @FILE support... " >&6; } 13151if test ${lt_cv_ar_at_file+y} 13152then : 13153 printf %s "(cached) " >&6 13154else $as_nop 13155 lt_cv_ar_at_file=no 13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13157/* end confdefs.h. */ 13158 13159int 13160main (void) 13161{ 13162 13163 ; 13164 return 0; 13165} 13166_ACEOF 13167if ac_fn_c_try_compile "$LINENO" 13168then : 13169 echo conftest.$ac_objext > conftest.lst 13170 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13172 (eval $lt_ar_try) 2>&5 13173 ac_status=$? 13174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13175 test $ac_status = 0; } 13176 if test 0 -eq "$ac_status"; then 13177 # Ensure the archiver fails upon bogus file names. 13178 rm -f conftest.$ac_objext libconftest.a 13179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13180 (eval $lt_ar_try) 2>&5 13181 ac_status=$? 13182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13183 test $ac_status = 0; } 13184 if test 0 -ne "$ac_status"; then 13185 lt_cv_ar_at_file=@ 13186 fi 13187 fi 13188 rm -f conftest.* libconftest.a 13189 13190fi 13191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13192 13193fi 13194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13195printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13196 13197if test no = "$lt_cv_ar_at_file"; then 13198 archiver_list_spec= 13199else 13200 archiver_list_spec=$lt_cv_ar_at_file 13201fi 13202 13203 13204 13205 13206 13207 13208 13209if test -n "$ac_tool_prefix"; then 13210 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13211set dummy ${ac_tool_prefix}strip; ac_word=$2 13212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13213printf %s "checking for $ac_word... " >&6; } 13214if test ${ac_cv_prog_STRIP+y} 13215then : 13216 printf %s "(cached) " >&6 13217else $as_nop 13218 if test -n "$STRIP"; then 13219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13220else 13221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13222for as_dir in $PATH 13223do 13224 IFS=$as_save_IFS 13225 case $as_dir in #((( 13226 '') as_dir=./ ;; 13227 */) ;; 13228 *) as_dir=$as_dir/ ;; 13229 esac 13230 for ac_exec_ext in '' $ac_executable_extensions; do 13231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13232 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13234 break 2 13235 fi 13236done 13237 done 13238IFS=$as_save_IFS 13239 13240fi 13241fi 13242STRIP=$ac_cv_prog_STRIP 13243if test -n "$STRIP"; then 13244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13245printf "%s\n" "$STRIP" >&6; } 13246else 13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13248printf "%s\n" "no" >&6; } 13249fi 13250 13251 13252fi 13253if test -z "$ac_cv_prog_STRIP"; then 13254 ac_ct_STRIP=$STRIP 13255 # Extract the first word of "strip", so it can be a program name with args. 13256set dummy strip; ac_word=$2 13257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13258printf %s "checking for $ac_word... " >&6; } 13259if test ${ac_cv_prog_ac_ct_STRIP+y} 13260then : 13261 printf %s "(cached) " >&6 13262else $as_nop 13263 if test -n "$ac_ct_STRIP"; then 13264 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13265else 13266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13267for as_dir in $PATH 13268do 13269 IFS=$as_save_IFS 13270 case $as_dir in #((( 13271 '') as_dir=./ ;; 13272 */) ;; 13273 *) as_dir=$as_dir/ ;; 13274 esac 13275 for ac_exec_ext in '' $ac_executable_extensions; do 13276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13277 ac_cv_prog_ac_ct_STRIP="strip" 13278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13279 break 2 13280 fi 13281done 13282 done 13283IFS=$as_save_IFS 13284 13285fi 13286fi 13287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13288if test -n "$ac_ct_STRIP"; then 13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13290printf "%s\n" "$ac_ct_STRIP" >&6; } 13291else 13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13293printf "%s\n" "no" >&6; } 13294fi 13295 13296 if test "x$ac_ct_STRIP" = x; then 13297 STRIP=":" 13298 else 13299 case $cross_compiling:$ac_tool_warned in 13300yes:) 13301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13302printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13303ac_tool_warned=yes ;; 13304esac 13305 STRIP=$ac_ct_STRIP 13306 fi 13307else 13308 STRIP="$ac_cv_prog_STRIP" 13309fi 13310 13311test -z "$STRIP" && STRIP=: 13312 13313 13314 13315 13316 13317 13318if test -n "$ac_tool_prefix"; then 13319 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13320set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13322printf %s "checking for $ac_word... " >&6; } 13323if test ${ac_cv_prog_RANLIB+y} 13324then : 13325 printf %s "(cached) " >&6 13326else $as_nop 13327 if test -n "$RANLIB"; then 13328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13329else 13330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13331for as_dir in $PATH 13332do 13333 IFS=$as_save_IFS 13334 case $as_dir in #((( 13335 '') as_dir=./ ;; 13336 */) ;; 13337 *) as_dir=$as_dir/ ;; 13338 esac 13339 for ac_exec_ext in '' $ac_executable_extensions; do 13340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13343 break 2 13344 fi 13345done 13346 done 13347IFS=$as_save_IFS 13348 13349fi 13350fi 13351RANLIB=$ac_cv_prog_RANLIB 13352if test -n "$RANLIB"; then 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13354printf "%s\n" "$RANLIB" >&6; } 13355else 13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13357printf "%s\n" "no" >&6; } 13358fi 13359 13360 13361fi 13362if test -z "$ac_cv_prog_RANLIB"; then 13363 ac_ct_RANLIB=$RANLIB 13364 # Extract the first word of "ranlib", so it can be a program name with args. 13365set dummy ranlib; ac_word=$2 13366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13367printf %s "checking for $ac_word... " >&6; } 13368if test ${ac_cv_prog_ac_ct_RANLIB+y} 13369then : 13370 printf %s "(cached) " >&6 13371else $as_nop 13372 if test -n "$ac_ct_RANLIB"; then 13373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13374else 13375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13376for as_dir in $PATH 13377do 13378 IFS=$as_save_IFS 13379 case $as_dir in #((( 13380 '') as_dir=./ ;; 13381 */) ;; 13382 *) as_dir=$as_dir/ ;; 13383 esac 13384 for ac_exec_ext in '' $ac_executable_extensions; do 13385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13386 ac_cv_prog_ac_ct_RANLIB="ranlib" 13387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13388 break 2 13389 fi 13390done 13391 done 13392IFS=$as_save_IFS 13393 13394fi 13395fi 13396ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13397if test -n "$ac_ct_RANLIB"; then 13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13399printf "%s\n" "$ac_ct_RANLIB" >&6; } 13400else 13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13402printf "%s\n" "no" >&6; } 13403fi 13404 13405 if test "x$ac_ct_RANLIB" = x; then 13406 RANLIB=":" 13407 else 13408 case $cross_compiling:$ac_tool_warned in 13409yes:) 13410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13411printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13412ac_tool_warned=yes ;; 13413esac 13414 RANLIB=$ac_ct_RANLIB 13415 fi 13416else 13417 RANLIB="$ac_cv_prog_RANLIB" 13418fi 13419 13420test -z "$RANLIB" && RANLIB=: 13421 13422 13423 13424 13425 13426 13427# Determine commands to create old-style static archives. 13428old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13429old_postinstall_cmds='chmod 644 $oldlib' 13430old_postuninstall_cmds= 13431 13432if test -n "$RANLIB"; then 13433 case $host_os in 13434 bitrig* | openbsd*) 13435 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13436 ;; 13437 *) 13438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13439 ;; 13440 esac 13441 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13442fi 13443 13444case $host_os in 13445 darwin*) 13446 lock_old_archive_extraction=yes ;; 13447 *) 13448 lock_old_archive_extraction=no ;; 13449esac 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489# If no C compiler was specified, use CC. 13490LTCC=${LTCC-"$CC"} 13491 13492# If no C compiler flags were specified, use CFLAGS. 13493LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13494 13495# Allow CC to be a program name with arguments. 13496compiler=$CC 13497 13498 13499# Check for command to grab the raw symbol name followed by C symbol from nm. 13500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13501printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13502if test ${lt_cv_sys_global_symbol_pipe+y} 13503then : 13504 printf %s "(cached) " >&6 13505else $as_nop 13506 13507# These are sane defaults that work on at least a few old systems. 13508# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13509 13510# Character class describing NM global symbol codes. 13511symcode='[BCDEGRST]' 13512 13513# Regexp to match symbols that can be accessed directly from C. 13514sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13515 13516# Define system-specific variables. 13517case $host_os in 13518aix*) 13519 symcode='[BCDT]' 13520 ;; 13521cygwin* | mingw* | pw32* | cegcc*) 13522 symcode='[ABCDGISTW]' 13523 ;; 13524hpux*) 13525 if test ia64 = "$host_cpu"; then 13526 symcode='[ABCDEGRST]' 13527 fi 13528 ;; 13529irix* | nonstopux*) 13530 symcode='[BCDEGRST]' 13531 ;; 13532osf*) 13533 symcode='[BCDEGQRST]' 13534 ;; 13535solaris*) 13536 symcode='[BDRT]' 13537 ;; 13538sco3.2v5*) 13539 symcode='[DT]' 13540 ;; 13541sysv4.2uw2*) 13542 symcode='[DT]' 13543 ;; 13544sysv5* | sco5v6* | unixware* | OpenUNIX*) 13545 symcode='[ABDT]' 13546 ;; 13547sysv4) 13548 symcode='[DFNSTU]' 13549 ;; 13550esac 13551 13552# If we're using GNU nm, then use its standard symbol codes. 13553case `$NM -V 2>&1` in 13554*GNU* | *'with BFD'*) 13555 symcode='[ABCDGIRSTW]' ;; 13556esac 13557 13558if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13559 # Gets list of data symbols to import. 13560 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13561 # Adjust the below global symbol transforms to fixup imported variables. 13562 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13563 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13564 lt_c_name_lib_hook="\ 13565 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13566 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13567else 13568 # Disable hooks by default. 13569 lt_cv_sys_global_symbol_to_import= 13570 lt_cdecl_hook= 13571 lt_c_name_hook= 13572 lt_c_name_lib_hook= 13573fi 13574 13575# Transform an extracted symbol line into a proper C declaration. 13576# Some systems (esp. on ia64) link data and code symbols differently, 13577# so use this general approach. 13578lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13579$lt_cdecl_hook\ 13580" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13581" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13582 13583# Transform an extracted symbol line into symbol name and symbol address 13584lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13585$lt_c_name_hook\ 13586" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13587" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13588 13589# Transform an extracted symbol line into symbol name with lib prefix and 13590# symbol address. 13591lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13592$lt_c_name_lib_hook\ 13593" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13594" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13595" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13596 13597# Handle CRLF in mingw tool chain 13598opt_cr= 13599case $build_os in 13600mingw*) 13601 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13602 ;; 13603esac 13604 13605# Try without a prefix underscore, then with it. 13606for ac_symprfx in "" "_"; do 13607 13608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13609 symxfrm="\\1 $ac_symprfx\\2 \\2" 13610 13611 # Write the raw and C identifiers. 13612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13613 # Fake it for dumpbin and say T for any non-static function, 13614 # D for any global variable and I for any imported variable. 13615 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13616 # which start with @ or ?. 13617 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13618" {last_section=section; section=\$ 3};"\ 13619" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13620" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13621" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13622" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13623" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13624" \$ 0!~/External *\|/{next};"\ 13625" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13626" {if(hide[section]) next};"\ 13627" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13628" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13629" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13630" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13631" ' prfx=^$ac_symprfx" 13632 else 13633 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13634 fi 13635 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13636 13637 # Check to see that the pipe works correctly. 13638 pipe_works=no 13639 13640 rm -f conftest* 13641 cat > conftest.$ac_ext <<_LT_EOF 13642#ifdef __cplusplus 13643extern "C" { 13644#endif 13645char nm_test_var; 13646void nm_test_func(void); 13647void nm_test_func(void){} 13648#ifdef __cplusplus 13649} 13650#endif 13651int main(){nm_test_var='a';nm_test_func();return(0);} 13652_LT_EOF 13653 13654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13655 (eval $ac_compile) 2>&5 13656 ac_status=$? 13657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13658 test $ac_status = 0; }; then 13659 # Now try to grab the symbols. 13660 nlist=conftest.nm 13661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13662 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13663 ac_status=$? 13664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13665 test $ac_status = 0; } && test -s "$nlist"; then 13666 # Try sorting and uniquifying the output. 13667 if sort "$nlist" | uniq > "$nlist"T; then 13668 mv -f "$nlist"T "$nlist" 13669 else 13670 rm -f "$nlist"T 13671 fi 13672 13673 # Make sure that we snagged all the symbols we need. 13674 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13675 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13676 cat <<_LT_EOF > conftest.$ac_ext 13677/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13678#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13679/* DATA imports from DLLs on WIN32 can't be const, because runtime 13680 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13681# define LT_DLSYM_CONST 13682#elif defined __osf__ 13683/* This system does not cope well with relocations in const data. */ 13684# define LT_DLSYM_CONST 13685#else 13686# define LT_DLSYM_CONST const 13687#endif 13688 13689#ifdef __cplusplus 13690extern "C" { 13691#endif 13692 13693_LT_EOF 13694 # Now generate the symbol file. 13695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13696 13697 cat <<_LT_EOF >> conftest.$ac_ext 13698 13699/* The mapping between symbol names and symbols. */ 13700LT_DLSYM_CONST struct { 13701 const char *name; 13702 void *address; 13703} 13704lt__PROGRAM__LTX_preloaded_symbols[] = 13705{ 13706 { "@PROGRAM@", (void *) 0 }, 13707_LT_EOF 13708 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13709 cat <<\_LT_EOF >> conftest.$ac_ext 13710 {0, (void *) 0} 13711}; 13712 13713/* This works around a problem in FreeBSD linker */ 13714#ifdef FREEBSD_WORKAROUND 13715static const void *lt_preloaded_setup() { 13716 return lt__PROGRAM__LTX_preloaded_symbols; 13717} 13718#endif 13719 13720#ifdef __cplusplus 13721} 13722#endif 13723_LT_EOF 13724 # Now try linking the two files. 13725 mv conftest.$ac_objext conftstm.$ac_objext 13726 lt_globsym_save_LIBS=$LIBS 13727 lt_globsym_save_CFLAGS=$CFLAGS 13728 LIBS=conftstm.$ac_objext 13729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13731 (eval $ac_link) 2>&5 13732 ac_status=$? 13733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13734 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13735 pipe_works=yes 13736 fi 13737 LIBS=$lt_globsym_save_LIBS 13738 CFLAGS=$lt_globsym_save_CFLAGS 13739 else 13740 echo "cannot find nm_test_func in $nlist" >&5 13741 fi 13742 else 13743 echo "cannot find nm_test_var in $nlist" >&5 13744 fi 13745 else 13746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13747 fi 13748 else 13749 echo "$progname: failed program was:" >&5 13750 cat conftest.$ac_ext >&5 13751 fi 13752 rm -rf conftest* conftst* 13753 13754 # Do not use the global_symbol_pipe unless it works. 13755 if test yes = "$pipe_works"; then 13756 break 13757 else 13758 lt_cv_sys_global_symbol_pipe= 13759 fi 13760done 13761 13762fi 13763 13764if test -z "$lt_cv_sys_global_symbol_pipe"; then 13765 lt_cv_sys_global_symbol_to_cdecl= 13766fi 13767if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13769printf "%s\n" "failed" >&6; } 13770else 13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13772printf "%s\n" "ok" >&6; } 13773fi 13774 13775# Response file support. 13776if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13777 nm_file_list_spec='@' 13778elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13779 nm_file_list_spec='@' 13780fi 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13819printf %s "checking for sysroot... " >&6; } 13820 13821# Check whether --with-sysroot was given. 13822if test ${with_sysroot+y} 13823then : 13824 withval=$with_sysroot; 13825else $as_nop 13826 with_sysroot=no 13827fi 13828 13829 13830lt_sysroot= 13831case $with_sysroot in #( 13832 yes) 13833 if test yes = "$GCC"; then 13834 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13835 fi 13836 ;; #( 13837 /*) 13838 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13839 ;; #( 13840 no|'') 13841 ;; #( 13842 *) 13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13844printf "%s\n" "$with_sysroot" >&6; } 13845 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13846 ;; 13847esac 13848 13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13850printf "%s\n" "${lt_sysroot:-no}" >&6; } 13851 13852 13853 13854 13855 13856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13857printf %s "checking for a working dd... " >&6; } 13858if test ${ac_cv_path_lt_DD+y} 13859then : 13860 printf %s "(cached) " >&6 13861else $as_nop 13862 printf 0123456789abcdef0123456789abcdef >conftest.i 13863cat conftest.i conftest.i >conftest2.i 13864: ${lt_DD:=$DD} 13865if test -z "$lt_DD"; then 13866 ac_path_lt_DD_found=false 13867 # Loop through the user's path and test for each of PROGNAME-LIST 13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13869for as_dir in $PATH 13870do 13871 IFS=$as_save_IFS 13872 case $as_dir in #((( 13873 '') as_dir=./ ;; 13874 */) ;; 13875 *) as_dir=$as_dir/ ;; 13876 esac 13877 for ac_prog in dd 13878 do 13879 for ac_exec_ext in '' $ac_executable_extensions; do 13880 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13881 as_fn_executable_p "$ac_path_lt_DD" || continue 13882if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13883 cmp -s conftest.i conftest.out \ 13884 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13885fi 13886 $ac_path_lt_DD_found && break 3 13887 done 13888 done 13889 done 13890IFS=$as_save_IFS 13891 if test -z "$ac_cv_path_lt_DD"; then 13892 : 13893 fi 13894else 13895 ac_cv_path_lt_DD=$lt_DD 13896fi 13897 13898rm -f conftest.i conftest2.i conftest.out 13899fi 13900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13901printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13902 13903 13904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13905printf %s "checking how to truncate binary pipes... " >&6; } 13906if test ${lt_cv_truncate_bin+y} 13907then : 13908 printf %s "(cached) " >&6 13909else $as_nop 13910 printf 0123456789abcdef0123456789abcdef >conftest.i 13911cat conftest.i conftest.i >conftest2.i 13912lt_cv_truncate_bin= 13913if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13914 cmp -s conftest.i conftest.out \ 13915 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13916fi 13917rm -f conftest.i conftest2.i conftest.out 13918test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13919fi 13920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13921printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13922 13923 13924 13925 13926 13927 13928 13929# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13930func_cc_basename () 13931{ 13932 for cc_temp in $*""; do 13933 case $cc_temp in 13934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13936 \-*) ;; 13937 *) break;; 13938 esac 13939 done 13940 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13941} 13942 13943# Check whether --enable-libtool-lock was given. 13944if test ${enable_libtool_lock+y} 13945then : 13946 enableval=$enable_libtool_lock; 13947fi 13948 13949test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13950 13951# Some flags need to be propagated to the compiler or linker for good 13952# libtool support. 13953case $host in 13954ia64-*-hpux*) 13955 # Find out what ABI is being produced by ac_compile, and set mode 13956 # options accordingly. 13957 echo 'int i;' > conftest.$ac_ext 13958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13959 (eval $ac_compile) 2>&5 13960 ac_status=$? 13961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13962 test $ac_status = 0; }; then 13963 case `$FILECMD conftest.$ac_objext` in 13964 *ELF-32*) 13965 HPUX_IA64_MODE=32 13966 ;; 13967 *ELF-64*) 13968 HPUX_IA64_MODE=64 13969 ;; 13970 esac 13971 fi 13972 rm -rf conftest* 13973 ;; 13974*-*-irix6*) 13975 # Find out what ABI is being produced by ac_compile, and set linker 13976 # options accordingly. 13977 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13979 (eval $ac_compile) 2>&5 13980 ac_status=$? 13981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13982 test $ac_status = 0; }; then 13983 if test yes = "$lt_cv_prog_gnu_ld"; then 13984 case `$FILECMD conftest.$ac_objext` in 13985 *32-bit*) 13986 LD="${LD-ld} -melf32bsmip" 13987 ;; 13988 *N32*) 13989 LD="${LD-ld} -melf32bmipn32" 13990 ;; 13991 *64-bit*) 13992 LD="${LD-ld} -melf64bmip" 13993 ;; 13994 esac 13995 else 13996 case `$FILECMD conftest.$ac_objext` in 13997 *32-bit*) 13998 LD="${LD-ld} -32" 13999 ;; 14000 *N32*) 14001 LD="${LD-ld} -n32" 14002 ;; 14003 *64-bit*) 14004 LD="${LD-ld} -64" 14005 ;; 14006 esac 14007 fi 14008 fi 14009 rm -rf conftest* 14010 ;; 14011 14012mips64*-*linux*) 14013 # Find out what ABI is being produced by ac_compile, and set linker 14014 # options accordingly. 14015 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14017 (eval $ac_compile) 2>&5 14018 ac_status=$? 14019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14020 test $ac_status = 0; }; then 14021 emul=elf 14022 case `$FILECMD conftest.$ac_objext` in 14023 *32-bit*) 14024 emul="${emul}32" 14025 ;; 14026 *64-bit*) 14027 emul="${emul}64" 14028 ;; 14029 esac 14030 case `$FILECMD conftest.$ac_objext` in 14031 *MSB*) 14032 emul="${emul}btsmip" 14033 ;; 14034 *LSB*) 14035 emul="${emul}ltsmip" 14036 ;; 14037 esac 14038 case `$FILECMD conftest.$ac_objext` in 14039 *N32*) 14040 emul="${emul}n32" 14041 ;; 14042 esac 14043 LD="${LD-ld} -m $emul" 14044 fi 14045 rm -rf conftest* 14046 ;; 14047 14048x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14049s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14050 # Find out what ABI is being produced by ac_compile, and set linker 14051 # options accordingly. Note that the listed cases only cover the 14052 # situations where additional linker options are needed (such as when 14053 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14054 # vice versa); the common cases where no linker options are needed do 14055 # not appear in the list. 14056 echo 'int i;' > conftest.$ac_ext 14057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14058 (eval $ac_compile) 2>&5 14059 ac_status=$? 14060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14061 test $ac_status = 0; }; then 14062 case `$FILECMD conftest.o` in 14063 *32-bit*) 14064 case $host in 14065 x86_64-*kfreebsd*-gnu) 14066 LD="${LD-ld} -m elf_i386_fbsd" 14067 ;; 14068 x86_64-*linux*) 14069 case `$FILECMD conftest.o` in 14070 *x86-64*) 14071 LD="${LD-ld} -m elf32_x86_64" 14072 ;; 14073 *) 14074 LD="${LD-ld} -m elf_i386" 14075 ;; 14076 esac 14077 ;; 14078 powerpc64le-*linux*) 14079 LD="${LD-ld} -m elf32lppclinux" 14080 ;; 14081 powerpc64-*linux*) 14082 LD="${LD-ld} -m elf32ppclinux" 14083 ;; 14084 s390x-*linux*) 14085 LD="${LD-ld} -m elf_s390" 14086 ;; 14087 sparc64-*linux*) 14088 LD="${LD-ld} -m elf32_sparc" 14089 ;; 14090 esac 14091 ;; 14092 *64-bit*) 14093 case $host in 14094 x86_64-*kfreebsd*-gnu) 14095 LD="${LD-ld} -m elf_x86_64_fbsd" 14096 ;; 14097 x86_64-*linux*) 14098 LD="${LD-ld} -m elf_x86_64" 14099 ;; 14100 powerpcle-*linux*) 14101 LD="${LD-ld} -m elf64lppc" 14102 ;; 14103 powerpc-*linux*) 14104 LD="${LD-ld} -m elf64ppc" 14105 ;; 14106 s390*-*linux*|s390*-*tpf*) 14107 LD="${LD-ld} -m elf64_s390" 14108 ;; 14109 sparc*-*linux*) 14110 LD="${LD-ld} -m elf64_sparc" 14111 ;; 14112 esac 14113 ;; 14114 esac 14115 fi 14116 rm -rf conftest* 14117 ;; 14118 14119*-*-sco3.2v5*) 14120 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14121 SAVE_CFLAGS=$CFLAGS 14122 CFLAGS="$CFLAGS -belf" 14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14124printf %s "checking whether the C compiler needs -belf... " >&6; } 14125if test ${lt_cv_cc_needs_belf+y} 14126then : 14127 printf %s "(cached) " >&6 14128else $as_nop 14129 ac_ext=c 14130ac_cpp='$CPP $CPPFLAGS' 14131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14133ac_compiler_gnu=$ac_cv_c_compiler_gnu 14134 14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14136/* end confdefs.h. */ 14137 14138int 14139main (void) 14140{ 14141 14142 ; 14143 return 0; 14144} 14145_ACEOF 14146if ac_fn_c_try_link "$LINENO" 14147then : 14148 lt_cv_cc_needs_belf=yes 14149else $as_nop 14150 lt_cv_cc_needs_belf=no 14151fi 14152rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14153 conftest$ac_exeext conftest.$ac_ext 14154 ac_ext=c 14155ac_cpp='$CPP $CPPFLAGS' 14156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14158ac_compiler_gnu=$ac_cv_c_compiler_gnu 14159 14160fi 14161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14162printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14163 if test yes != "$lt_cv_cc_needs_belf"; then 14164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14165 CFLAGS=$SAVE_CFLAGS 14166 fi 14167 ;; 14168*-*solaris*) 14169 # Find out what ABI is being produced by ac_compile, and set linker 14170 # options accordingly. 14171 echo 'int i;' > conftest.$ac_ext 14172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14173 (eval $ac_compile) 2>&5 14174 ac_status=$? 14175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14176 test $ac_status = 0; }; then 14177 case `$FILECMD conftest.o` in 14178 *64-bit*) 14179 case $lt_cv_prog_gnu_ld in 14180 yes*) 14181 case $host in 14182 i?86-*-solaris*|x86_64-*-solaris*) 14183 LD="${LD-ld} -m elf_x86_64" 14184 ;; 14185 sparc*-*-solaris*) 14186 LD="${LD-ld} -m elf64_sparc" 14187 ;; 14188 esac 14189 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14190 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14191 LD=${LD-ld}_sol2 14192 fi 14193 ;; 14194 *) 14195 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14196 LD="${LD-ld} -64" 14197 fi 14198 ;; 14199 esac 14200 ;; 14201 esac 14202 fi 14203 rm -rf conftest* 14204 ;; 14205esac 14206 14207need_locks=$enable_libtool_lock 14208 14209if test -n "$ac_tool_prefix"; then 14210 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14211set dummy ${ac_tool_prefix}mt; ac_word=$2 14212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14213printf %s "checking for $ac_word... " >&6; } 14214if test ${ac_cv_prog_MANIFEST_TOOL+y} 14215then : 14216 printf %s "(cached) " >&6 14217else $as_nop 14218 if test -n "$MANIFEST_TOOL"; then 14219 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14220else 14221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14222for as_dir in $PATH 14223do 14224 IFS=$as_save_IFS 14225 case $as_dir in #((( 14226 '') as_dir=./ ;; 14227 */) ;; 14228 *) as_dir=$as_dir/ ;; 14229 esac 14230 for ac_exec_ext in '' $ac_executable_extensions; do 14231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14232 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14234 break 2 14235 fi 14236done 14237 done 14238IFS=$as_save_IFS 14239 14240fi 14241fi 14242MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14243if test -n "$MANIFEST_TOOL"; then 14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14245printf "%s\n" "$MANIFEST_TOOL" >&6; } 14246else 14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14248printf "%s\n" "no" >&6; } 14249fi 14250 14251 14252fi 14253if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14254 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14255 # Extract the first word of "mt", so it can be a program name with args. 14256set dummy mt; ac_word=$2 14257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14258printf %s "checking for $ac_word... " >&6; } 14259if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14260then : 14261 printf %s "(cached) " >&6 14262else $as_nop 14263 if test -n "$ac_ct_MANIFEST_TOOL"; then 14264 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14265else 14266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14267for as_dir in $PATH 14268do 14269 IFS=$as_save_IFS 14270 case $as_dir in #((( 14271 '') as_dir=./ ;; 14272 */) ;; 14273 *) as_dir=$as_dir/ ;; 14274 esac 14275 for ac_exec_ext in '' $ac_executable_extensions; do 14276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14277 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14279 break 2 14280 fi 14281done 14282 done 14283IFS=$as_save_IFS 14284 14285fi 14286fi 14287ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14288if test -n "$ac_ct_MANIFEST_TOOL"; then 14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14290printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14291else 14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14293printf "%s\n" "no" >&6; } 14294fi 14295 14296 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14297 MANIFEST_TOOL=":" 14298 else 14299 case $cross_compiling:$ac_tool_warned in 14300yes:) 14301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14302printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14303ac_tool_warned=yes ;; 14304esac 14305 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14306 fi 14307else 14308 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14309fi 14310 14311test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14313printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14314if test ${lt_cv_path_mainfest_tool+y} 14315then : 14316 printf %s "(cached) " >&6 14317else $as_nop 14318 lt_cv_path_mainfest_tool=no 14319 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14320 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14321 cat conftest.err >&5 14322 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14323 lt_cv_path_mainfest_tool=yes 14324 fi 14325 rm -f conftest* 14326fi 14327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14328printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14329if test yes != "$lt_cv_path_mainfest_tool"; then 14330 MANIFEST_TOOL=: 14331fi 14332 14333 14334 14335 14336 14337 14338 case $host_os in 14339 rhapsody* | darwin*) 14340 if test -n "$ac_tool_prefix"; then 14341 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14342set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14344printf %s "checking for $ac_word... " >&6; } 14345if test ${ac_cv_prog_DSYMUTIL+y} 14346then : 14347 printf %s "(cached) " >&6 14348else $as_nop 14349 if test -n "$DSYMUTIL"; then 14350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14351else 14352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14353for as_dir in $PATH 14354do 14355 IFS=$as_save_IFS 14356 case $as_dir in #((( 14357 '') as_dir=./ ;; 14358 */) ;; 14359 *) as_dir=$as_dir/ ;; 14360 esac 14361 for ac_exec_ext in '' $ac_executable_extensions; do 14362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14363 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14365 break 2 14366 fi 14367done 14368 done 14369IFS=$as_save_IFS 14370 14371fi 14372fi 14373DSYMUTIL=$ac_cv_prog_DSYMUTIL 14374if test -n "$DSYMUTIL"; then 14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14376printf "%s\n" "$DSYMUTIL" >&6; } 14377else 14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14379printf "%s\n" "no" >&6; } 14380fi 14381 14382 14383fi 14384if test -z "$ac_cv_prog_DSYMUTIL"; then 14385 ac_ct_DSYMUTIL=$DSYMUTIL 14386 # Extract the first word of "dsymutil", so it can be a program name with args. 14387set dummy dsymutil; ac_word=$2 14388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14389printf %s "checking for $ac_word... " >&6; } 14390if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14391then : 14392 printf %s "(cached) " >&6 14393else $as_nop 14394 if test -n "$ac_ct_DSYMUTIL"; then 14395 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14396else 14397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14398for as_dir in $PATH 14399do 14400 IFS=$as_save_IFS 14401 case $as_dir in #((( 14402 '') as_dir=./ ;; 14403 */) ;; 14404 *) as_dir=$as_dir/ ;; 14405 esac 14406 for ac_exec_ext in '' $ac_executable_extensions; do 14407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14408 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14410 break 2 14411 fi 14412done 14413 done 14414IFS=$as_save_IFS 14415 14416fi 14417fi 14418ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14419if test -n "$ac_ct_DSYMUTIL"; then 14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14421printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14422else 14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14424printf "%s\n" "no" >&6; } 14425fi 14426 14427 if test "x$ac_ct_DSYMUTIL" = x; then 14428 DSYMUTIL=":" 14429 else 14430 case $cross_compiling:$ac_tool_warned in 14431yes:) 14432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14433printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14434ac_tool_warned=yes ;; 14435esac 14436 DSYMUTIL=$ac_ct_DSYMUTIL 14437 fi 14438else 14439 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14440fi 14441 14442 if test -n "$ac_tool_prefix"; then 14443 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14444set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14446printf %s "checking for $ac_word... " >&6; } 14447if test ${ac_cv_prog_NMEDIT+y} 14448then : 14449 printf %s "(cached) " >&6 14450else $as_nop 14451 if test -n "$NMEDIT"; then 14452 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14453else 14454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14455for as_dir in $PATH 14456do 14457 IFS=$as_save_IFS 14458 case $as_dir in #((( 14459 '') as_dir=./ ;; 14460 */) ;; 14461 *) as_dir=$as_dir/ ;; 14462 esac 14463 for ac_exec_ext in '' $ac_executable_extensions; do 14464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14465 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14467 break 2 14468 fi 14469done 14470 done 14471IFS=$as_save_IFS 14472 14473fi 14474fi 14475NMEDIT=$ac_cv_prog_NMEDIT 14476if test -n "$NMEDIT"; then 14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14478printf "%s\n" "$NMEDIT" >&6; } 14479else 14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14481printf "%s\n" "no" >&6; } 14482fi 14483 14484 14485fi 14486if test -z "$ac_cv_prog_NMEDIT"; then 14487 ac_ct_NMEDIT=$NMEDIT 14488 # Extract the first word of "nmedit", so it can be a program name with args. 14489set dummy nmedit; ac_word=$2 14490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14491printf %s "checking for $ac_word... " >&6; } 14492if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14493then : 14494 printf %s "(cached) " >&6 14495else $as_nop 14496 if test -n "$ac_ct_NMEDIT"; then 14497 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14498else 14499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14500for as_dir in $PATH 14501do 14502 IFS=$as_save_IFS 14503 case $as_dir in #((( 14504 '') as_dir=./ ;; 14505 */) ;; 14506 *) as_dir=$as_dir/ ;; 14507 esac 14508 for ac_exec_ext in '' $ac_executable_extensions; do 14509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14510 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14512 break 2 14513 fi 14514done 14515 done 14516IFS=$as_save_IFS 14517 14518fi 14519fi 14520ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14521if test -n "$ac_ct_NMEDIT"; then 14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14523printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14524else 14525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14526printf "%s\n" "no" >&6; } 14527fi 14528 14529 if test "x$ac_ct_NMEDIT" = x; then 14530 NMEDIT=":" 14531 else 14532 case $cross_compiling:$ac_tool_warned in 14533yes:) 14534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14536ac_tool_warned=yes ;; 14537esac 14538 NMEDIT=$ac_ct_NMEDIT 14539 fi 14540else 14541 NMEDIT="$ac_cv_prog_NMEDIT" 14542fi 14543 14544 if test -n "$ac_tool_prefix"; then 14545 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14546set dummy ${ac_tool_prefix}lipo; ac_word=$2 14547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14548printf %s "checking for $ac_word... " >&6; } 14549if test ${ac_cv_prog_LIPO+y} 14550then : 14551 printf %s "(cached) " >&6 14552else $as_nop 14553 if test -n "$LIPO"; then 14554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14555else 14556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14557for as_dir in $PATH 14558do 14559 IFS=$as_save_IFS 14560 case $as_dir in #((( 14561 '') as_dir=./ ;; 14562 */) ;; 14563 *) as_dir=$as_dir/ ;; 14564 esac 14565 for ac_exec_ext in '' $ac_executable_extensions; do 14566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14567 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14569 break 2 14570 fi 14571done 14572 done 14573IFS=$as_save_IFS 14574 14575fi 14576fi 14577LIPO=$ac_cv_prog_LIPO 14578if test -n "$LIPO"; then 14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14580printf "%s\n" "$LIPO" >&6; } 14581else 14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14583printf "%s\n" "no" >&6; } 14584fi 14585 14586 14587fi 14588if test -z "$ac_cv_prog_LIPO"; then 14589 ac_ct_LIPO=$LIPO 14590 # Extract the first word of "lipo", so it can be a program name with args. 14591set dummy lipo; ac_word=$2 14592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14593printf %s "checking for $ac_word... " >&6; } 14594if test ${ac_cv_prog_ac_ct_LIPO+y} 14595then : 14596 printf %s "(cached) " >&6 14597else $as_nop 14598 if test -n "$ac_ct_LIPO"; then 14599 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14600else 14601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14602for as_dir in $PATH 14603do 14604 IFS=$as_save_IFS 14605 case $as_dir in #((( 14606 '') as_dir=./ ;; 14607 */) ;; 14608 *) as_dir=$as_dir/ ;; 14609 esac 14610 for ac_exec_ext in '' $ac_executable_extensions; do 14611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14612 ac_cv_prog_ac_ct_LIPO="lipo" 14613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14614 break 2 14615 fi 14616done 14617 done 14618IFS=$as_save_IFS 14619 14620fi 14621fi 14622ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14623if test -n "$ac_ct_LIPO"; then 14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14625printf "%s\n" "$ac_ct_LIPO" >&6; } 14626else 14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14628printf "%s\n" "no" >&6; } 14629fi 14630 14631 if test "x$ac_ct_LIPO" = x; then 14632 LIPO=":" 14633 else 14634 case $cross_compiling:$ac_tool_warned in 14635yes:) 14636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14637printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14638ac_tool_warned=yes ;; 14639esac 14640 LIPO=$ac_ct_LIPO 14641 fi 14642else 14643 LIPO="$ac_cv_prog_LIPO" 14644fi 14645 14646 if test -n "$ac_tool_prefix"; then 14647 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14648set dummy ${ac_tool_prefix}otool; ac_word=$2 14649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14650printf %s "checking for $ac_word... " >&6; } 14651if test ${ac_cv_prog_OTOOL+y} 14652then : 14653 printf %s "(cached) " >&6 14654else $as_nop 14655 if test -n "$OTOOL"; then 14656 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14657else 14658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14659for as_dir in $PATH 14660do 14661 IFS=$as_save_IFS 14662 case $as_dir in #((( 14663 '') as_dir=./ ;; 14664 */) ;; 14665 *) as_dir=$as_dir/ ;; 14666 esac 14667 for ac_exec_ext in '' $ac_executable_extensions; do 14668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14669 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14671 break 2 14672 fi 14673done 14674 done 14675IFS=$as_save_IFS 14676 14677fi 14678fi 14679OTOOL=$ac_cv_prog_OTOOL 14680if test -n "$OTOOL"; then 14681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14682printf "%s\n" "$OTOOL" >&6; } 14683else 14684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14685printf "%s\n" "no" >&6; } 14686fi 14687 14688 14689fi 14690if test -z "$ac_cv_prog_OTOOL"; then 14691 ac_ct_OTOOL=$OTOOL 14692 # Extract the first word of "otool", so it can be a program name with args. 14693set dummy otool; ac_word=$2 14694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14695printf %s "checking for $ac_word... " >&6; } 14696if test ${ac_cv_prog_ac_ct_OTOOL+y} 14697then : 14698 printf %s "(cached) " >&6 14699else $as_nop 14700 if test -n "$ac_ct_OTOOL"; then 14701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14702else 14703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14704for as_dir in $PATH 14705do 14706 IFS=$as_save_IFS 14707 case $as_dir in #((( 14708 '') as_dir=./ ;; 14709 */) ;; 14710 *) as_dir=$as_dir/ ;; 14711 esac 14712 for ac_exec_ext in '' $ac_executable_extensions; do 14713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14714 ac_cv_prog_ac_ct_OTOOL="otool" 14715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14716 break 2 14717 fi 14718done 14719 done 14720IFS=$as_save_IFS 14721 14722fi 14723fi 14724ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14725if test -n "$ac_ct_OTOOL"; then 14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14727printf "%s\n" "$ac_ct_OTOOL" >&6; } 14728else 14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14730printf "%s\n" "no" >&6; } 14731fi 14732 14733 if test "x$ac_ct_OTOOL" = x; then 14734 OTOOL=":" 14735 else 14736 case $cross_compiling:$ac_tool_warned in 14737yes:) 14738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14739printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14740ac_tool_warned=yes ;; 14741esac 14742 OTOOL=$ac_ct_OTOOL 14743 fi 14744else 14745 OTOOL="$ac_cv_prog_OTOOL" 14746fi 14747 14748 if test -n "$ac_tool_prefix"; then 14749 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14750set dummy ${ac_tool_prefix}otool64; ac_word=$2 14751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14752printf %s "checking for $ac_word... " >&6; } 14753if test ${ac_cv_prog_OTOOL64+y} 14754then : 14755 printf %s "(cached) " >&6 14756else $as_nop 14757 if test -n "$OTOOL64"; then 14758 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14759else 14760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14761for as_dir in $PATH 14762do 14763 IFS=$as_save_IFS 14764 case $as_dir in #((( 14765 '') as_dir=./ ;; 14766 */) ;; 14767 *) as_dir=$as_dir/ ;; 14768 esac 14769 for ac_exec_ext in '' $ac_executable_extensions; do 14770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14771 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14773 break 2 14774 fi 14775done 14776 done 14777IFS=$as_save_IFS 14778 14779fi 14780fi 14781OTOOL64=$ac_cv_prog_OTOOL64 14782if test -n "$OTOOL64"; then 14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14784printf "%s\n" "$OTOOL64" >&6; } 14785else 14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14787printf "%s\n" "no" >&6; } 14788fi 14789 14790 14791fi 14792if test -z "$ac_cv_prog_OTOOL64"; then 14793 ac_ct_OTOOL64=$OTOOL64 14794 # Extract the first word of "otool64", so it can be a program name with args. 14795set dummy otool64; ac_word=$2 14796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14797printf %s "checking for $ac_word... " >&6; } 14798if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14799then : 14800 printf %s "(cached) " >&6 14801else $as_nop 14802 if test -n "$ac_ct_OTOOL64"; then 14803 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14804else 14805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14806for as_dir in $PATH 14807do 14808 IFS=$as_save_IFS 14809 case $as_dir in #((( 14810 '') as_dir=./ ;; 14811 */) ;; 14812 *) as_dir=$as_dir/ ;; 14813 esac 14814 for ac_exec_ext in '' $ac_executable_extensions; do 14815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14816 ac_cv_prog_ac_ct_OTOOL64="otool64" 14817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14818 break 2 14819 fi 14820done 14821 done 14822IFS=$as_save_IFS 14823 14824fi 14825fi 14826ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14827if test -n "$ac_ct_OTOOL64"; then 14828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14829printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14830else 14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14832printf "%s\n" "no" >&6; } 14833fi 14834 14835 if test "x$ac_ct_OTOOL64" = x; then 14836 OTOOL64=":" 14837 else 14838 case $cross_compiling:$ac_tool_warned in 14839yes:) 14840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14841printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14842ac_tool_warned=yes ;; 14843esac 14844 OTOOL64=$ac_ct_OTOOL64 14845 fi 14846else 14847 OTOOL64="$ac_cv_prog_OTOOL64" 14848fi 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14877printf %s "checking for -single_module linker flag... " >&6; } 14878if test ${lt_cv_apple_cc_single_mod+y} 14879then : 14880 printf %s "(cached) " >&6 14881else $as_nop 14882 lt_cv_apple_cc_single_mod=no 14883 if test -z "$LT_MULTI_MODULE"; then 14884 # By default we will add the -single_module flag. You can override 14885 # by either setting the environment variable LT_MULTI_MODULE 14886 # non-empty at configure time, or by adding -multi_module to the 14887 # link flags. 14888 rm -rf libconftest.dylib* 14889 echo "int foo(void){return 1;}" > conftest.c 14890 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14891-dynamiclib -Wl,-single_module conftest.c" >&5 14892 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14893 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14894 _lt_result=$? 14895 # If there is a non-empty error log, and "single_module" 14896 # appears in it, assume the flag caused a linker warning 14897 if test -s conftest.err && $GREP single_module conftest.err; then 14898 cat conftest.err >&5 14899 # Otherwise, if the output was created with a 0 exit code from 14900 # the compiler, it worked. 14901 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14902 lt_cv_apple_cc_single_mod=yes 14903 else 14904 cat conftest.err >&5 14905 fi 14906 rm -rf libconftest.dylib* 14907 rm -f conftest.* 14908 fi 14909fi 14910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14911printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14912 14913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14914printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14915if test ${lt_cv_ld_exported_symbols_list+y} 14916then : 14917 printf %s "(cached) " >&6 14918else $as_nop 14919 lt_cv_ld_exported_symbols_list=no 14920 save_LDFLAGS=$LDFLAGS 14921 echo "_main" > conftest.sym 14922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14924/* end confdefs.h. */ 14925 14926int 14927main (void) 14928{ 14929 14930 ; 14931 return 0; 14932} 14933_ACEOF 14934if ac_fn_c_try_link "$LINENO" 14935then : 14936 lt_cv_ld_exported_symbols_list=yes 14937else $as_nop 14938 lt_cv_ld_exported_symbols_list=no 14939fi 14940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14941 conftest$ac_exeext conftest.$ac_ext 14942 LDFLAGS=$save_LDFLAGS 14943 14944fi 14945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14946printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14947 14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14949printf %s "checking for -force_load linker flag... " >&6; } 14950if test ${lt_cv_ld_force_load+y} 14951then : 14952 printf %s "(cached) " >&6 14953else $as_nop 14954 lt_cv_ld_force_load=no 14955 cat > conftest.c << _LT_EOF 14956int forced_loaded() { return 2;} 14957_LT_EOF 14958 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14959 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14960 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14961 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14962 echo "$RANLIB libconftest.a" >&5 14963 $RANLIB libconftest.a 2>&5 14964 cat > conftest.c << _LT_EOF 14965int main() { return 0;} 14966_LT_EOF 14967 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14968 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14969 _lt_result=$? 14970 if test -s conftest.err && $GREP force_load conftest.err; then 14971 cat conftest.err >&5 14972 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14973 lt_cv_ld_force_load=yes 14974 else 14975 cat conftest.err >&5 14976 fi 14977 rm -f conftest.err libconftest.a conftest conftest.c 14978 rm -rf conftest.dSYM 14979 14980fi 14981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14982printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14983 case $host_os in 14984 rhapsody* | darwin1.[012]) 14985 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14986 darwin1.*) 14987 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14988 darwin*) 14989 case $MACOSX_DEPLOYMENT_TARGET,$host in 14990 10.[012],*|,*powerpc*-darwin[5-8]*) 14991 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14992 *) 14993 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14994 esac 14995 ;; 14996 esac 14997 if test yes = "$lt_cv_apple_cc_single_mod"; then 14998 _lt_dar_single_mod='$single_module' 14999 fi 15000 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15001 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15002 else 15003 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15004 fi 15005 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15006 _lt_dsymutil='~$DSYMUTIL $lib || :' 15007 else 15008 _lt_dsymutil= 15009 fi 15010 ;; 15011 esac 15012 15013# func_munge_path_list VARIABLE PATH 15014# ----------------------------------- 15015# VARIABLE is name of variable containing _space_ separated list of 15016# directories to be munged by the contents of PATH, which is string 15017# having a format: 15018# "DIR[:DIR]:" 15019# string "DIR[ DIR]" will be prepended to VARIABLE 15020# ":DIR[:DIR]" 15021# string "DIR[ DIR]" will be appended to VARIABLE 15022# "DIRP[:DIRP]::[DIRA:]DIRA" 15023# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15024# "DIRA[ DIRA]" will be appended to VARIABLE 15025# "DIR[:DIR]" 15026# VARIABLE will be replaced by "DIR[ DIR]" 15027func_munge_path_list () 15028{ 15029 case x$2 in 15030 x) 15031 ;; 15032 *:) 15033 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15034 ;; 15035 x:*) 15036 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15037 ;; 15038 *::*) 15039 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15040 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15041 ;; 15042 *) 15043 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15044 ;; 15045 esac 15046} 15047 15048ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15049" 15050if test "x$ac_cv_header_dlfcn_h" = xyes 15051then : 15052 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15053 15054fi 15055 15056 15057 15058 15059 15060# Set options 15061 15062 15063 15064 enable_dlopen=no 15065 15066 15067 enable_win32_dll=no 15068 15069 15070 # Check whether --enable-shared was given. 15071if test ${enable_shared+y} 15072then : 15073 enableval=$enable_shared; p=${PACKAGE-default} 15074 case $enableval in 15075 yes) enable_shared=yes ;; 15076 no) enable_shared=no ;; 15077 *) 15078 enable_shared=no 15079 # Look at the argument we got. We use all the common list separators. 15080 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15081 for pkg in $enableval; do 15082 IFS=$lt_save_ifs 15083 if test "X$pkg" = "X$p"; then 15084 enable_shared=yes 15085 fi 15086 done 15087 IFS=$lt_save_ifs 15088 ;; 15089 esac 15090else $as_nop 15091 enable_shared=yes 15092fi 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104# Check whether --with-pic was given. 15105if test ${with_pic+y} 15106then : 15107 withval=$with_pic; lt_p=${PACKAGE-default} 15108 case $withval in 15109 yes|no) pic_mode=$withval ;; 15110 *) 15111 pic_mode=default 15112 # Look at the argument we got. We use all the common list separators. 15113 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15114 for lt_pkg in $withval; do 15115 IFS=$lt_save_ifs 15116 if test "X$lt_pkg" = "X$lt_p"; then 15117 pic_mode=yes 15118 fi 15119 done 15120 IFS=$lt_save_ifs 15121 ;; 15122 esac 15123else $as_nop 15124 pic_mode=default 15125fi 15126 15127 15128 15129 15130 15131 15132 15133 15134 # Check whether --enable-fast-install was given. 15135if test ${enable_fast_install+y} 15136then : 15137 enableval=$enable_fast_install; p=${PACKAGE-default} 15138 case $enableval in 15139 yes) enable_fast_install=yes ;; 15140 no) enable_fast_install=no ;; 15141 *) 15142 enable_fast_install=no 15143 # Look at the argument we got. We use all the common list separators. 15144 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15145 for pkg in $enableval; do 15146 IFS=$lt_save_ifs 15147 if test "X$pkg" = "X$p"; then 15148 enable_fast_install=yes 15149 fi 15150 done 15151 IFS=$lt_save_ifs 15152 ;; 15153 esac 15154else $as_nop 15155 enable_fast_install=yes 15156fi 15157 15158 15159 15160 15161 15162 15163 15164 15165 shared_archive_member_spec= 15166case $host,$enable_shared in 15167power*-*-aix[5-9]*,yes) 15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15169printf %s "checking which variant of shared library versioning to provide... " >&6; } 15170 15171# Check whether --with-aix-soname was given. 15172if test ${with_aix_soname+y} 15173then : 15174 withval=$with_aix_soname; case $withval in 15175 aix|svr4|both) 15176 ;; 15177 *) 15178 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15179 ;; 15180 esac 15181 lt_cv_with_aix_soname=$with_aix_soname 15182else $as_nop 15183 if test ${lt_cv_with_aix_soname+y} 15184then : 15185 printf %s "(cached) " >&6 15186else $as_nop 15187 lt_cv_with_aix_soname=aix 15188fi 15189 15190 with_aix_soname=$lt_cv_with_aix_soname 15191fi 15192 15193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15194printf "%s\n" "$with_aix_soname" >&6; } 15195 if test aix != "$with_aix_soname"; then 15196 # For the AIX way of multilib, we name the shared archive member 15197 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15198 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15199 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15200 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15201 if test 64 = "${OBJECT_MODE-32}"; then 15202 shared_archive_member_spec=shr_64 15203 else 15204 shared_archive_member_spec=shr 15205 fi 15206 fi 15207 ;; 15208*) 15209 with_aix_soname=aix 15210 ;; 15211esac 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222# This can be used to rebuild libtool when needed 15223LIBTOOL_DEPS=$ltmain 15224 15225# Always use our own libtool. 15226LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257test -z "$LN_S" && LN_S="ln -s" 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272if test -n "${ZSH_VERSION+set}"; then 15273 setopt NO_GLOB_SUBST 15274fi 15275 15276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15277printf %s "checking for objdir... " >&6; } 15278if test ${lt_cv_objdir+y} 15279then : 15280 printf %s "(cached) " >&6 15281else $as_nop 15282 rm -f .libs 2>/dev/null 15283mkdir .libs 2>/dev/null 15284if test -d .libs; then 15285 lt_cv_objdir=.libs 15286else 15287 # MS-DOS does not allow filenames that begin with a dot. 15288 lt_cv_objdir=_libs 15289fi 15290rmdir .libs 2>/dev/null 15291fi 15292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15293printf "%s\n" "$lt_cv_objdir" >&6; } 15294objdir=$lt_cv_objdir 15295 15296 15297 15298 15299 15300printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15301 15302 15303 15304 15305case $host_os in 15306aix3*) 15307 # AIX sometimes has problems with the GCC collect2 program. For some 15308 # reason, if we set the COLLECT_NAMES environment variable, the problems 15309 # vanish in a puff of smoke. 15310 if test set != "${COLLECT_NAMES+set}"; then 15311 COLLECT_NAMES= 15312 export COLLECT_NAMES 15313 fi 15314 ;; 15315esac 15316 15317# Global variables: 15318ofile=libtool 15319can_build_shared=yes 15320 15321# All known linkers require a '.a' archive for static linking (except MSVC and 15322# ICC, which need '.lib'). 15323libext=a 15324 15325with_gnu_ld=$lt_cv_prog_gnu_ld 15326 15327old_CC=$CC 15328old_CFLAGS=$CFLAGS 15329 15330# Set sane defaults for various variables 15331test -z "$CC" && CC=cc 15332test -z "$LTCC" && LTCC=$CC 15333test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15334test -z "$LD" && LD=ld 15335test -z "$ac_objext" && ac_objext=o 15336 15337func_cc_basename $compiler 15338cc_basename=$func_cc_basename_result 15339 15340 15341# Only perform the check for file, if the check method requires it 15342test -z "$MAGIC_CMD" && MAGIC_CMD=file 15343case $deplibs_check_method in 15344file_magic*) 15345 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15347printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15348if test ${lt_cv_path_MAGIC_CMD+y} 15349then : 15350 printf %s "(cached) " >&6 15351else $as_nop 15352 case $MAGIC_CMD in 15353[\\/*] | ?:[\\/]*) 15354 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15355 ;; 15356*) 15357 lt_save_MAGIC_CMD=$MAGIC_CMD 15358 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15360 for ac_dir in $ac_dummy; do 15361 IFS=$lt_save_ifs 15362 test -z "$ac_dir" && ac_dir=. 15363 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15364 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15365 if test -n "$file_magic_test_file"; then 15366 case $deplibs_check_method in 15367 "file_magic "*) 15368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15369 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15371 $EGREP "$file_magic_regex" > /dev/null; then 15372 : 15373 else 15374 cat <<_LT_EOF 1>&2 15375 15376*** Warning: the command libtool uses to detect shared libraries, 15377*** $file_magic_cmd, produces output that libtool cannot recognize. 15378*** The result is that libtool may fail to recognize shared libraries 15379*** as such. This will affect the creation of libtool libraries that 15380*** depend on shared libraries, but programs linked with such libtool 15381*** libraries will work regardless of this problem. Nevertheless, you 15382*** may want to report the problem to your system manager and/or to 15383*** bug-libtool@gnu.org 15384 15385_LT_EOF 15386 fi ;; 15387 esac 15388 fi 15389 break 15390 fi 15391 done 15392 IFS=$lt_save_ifs 15393 MAGIC_CMD=$lt_save_MAGIC_CMD 15394 ;; 15395esac 15396fi 15397 15398MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15399if test -n "$MAGIC_CMD"; then 15400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15401printf "%s\n" "$MAGIC_CMD" >&6; } 15402else 15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15404printf "%s\n" "no" >&6; } 15405fi 15406 15407 15408 15409 15410 15411if test -z "$lt_cv_path_MAGIC_CMD"; then 15412 if test -n "$ac_tool_prefix"; then 15413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15414printf %s "checking for file... " >&6; } 15415if test ${lt_cv_path_MAGIC_CMD+y} 15416then : 15417 printf %s "(cached) " >&6 15418else $as_nop 15419 case $MAGIC_CMD in 15420[\\/*] | ?:[\\/]*) 15421 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15422 ;; 15423*) 15424 lt_save_MAGIC_CMD=$MAGIC_CMD 15425 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15427 for ac_dir in $ac_dummy; do 15428 IFS=$lt_save_ifs 15429 test -z "$ac_dir" && ac_dir=. 15430 if test -f "$ac_dir/file"; then 15431 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15432 if test -n "$file_magic_test_file"; then 15433 case $deplibs_check_method in 15434 "file_magic "*) 15435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15436 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15438 $EGREP "$file_magic_regex" > /dev/null; then 15439 : 15440 else 15441 cat <<_LT_EOF 1>&2 15442 15443*** Warning: the command libtool uses to detect shared libraries, 15444*** $file_magic_cmd, produces output that libtool cannot recognize. 15445*** The result is that libtool may fail to recognize shared libraries 15446*** as such. This will affect the creation of libtool libraries that 15447*** depend on shared libraries, but programs linked with such libtool 15448*** libraries will work regardless of this problem. Nevertheless, you 15449*** may want to report the problem to your system manager and/or to 15450*** bug-libtool@gnu.org 15451 15452_LT_EOF 15453 fi ;; 15454 esac 15455 fi 15456 break 15457 fi 15458 done 15459 IFS=$lt_save_ifs 15460 MAGIC_CMD=$lt_save_MAGIC_CMD 15461 ;; 15462esac 15463fi 15464 15465MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15466if test -n "$MAGIC_CMD"; then 15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15468printf "%s\n" "$MAGIC_CMD" >&6; } 15469else 15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15471printf "%s\n" "no" >&6; } 15472fi 15473 15474 15475 else 15476 MAGIC_CMD=: 15477 fi 15478fi 15479 15480 fi 15481 ;; 15482esac 15483 15484# Use C for the default configuration in the libtool script 15485 15486lt_save_CC=$CC 15487ac_ext=c 15488ac_cpp='$CPP $CPPFLAGS' 15489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15491ac_compiler_gnu=$ac_cv_c_compiler_gnu 15492 15493 15494# Source file extension for C test sources. 15495ac_ext=c 15496 15497# Object file extension for compiled C test sources. 15498objext=o 15499objext=$objext 15500 15501# Code to be used in simple compile tests 15502lt_simple_compile_test_code="int some_variable = 0;" 15503 15504# Code to be used in simple link tests 15505lt_simple_link_test_code='int main(){return(0);}' 15506 15507 15508 15509 15510 15511 15512 15513# If no C compiler was specified, use CC. 15514LTCC=${LTCC-"$CC"} 15515 15516# If no C compiler flags were specified, use CFLAGS. 15517LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15518 15519# Allow CC to be a program name with arguments. 15520compiler=$CC 15521 15522# Save the default compiler, since it gets overwritten when the other 15523# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15524compiler_DEFAULT=$CC 15525 15526# save warnings/boilerplate of simple test code 15527ac_outfile=conftest.$ac_objext 15528echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15530_lt_compiler_boilerplate=`cat conftest.err` 15531$RM conftest* 15532 15533ac_outfile=conftest.$ac_objext 15534echo "$lt_simple_link_test_code" >conftest.$ac_ext 15535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15536_lt_linker_boilerplate=`cat conftest.err` 15537$RM -r conftest* 15538 15539 15540if test -n "$compiler"; then 15541 15542lt_prog_compiler_no_builtin_flag= 15543 15544if test yes = "$GCC"; then 15545 case $cc_basename in 15546 nvcc*) 15547 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15548 *) 15549 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15550 esac 15551 15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15553printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15554if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15555then : 15556 printf %s "(cached) " >&6 15557else $as_nop 15558 lt_cv_prog_compiler_rtti_exceptions=no 15559 ac_outfile=conftest.$ac_objext 15560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15561 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15562 # Insert the option either (1) after the last *FLAGS variable, or 15563 # (2) before a word containing "conftest.", or (3) at the end. 15564 # Note that $ac_compile itself does not contain backslashes and begins 15565 # with a dollar sign (not a hyphen), so the echo should work correctly. 15566 # The option is referenced via a variable to avoid confusing sed. 15567 lt_compile=`echo "$ac_compile" | $SED \ 15568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15570 -e 's:$: $lt_compiler_flag:'` 15571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15572 (eval "$lt_compile" 2>conftest.err) 15573 ac_status=$? 15574 cat conftest.err >&5 15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15576 if (exit $ac_status) && test -s "$ac_outfile"; then 15577 # The compiler can only warn and ignore the option if not recognized 15578 # So say no if there are warnings other than the usual output. 15579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15582 lt_cv_prog_compiler_rtti_exceptions=yes 15583 fi 15584 fi 15585 $RM conftest* 15586 15587fi 15588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15589printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15590 15591if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15593else 15594 : 15595fi 15596 15597fi 15598 15599 15600 15601 15602 15603 15604 lt_prog_compiler_wl= 15605lt_prog_compiler_pic= 15606lt_prog_compiler_static= 15607 15608 15609 if test yes = "$GCC"; then 15610 lt_prog_compiler_wl='-Wl,' 15611 lt_prog_compiler_static='-static' 15612 15613 case $host_os in 15614 aix*) 15615 # All AIX code is PIC. 15616 if test ia64 = "$host_cpu"; then 15617 # AIX 5 now supports IA64 processor 15618 lt_prog_compiler_static='-Bstatic' 15619 fi 15620 lt_prog_compiler_pic='-fPIC' 15621 ;; 15622 15623 amigaos*) 15624 case $host_cpu in 15625 powerpc) 15626 # see comment about AmigaOS4 .so support 15627 lt_prog_compiler_pic='-fPIC' 15628 ;; 15629 m68k) 15630 # FIXME: we need at least 68020 code to build shared libraries, but 15631 # adding the '-m68020' flag to GCC prevents building anything better, 15632 # like '-m68040'. 15633 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15634 ;; 15635 esac 15636 ;; 15637 15638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15639 # PIC is the default for these OSes. 15640 ;; 15641 15642 mingw* | cygwin* | pw32* | os2* | cegcc*) 15643 # This hack is so that the source file can tell whether it is being 15644 # built for inclusion in a dll (and should export symbols for example). 15645 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15646 # (--disable-auto-import) libraries 15647 lt_prog_compiler_pic='-DDLL_EXPORT' 15648 case $host_os in 15649 os2*) 15650 lt_prog_compiler_static='$wl-static' 15651 ;; 15652 esac 15653 ;; 15654 15655 darwin* | rhapsody*) 15656 # PIC is the default on this platform 15657 # Common symbols not allowed in MH_DYLIB files 15658 lt_prog_compiler_pic='-fno-common' 15659 ;; 15660 15661 haiku*) 15662 # PIC is the default for Haiku. 15663 # The "-static" flag exists, but is broken. 15664 lt_prog_compiler_static= 15665 ;; 15666 15667 hpux*) 15668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15670 # sets the default TLS model and affects inlining. 15671 case $host_cpu in 15672 hppa*64*) 15673 # +Z the default 15674 ;; 15675 *) 15676 lt_prog_compiler_pic='-fPIC' 15677 ;; 15678 esac 15679 ;; 15680 15681 interix[3-9]*) 15682 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15683 # Instead, we relocate shared libraries at runtime. 15684 ;; 15685 15686 msdosdjgpp*) 15687 # Just because we use GCC doesn't mean we suddenly get shared libraries 15688 # on systems that don't support them. 15689 lt_prog_compiler_can_build_shared=no 15690 enable_shared=no 15691 ;; 15692 15693 *nto* | *qnx*) 15694 # QNX uses GNU C++, but need to define -shared option too, otherwise 15695 # it will coredump. 15696 lt_prog_compiler_pic='-fPIC -shared' 15697 ;; 15698 15699 sysv4*MP*) 15700 if test -d /usr/nec; then 15701 lt_prog_compiler_pic=-Kconform_pic 15702 fi 15703 ;; 15704 15705 *) 15706 lt_prog_compiler_pic='-fPIC' 15707 ;; 15708 esac 15709 15710 case $cc_basename in 15711 nvcc*) # Cuda Compiler Driver 2.2 15712 lt_prog_compiler_wl='-Xlinker ' 15713 if test -n "$lt_prog_compiler_pic"; then 15714 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15715 fi 15716 ;; 15717 esac 15718 else 15719 # PORTME Check for flag to pass linker flags through the system compiler. 15720 case $host_os in 15721 aix*) 15722 lt_prog_compiler_wl='-Wl,' 15723 if test ia64 = "$host_cpu"; then 15724 # AIX 5 now supports IA64 processor 15725 lt_prog_compiler_static='-Bstatic' 15726 else 15727 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15728 fi 15729 ;; 15730 15731 darwin* | rhapsody*) 15732 # PIC is the default on this platform 15733 # Common symbols not allowed in MH_DYLIB files 15734 lt_prog_compiler_pic='-fno-common' 15735 case $cc_basename in 15736 nagfor*) 15737 # NAG Fortran compiler 15738 lt_prog_compiler_wl='-Wl,-Wl,,' 15739 lt_prog_compiler_pic='-PIC' 15740 lt_prog_compiler_static='-Bstatic' 15741 ;; 15742 esac 15743 ;; 15744 15745 mingw* | cygwin* | pw32* | os2* | cegcc*) 15746 # This hack is so that the source file can tell whether it is being 15747 # built for inclusion in a dll (and should export symbols for example). 15748 lt_prog_compiler_pic='-DDLL_EXPORT' 15749 case $host_os in 15750 os2*) 15751 lt_prog_compiler_static='$wl-static' 15752 ;; 15753 esac 15754 ;; 15755 15756 hpux9* | hpux10* | hpux11*) 15757 lt_prog_compiler_wl='-Wl,' 15758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15759 # not for PA HP-UX. 15760 case $host_cpu in 15761 hppa*64*|ia64*) 15762 # +Z the default 15763 ;; 15764 *) 15765 lt_prog_compiler_pic='+Z' 15766 ;; 15767 esac 15768 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15769 lt_prog_compiler_static='$wl-a ${wl}archive' 15770 ;; 15771 15772 irix5* | irix6* | nonstopux*) 15773 lt_prog_compiler_wl='-Wl,' 15774 # PIC (with -KPIC) is the default. 15775 lt_prog_compiler_static='-non_shared' 15776 ;; 15777 15778 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15779 case $cc_basename in 15780 # old Intel for x86_64, which still supported -KPIC. 15781 ecc*) 15782 lt_prog_compiler_wl='-Wl,' 15783 lt_prog_compiler_pic='-KPIC' 15784 lt_prog_compiler_static='-static' 15785 ;; 15786 # icc used to be incompatible with GCC. 15787 # ICC 10 doesn't accept -KPIC any more. 15788 icc* | ifort*) 15789 lt_prog_compiler_wl='-Wl,' 15790 lt_prog_compiler_pic='-fPIC' 15791 lt_prog_compiler_static='-static' 15792 ;; 15793 # Lahey Fortran 8.1. 15794 lf95*) 15795 lt_prog_compiler_wl='-Wl,' 15796 lt_prog_compiler_pic='--shared' 15797 lt_prog_compiler_static='--static' 15798 ;; 15799 nagfor*) 15800 # NAG Fortran compiler 15801 lt_prog_compiler_wl='-Wl,-Wl,,' 15802 lt_prog_compiler_pic='-PIC' 15803 lt_prog_compiler_static='-Bstatic' 15804 ;; 15805 tcc*) 15806 # Fabrice Bellard et al's Tiny C Compiler 15807 lt_prog_compiler_wl='-Wl,' 15808 lt_prog_compiler_pic='-fPIC' 15809 lt_prog_compiler_static='-static' 15810 ;; 15811 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15812 # Portland Group compilers (*not* the Pentium gcc compiler, 15813 # which looks to be a dead project) 15814 lt_prog_compiler_wl='-Wl,' 15815 lt_prog_compiler_pic='-fpic' 15816 lt_prog_compiler_static='-Bstatic' 15817 ;; 15818 ccc*) 15819 lt_prog_compiler_wl='-Wl,' 15820 # All Alpha code is PIC. 15821 lt_prog_compiler_static='-non_shared' 15822 ;; 15823 xl* | bgxl* | bgf* | mpixl*) 15824 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15825 lt_prog_compiler_wl='-Wl,' 15826 lt_prog_compiler_pic='-qpic' 15827 lt_prog_compiler_static='-qstaticlink' 15828 ;; 15829 *) 15830 case `$CC -V 2>&1 | $SED 5q` in 15831 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15832 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15833 lt_prog_compiler_pic='-KPIC' 15834 lt_prog_compiler_static='-Bstatic' 15835 lt_prog_compiler_wl='' 15836 ;; 15837 *Sun\ F* | *Sun*Fortran*) 15838 lt_prog_compiler_pic='-KPIC' 15839 lt_prog_compiler_static='-Bstatic' 15840 lt_prog_compiler_wl='-Qoption ld ' 15841 ;; 15842 *Sun\ C*) 15843 # Sun C 5.9 15844 lt_prog_compiler_pic='-KPIC' 15845 lt_prog_compiler_static='-Bstatic' 15846 lt_prog_compiler_wl='-Wl,' 15847 ;; 15848 *Intel*\ [CF]*Compiler*) 15849 lt_prog_compiler_wl='-Wl,' 15850 lt_prog_compiler_pic='-fPIC' 15851 lt_prog_compiler_static='-static' 15852 ;; 15853 *Portland\ Group*) 15854 lt_prog_compiler_wl='-Wl,' 15855 lt_prog_compiler_pic='-fpic' 15856 lt_prog_compiler_static='-Bstatic' 15857 ;; 15858 esac 15859 ;; 15860 esac 15861 ;; 15862 15863 newsos6) 15864 lt_prog_compiler_pic='-KPIC' 15865 lt_prog_compiler_static='-Bstatic' 15866 ;; 15867 15868 *nto* | *qnx*) 15869 # QNX uses GNU C++, but need to define -shared option too, otherwise 15870 # it will coredump. 15871 lt_prog_compiler_pic='-fPIC -shared' 15872 ;; 15873 15874 osf3* | osf4* | osf5*) 15875 lt_prog_compiler_wl='-Wl,' 15876 # All OSF/1 code is PIC. 15877 lt_prog_compiler_static='-non_shared' 15878 ;; 15879 15880 rdos*) 15881 lt_prog_compiler_static='-non_shared' 15882 ;; 15883 15884 solaris*) 15885 lt_prog_compiler_pic='-KPIC' 15886 lt_prog_compiler_static='-Bstatic' 15887 case $cc_basename in 15888 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15889 lt_prog_compiler_wl='-Qoption ld ';; 15890 *) 15891 lt_prog_compiler_wl='-Wl,';; 15892 esac 15893 ;; 15894 15895 sunos4*) 15896 lt_prog_compiler_wl='-Qoption ld ' 15897 lt_prog_compiler_pic='-PIC' 15898 lt_prog_compiler_static='-Bstatic' 15899 ;; 15900 15901 sysv4 | sysv4.2uw2* | sysv4.3*) 15902 lt_prog_compiler_wl='-Wl,' 15903 lt_prog_compiler_pic='-KPIC' 15904 lt_prog_compiler_static='-Bstatic' 15905 ;; 15906 15907 sysv4*MP*) 15908 if test -d /usr/nec; then 15909 lt_prog_compiler_pic='-Kconform_pic' 15910 lt_prog_compiler_static='-Bstatic' 15911 fi 15912 ;; 15913 15914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15915 lt_prog_compiler_wl='-Wl,' 15916 lt_prog_compiler_pic='-KPIC' 15917 lt_prog_compiler_static='-Bstatic' 15918 ;; 15919 15920 unicos*) 15921 lt_prog_compiler_wl='-Wl,' 15922 lt_prog_compiler_can_build_shared=no 15923 ;; 15924 15925 uts4*) 15926 lt_prog_compiler_pic='-pic' 15927 lt_prog_compiler_static='-Bstatic' 15928 ;; 15929 15930 *) 15931 lt_prog_compiler_can_build_shared=no 15932 ;; 15933 esac 15934 fi 15935 15936case $host_os in 15937 # For platforms that do not support PIC, -DPIC is meaningless: 15938 *djgpp*) 15939 lt_prog_compiler_pic= 15940 ;; 15941 *) 15942 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15943 ;; 15944esac 15945 15946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15947printf %s "checking for $compiler option to produce PIC... " >&6; } 15948if test ${lt_cv_prog_compiler_pic+y} 15949then : 15950 printf %s "(cached) " >&6 15951else $as_nop 15952 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15953fi 15954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15955printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15956lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15957 15958# 15959# Check to make sure the PIC flag actually works. 15960# 15961if test -n "$lt_prog_compiler_pic"; then 15962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15963printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15964if test ${lt_cv_prog_compiler_pic_works+y} 15965then : 15966 printf %s "(cached) " >&6 15967else $as_nop 15968 lt_cv_prog_compiler_pic_works=no 15969 ac_outfile=conftest.$ac_objext 15970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15972 # Insert the option either (1) after the last *FLAGS variable, or 15973 # (2) before a word containing "conftest.", or (3) at the end. 15974 # Note that $ac_compile itself does not contain backslashes and begins 15975 # with a dollar sign (not a hyphen), so the echo should work correctly. 15976 # The option is referenced via a variable to avoid confusing sed. 15977 lt_compile=`echo "$ac_compile" | $SED \ 15978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15980 -e 's:$: $lt_compiler_flag:'` 15981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15982 (eval "$lt_compile" 2>conftest.err) 15983 ac_status=$? 15984 cat conftest.err >&5 15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15986 if (exit $ac_status) && test -s "$ac_outfile"; then 15987 # The compiler can only warn and ignore the option if not recognized 15988 # So say no if there are warnings other than the usual output. 15989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15992 lt_cv_prog_compiler_pic_works=yes 15993 fi 15994 fi 15995 $RM conftest* 15996 15997fi 15998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15999printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16000 16001if test yes = "$lt_cv_prog_compiler_pic_works"; then 16002 case $lt_prog_compiler_pic in 16003 "" | " "*) ;; 16004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16005 esac 16006else 16007 lt_prog_compiler_pic= 16008 lt_prog_compiler_can_build_shared=no 16009fi 16010 16011fi 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023# 16024# Check to make sure the static flag actually works. 16025# 16026wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16028printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16029if test ${lt_cv_prog_compiler_static_works+y} 16030then : 16031 printf %s "(cached) " >&6 16032else $as_nop 16033 lt_cv_prog_compiler_static_works=no 16034 save_LDFLAGS=$LDFLAGS 16035 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16036 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16038 # The linker can only warn and ignore the option if not recognized 16039 # So say no if there are warnings 16040 if test -s conftest.err; then 16041 # Append any errors to the config.log. 16042 cat conftest.err 1>&5 16043 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16045 if diff conftest.exp conftest.er2 >/dev/null; then 16046 lt_cv_prog_compiler_static_works=yes 16047 fi 16048 else 16049 lt_cv_prog_compiler_static_works=yes 16050 fi 16051 fi 16052 $RM -r conftest* 16053 LDFLAGS=$save_LDFLAGS 16054 16055fi 16056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16057printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16058 16059if test yes = "$lt_cv_prog_compiler_static_works"; then 16060 : 16061else 16062 lt_prog_compiler_static= 16063fi 16064 16065 16066 16067 16068 16069 16070 16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16072printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16073if test ${lt_cv_prog_compiler_c_o+y} 16074then : 16075 printf %s "(cached) " >&6 16076else $as_nop 16077 lt_cv_prog_compiler_c_o=no 16078 $RM -r conftest 2>/dev/null 16079 mkdir conftest 16080 cd conftest 16081 mkdir out 16082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16083 16084 lt_compiler_flag="-o out/conftest2.$ac_objext" 16085 # Insert the option either (1) after the last *FLAGS variable, or 16086 # (2) before a word containing "conftest.", or (3) at the end. 16087 # Note that $ac_compile itself does not contain backslashes and begins 16088 # with a dollar sign (not a hyphen), so the echo should work correctly. 16089 lt_compile=`echo "$ac_compile" | $SED \ 16090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16092 -e 's:$: $lt_compiler_flag:'` 16093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16094 (eval "$lt_compile" 2>out/conftest.err) 16095 ac_status=$? 16096 cat out/conftest.err >&5 16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16098 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16099 then 16100 # The compiler can only warn and ignore the option if not recognized 16101 # So say no if there are warnings 16102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16105 lt_cv_prog_compiler_c_o=yes 16106 fi 16107 fi 16108 chmod u+w . 2>&5 16109 $RM conftest* 16110 # SGI C++ compiler will create directory out/ii_files/ for 16111 # template instantiation 16112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16113 $RM out/* && rmdir out 16114 cd .. 16115 $RM -r conftest 16116 $RM conftest* 16117 16118fi 16119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16120printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16121 16122 16123 16124 16125 16126 16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16128printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16129if test ${lt_cv_prog_compiler_c_o+y} 16130then : 16131 printf %s "(cached) " >&6 16132else $as_nop 16133 lt_cv_prog_compiler_c_o=no 16134 $RM -r conftest 2>/dev/null 16135 mkdir conftest 16136 cd conftest 16137 mkdir out 16138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16139 16140 lt_compiler_flag="-o out/conftest2.$ac_objext" 16141 # Insert the option either (1) after the last *FLAGS variable, or 16142 # (2) before a word containing "conftest.", or (3) at the end. 16143 # Note that $ac_compile itself does not contain backslashes and begins 16144 # with a dollar sign (not a hyphen), so the echo should work correctly. 16145 lt_compile=`echo "$ac_compile" | $SED \ 16146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16148 -e 's:$: $lt_compiler_flag:'` 16149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16150 (eval "$lt_compile" 2>out/conftest.err) 16151 ac_status=$? 16152 cat out/conftest.err >&5 16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16154 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16155 then 16156 # The compiler can only warn and ignore the option if not recognized 16157 # So say no if there are warnings 16158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16159 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16160 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16161 lt_cv_prog_compiler_c_o=yes 16162 fi 16163 fi 16164 chmod u+w . 2>&5 16165 $RM conftest* 16166 # SGI C++ compiler will create directory out/ii_files/ for 16167 # template instantiation 16168 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16169 $RM out/* && rmdir out 16170 cd .. 16171 $RM -r conftest 16172 $RM conftest* 16173 16174fi 16175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16176printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16177 16178 16179 16180 16181hard_links=nottested 16182if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16183 # do not overwrite the value of need_locks provided by the user 16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16185printf %s "checking if we can lock with hard links... " >&6; } 16186 hard_links=yes 16187 $RM conftest* 16188 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16189 touch conftest.a 16190 ln conftest.a conftest.b 2>&5 || hard_links=no 16191 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16193printf "%s\n" "$hard_links" >&6; } 16194 if test no = "$hard_links"; then 16195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16196printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16197 need_locks=warn 16198 fi 16199else 16200 need_locks=no 16201fi 16202 16203 16204 16205 16206 16207 16208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16209printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16210 16211 runpath_var= 16212 allow_undefined_flag= 16213 always_export_symbols=no 16214 archive_cmds= 16215 archive_expsym_cmds= 16216 compiler_needs_object=no 16217 enable_shared_with_static_runtimes=no 16218 export_dynamic_flag_spec= 16219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16220 hardcode_automatic=no 16221 hardcode_direct=no 16222 hardcode_direct_absolute=no 16223 hardcode_libdir_flag_spec= 16224 hardcode_libdir_separator= 16225 hardcode_minus_L=no 16226 hardcode_shlibpath_var=unsupported 16227 inherit_rpath=no 16228 link_all_deplibs=unknown 16229 module_cmds= 16230 module_expsym_cmds= 16231 old_archive_from_new_cmds= 16232 old_archive_from_expsyms_cmds= 16233 thread_safe_flag_spec= 16234 whole_archive_flag_spec= 16235 # include_expsyms should be a list of space-separated symbols to be *always* 16236 # included in the symbol list 16237 include_expsyms= 16238 # exclude_expsyms can be an extended regexp of symbols to exclude 16239 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16240 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16241 # as well as any symbol that contains 'd'. 16242 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16243 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16244 # platforms (ab)use it in PIC code, but their linkers get confused if 16245 # the symbol is explicitly referenced. Since portable code cannot 16246 # rely on this symbol name, it's probably fine to never include it in 16247 # preloaded symbol tables. 16248 # Exclude shared library initialization/finalization symbols. 16249 extract_expsyms_cmds= 16250 16251 case $host_os in 16252 cygwin* | mingw* | pw32* | cegcc*) 16253 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16254 # When not using gcc, we currently assume that we are using 16255 # Microsoft Visual C++ or Intel C++ Compiler. 16256 if test yes != "$GCC"; then 16257 with_gnu_ld=no 16258 fi 16259 ;; 16260 interix*) 16261 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16262 with_gnu_ld=yes 16263 ;; 16264 openbsd* | bitrig*) 16265 with_gnu_ld=no 16266 ;; 16267 esac 16268 16269 ld_shlibs=yes 16270 16271 # On some targets, GNU ld is compatible enough with the native linker 16272 # that we're better off using the native interface for both. 16273 lt_use_gnu_ld_interface=no 16274 if test yes = "$with_gnu_ld"; then 16275 case $host_os in 16276 aix*) 16277 # The AIX port of GNU ld has always aspired to compatibility 16278 # with the native linker. However, as the warning in the GNU ld 16279 # block says, versions before 2.19.5* couldn't really create working 16280 # shared libraries, regardless of the interface used. 16281 case `$LD -v 2>&1` in 16282 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16283 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16284 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16285 *) 16286 lt_use_gnu_ld_interface=yes 16287 ;; 16288 esac 16289 ;; 16290 *) 16291 lt_use_gnu_ld_interface=yes 16292 ;; 16293 esac 16294 fi 16295 16296 if test yes = "$lt_use_gnu_ld_interface"; then 16297 # If archive_cmds runs LD, not CC, wlarc should be empty 16298 wlarc='$wl' 16299 16300 # Set some defaults for GNU ld with shared library support. These 16301 # are reset later if shared libraries are not supported. Putting them 16302 # here allows them to be overridden if necessary. 16303 runpath_var=LD_RUN_PATH 16304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16305 export_dynamic_flag_spec='$wl--export-dynamic' 16306 # ancient GNU ld didn't support --whole-archive et. al. 16307 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16308 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16309 else 16310 whole_archive_flag_spec= 16311 fi 16312 supports_anon_versioning=no 16313 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16314 *GNU\ gold*) supports_anon_versioning=yes ;; 16315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16318 *\ 2.11.*) ;; # other 2.11 versions 16319 *) supports_anon_versioning=yes ;; 16320 esac 16321 16322 # See if GNU ld supports shared libraries. 16323 case $host_os in 16324 aix[3-9]*) 16325 # On AIX/PPC, the GNU linker is very broken 16326 if test ia64 != "$host_cpu"; then 16327 ld_shlibs=no 16328 cat <<_LT_EOF 1>&2 16329 16330*** Warning: the GNU linker, at least up to release 2.19, is reported 16331*** to be unable to reliably create shared libraries on AIX. 16332*** Therefore, libtool is disabling shared libraries support. If you 16333*** really care for shared libraries, you may want to install binutils 16334*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16335*** You will then need to restart the configuration process. 16336 16337_LT_EOF 16338 fi 16339 ;; 16340 16341 amigaos*) 16342 case $host_cpu in 16343 powerpc) 16344 # see comment about AmigaOS4 .so support 16345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16346 archive_expsym_cmds='' 16347 ;; 16348 m68k) 16349 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)' 16350 hardcode_libdir_flag_spec='-L$libdir' 16351 hardcode_minus_L=yes 16352 ;; 16353 esac 16354 ;; 16355 16356 beos*) 16357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16358 allow_undefined_flag=unsupported 16359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16360 # support --undefined. This deserves some investigation. FIXME 16361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16362 else 16363 ld_shlibs=no 16364 fi 16365 ;; 16366 16367 cygwin* | mingw* | pw32* | cegcc*) 16368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16369 # as there is no search path for DLLs. 16370 hardcode_libdir_flag_spec='-L$libdir' 16371 export_dynamic_flag_spec='$wl--export-all-symbols' 16372 allow_undefined_flag=unsupported 16373 always_export_symbols=no 16374 enable_shared_with_static_runtimes=yes 16375 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' 16376 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16377 16378 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16380 # If the export-symbols file already is a .def file, use it as 16381 # is; otherwise, prepend EXPORTS... 16382 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16383 cp $export_symbols $output_objdir/$soname.def; 16384 else 16385 echo EXPORTS > $output_objdir/$soname.def; 16386 cat $export_symbols >> $output_objdir/$soname.def; 16387 fi~ 16388 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16389 else 16390 ld_shlibs=no 16391 fi 16392 ;; 16393 16394 haiku*) 16395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16396 link_all_deplibs=yes 16397 ;; 16398 16399 os2*) 16400 hardcode_libdir_flag_spec='-L$libdir' 16401 hardcode_minus_L=yes 16402 allow_undefined_flag=unsupported 16403 shrext_cmds=.dll 16404 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16405 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16406 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16407 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16408 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16409 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16410 emximp -o $lib $output_objdir/$libname.def' 16411 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16412 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16413 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16414 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16415 prefix_cmds="$SED"~ 16416 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16417 prefix_cmds="$prefix_cmds -e 1d"; 16418 fi~ 16419 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16420 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16421 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16422 emximp -o $lib $output_objdir/$libname.def' 16423 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16424 enable_shared_with_static_runtimes=yes 16425 file_list_spec='@' 16426 ;; 16427 16428 interix[3-9]*) 16429 hardcode_direct=no 16430 hardcode_shlibpath_var=no 16431 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16432 export_dynamic_flag_spec='$wl-E' 16433 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16434 # Instead, shared libraries are loaded at an image base (0x10000000 by 16435 # default) and relocated if they conflict, which is a slow very memory 16436 # consuming and fragmenting process. To avoid this, we pick a random, 16437 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16438 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16440 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' 16441 ;; 16442 16443 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16444 tmp_diet=no 16445 if test linux-dietlibc = "$host_os"; then 16446 case $cc_basename in 16447 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16448 esac 16449 fi 16450 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16451 && test no = "$tmp_diet" 16452 then 16453 tmp_addflag=' $pic_flag' 16454 tmp_sharedflag='-shared' 16455 case $cc_basename,$host_cpu in 16456 pgcc*) # Portland Group C compiler 16457 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' 16458 tmp_addflag=' $pic_flag' 16459 ;; 16460 pgf77* | pgf90* | pgf95* | pgfortran*) 16461 # Portland Group f77 and f90 compilers 16462 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' 16463 tmp_addflag=' $pic_flag -Mnomain' ;; 16464 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16465 tmp_addflag=' -i_dynamic' ;; 16466 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16467 tmp_addflag=' -i_dynamic -nofor_main' ;; 16468 ifc* | ifort*) # Intel Fortran compiler 16469 tmp_addflag=' -nofor_main' ;; 16470 lf95*) # Lahey Fortran 8.1 16471 whole_archive_flag_spec= 16472 tmp_sharedflag='--shared' ;; 16473 nagfor*) # NAGFOR 5.3 16474 tmp_sharedflag='-Wl,-shared' ;; 16475 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16476 tmp_sharedflag='-qmkshrobj' 16477 tmp_addflag= ;; 16478 nvcc*) # Cuda Compiler Driver 2.2 16479 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' 16480 compiler_needs_object=yes 16481 ;; 16482 esac 16483 case `$CC -V 2>&1 | $SED 5q` in 16484 *Sun\ C*) # Sun C 5.9 16485 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' 16486 compiler_needs_object=yes 16487 tmp_sharedflag='-G' ;; 16488 *Sun\ F*) # Sun Fortran 8.3 16489 tmp_sharedflag='-G' ;; 16490 esac 16491 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16492 16493 if test yes = "$supports_anon_versioning"; then 16494 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16495 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16496 echo "local: *; };" >> $output_objdir/$libname.ver~ 16497 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16498 fi 16499 16500 case $cc_basename in 16501 tcc*) 16502 export_dynamic_flag_spec='-rdynamic' 16503 ;; 16504 xlf* | bgf* | bgxlf* | mpixlf*) 16505 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16506 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16507 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16508 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16509 if test yes = "$supports_anon_versioning"; then 16510 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16511 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16512 echo "local: *; };" >> $output_objdir/$libname.ver~ 16513 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16514 fi 16515 ;; 16516 esac 16517 else 16518 ld_shlibs=no 16519 fi 16520 ;; 16521 16522 netbsd*) 16523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16524 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16525 wlarc= 16526 else 16527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16529 fi 16530 ;; 16531 16532 solaris*) 16533 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16534 ld_shlibs=no 16535 cat <<_LT_EOF 1>&2 16536 16537*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16538*** create shared libraries on Solaris systems. Therefore, libtool 16539*** is disabling shared libraries support. We urge you to upgrade GNU 16540*** binutils to release 2.9.1 or newer. Another option is to modify 16541*** your PATH or compiler configuration so that the native linker is 16542*** used, and then restart. 16543 16544_LT_EOF 16545 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16548 else 16549 ld_shlibs=no 16550 fi 16551 ;; 16552 16553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16554 case `$LD -v 2>&1` in 16555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16556 ld_shlibs=no 16557 cat <<_LT_EOF 1>&2 16558 16559*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16560*** reliably create shared libraries on SCO systems. Therefore, libtool 16561*** is disabling shared libraries support. We urge you to upgrade GNU 16562*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16563*** your PATH or compiler configuration so that the native linker is 16564*** used, and then restart. 16565 16566_LT_EOF 16567 ;; 16568 *) 16569 # For security reasons, it is highly recommended that you always 16570 # use absolute paths for naming shared libraries, and exclude the 16571 # DT_RUNPATH tag from executables and libraries. But doing so 16572 # requires that you compile everything twice, which is a pain. 16573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16574 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16577 else 16578 ld_shlibs=no 16579 fi 16580 ;; 16581 esac 16582 ;; 16583 16584 sunos4*) 16585 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16586 wlarc= 16587 hardcode_direct=yes 16588 hardcode_shlibpath_var=no 16589 ;; 16590 16591 *) 16592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16595 else 16596 ld_shlibs=no 16597 fi 16598 ;; 16599 esac 16600 16601 if test no = "$ld_shlibs"; then 16602 runpath_var= 16603 hardcode_libdir_flag_spec= 16604 export_dynamic_flag_spec= 16605 whole_archive_flag_spec= 16606 fi 16607 else 16608 # PORTME fill in a description of your system's linker (not GNU ld) 16609 case $host_os in 16610 aix3*) 16611 allow_undefined_flag=unsupported 16612 always_export_symbols=yes 16613 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' 16614 # Note: this linker hardcodes the directories in LIBPATH if there 16615 # are no directories specified by -L. 16616 hardcode_minus_L=yes 16617 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16618 # Neither direct hardcoding nor static linking is supported with a 16619 # broken collect2. 16620 hardcode_direct=unsupported 16621 fi 16622 ;; 16623 16624 aix[4-9]*) 16625 if test ia64 = "$host_cpu"; then 16626 # On IA64, the linker does run time linking by default, so we don't 16627 # have to do anything special. 16628 aix_use_runtimelinking=no 16629 exp_sym_flag='-Bexport' 16630 no_entry_flag= 16631 else 16632 # If we're using GNU nm, then we don't want the "-C" option. 16633 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16634 # Without the "-l" option, or with the "-B" option, AIX nm treats 16635 # weak defined symbols like other global defined symbols, whereas 16636 # GNU nm marks them as "W". 16637 # While the 'weak' keyword is ignored in the Export File, we need 16638 # it in the Import File for the 'aix-soname' feature, so we have 16639 # to replace the "-B" option with "-P" for AIX nm. 16640 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16641 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' 16642 else 16643 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16644 fi 16645 aix_use_runtimelinking=no 16646 16647 # Test if we are trying to use run time linking or normal 16648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16649 # have runtime linking enabled, and use it for executables. 16650 # For shared libraries, we enable/disable runtime linking 16651 # depending on the kind of the shared library created - 16652 # when "with_aix_soname,aix_use_runtimelinking" is: 16653 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16654 # "aix,yes" lib.so shared, rtl:yes, for executables 16655 # lib.a static archive 16656 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16657 # lib.a(lib.so.V) shared, rtl:no, for executables 16658 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16659 # lib.a(lib.so.V) shared, rtl:no 16660 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16661 # lib.a static archive 16662 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16663 for ld_flag in $LDFLAGS; do 16664 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16665 aix_use_runtimelinking=yes 16666 break 16667 fi 16668 done 16669 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16670 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16671 # so we don't have lib.a shared libs to link our executables. 16672 # We have to force runtime linking in this case. 16673 aix_use_runtimelinking=yes 16674 LDFLAGS="$LDFLAGS -Wl,-brtl" 16675 fi 16676 ;; 16677 esac 16678 16679 exp_sym_flag='-bexport' 16680 no_entry_flag='-bnoentry' 16681 fi 16682 16683 # When large executables or shared objects are built, AIX ld can 16684 # have problems creating the table of contents. If linking a library 16685 # or program results in "error TOC overflow" add -mminimal-toc to 16686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16688 16689 archive_cmds='' 16690 hardcode_direct=yes 16691 hardcode_direct_absolute=yes 16692 hardcode_libdir_separator=':' 16693 link_all_deplibs=yes 16694 file_list_spec='$wl-f,' 16695 case $with_aix_soname,$aix_use_runtimelinking in 16696 aix,*) ;; # traditional, no import file 16697 svr4,* | *,yes) # use import file 16698 # The Import File defines what to hardcode. 16699 hardcode_direct=no 16700 hardcode_direct_absolute=no 16701 ;; 16702 esac 16703 16704 if test yes = "$GCC"; then 16705 case $host_os in aix4.[012]|aix4.[012].*) 16706 # We only want to do this on AIX 4.2 and lower, the check 16707 # below for broken collect2 doesn't work under 4.3+ 16708 collect2name=`$CC -print-prog-name=collect2` 16709 if test -f "$collect2name" && 16710 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16711 then 16712 # We have reworked collect2 16713 : 16714 else 16715 # We have old collect2 16716 hardcode_direct=unsupported 16717 # It fails to find uninstalled libraries when the uninstalled 16718 # path is not listed in the libpath. Setting hardcode_minus_L 16719 # to unsupported forces relinking 16720 hardcode_minus_L=yes 16721 hardcode_libdir_flag_spec='-L$libdir' 16722 hardcode_libdir_separator= 16723 fi 16724 ;; 16725 esac 16726 shared_flag='-shared' 16727 if test yes = "$aix_use_runtimelinking"; then 16728 shared_flag="$shared_flag "'$wl-G' 16729 fi 16730 # Need to ensure runtime linking is disabled for the traditional 16731 # shared library, or the linker may eventually find shared libraries 16732 # /with/ Import File - we do not want to mix them. 16733 shared_flag_aix='-shared' 16734 shared_flag_svr4='-shared $wl-G' 16735 else 16736 # not using gcc 16737 if test ia64 = "$host_cpu"; then 16738 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16739 # chokes on -Wl,-G. The following line is correct: 16740 shared_flag='-G' 16741 else 16742 if test yes = "$aix_use_runtimelinking"; then 16743 shared_flag='$wl-G' 16744 else 16745 shared_flag='$wl-bM:SRE' 16746 fi 16747 shared_flag_aix='$wl-bM:SRE' 16748 shared_flag_svr4='$wl-G' 16749 fi 16750 fi 16751 16752 export_dynamic_flag_spec='$wl-bexpall' 16753 # It seems that -bexpall does not export symbols beginning with 16754 # underscore (_), so it is better to generate a list of symbols to export. 16755 always_export_symbols=yes 16756 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16757 # Warning - without using the other runtime loading flags (-brtl), 16758 # -berok will link without error, but may produce a broken library. 16759 allow_undefined_flag='-berok' 16760 # Determine the default libpath from the value encoded in an 16761 # empty executable. 16762 if test set = "${lt_cv_aix_libpath+set}"; then 16763 aix_libpath=$lt_cv_aix_libpath 16764else 16765 if test ${lt_cv_aix_libpath_+y} 16766then : 16767 printf %s "(cached) " >&6 16768else $as_nop 16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16770/* end confdefs.h. */ 16771 16772int 16773main (void) 16774{ 16775 16776 ; 16777 return 0; 16778} 16779_ACEOF 16780if ac_fn_c_try_link "$LINENO" 16781then : 16782 16783 lt_aix_libpath_sed=' 16784 /Import File Strings/,/^$/ { 16785 /^0/ { 16786 s/^0 *\([^ ]*\) *$/\1/ 16787 p 16788 } 16789 }' 16790 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16791 # Check for a 64-bit object if we didn't find anything. 16792 if test -z "$lt_cv_aix_libpath_"; then 16793 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16794 fi 16795fi 16796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16797 conftest$ac_exeext conftest.$ac_ext 16798 if test -z "$lt_cv_aix_libpath_"; then 16799 lt_cv_aix_libpath_=/usr/lib:/lib 16800 fi 16801 16802fi 16803 16804 aix_libpath=$lt_cv_aix_libpath_ 16805fi 16806 16807 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16808 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 16809 else 16810 if test ia64 = "$host_cpu"; then 16811 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16812 allow_undefined_flag="-z nodefs" 16813 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" 16814 else 16815 # Determine the default libpath from the value encoded in an 16816 # empty executable. 16817 if test set = "${lt_cv_aix_libpath+set}"; then 16818 aix_libpath=$lt_cv_aix_libpath 16819else 16820 if test ${lt_cv_aix_libpath_+y} 16821then : 16822 printf %s "(cached) " >&6 16823else $as_nop 16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16825/* end confdefs.h. */ 16826 16827int 16828main (void) 16829{ 16830 16831 ; 16832 return 0; 16833} 16834_ACEOF 16835if ac_fn_c_try_link "$LINENO" 16836then : 16837 16838 lt_aix_libpath_sed=' 16839 /Import File Strings/,/^$/ { 16840 /^0/ { 16841 s/^0 *\([^ ]*\) *$/\1/ 16842 p 16843 } 16844 }' 16845 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16846 # Check for a 64-bit object if we didn't find anything. 16847 if test -z "$lt_cv_aix_libpath_"; then 16848 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16849 fi 16850fi 16851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16852 conftest$ac_exeext conftest.$ac_ext 16853 if test -z "$lt_cv_aix_libpath_"; then 16854 lt_cv_aix_libpath_=/usr/lib:/lib 16855 fi 16856 16857fi 16858 16859 aix_libpath=$lt_cv_aix_libpath_ 16860fi 16861 16862 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16863 # Warning - without using the other run time loading flags, 16864 # -berok will link without error, but may produce a broken library. 16865 no_undefined_flag=' $wl-bernotok' 16866 allow_undefined_flag=' $wl-berok' 16867 if test yes = "$with_gnu_ld"; then 16868 # We only use this code for GNU lds that support --whole-archive. 16869 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16870 else 16871 # Exported symbols can be pulled into shared objects from archives 16872 whole_archive_flag_spec='$convenience' 16873 fi 16874 archive_cmds_need_lc=yes 16875 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16876 # -brtl affects multiple linker settings, -berok does not and is overridden later 16877 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16878 if test svr4 != "$with_aix_soname"; then 16879 # This is similar to how AIX traditionally builds its shared libraries. 16880 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' 16881 fi 16882 if test aix != "$with_aix_soname"; then 16883 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' 16884 else 16885 # used by -dlpreopen to get the symbols 16886 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16887 fi 16888 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16889 fi 16890 fi 16891 ;; 16892 16893 amigaos*) 16894 case $host_cpu in 16895 powerpc) 16896 # see comment about AmigaOS4 .so support 16897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16898 archive_expsym_cmds='' 16899 ;; 16900 m68k) 16901 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)' 16902 hardcode_libdir_flag_spec='-L$libdir' 16903 hardcode_minus_L=yes 16904 ;; 16905 esac 16906 ;; 16907 16908 bsdi[45]*) 16909 export_dynamic_flag_spec=-rdynamic 16910 ;; 16911 16912 cygwin* | mingw* | pw32* | cegcc*) 16913 # When not using gcc, we currently assume that we are using 16914 # Microsoft Visual C++ or Intel C++ Compiler. 16915 # hardcode_libdir_flag_spec is actually meaningless, as there is 16916 # no search path for DLLs. 16917 case $cc_basename in 16918 cl* | icl*) 16919 # Native MSVC or ICC 16920 hardcode_libdir_flag_spec=' ' 16921 allow_undefined_flag=unsupported 16922 always_export_symbols=yes 16923 file_list_spec='@' 16924 # Tell ltmain to make .lib files, not .a files. 16925 libext=lib 16926 # Tell ltmain to make .dll files, not .so files. 16927 shrext_cmds=.dll 16928 # FIXME: Setting linknames here is a bad hack. 16929 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16930 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16931 cp "$export_symbols" "$output_objdir/$soname.def"; 16932 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16933 else 16934 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16935 fi~ 16936 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16937 linknames=' 16938 # The linker will not automatically build a static lib if we build a DLL. 16939 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16940 enable_shared_with_static_runtimes=yes 16941 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16942 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16943 # Don't use ranlib 16944 old_postinstall_cmds='chmod 644 $oldlib' 16945 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16946 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16947 case $lt_outputfile in 16948 *.exe|*.EXE) ;; 16949 *) 16950 lt_outputfile=$lt_outputfile.exe 16951 lt_tool_outputfile=$lt_tool_outputfile.exe 16952 ;; 16953 esac~ 16954 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16955 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16956 $RM "$lt_outputfile.manifest"; 16957 fi' 16958 ;; 16959 *) 16960 # Assume MSVC and ICC wrapper 16961 hardcode_libdir_flag_spec=' ' 16962 allow_undefined_flag=unsupported 16963 # Tell ltmain to make .lib files, not .a files. 16964 libext=lib 16965 # Tell ltmain to make .dll files, not .so files. 16966 shrext_cmds=.dll 16967 # FIXME: Setting linknames here is a bad hack. 16968 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16969 # The linker will automatically build a .lib file if we build a DLL. 16970 old_archive_from_new_cmds='true' 16971 # FIXME: Should let the user specify the lib program. 16972 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16973 enable_shared_with_static_runtimes=yes 16974 ;; 16975 esac 16976 ;; 16977 16978 darwin* | rhapsody*) 16979 16980 16981 archive_cmds_need_lc=no 16982 hardcode_direct=no 16983 hardcode_automatic=yes 16984 hardcode_shlibpath_var=unsupported 16985 if test yes = "$lt_cv_ld_force_load"; then 16986 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\"`' 16987 16988 else 16989 whole_archive_flag_spec='' 16990 fi 16991 link_all_deplibs=yes 16992 allow_undefined_flag=$_lt_dar_allow_undefined 16993 case $cc_basename in 16994 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16995 *) _lt_dar_can_shared=$GCC ;; 16996 esac 16997 if test yes = "$_lt_dar_can_shared"; then 16998 output_verbose_link_cmd=func_echo_all 16999 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17000 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17001 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" 17002 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" 17003 17004 else 17005 ld_shlibs=no 17006 fi 17007 17008 ;; 17009 17010 dgux*) 17011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17012 hardcode_libdir_flag_spec='-L$libdir' 17013 hardcode_shlibpath_var=no 17014 ;; 17015 17016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17017 # support. Future versions do this automatically, but an explicit c++rt0.o 17018 # does not break anything, and helps significantly (at the cost of a little 17019 # extra space). 17020 freebsd2.2*) 17021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17022 hardcode_libdir_flag_spec='-R$libdir' 17023 hardcode_direct=yes 17024 hardcode_shlibpath_var=no 17025 ;; 17026 17027 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17028 freebsd2.*) 17029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17030 hardcode_direct=yes 17031 hardcode_minus_L=yes 17032 hardcode_shlibpath_var=no 17033 ;; 17034 17035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17036 freebsd* | dragonfly* | midnightbsd*) 17037 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17038 hardcode_libdir_flag_spec='-R$libdir' 17039 hardcode_direct=yes 17040 hardcode_shlibpath_var=no 17041 ;; 17042 17043 hpux9*) 17044 if test yes = "$GCC"; then 17045 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' 17046 else 17047 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' 17048 fi 17049 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17050 hardcode_libdir_separator=: 17051 hardcode_direct=yes 17052 17053 # hardcode_minus_L: Not really in the search PATH, 17054 # but as the default location of the library. 17055 hardcode_minus_L=yes 17056 export_dynamic_flag_spec='$wl-E' 17057 ;; 17058 17059 hpux10*) 17060 if test yes,no = "$GCC,$with_gnu_ld"; then 17061 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17062 else 17063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17064 fi 17065 if test no = "$with_gnu_ld"; then 17066 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17067 hardcode_libdir_separator=: 17068 hardcode_direct=yes 17069 hardcode_direct_absolute=yes 17070 export_dynamic_flag_spec='$wl-E' 17071 # hardcode_minus_L: Not really in the search PATH, 17072 # but as the default location of the library. 17073 hardcode_minus_L=yes 17074 fi 17075 ;; 17076 17077 hpux11*) 17078 if test yes,no = "$GCC,$with_gnu_ld"; then 17079 case $host_cpu in 17080 hppa*64*) 17081 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17082 ;; 17083 ia64*) 17084 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17085 ;; 17086 *) 17087 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17088 ;; 17089 esac 17090 else 17091 case $host_cpu in 17092 hppa*64*) 17093 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17094 ;; 17095 ia64*) 17096 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17097 ;; 17098 *) 17099 17100 # Older versions of the 11.00 compiler do not understand -b yet 17101 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17103printf %s "checking if $CC understands -b... " >&6; } 17104if test ${lt_cv_prog_compiler__b+y} 17105then : 17106 printf %s "(cached) " >&6 17107else $as_nop 17108 lt_cv_prog_compiler__b=no 17109 save_LDFLAGS=$LDFLAGS 17110 LDFLAGS="$LDFLAGS -b" 17111 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17113 # The linker can only warn and ignore the option if not recognized 17114 # So say no if there are warnings 17115 if test -s conftest.err; then 17116 # Append any errors to the config.log. 17117 cat conftest.err 1>&5 17118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17120 if diff conftest.exp conftest.er2 >/dev/null; then 17121 lt_cv_prog_compiler__b=yes 17122 fi 17123 else 17124 lt_cv_prog_compiler__b=yes 17125 fi 17126 fi 17127 $RM -r conftest* 17128 LDFLAGS=$save_LDFLAGS 17129 17130fi 17131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17132printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17133 17134if test yes = "$lt_cv_prog_compiler__b"; then 17135 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17136else 17137 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17138fi 17139 17140 ;; 17141 esac 17142 fi 17143 if test no = "$with_gnu_ld"; then 17144 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17145 hardcode_libdir_separator=: 17146 17147 case $host_cpu in 17148 hppa*64*|ia64*) 17149 hardcode_direct=no 17150 hardcode_shlibpath_var=no 17151 ;; 17152 *) 17153 hardcode_direct=yes 17154 hardcode_direct_absolute=yes 17155 export_dynamic_flag_spec='$wl-E' 17156 17157 # hardcode_minus_L: Not really in the search PATH, 17158 # but as the default location of the library. 17159 hardcode_minus_L=yes 17160 ;; 17161 esac 17162 fi 17163 ;; 17164 17165 irix5* | irix6* | nonstopux*) 17166 if test yes = "$GCC"; then 17167 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' 17168 # Try to use the -exported_symbol ld option, if it does not 17169 # work, assume that -exports_file does not work either and 17170 # implicitly export all symbols. 17171 # This should be the same for all languages, so no per-tag cache variable. 17172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17173printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17174if test ${lt_cv_irix_exported_symbol+y} 17175then : 17176 printf %s "(cached) " >&6 17177else $as_nop 17178 save_LDFLAGS=$LDFLAGS 17179 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17181/* end confdefs.h. */ 17182int foo (void) { return 0; } 17183_ACEOF 17184if ac_fn_c_try_link "$LINENO" 17185then : 17186 lt_cv_irix_exported_symbol=yes 17187else $as_nop 17188 lt_cv_irix_exported_symbol=no 17189fi 17190rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17191 conftest$ac_exeext conftest.$ac_ext 17192 LDFLAGS=$save_LDFLAGS 17193fi 17194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17195printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17196 if test yes = "$lt_cv_irix_exported_symbol"; then 17197 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' 17198 fi 17199 else 17200 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' 17201 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' 17202 fi 17203 archive_cmds_need_lc='no' 17204 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17205 hardcode_libdir_separator=: 17206 inherit_rpath=yes 17207 link_all_deplibs=yes 17208 ;; 17209 17210 linux*) 17211 case $cc_basename in 17212 tcc*) 17213 # Fabrice Bellard et al's Tiny C Compiler 17214 ld_shlibs=yes 17215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17216 ;; 17217 esac 17218 ;; 17219 17220 netbsd*) 17221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17223 else 17224 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17225 fi 17226 hardcode_libdir_flag_spec='-R$libdir' 17227 hardcode_direct=yes 17228 hardcode_shlibpath_var=no 17229 ;; 17230 17231 newsos6) 17232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17233 hardcode_direct=yes 17234 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17235 hardcode_libdir_separator=: 17236 hardcode_shlibpath_var=no 17237 ;; 17238 17239 *nto* | *qnx*) 17240 ;; 17241 17242 openbsd* | bitrig*) 17243 if test -f /usr/libexec/ld.so; then 17244 hardcode_direct=yes 17245 hardcode_shlibpath_var=no 17246 hardcode_direct_absolute=yes 17247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17248 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17249 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17250 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17251 export_dynamic_flag_spec='$wl-E' 17252 else 17253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17254 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17255 fi 17256 else 17257 ld_shlibs=no 17258 fi 17259 ;; 17260 17261 os2*) 17262 hardcode_libdir_flag_spec='-L$libdir' 17263 hardcode_minus_L=yes 17264 allow_undefined_flag=unsupported 17265 shrext_cmds=.dll 17266 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17267 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17268 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17269 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17270 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17271 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17272 emximp -o $lib $output_objdir/$libname.def' 17273 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17274 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17275 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17276 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17277 prefix_cmds="$SED"~ 17278 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17279 prefix_cmds="$prefix_cmds -e 1d"; 17280 fi~ 17281 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17282 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17283 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17284 emximp -o $lib $output_objdir/$libname.def' 17285 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17286 enable_shared_with_static_runtimes=yes 17287 file_list_spec='@' 17288 ;; 17289 17290 osf3*) 17291 if test yes = "$GCC"; then 17292 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17293 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' 17294 else 17295 allow_undefined_flag=' -expect_unresolved \*' 17296 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' 17297 fi 17298 archive_cmds_need_lc='no' 17299 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17300 hardcode_libdir_separator=: 17301 ;; 17302 17303 osf4* | osf5*) # as osf3* with the addition of -msym flag 17304 if test yes = "$GCC"; then 17305 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17306 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' 17307 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17308 else 17309 allow_undefined_flag=' -expect_unresolved \*' 17310 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' 17311 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~ 17312 $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' 17313 17314 # Both c and cxx compiler support -rpath directly 17315 hardcode_libdir_flag_spec='-rpath $libdir' 17316 fi 17317 archive_cmds_need_lc='no' 17318 hardcode_libdir_separator=: 17319 ;; 17320 17321 solaris*) 17322 no_undefined_flag=' -z defs' 17323 if test yes = "$GCC"; then 17324 wlarc='$wl' 17325 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17326 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17327 $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' 17328 else 17329 case `$CC -V 2>&1` in 17330 *"Compilers 5.0"*) 17331 wlarc='' 17332 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17334 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17335 ;; 17336 *) 17337 wlarc='$wl' 17338 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17340 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17341 ;; 17342 esac 17343 fi 17344 hardcode_libdir_flag_spec='-R$libdir' 17345 hardcode_shlibpath_var=no 17346 case $host_os in 17347 solaris2.[0-5] | solaris2.[0-5].*) ;; 17348 *) 17349 # The compiler driver will combine and reorder linker options, 17350 # but understands '-z linker_flag'. GCC discards it without '$wl', 17351 # but is careful enough not to reorder. 17352 # Supported since Solaris 2.6 (maybe 2.5.1?) 17353 if test yes = "$GCC"; then 17354 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17355 else 17356 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17357 fi 17358 ;; 17359 esac 17360 link_all_deplibs=yes 17361 ;; 17362 17363 sunos4*) 17364 if test sequent = "$host_vendor"; then 17365 # Use $CC to link under sequent, because it throws in some extra .o 17366 # files that make .init and .fini sections work. 17367 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17368 else 17369 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17370 fi 17371 hardcode_libdir_flag_spec='-L$libdir' 17372 hardcode_direct=yes 17373 hardcode_minus_L=yes 17374 hardcode_shlibpath_var=no 17375 ;; 17376 17377 sysv4) 17378 case $host_vendor in 17379 sni) 17380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17381 hardcode_direct=yes # is this really true??? 17382 ;; 17383 siemens) 17384 ## LD is ld it makes a PLAMLIB 17385 ## CC just makes a GrossModule. 17386 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17387 reload_cmds='$CC -r -o $output$reload_objs' 17388 hardcode_direct=no 17389 ;; 17390 motorola) 17391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17392 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17393 ;; 17394 esac 17395 runpath_var='LD_RUN_PATH' 17396 hardcode_shlibpath_var=no 17397 ;; 17398 17399 sysv4.3*) 17400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17401 hardcode_shlibpath_var=no 17402 export_dynamic_flag_spec='-Bexport' 17403 ;; 17404 17405 sysv4*MP*) 17406 if test -d /usr/nec; then 17407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17408 hardcode_shlibpath_var=no 17409 runpath_var=LD_RUN_PATH 17410 hardcode_runpath_var=yes 17411 ld_shlibs=yes 17412 fi 17413 ;; 17414 17415 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17416 no_undefined_flag='$wl-z,text' 17417 archive_cmds_need_lc=no 17418 hardcode_shlibpath_var=no 17419 runpath_var='LD_RUN_PATH' 17420 17421 if test yes = "$GCC"; then 17422 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17423 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17424 else 17425 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17426 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17427 fi 17428 ;; 17429 17430 sysv5* | sco3.2v5* | sco5v6*) 17431 # Note: We CANNOT use -z defs as we might desire, because we do not 17432 # link with -lc, and that would cause any symbols used from libc to 17433 # always be unresolved, which means just about no library would 17434 # ever link correctly. If we're not using GNU ld we use -z text 17435 # though, which does catch some bad symbols but isn't as heavy-handed 17436 # as -z defs. 17437 no_undefined_flag='$wl-z,text' 17438 allow_undefined_flag='$wl-z,nodefs' 17439 archive_cmds_need_lc=no 17440 hardcode_shlibpath_var=no 17441 hardcode_libdir_flag_spec='$wl-R,$libdir' 17442 hardcode_libdir_separator=':' 17443 link_all_deplibs=yes 17444 export_dynamic_flag_spec='$wl-Bexport' 17445 runpath_var='LD_RUN_PATH' 17446 17447 if test yes = "$GCC"; then 17448 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17449 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17450 else 17451 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17452 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17453 fi 17454 ;; 17455 17456 uts4*) 17457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17458 hardcode_libdir_flag_spec='-L$libdir' 17459 hardcode_shlibpath_var=no 17460 ;; 17461 17462 *) 17463 ld_shlibs=no 17464 ;; 17465 esac 17466 17467 if test sni = "$host_vendor"; then 17468 case $host in 17469 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17470 export_dynamic_flag_spec='$wl-Blargedynsym' 17471 ;; 17472 esac 17473 fi 17474 fi 17475 17476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17477printf "%s\n" "$ld_shlibs" >&6; } 17478test no = "$ld_shlibs" && can_build_shared=no 17479 17480with_gnu_ld=$with_gnu_ld 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496# 17497# Do we need to explicitly link libc? 17498# 17499case "x$archive_cmds_need_lc" in 17500x|xyes) 17501 # Assume -lc should be added 17502 archive_cmds_need_lc=yes 17503 17504 if test yes,yes = "$GCC,$enable_shared"; then 17505 case $archive_cmds in 17506 *'~'*) 17507 # FIXME: we may have to deal with multi-command sequences. 17508 ;; 17509 '$CC '*) 17510 # Test whether the compiler implicitly links with -lc since on some 17511 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17512 # to ld, don't add -lc before -lgcc. 17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17514printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17515if test ${lt_cv_archive_cmds_need_lc+y} 17516then : 17517 printf %s "(cached) " >&6 17518else $as_nop 17519 $RM conftest* 17520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17521 17522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17523 (eval $ac_compile) 2>&5 17524 ac_status=$? 17525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17526 test $ac_status = 0; } 2>conftest.err; then 17527 soname=conftest 17528 lib=conftest 17529 libobjs=conftest.$ac_objext 17530 deplibs= 17531 wl=$lt_prog_compiler_wl 17532 pic_flag=$lt_prog_compiler_pic 17533 compiler_flags=-v 17534 linker_flags=-v 17535 verstring= 17536 output_objdir=. 17537 libname=conftest 17538 lt_save_allow_undefined_flag=$allow_undefined_flag 17539 allow_undefined_flag= 17540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17541 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17542 ac_status=$? 17543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17544 test $ac_status = 0; } 17545 then 17546 lt_cv_archive_cmds_need_lc=no 17547 else 17548 lt_cv_archive_cmds_need_lc=yes 17549 fi 17550 allow_undefined_flag=$lt_save_allow_undefined_flag 17551 else 17552 cat conftest.err 1>&5 17553 fi 17554 $RM conftest* 17555 17556fi 17557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17558printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17559 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17560 ;; 17561 esac 17562 fi 17563 ;; 17564esac 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17718printf %s "checking dynamic linker characteristics... " >&6; } 17719 17720if test yes = "$GCC"; then 17721 case $host_os in 17722 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17723 *) lt_awk_arg='/^libraries:/' ;; 17724 esac 17725 case $host_os in 17726 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17727 *) lt_sed_strip_eq='s|=/|/|g' ;; 17728 esac 17729 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17730 case $lt_search_path_spec in 17731 *\;*) 17732 # if the path contains ";" then we assume it to be the separator 17733 # otherwise default to the standard path separator (i.e. ":") - it is 17734 # assumed that no part of a normal pathname contains ";" but that should 17735 # okay in the real world where ";" in dirpaths is itself problematic. 17736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17737 ;; 17738 *) 17739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17740 ;; 17741 esac 17742 # Ok, now we have the path, separated by spaces, we can step through it 17743 # and add multilib dir if necessary... 17744 lt_tmp_lt_search_path_spec= 17745 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17746 # ...but if some path component already ends with the multilib dir we assume 17747 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17748 case "$lt_multi_os_dir; $lt_search_path_spec " in 17749 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17750 lt_multi_os_dir= 17751 ;; 17752 esac 17753 for lt_sys_path in $lt_search_path_spec; do 17754 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17756 elif test -n "$lt_multi_os_dir"; then 17757 test -d "$lt_sys_path" && \ 17758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17759 fi 17760 done 17761 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17762BEGIN {RS = " "; FS = "/|\n";} { 17763 lt_foo = ""; 17764 lt_count = 0; 17765 for (lt_i = NF; lt_i > 0; lt_i--) { 17766 if ($lt_i != "" && $lt_i != ".") { 17767 if ($lt_i == "..") { 17768 lt_count++; 17769 } else { 17770 if (lt_count == 0) { 17771 lt_foo = "/" $lt_i lt_foo; 17772 } else { 17773 lt_count--; 17774 } 17775 } 17776 } 17777 } 17778 if (lt_foo != "") { lt_freq[lt_foo]++; } 17779 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17780}'` 17781 # AWK program above erroneously prepends '/' to C:/dos/paths 17782 # for these hosts. 17783 case $host_os in 17784 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17785 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17786 esac 17787 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17788else 17789 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17790fi 17791library_names_spec= 17792libname_spec='lib$name' 17793soname_spec= 17794shrext_cmds=.so 17795postinstall_cmds= 17796postuninstall_cmds= 17797finish_cmds= 17798finish_eval= 17799shlibpath_var= 17800shlibpath_overrides_runpath=unknown 17801version_type=none 17802dynamic_linker="$host_os ld.so" 17803sys_lib_dlsearch_path_spec="/lib /usr/lib" 17804need_lib_prefix=unknown 17805hardcode_into_libs=no 17806 17807# when you set need_version to no, make sure it does not cause -set_version 17808# flags to be left without arguments 17809need_version=unknown 17810 17811 17812 17813case $host_os in 17814aix3*) 17815 version_type=linux # correct to gnu/linux during the next big refactor 17816 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17817 shlibpath_var=LIBPATH 17818 17819 # AIX 3 has no versioning support, so we append a major version to the name. 17820 soname_spec='$libname$release$shared_ext$major' 17821 ;; 17822 17823aix[4-9]*) 17824 version_type=linux # correct to gnu/linux during the next big refactor 17825 need_lib_prefix=no 17826 need_version=no 17827 hardcode_into_libs=yes 17828 if test ia64 = "$host_cpu"; then 17829 # AIX 5 supports IA64 17830 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17831 shlibpath_var=LD_LIBRARY_PATH 17832 else 17833 # With GCC up to 2.95.x, collect2 would create an import file 17834 # for dependence libraries. The import file would start with 17835 # the line '#! .'. This would cause the generated library to 17836 # depend on '.', always an invalid library. This was fixed in 17837 # development snapshots of GCC prior to 3.0. 17838 case $host_os in 17839 aix4 | aix4.[01] | aix4.[01].*) 17840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17841 echo ' yes ' 17842 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17843 : 17844 else 17845 can_build_shared=no 17846 fi 17847 ;; 17848 esac 17849 # Using Import Files as archive members, it is possible to support 17850 # filename-based versioning of shared library archives on AIX. While 17851 # this would work for both with and without runtime linking, it will 17852 # prevent static linking of such archives. So we do filename-based 17853 # shared library versioning with .so extension only, which is used 17854 # when both runtime linking and shared linking is enabled. 17855 # Unfortunately, runtime linking may impact performance, so we do 17856 # not want this to be the default eventually. Also, we use the 17857 # versioned .so libs for executables only if there is the -brtl 17858 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17859 # To allow for filename-based versioning support, we need to create 17860 # libNAME.so.V as an archive file, containing: 17861 # *) an Import File, referring to the versioned filename of the 17862 # archive as well as the shared archive member, telling the 17863 # bitwidth (32 or 64) of that shared object, and providing the 17864 # list of exported symbols of that shared object, eventually 17865 # decorated with the 'weak' keyword 17866 # *) the shared object with the F_LOADONLY flag set, to really avoid 17867 # it being seen by the linker. 17868 # At run time we better use the real file rather than another symlink, 17869 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17870 17871 case $with_aix_soname,$aix_use_runtimelinking in 17872 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17873 # soname into executable. Probably we can add versioning support to 17874 # collect2, so additional links can be useful in future. 17875 aix,yes) # traditional libtool 17876 dynamic_linker='AIX unversionable lib.so' 17877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17878 # instead of lib<name>.a to let people know that these are not 17879 # typical AIX shared libraries. 17880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17881 ;; 17882 aix,no) # traditional AIX only 17883 dynamic_linker='AIX lib.a(lib.so.V)' 17884 # We preserve .a as extension for shared libraries through AIX4.2 17885 # and later when we are not doing run time linking. 17886 library_names_spec='$libname$release.a $libname.a' 17887 soname_spec='$libname$release$shared_ext$major' 17888 ;; 17889 svr4,*) # full svr4 only 17890 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17891 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17892 # We do not specify a path in Import Files, so LIBPATH fires. 17893 shlibpath_overrides_runpath=yes 17894 ;; 17895 *,yes) # both, prefer svr4 17896 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17897 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17898 # unpreferred sharedlib libNAME.a needs extra handling 17899 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"' 17900 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"' 17901 # We do not specify a path in Import Files, so LIBPATH fires. 17902 shlibpath_overrides_runpath=yes 17903 ;; 17904 *,no) # both, prefer aix 17905 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17906 library_names_spec='$libname$release.a $libname.a' 17907 soname_spec='$libname$release$shared_ext$major' 17908 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17909 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)' 17910 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"' 17911 ;; 17912 esac 17913 shlibpath_var=LIBPATH 17914 fi 17915 ;; 17916 17917amigaos*) 17918 case $host_cpu in 17919 powerpc) 17920 # Since July 2007 AmigaOS4 officially supports .so libraries. 17921 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17923 ;; 17924 m68k) 17925 library_names_spec='$libname.ixlibrary $libname.a' 17926 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17927 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' 17928 ;; 17929 esac 17930 ;; 17931 17932beos*) 17933 library_names_spec='$libname$shared_ext' 17934 dynamic_linker="$host_os ld.so" 17935 shlibpath_var=LIBRARY_PATH 17936 ;; 17937 17938bsdi[45]*) 17939 version_type=linux # correct to gnu/linux during the next big refactor 17940 need_version=no 17941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17942 soname_spec='$libname$release$shared_ext$major' 17943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17944 shlibpath_var=LD_LIBRARY_PATH 17945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17947 # the default ld.so.conf also contains /usr/contrib/lib and 17948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17949 # libtool to hard-code these into programs 17950 ;; 17951 17952cygwin* | mingw* | pw32* | cegcc*) 17953 version_type=windows 17954 shrext_cmds=.dll 17955 need_version=no 17956 need_lib_prefix=no 17957 17958 case $GCC,$cc_basename in 17959 yes,*) 17960 # gcc 17961 library_names_spec='$libname.dll.a' 17962 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17963 postinstall_cmds='base_file=`basename \$file`~ 17964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17965 dldir=$destdir/`dirname \$dlpath`~ 17966 test -d \$dldir || mkdir -p \$dldir~ 17967 $install_prog $dir/$dlname \$dldir/$dlname~ 17968 chmod a+x \$dldir/$dlname~ 17969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17971 fi' 17972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17973 dlpath=$dir/\$dldll~ 17974 $RM \$dlpath' 17975 shlibpath_overrides_runpath=yes 17976 17977 case $host_os in 17978 cygwin*) 17979 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17980 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17981 17982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17983 ;; 17984 mingw* | cegcc*) 17985 # MinGW DLLs use traditional 'lib' prefix 17986 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17987 ;; 17988 pw32*) 17989 # pw32 DLLs use 'pw' prefix rather than 'lib' 17990 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17991 ;; 17992 esac 17993 dynamic_linker='Win32 ld.exe' 17994 ;; 17995 17996 *,cl* | *,icl*) 17997 # Native MSVC or ICC 17998 libname_spec='$name' 17999 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18000 library_names_spec='$libname.dll.lib' 18001 18002 case $build_os in 18003 mingw*) 18004 sys_lib_search_path_spec= 18005 lt_save_ifs=$IFS 18006 IFS=';' 18007 for lt_path in $LIB 18008 do 18009 IFS=$lt_save_ifs 18010 # Let DOS variable expansion print the short 8.3 style file name. 18011 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18012 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18013 done 18014 IFS=$lt_save_ifs 18015 # Convert to MSYS style. 18016 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18017 ;; 18018 cygwin*) 18019 # Convert to unix form, then to dos form, then back to unix form 18020 # but this time dos style (no spaces!) so that the unix form looks 18021 # like /cygdrive/c/PROGRA~1:/cygdr... 18022 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18023 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18024 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18025 ;; 18026 *) 18027 sys_lib_search_path_spec=$LIB 18028 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18029 # It is most probably a Windows format PATH. 18030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18031 else 18032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18033 fi 18034 # FIXME: find the short name or the path components, as spaces are 18035 # common. (e.g. "Program Files" -> "PROGRA~1") 18036 ;; 18037 esac 18038 18039 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18040 postinstall_cmds='base_file=`basename \$file`~ 18041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18042 dldir=$destdir/`dirname \$dlpath`~ 18043 test -d \$dldir || mkdir -p \$dldir~ 18044 $install_prog $dir/$dlname \$dldir/$dlname' 18045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18046 dlpath=$dir/\$dldll~ 18047 $RM \$dlpath' 18048 shlibpath_overrides_runpath=yes 18049 dynamic_linker='Win32 link.exe' 18050 ;; 18051 18052 *) 18053 # Assume MSVC and ICC wrapper 18054 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18055 dynamic_linker='Win32 ld.exe' 18056 ;; 18057 esac 18058 # FIXME: first we should search . and the directory the executable is in 18059 shlibpath_var=PATH 18060 ;; 18061 18062darwin* | rhapsody*) 18063 dynamic_linker="$host_os dyld" 18064 version_type=darwin 18065 need_lib_prefix=no 18066 need_version=no 18067 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18068 soname_spec='$libname$release$major$shared_ext' 18069 shlibpath_overrides_runpath=yes 18070 shlibpath_var=DYLD_LIBRARY_PATH 18071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18072 18073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18075 ;; 18076 18077dgux*) 18078 version_type=linux # correct to gnu/linux during the next big refactor 18079 need_lib_prefix=no 18080 need_version=no 18081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18082 soname_spec='$libname$release$shared_ext$major' 18083 shlibpath_var=LD_LIBRARY_PATH 18084 ;; 18085 18086freebsd* | dragonfly* | midnightbsd*) 18087 # DragonFly does not have aout. When/if they implement a new 18088 # versioning mechanism, adjust this. 18089 if test -x /usr/bin/objformat; then 18090 objformat=`/usr/bin/objformat` 18091 else 18092 case $host_os in 18093 freebsd[23].*) objformat=aout ;; 18094 *) objformat=elf ;; 18095 esac 18096 fi 18097 version_type=freebsd-$objformat 18098 case $version_type in 18099 freebsd-elf*) 18100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18101 soname_spec='$libname$release$shared_ext$major' 18102 need_version=no 18103 need_lib_prefix=no 18104 ;; 18105 freebsd-*) 18106 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18107 need_version=yes 18108 ;; 18109 esac 18110 shlibpath_var=LD_LIBRARY_PATH 18111 case $host_os in 18112 freebsd2.*) 18113 shlibpath_overrides_runpath=yes 18114 ;; 18115 freebsd3.[01]* | freebsdelf3.[01]*) 18116 shlibpath_overrides_runpath=yes 18117 hardcode_into_libs=yes 18118 ;; 18119 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18120 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18121 shlibpath_overrides_runpath=no 18122 hardcode_into_libs=yes 18123 ;; 18124 *) # from 4.6 on, and DragonFly 18125 shlibpath_overrides_runpath=yes 18126 hardcode_into_libs=yes 18127 ;; 18128 esac 18129 ;; 18130 18131haiku*) 18132 version_type=linux # correct to gnu/linux during the next big refactor 18133 need_lib_prefix=no 18134 need_version=no 18135 dynamic_linker="$host_os runtime_loader" 18136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18137 soname_spec='$libname$release$shared_ext$major' 18138 shlibpath_var=LIBRARY_PATH 18139 shlibpath_overrides_runpath=no 18140 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18141 hardcode_into_libs=yes 18142 ;; 18143 18144hpux9* | hpux10* | hpux11*) 18145 # Give a soname corresponding to the major version so that dld.sl refuses to 18146 # link against other versions. 18147 version_type=sunos 18148 need_lib_prefix=no 18149 need_version=no 18150 case $host_cpu in 18151 ia64*) 18152 shrext_cmds='.so' 18153 hardcode_into_libs=yes 18154 dynamic_linker="$host_os dld.so" 18155 shlibpath_var=LD_LIBRARY_PATH 18156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18158 soname_spec='$libname$release$shared_ext$major' 18159 if test 32 = "$HPUX_IA64_MODE"; then 18160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18161 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18162 else 18163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18164 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18165 fi 18166 ;; 18167 hppa*64*) 18168 shrext_cmds='.sl' 18169 hardcode_into_libs=yes 18170 dynamic_linker="$host_os dld.sl" 18171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18174 soname_spec='$libname$release$shared_ext$major' 18175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18177 ;; 18178 *) 18179 shrext_cmds='.sl' 18180 dynamic_linker="$host_os dld.sl" 18181 shlibpath_var=SHLIB_PATH 18182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18184 soname_spec='$libname$release$shared_ext$major' 18185 ;; 18186 esac 18187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18188 postinstall_cmds='chmod 555 $lib' 18189 # or fails outright, so override atomically: 18190 install_override_mode=555 18191 ;; 18192 18193interix[3-9]*) 18194 version_type=linux # correct to gnu/linux during the next big refactor 18195 need_lib_prefix=no 18196 need_version=no 18197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18198 soname_spec='$libname$release$shared_ext$major' 18199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18200 shlibpath_var=LD_LIBRARY_PATH 18201 shlibpath_overrides_runpath=no 18202 hardcode_into_libs=yes 18203 ;; 18204 18205irix5* | irix6* | nonstopux*) 18206 case $host_os in 18207 nonstopux*) version_type=nonstopux ;; 18208 *) 18209 if test yes = "$lt_cv_prog_gnu_ld"; then 18210 version_type=linux # correct to gnu/linux during the next big refactor 18211 else 18212 version_type=irix 18213 fi ;; 18214 esac 18215 need_lib_prefix=no 18216 need_version=no 18217 soname_spec='$libname$release$shared_ext$major' 18218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18219 case $host_os in 18220 irix5* | nonstopux*) 18221 libsuff= shlibsuff= 18222 ;; 18223 *) 18224 case $LD in # libtool.m4 will add one of these switches to LD 18225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18226 libsuff= shlibsuff= libmagic=32-bit;; 18227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18228 libsuff=32 shlibsuff=N32 libmagic=N32;; 18229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18230 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18231 *) libsuff= shlibsuff= libmagic=never-match;; 18232 esac 18233 ;; 18234 esac 18235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18236 shlibpath_overrides_runpath=no 18237 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18238 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18239 hardcode_into_libs=yes 18240 ;; 18241 18242# No shared lib support for Linux oldld, aout, or coff. 18243linux*oldld* | linux*aout* | linux*coff*) 18244 dynamic_linker=no 18245 ;; 18246 18247linux*android*) 18248 version_type=none # Android doesn't support versioned libraries. 18249 need_lib_prefix=no 18250 need_version=no 18251 library_names_spec='$libname$release$shared_ext' 18252 soname_spec='$libname$release$shared_ext' 18253 finish_cmds= 18254 shlibpath_var=LD_LIBRARY_PATH 18255 shlibpath_overrides_runpath=yes 18256 18257 # This implies no fast_install, which is unacceptable. 18258 # Some rework will be needed to allow for fast_install 18259 # before this can be enabled. 18260 hardcode_into_libs=yes 18261 18262 dynamic_linker='Android linker' 18263 # Don't embed -rpath directories since the linker doesn't support them. 18264 hardcode_libdir_flag_spec='-L$libdir' 18265 ;; 18266 18267# This must be glibc/ELF. 18268linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18269 version_type=linux # correct to gnu/linux during the next big refactor 18270 need_lib_prefix=no 18271 need_version=no 18272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18273 soname_spec='$libname$release$shared_ext$major' 18274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18275 shlibpath_var=LD_LIBRARY_PATH 18276 shlibpath_overrides_runpath=no 18277 18278 # Some binutils ld are patched to set DT_RUNPATH 18279 if test ${lt_cv_shlibpath_overrides_runpath+y} 18280then : 18281 printf %s "(cached) " >&6 18282else $as_nop 18283 lt_cv_shlibpath_overrides_runpath=no 18284 save_LDFLAGS=$LDFLAGS 18285 save_libdir=$libdir 18286 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18287 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18289/* end confdefs.h. */ 18290 18291int 18292main (void) 18293{ 18294 18295 ; 18296 return 0; 18297} 18298_ACEOF 18299if ac_fn_c_try_link "$LINENO" 18300then : 18301 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18302then : 18303 lt_cv_shlibpath_overrides_runpath=yes 18304fi 18305fi 18306rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18307 conftest$ac_exeext conftest.$ac_ext 18308 LDFLAGS=$save_LDFLAGS 18309 libdir=$save_libdir 18310 18311fi 18312 18313 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18314 18315 # This implies no fast_install, which is unacceptable. 18316 # Some rework will be needed to allow for fast_install 18317 # before this can be enabled. 18318 hardcode_into_libs=yes 18319 18320 # Ideally, we could use ldconfig to report *all* directores which are 18321 # searched for libraries, however this is still not possible. Aside from not 18322 # being certain /sbin/ldconfig is available, command 18323 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18324 # even though it is searched at run-time. Try to do the best guess by 18325 # appending ld.so.conf contents (and includes) to the search path. 18326 if test -f /etc/ld.so.conf; then 18327 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' ' '` 18328 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18329 fi 18330 18331 # We used to test for /lib/ld.so.1 and disable shared libraries on 18332 # powerpc, because MkLinux only supported shared libraries with the 18333 # GNU dynamic linker. Since this was broken with cross compilers, 18334 # most powerpc-linux boxes support dynamic linking these days and 18335 # people can always --disable-shared, the test was removed, and we 18336 # assume the GNU/Linux dynamic linker is in use. 18337 dynamic_linker='GNU/Linux ld.so' 18338 ;; 18339 18340netbsd*) 18341 version_type=sunos 18342 need_lib_prefix=no 18343 need_version=no 18344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18345 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18347 dynamic_linker='NetBSD (a.out) ld.so' 18348 else 18349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18350 soname_spec='$libname$release$shared_ext$major' 18351 dynamic_linker='NetBSD ld.elf_so' 18352 fi 18353 shlibpath_var=LD_LIBRARY_PATH 18354 shlibpath_overrides_runpath=yes 18355 hardcode_into_libs=yes 18356 ;; 18357 18358newsos6) 18359 version_type=linux # correct to gnu/linux during the next big refactor 18360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18361 shlibpath_var=LD_LIBRARY_PATH 18362 shlibpath_overrides_runpath=yes 18363 ;; 18364 18365*nto* | *qnx*) 18366 version_type=qnx 18367 need_lib_prefix=no 18368 need_version=no 18369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18370 soname_spec='$libname$release$shared_ext$major' 18371 shlibpath_var=LD_LIBRARY_PATH 18372 shlibpath_overrides_runpath=no 18373 hardcode_into_libs=yes 18374 dynamic_linker='ldqnx.so' 18375 ;; 18376 18377openbsd* | bitrig*) 18378 version_type=sunos 18379 sys_lib_dlsearch_path_spec=/usr/lib 18380 need_lib_prefix=no 18381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18382 need_version=no 18383 else 18384 need_version=yes 18385 fi 18386 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18388 shlibpath_var=LD_LIBRARY_PATH 18389 shlibpath_overrides_runpath=yes 18390 ;; 18391 18392os2*) 18393 libname_spec='$name' 18394 version_type=windows 18395 shrext_cmds=.dll 18396 need_version=no 18397 need_lib_prefix=no 18398 # OS/2 can only load a DLL with a base name of 8 characters or less. 18399 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18400 v=$($ECHO $release$versuffix | tr -d .-); 18401 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18402 $ECHO $n$v`$shared_ext' 18403 library_names_spec='${libname}_dll.$libext' 18404 dynamic_linker='OS/2 ld.exe' 18405 shlibpath_var=BEGINLIBPATH 18406 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18408 postinstall_cmds='base_file=`basename \$file`~ 18409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18410 dldir=$destdir/`dirname \$dlpath`~ 18411 test -d \$dldir || mkdir -p \$dldir~ 18412 $install_prog $dir/$dlname \$dldir/$dlname~ 18413 chmod a+x \$dldir/$dlname~ 18414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18416 fi' 18417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18418 dlpath=$dir/\$dldll~ 18419 $RM \$dlpath' 18420 ;; 18421 18422osf3* | osf4* | osf5*) 18423 version_type=osf 18424 need_lib_prefix=no 18425 need_version=no 18426 soname_spec='$libname$release$shared_ext$major' 18427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18428 shlibpath_var=LD_LIBRARY_PATH 18429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18431 ;; 18432 18433rdos*) 18434 dynamic_linker=no 18435 ;; 18436 18437solaris*) 18438 version_type=linux # correct to gnu/linux during the next big refactor 18439 need_lib_prefix=no 18440 need_version=no 18441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18442 soname_spec='$libname$release$shared_ext$major' 18443 shlibpath_var=LD_LIBRARY_PATH 18444 shlibpath_overrides_runpath=yes 18445 hardcode_into_libs=yes 18446 # ldd complains unless libraries are executable 18447 postinstall_cmds='chmod +x $lib' 18448 ;; 18449 18450sunos4*) 18451 version_type=sunos 18452 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18454 shlibpath_var=LD_LIBRARY_PATH 18455 shlibpath_overrides_runpath=yes 18456 if test yes = "$with_gnu_ld"; then 18457 need_lib_prefix=no 18458 fi 18459 need_version=yes 18460 ;; 18461 18462sysv4 | sysv4.3*) 18463 version_type=linux # correct to gnu/linux during the next big refactor 18464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18465 soname_spec='$libname$release$shared_ext$major' 18466 shlibpath_var=LD_LIBRARY_PATH 18467 case $host_vendor in 18468 sni) 18469 shlibpath_overrides_runpath=no 18470 need_lib_prefix=no 18471 runpath_var=LD_RUN_PATH 18472 ;; 18473 siemens) 18474 need_lib_prefix=no 18475 ;; 18476 motorola) 18477 need_lib_prefix=no 18478 need_version=no 18479 shlibpath_overrides_runpath=no 18480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18481 ;; 18482 esac 18483 ;; 18484 18485sysv4*MP*) 18486 if test -d /usr/nec; then 18487 version_type=linux # correct to gnu/linux during the next big refactor 18488 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18489 soname_spec='$libname$shared_ext.$major' 18490 shlibpath_var=LD_LIBRARY_PATH 18491 fi 18492 ;; 18493 18494sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18495 version_type=sco 18496 need_lib_prefix=no 18497 need_version=no 18498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18499 soname_spec='$libname$release$shared_ext$major' 18500 shlibpath_var=LD_LIBRARY_PATH 18501 shlibpath_overrides_runpath=yes 18502 hardcode_into_libs=yes 18503 if test yes = "$with_gnu_ld"; then 18504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18505 else 18506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18507 case $host_os in 18508 sco3.2v5*) 18509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18510 ;; 18511 esac 18512 fi 18513 sys_lib_dlsearch_path_spec='/usr/lib' 18514 ;; 18515 18516tpf*) 18517 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18518 version_type=linux # correct to gnu/linux during the next big refactor 18519 need_lib_prefix=no 18520 need_version=no 18521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18522 shlibpath_var=LD_LIBRARY_PATH 18523 shlibpath_overrides_runpath=no 18524 hardcode_into_libs=yes 18525 ;; 18526 18527uts4*) 18528 version_type=linux # correct to gnu/linux during the next big refactor 18529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18530 soname_spec='$libname$release$shared_ext$major' 18531 shlibpath_var=LD_LIBRARY_PATH 18532 ;; 18533 18534*) 18535 dynamic_linker=no 18536 ;; 18537esac 18538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18539printf "%s\n" "$dynamic_linker" >&6; } 18540test no = "$dynamic_linker" && can_build_shared=no 18541 18542variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18543if test yes = "$GCC"; then 18544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18545fi 18546 18547if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18548 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18549fi 18550 18551if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18552 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18553fi 18554 18555# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18556configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18557 18558# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18559func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18560 18561# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18562configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18661printf %s "checking how to hardcode library paths into programs... " >&6; } 18662hardcode_action= 18663if test -n "$hardcode_libdir_flag_spec" || 18664 test -n "$runpath_var" || 18665 test yes = "$hardcode_automatic"; then 18666 18667 # We can hardcode non-existent directories. 18668 if test no != "$hardcode_direct" && 18669 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18670 # have to relink, otherwise we might link with an installed library 18671 # when we should be linking with a yet-to-be-installed one 18672 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18673 test no != "$hardcode_minus_L"; then 18674 # Linking always hardcodes the temporary library directory. 18675 hardcode_action=relink 18676 else 18677 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18678 hardcode_action=immediate 18679 fi 18680else 18681 # We cannot hardcode anything, or else we can only hardcode existing 18682 # directories. 18683 hardcode_action=unsupported 18684fi 18685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18686printf "%s\n" "$hardcode_action" >&6; } 18687 18688if test relink = "$hardcode_action" || 18689 test yes = "$inherit_rpath"; then 18690 # Fast installation is not supported 18691 enable_fast_install=no 18692elif test yes = "$shlibpath_overrides_runpath" || 18693 test no = "$enable_shared"; then 18694 # Fast installation is not necessary 18695 enable_fast_install=needless 18696fi 18697 18698 18699 18700 18701 18702 18703 if test yes != "$enable_dlopen"; then 18704 enable_dlopen=unknown 18705 enable_dlopen_self=unknown 18706 enable_dlopen_self_static=unknown 18707else 18708 lt_cv_dlopen=no 18709 lt_cv_dlopen_libs= 18710 18711 case $host_os in 18712 beos*) 18713 lt_cv_dlopen=load_add_on 18714 lt_cv_dlopen_libs= 18715 lt_cv_dlopen_self=yes 18716 ;; 18717 18718 mingw* | pw32* | cegcc*) 18719 lt_cv_dlopen=LoadLibrary 18720 lt_cv_dlopen_libs= 18721 ;; 18722 18723 cygwin*) 18724 lt_cv_dlopen=dlopen 18725 lt_cv_dlopen_libs= 18726 ;; 18727 18728 darwin*) 18729 # if libdl is installed we need to link against it 18730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18731printf %s "checking for dlopen in -ldl... " >&6; } 18732if test ${ac_cv_lib_dl_dlopen+y} 18733then : 18734 printf %s "(cached) " >&6 18735else $as_nop 18736 ac_check_lib_save_LIBS=$LIBS 18737LIBS="-ldl $LIBS" 18738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18739/* end confdefs.h. */ 18740 18741/* Override any GCC internal prototype to avoid an error. 18742 Use char because int might match the return type of a GCC 18743 builtin and then its argument prototype would still apply. */ 18744char dlopen (); 18745int 18746main (void) 18747{ 18748return dlopen (); 18749 ; 18750 return 0; 18751} 18752_ACEOF 18753if ac_fn_c_try_link "$LINENO" 18754then : 18755 ac_cv_lib_dl_dlopen=yes 18756else $as_nop 18757 ac_cv_lib_dl_dlopen=no 18758fi 18759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18760 conftest$ac_exeext conftest.$ac_ext 18761LIBS=$ac_check_lib_save_LIBS 18762fi 18763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18764printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18765if test "x$ac_cv_lib_dl_dlopen" = xyes 18766then : 18767 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18768else $as_nop 18769 18770 lt_cv_dlopen=dyld 18771 lt_cv_dlopen_libs= 18772 lt_cv_dlopen_self=yes 18773 18774fi 18775 18776 ;; 18777 18778 tpf*) 18779 # Don't try to run any link tests for TPF. We know it's impossible 18780 # because TPF is a cross-compiler, and we know how we open DSOs. 18781 lt_cv_dlopen=dlopen 18782 lt_cv_dlopen_libs= 18783 lt_cv_dlopen_self=no 18784 ;; 18785 18786 *) 18787 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18788if test "x$ac_cv_func_shl_load" = xyes 18789then : 18790 lt_cv_dlopen=shl_load 18791else $as_nop 18792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18793printf %s "checking for shl_load in -ldld... " >&6; } 18794if test ${ac_cv_lib_dld_shl_load+y} 18795then : 18796 printf %s "(cached) " >&6 18797else $as_nop 18798 ac_check_lib_save_LIBS=$LIBS 18799LIBS="-ldld $LIBS" 18800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18801/* end confdefs.h. */ 18802 18803/* Override any GCC internal prototype to avoid an error. 18804 Use char because int might match the return type of a GCC 18805 builtin and then its argument prototype would still apply. */ 18806char shl_load (); 18807int 18808main (void) 18809{ 18810return shl_load (); 18811 ; 18812 return 0; 18813} 18814_ACEOF 18815if ac_fn_c_try_link "$LINENO" 18816then : 18817 ac_cv_lib_dld_shl_load=yes 18818else $as_nop 18819 ac_cv_lib_dld_shl_load=no 18820fi 18821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18822 conftest$ac_exeext conftest.$ac_ext 18823LIBS=$ac_check_lib_save_LIBS 18824fi 18825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18826printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18827if test "x$ac_cv_lib_dld_shl_load" = xyes 18828then : 18829 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18830else $as_nop 18831 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18832if test "x$ac_cv_func_dlopen" = xyes 18833then : 18834 lt_cv_dlopen=dlopen 18835else $as_nop 18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18837printf %s "checking for dlopen in -ldl... " >&6; } 18838if test ${ac_cv_lib_dl_dlopen+y} 18839then : 18840 printf %s "(cached) " >&6 18841else $as_nop 18842 ac_check_lib_save_LIBS=$LIBS 18843LIBS="-ldl $LIBS" 18844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18845/* end confdefs.h. */ 18846 18847/* Override any GCC internal prototype to avoid an error. 18848 Use char because int might match the return type of a GCC 18849 builtin and then its argument prototype would still apply. */ 18850char dlopen (); 18851int 18852main (void) 18853{ 18854return dlopen (); 18855 ; 18856 return 0; 18857} 18858_ACEOF 18859if ac_fn_c_try_link "$LINENO" 18860then : 18861 ac_cv_lib_dl_dlopen=yes 18862else $as_nop 18863 ac_cv_lib_dl_dlopen=no 18864fi 18865rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18866 conftest$ac_exeext conftest.$ac_ext 18867LIBS=$ac_check_lib_save_LIBS 18868fi 18869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18870printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18871if test "x$ac_cv_lib_dl_dlopen" = xyes 18872then : 18873 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18874else $as_nop 18875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18876printf %s "checking for dlopen in -lsvld... " >&6; } 18877if test ${ac_cv_lib_svld_dlopen+y} 18878then : 18879 printf %s "(cached) " >&6 18880else $as_nop 18881 ac_check_lib_save_LIBS=$LIBS 18882LIBS="-lsvld $LIBS" 18883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18884/* end confdefs.h. */ 18885 18886/* Override any GCC internal prototype to avoid an error. 18887 Use char because int might match the return type of a GCC 18888 builtin and then its argument prototype would still apply. */ 18889char dlopen (); 18890int 18891main (void) 18892{ 18893return dlopen (); 18894 ; 18895 return 0; 18896} 18897_ACEOF 18898if ac_fn_c_try_link "$LINENO" 18899then : 18900 ac_cv_lib_svld_dlopen=yes 18901else $as_nop 18902 ac_cv_lib_svld_dlopen=no 18903fi 18904rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18905 conftest$ac_exeext conftest.$ac_ext 18906LIBS=$ac_check_lib_save_LIBS 18907fi 18908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18909printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18910if test "x$ac_cv_lib_svld_dlopen" = xyes 18911then : 18912 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18913else $as_nop 18914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18915printf %s "checking for dld_link in -ldld... " >&6; } 18916if test ${ac_cv_lib_dld_dld_link+y} 18917then : 18918 printf %s "(cached) " >&6 18919else $as_nop 18920 ac_check_lib_save_LIBS=$LIBS 18921LIBS="-ldld $LIBS" 18922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18923/* end confdefs.h. */ 18924 18925/* Override any GCC internal prototype to avoid an error. 18926 Use char because int might match the return type of a GCC 18927 builtin and then its argument prototype would still apply. */ 18928char dld_link (); 18929int 18930main (void) 18931{ 18932return dld_link (); 18933 ; 18934 return 0; 18935} 18936_ACEOF 18937if ac_fn_c_try_link "$LINENO" 18938then : 18939 ac_cv_lib_dld_dld_link=yes 18940else $as_nop 18941 ac_cv_lib_dld_dld_link=no 18942fi 18943rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18944 conftest$ac_exeext conftest.$ac_ext 18945LIBS=$ac_check_lib_save_LIBS 18946fi 18947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18948printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18949if test "x$ac_cv_lib_dld_dld_link" = xyes 18950then : 18951 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18952fi 18953 18954 18955fi 18956 18957 18958fi 18959 18960 18961fi 18962 18963 18964fi 18965 18966 18967fi 18968 18969 ;; 18970 esac 18971 18972 if test no = "$lt_cv_dlopen"; then 18973 enable_dlopen=no 18974 else 18975 enable_dlopen=yes 18976 fi 18977 18978 case $lt_cv_dlopen in 18979 dlopen) 18980 save_CPPFLAGS=$CPPFLAGS 18981 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18982 18983 save_LDFLAGS=$LDFLAGS 18984 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18985 18986 save_LIBS=$LIBS 18987 LIBS="$lt_cv_dlopen_libs $LIBS" 18988 18989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18990printf %s "checking whether a program can dlopen itself... " >&6; } 18991if test ${lt_cv_dlopen_self+y} 18992then : 18993 printf %s "(cached) " >&6 18994else $as_nop 18995 if test yes = "$cross_compiling"; then : 18996 lt_cv_dlopen_self=cross 18997else 18998 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18999 lt_status=$lt_dlunknown 19000 cat > conftest.$ac_ext <<_LT_EOF 19001#line $LINENO "configure" 19002#include "confdefs.h" 19003 19004#if HAVE_DLFCN_H 19005#include <dlfcn.h> 19006#endif 19007 19008#include <stdio.h> 19009 19010#ifdef RTLD_GLOBAL 19011# define LT_DLGLOBAL RTLD_GLOBAL 19012#else 19013# ifdef DL_GLOBAL 19014# define LT_DLGLOBAL DL_GLOBAL 19015# else 19016# define LT_DLGLOBAL 0 19017# endif 19018#endif 19019 19020/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19021 find out it does not work in some platform. */ 19022#ifndef LT_DLLAZY_OR_NOW 19023# ifdef RTLD_LAZY 19024# define LT_DLLAZY_OR_NOW RTLD_LAZY 19025# else 19026# ifdef DL_LAZY 19027# define LT_DLLAZY_OR_NOW DL_LAZY 19028# else 19029# ifdef RTLD_NOW 19030# define LT_DLLAZY_OR_NOW RTLD_NOW 19031# else 19032# ifdef DL_NOW 19033# define LT_DLLAZY_OR_NOW DL_NOW 19034# else 19035# define LT_DLLAZY_OR_NOW 0 19036# endif 19037# endif 19038# endif 19039# endif 19040#endif 19041 19042/* When -fvisibility=hidden is used, assume the code has been annotated 19043 correspondingly for the symbols needed. */ 19044#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19045int fnord () __attribute__((visibility("default"))); 19046#endif 19047 19048int fnord () { return 42; } 19049int main () 19050{ 19051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19052 int status = $lt_dlunknown; 19053 19054 if (self) 19055 { 19056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19057 else 19058 { 19059 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19060 else puts (dlerror ()); 19061 } 19062 /* dlclose (self); */ 19063 } 19064 else 19065 puts (dlerror ()); 19066 19067 return status; 19068} 19069_LT_EOF 19070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19071 (eval $ac_link) 2>&5 19072 ac_status=$? 19073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19074 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19075 (./conftest; exit; ) >&5 2>/dev/null 19076 lt_status=$? 19077 case x$lt_status in 19078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19080 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19081 esac 19082 else : 19083 # compilation failed 19084 lt_cv_dlopen_self=no 19085 fi 19086fi 19087rm -fr conftest* 19088 19089 19090fi 19091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19092printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19093 19094 if test yes = "$lt_cv_dlopen_self"; then 19095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19097printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19098if test ${lt_cv_dlopen_self_static+y} 19099then : 19100 printf %s "(cached) " >&6 19101else $as_nop 19102 if test yes = "$cross_compiling"; then : 19103 lt_cv_dlopen_self_static=cross 19104else 19105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19106 lt_status=$lt_dlunknown 19107 cat > conftest.$ac_ext <<_LT_EOF 19108#line $LINENO "configure" 19109#include "confdefs.h" 19110 19111#if HAVE_DLFCN_H 19112#include <dlfcn.h> 19113#endif 19114 19115#include <stdio.h> 19116 19117#ifdef RTLD_GLOBAL 19118# define LT_DLGLOBAL RTLD_GLOBAL 19119#else 19120# ifdef DL_GLOBAL 19121# define LT_DLGLOBAL DL_GLOBAL 19122# else 19123# define LT_DLGLOBAL 0 19124# endif 19125#endif 19126 19127/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19128 find out it does not work in some platform. */ 19129#ifndef LT_DLLAZY_OR_NOW 19130# ifdef RTLD_LAZY 19131# define LT_DLLAZY_OR_NOW RTLD_LAZY 19132# else 19133# ifdef DL_LAZY 19134# define LT_DLLAZY_OR_NOW DL_LAZY 19135# else 19136# ifdef RTLD_NOW 19137# define LT_DLLAZY_OR_NOW RTLD_NOW 19138# else 19139# ifdef DL_NOW 19140# define LT_DLLAZY_OR_NOW DL_NOW 19141# else 19142# define LT_DLLAZY_OR_NOW 0 19143# endif 19144# endif 19145# endif 19146# endif 19147#endif 19148 19149/* When -fvisibility=hidden is used, assume the code has been annotated 19150 correspondingly for the symbols needed. */ 19151#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19152int fnord () __attribute__((visibility("default"))); 19153#endif 19154 19155int fnord () { return 42; } 19156int main () 19157{ 19158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19159 int status = $lt_dlunknown; 19160 19161 if (self) 19162 { 19163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19164 else 19165 { 19166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19167 else puts (dlerror ()); 19168 } 19169 /* dlclose (self); */ 19170 } 19171 else 19172 puts (dlerror ()); 19173 19174 return status; 19175} 19176_LT_EOF 19177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19178 (eval $ac_link) 2>&5 19179 ac_status=$? 19180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19181 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19182 (./conftest; exit; ) >&5 2>/dev/null 19183 lt_status=$? 19184 case x$lt_status in 19185 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19186 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19187 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19188 esac 19189 else : 19190 # compilation failed 19191 lt_cv_dlopen_self_static=no 19192 fi 19193fi 19194rm -fr conftest* 19195 19196 19197fi 19198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19199printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19200 fi 19201 19202 CPPFLAGS=$save_CPPFLAGS 19203 LDFLAGS=$save_LDFLAGS 19204 LIBS=$save_LIBS 19205 ;; 19206 esac 19207 19208 case $lt_cv_dlopen_self in 19209 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19210 *) enable_dlopen_self=unknown ;; 19211 esac 19212 19213 case $lt_cv_dlopen_self_static in 19214 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19215 *) enable_dlopen_self_static=unknown ;; 19216 esac 19217fi 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235striplib= 19236old_striplib= 19237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19238printf %s "checking whether stripping libraries is possible... " >&6; } 19239if test -z "$STRIP"; then 19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19241printf "%s\n" "no" >&6; } 19242else 19243 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19244 old_striplib="$STRIP --strip-debug" 19245 striplib="$STRIP --strip-unneeded" 19246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19247printf "%s\n" "yes" >&6; } 19248 else 19249 case $host_os in 19250 darwin*) 19251 # FIXME - insert some real tests, host_os isn't really good enough 19252 striplib="$STRIP -x" 19253 old_striplib="$STRIP -S" 19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19255printf "%s\n" "yes" >&6; } 19256 ;; 19257 freebsd*) 19258 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19259 old_striplib="$STRIP --strip-debug" 19260 striplib="$STRIP --strip-unneeded" 19261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19262printf "%s\n" "yes" >&6; } 19263 else 19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19265printf "%s\n" "no" >&6; } 19266 fi 19267 ;; 19268 *) 19269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19270printf "%s\n" "no" >&6; } 19271 ;; 19272 esac 19273 fi 19274fi 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 # Report what library types will actually be built 19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19289printf %s "checking if libtool supports shared libraries... " >&6; } 19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19291printf "%s\n" "$can_build_shared" >&6; } 19292 19293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19294printf %s "checking whether to build shared libraries... " >&6; } 19295 test no = "$can_build_shared" && enable_shared=no 19296 19297 # On AIX, shared libraries and static libraries use the same namespace, and 19298 # are all built from PIC. 19299 case $host_os in 19300 aix3*) 19301 test yes = "$enable_shared" && enable_static=no 19302 if test -n "$RANLIB"; then 19303 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19304 postinstall_cmds='$RANLIB $lib' 19305 fi 19306 ;; 19307 19308 aix[4-9]*) 19309 if test ia64 != "$host_cpu"; then 19310 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19311 yes,aix,yes) ;; # shared object as lib.so file only 19312 yes,svr4,*) ;; # shared object as lib.so archive member only 19313 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19314 esac 19315 fi 19316 ;; 19317 esac 19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19319printf "%s\n" "$enable_shared" >&6; } 19320 19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19322printf %s "checking whether to build static libraries... " >&6; } 19323 # Make sure either enable_shared or enable_static is yes. 19324 test yes = "$enable_shared" || enable_static=yes 19325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19326printf "%s\n" "$enable_static" >&6; } 19327 19328 19329 19330 19331fi 19332ac_ext=c 19333ac_cpp='$CPP $CPPFLAGS' 19334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19336ac_compiler_gnu=$ac_cv_c_compiler_gnu 19337 19338CC=$lt_save_CC 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 ac_config_commands="$ac_config_commands libtool" 19355 19356 19357 19358 19359# Only expand once: 19360 19361 19362 19363 19364 19365# Define a configure option for an alternate module directory 19366 19367# Check whether --with-xorg-module-dir was given. 19368if test ${with_xorg_module_dir+y} 19369then : 19370 withval=$with_xorg_module_dir; moduledir="$withval" 19371else $as_nop 19372 moduledir="$libdir/xorg/modules" 19373fi 19374 19375 19376# Check whether --enable-dri was given. 19377if test ${enable_dri+y} 19378then : 19379 enableval=$enable_dri; DRI="$enableval" 19380else $as_nop 19381 DRI=auto 19382fi 19383 19384 19385# Check whether --enable-exa was given. 19386if test ${enable_exa+y} 19387then : 19388 enableval=$enable_exa; EXA="$enableval" 19389else $as_nop 19390 EXA=yes 19391fi 19392 19393 19394# Store the list of server defined optional extensions in REQUIRED_MODULES 19395 19396 19397 SAVE_CFLAGS="$CFLAGS" 19398 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19400/* end confdefs.h. */ 19401 19402#include "xorg-server.h" 19403#if !defined RANDR 19404#error RANDR not defined 19405#endif 19406 19407int 19408main (void) 19409{ 19410 19411 ; 19412 return 0; 19413} 19414_ACEOF 19415if ac_fn_c_try_compile "$LINENO" 19416then : 19417 _EXT_CHECK=yes 19418else $as_nop 19419 _EXT_CHECK=no 19420fi 19421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19422 CFLAGS="$SAVE_CFLAGS" 19423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19424printf %s "checking if RANDR is defined... " >&6; } 19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19426printf "%s\n" "$_EXT_CHECK" >&6; } 19427 if test "$_EXT_CHECK" != no; then 19428 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19429 fi 19430 19431 19432 19433 SAVE_CFLAGS="$CFLAGS" 19434 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19436/* end confdefs.h. */ 19437 19438#include "xorg-server.h" 19439#if !defined RENDER 19440#error RENDER not defined 19441#endif 19442 19443int 19444main (void) 19445{ 19446 19447 ; 19448 return 0; 19449} 19450_ACEOF 19451if ac_fn_c_try_compile "$LINENO" 19452then : 19453 _EXT_CHECK=yes 19454else $as_nop 19455 _EXT_CHECK=no 19456fi 19457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19458 CFLAGS="$SAVE_CFLAGS" 19459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19460printf %s "checking if RENDER is defined... " >&6; } 19461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19462printf "%s\n" "$_EXT_CHECK" >&6; } 19463 if test "$_EXT_CHECK" != no; then 19464 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19465 fi 19466 19467 19468 19469 SAVE_CFLAGS="$CFLAGS" 19470 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19472/* end confdefs.h. */ 19473 19474#include "xorg-server.h" 19475#if !defined XV 19476#error XV not defined 19477#endif 19478 19479int 19480main (void) 19481{ 19482 19483 ; 19484 return 0; 19485} 19486_ACEOF 19487if ac_fn_c_try_compile "$LINENO" 19488then : 19489 _EXT_CHECK=yes 19490else $as_nop 19491 _EXT_CHECK=no 19492fi 19493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19494 CFLAGS="$SAVE_CFLAGS" 19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19496printf %s "checking if XV is defined... " >&6; } 19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19498printf "%s\n" "$_EXT_CHECK" >&6; } 19499 if test "$_EXT_CHECK" != no; then 19500 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19501 fi 19502 19503 19504 19505 SAVE_CFLAGS="$CFLAGS" 19506 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19508/* end confdefs.h. */ 19509 19510#include "xorg-server.h" 19511#if !defined DPMSExtension 19512#error DPMSExtension not defined 19513#endif 19514 19515int 19516main (void) 19517{ 19518 19519 ; 19520 return 0; 19521} 19522_ACEOF 19523if ac_fn_c_try_compile "$LINENO" 19524then : 19525 _EXT_CHECK=yes 19526else $as_nop 19527 _EXT_CHECK=no 19528fi 19529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19530 CFLAGS="$SAVE_CFLAGS" 19531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19532printf %s "checking if DPMSExtension is defined... " >&6; } 19533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19534printf "%s\n" "$_EXT_CHECK" >&6; } 19535 if test "$_EXT_CHECK" != no; then 19536 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19537 fi 19538 19539 19540# Obtain compiler/linker options for the driver dependencies 19541 19542pkg_failed=no 19543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19544printf %s "checking for XORG... " >&6; } 19545 19546if test -n "$XORG_CFLAGS"; then 19547 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19548 elif test -n "$PKG_CONFIG"; then 19549 if test -n "$PKG_CONFIG" && \ 19550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19551 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5 19552 ac_status=$? 19553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19554 test $ac_status = 0; }; then 19555 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19556 test "x$?" != "x0" && pkg_failed=yes 19557else 19558 pkg_failed=yes 19559fi 19560 else 19561 pkg_failed=untried 19562fi 19563if test -n "$XORG_LIBS"; then 19564 pkg_cv_XORG_LIBS="$XORG_LIBS" 19565 elif test -n "$PKG_CONFIG"; then 19566 if test -n "$PKG_CONFIG" && \ 19567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19568 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5 19569 ac_status=$? 19570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19571 test $ac_status = 0; }; then 19572 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19573 test "x$?" != "x0" && pkg_failed=yes 19574else 19575 pkg_failed=yes 19576fi 19577 else 19578 pkg_failed=untried 19579fi 19580 19581 19582 19583if test $pkg_failed = yes; then 19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19585printf "%s\n" "no" >&6; } 19586 19587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19588 _pkg_short_errors_supported=yes 19589else 19590 _pkg_short_errors_supported=no 19591fi 19592 if test $_pkg_short_errors_supported = yes; then 19593 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19594 else 19595 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19596 fi 19597 # Put the nasty error message in config.log where it belongs 19598 echo "$XORG_PKG_ERRORS" >&5 19599 19600 as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met: 19601 19602$XORG_PKG_ERRORS 19603 19604Consider adjusting the PKG_CONFIG_PATH environment variable if you 19605installed software in a non-standard prefix. 19606 19607Alternatively, you may set the environment variables XORG_CFLAGS 19608and XORG_LIBS to avoid the need to call pkg-config. 19609See the pkg-config man page for more details." "$LINENO" 5 19610elif test $pkg_failed = untried; then 19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19612printf "%s\n" "no" >&6; } 19613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19614printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19615as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19616is in your PATH or set the PKG_CONFIG environment variable to the full 19617path to pkg-config. 19618 19619Alternatively, you may set the environment variables XORG_CFLAGS 19620and XORG_LIBS to avoid the need to call pkg-config. 19621See the pkg-config man page for more details. 19622 19623To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19624See \`config.log' for more details" "$LINENO" 5; } 19625else 19626 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19627 XORG_LIBS=$pkg_cv_XORG_LIBS 19628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19629printf "%s\n" "yes" >&6; } 19630 19631fi 19632 19633pkg_failed=no 19634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19635printf %s "checking for XEXT... " >&6; } 19636 19637if test -n "$XEXT_CFLAGS"; then 19638 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19639 elif test -n "$PKG_CONFIG"; then 19640 if test -n "$PKG_CONFIG" && \ 19641 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19642 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19643 ac_status=$? 19644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19645 test $ac_status = 0; }; then 19646 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19647 test "x$?" != "x0" && pkg_failed=yes 19648else 19649 pkg_failed=yes 19650fi 19651 else 19652 pkg_failed=untried 19653fi 19654if test -n "$XEXT_LIBS"; then 19655 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19656 elif test -n "$PKG_CONFIG"; then 19657 if test -n "$PKG_CONFIG" && \ 19658 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19659 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19660 ac_status=$? 19661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19662 test $ac_status = 0; }; then 19663 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19664 test "x$?" != "x0" && pkg_failed=yes 19665else 19666 pkg_failed=yes 19667fi 19668 else 19669 pkg_failed=untried 19670fi 19671 19672 19673 19674if test $pkg_failed = yes; then 19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19676printf "%s\n" "no" >&6; } 19677 19678if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19679 _pkg_short_errors_supported=yes 19680else 19681 _pkg_short_errors_supported=no 19682fi 19683 if test $_pkg_short_errors_supported = yes; then 19684 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19685 else 19686 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19687 fi 19688 # Put the nasty error message in config.log where it belongs 19689 echo "$XEXT_PKG_ERRORS" >&5 19690 19691 HAVE_XEXTPROTO_71="no" 19692elif test $pkg_failed = untried; then 19693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19694printf "%s\n" "no" >&6; } 19695 HAVE_XEXTPROTO_71="no" 19696else 19697 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19698 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19700printf "%s\n" "yes" >&6; } 19701 HAVE_XEXTPROTO_71="yes"; 19702printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19703 19704fi 19705 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19706 HAVE_XEXTPROTO_71_TRUE= 19707 HAVE_XEXTPROTO_71_FALSE='#' 19708else 19709 HAVE_XEXTPROTO_71_TRUE='#' 19710 HAVE_XEXTPROTO_71_FALSE= 19711fi 19712 19713sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 19714 19715# Checks for libraries. 19716 19717if test "$DRI" != no; then 19718 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 19719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 19720printf %s "checking for ${sdkdir}/dri.h... " >&6; } 19721if eval test \${$as_ac_File+y} 19722then : 19723 printf %s "(cached) " >&6 19724else $as_nop 19725 test "$cross_compiling" = yes && 19726 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19727if test -r "${sdkdir}/dri.h"; then 19728 eval "$as_ac_File=yes" 19729else 19730 eval "$as_ac_File=no" 19731fi 19732fi 19733eval ac_res=\$$as_ac_File 19734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19735printf "%s\n" "$ac_res" >&6; } 19736if eval test \"x\$"$as_ac_File"\" = x"yes" 19737then : 19738 have_dri_h="yes" 19739else $as_nop 19740 have_dri_h="no" 19741fi 19742 19743 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 19744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 19745printf %s "checking for ${sdkdir}/sarea.h... " >&6; } 19746if eval test \${$as_ac_File+y} 19747then : 19748 printf %s "(cached) " >&6 19749else $as_nop 19750 test "$cross_compiling" = yes && 19751 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19752if test -r "${sdkdir}/sarea.h"; then 19753 eval "$as_ac_File=yes" 19754else 19755 eval "$as_ac_File=no" 19756fi 19757fi 19758eval ac_res=\$$as_ac_File 19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19760printf "%s\n" "$ac_res" >&6; } 19761if eval test \"x\$"$as_ac_File"\" = x"yes" 19762then : 19763 have_sarea_h="yes" 19764else $as_nop 19765 have_sarea_h="no" 19766fi 19767 19768 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 19769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 19770printf %s "checking for ${sdkdir}/dristruct.h... " >&6; } 19771if eval test \${$as_ac_File+y} 19772then : 19773 printf %s "(cached) " >&6 19774else $as_nop 19775 test "$cross_compiling" = yes && 19776 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19777if test -r "${sdkdir}/dristruct.h"; then 19778 eval "$as_ac_File=yes" 19779else 19780 eval "$as_ac_File=no" 19781fi 19782fi 19783eval ac_res=\$$as_ac_File 19784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19785printf "%s\n" "$ac_res" >&6; } 19786if eval test \"x\$"$as_ac_File"\" = x"yes" 19787then : 19788 have_dristruct_h="yes" 19789else $as_nop 19790 have_dristruct_h="no" 19791fi 19792 19793 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh` 19794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5 19795printf %s "checking for ${sdkdir}/damage.h... " >&6; } 19796if eval test \${$as_ac_File+y} 19797then : 19798 printf %s "(cached) " >&6 19799else $as_nop 19800 test "$cross_compiling" = yes && 19801 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19802if test -r "${sdkdir}/damage.h"; then 19803 eval "$as_ac_File=yes" 19804else 19805 eval "$as_ac_File=no" 19806fi 19807fi 19808eval ac_res=\$$as_ac_File 19809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19810printf "%s\n" "$ac_res" >&6; } 19811if eval test \"x\$"$as_ac_File"\" = x"yes" 19812then : 19813 have_damage_h="yes" 19814else $as_nop 19815 have_damage_h="no" 19816fi 19817 19818fi 19819 19820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 19821printf %s "checking whether to include DRI support... " >&6; } 19822if test x$DRI = xauto; then 19823 if test "$have_dri_h" = yes -a \ 19824 "$have_sarea_h" = yes -a \ 19825 "$have_dristruct_h" = yes; then 19826 DRI="yes" 19827 else 19828 DRI="no" 19829 fi 19830fi 19831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 19832printf "%s\n" "$DRI" >&6; } 19833 19834 if test x$DRI = xyes; then 19835 DRI_TRUE= 19836 DRI_FALSE='#' 19837else 19838 DRI_TRUE='#' 19839 DRI_FALSE= 19840fi 19841 19842if test "$DRI" = yes; then 19843 19844pkg_failed=no 19845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 19846printf %s "checking for DRI... " >&6; } 19847 19848if test -n "$DRI_CFLAGS"; then 19849 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 19850 elif test -n "$PKG_CONFIG"; then 19851 if test -n "$PKG_CONFIG" && \ 19852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5 19853 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 19854 ac_status=$? 19855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19856 test $ac_status = 0; }; then 19857 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null` 19858 test "x$?" != "x0" && pkg_failed=yes 19859else 19860 pkg_failed=yes 19861fi 19862 else 19863 pkg_failed=untried 19864fi 19865if test -n "$DRI_LIBS"; then 19866 pkg_cv_DRI_LIBS="$DRI_LIBS" 19867 elif test -n "$PKG_CONFIG"; then 19868 if test -n "$PKG_CONFIG" && \ 19869 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5 19870 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 19871 ac_status=$? 19872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19873 test $ac_status = 0; }; then 19874 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null` 19875 test "x$?" != "x0" && pkg_failed=yes 19876else 19877 pkg_failed=yes 19878fi 19879 else 19880 pkg_failed=untried 19881fi 19882 19883 19884 19885if test $pkg_failed = yes; then 19886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19887printf "%s\n" "no" >&6; } 19888 19889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19890 _pkg_short_errors_supported=yes 19891else 19892 _pkg_short_errors_supported=no 19893fi 19894 if test $_pkg_short_errors_supported = yes; then 19895 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1` 19896 else 19897 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1` 19898 fi 19899 # Put the nasty error message in config.log where it belongs 19900 echo "$DRI_PKG_ERRORS" >&5 19901 19902 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met: 19903 19904$DRI_PKG_ERRORS 19905 19906Consider adjusting the PKG_CONFIG_PATH environment variable if you 19907installed software in a non-standard prefix. 19908 19909Alternatively, you may set the environment variables DRI_CFLAGS 19910and DRI_LIBS to avoid the need to call pkg-config. 19911See the pkg-config man page for more details." "$LINENO" 5 19912elif test $pkg_failed = untried; then 19913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19914printf "%s\n" "no" >&6; } 19915 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19916printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19917as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19918is in your PATH or set the PKG_CONFIG environment variable to the full 19919path to pkg-config. 19920 19921Alternatively, you may set the environment variables DRI_CFLAGS 19922and DRI_LIBS to avoid the need to call pkg-config. 19923See the pkg-config man page for more details. 19924 19925To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19926See \`config.log' for more details" "$LINENO" 5; } 19927else 19928 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 19929 DRI_LIBS=$pkg_cv_DRI_LIBS 19930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19931printf "%s\n" "yes" >&6; } 19932 19933fi 19934 19935printf "%s\n" "#define XF86DRI 1" >>confdefs.h 19936 19937 19938printf "%s\n" "#define XF86DRI_DEVEL 1" >>confdefs.h 19939 19940fi 19941 19942# Note that this is sort of inverted from drivers/ati/Imakefile in 19943# the monolith. We test for foo, not for !foo (i.e. ATMISC_CPIO, not 19944# ATIMISC_AVOID_CPIO), but the defines are negative. So beware. Oh yeah, 19945# TV_OUT is the special case where it's a positive define, not AVOID_TV_OUT. 19946 19947# AVOID_CPIO: Only x86, amd64, and alpha are cool with CPIO. It needs a 19948# little-endian, undirected PIO space of at least 64kB. 19949# AVOID_DGA: ??? 19950# ATI_TV_OUT: This only works on x86. 19951 19952ATIMISC_CPIO=no 19953ATIMISC_DGA=yes 19954ATIMISC_TV_OUT=no 19955 19956case $host_cpu in 19957 i*86) 19958 ATIMISC_TV_OUT=yes 19959 ATIMISC_CPIO=yes 19960 ;; 19961 x86_64|amd64|alpha|ia64) 19962 ATIMISC_CPIO=yes 19963 ;; 19964 sparc) 19965 ATIMISC_DGA=no 19966 ;; 19967 *) 19968 ;; 19969esac 19970 19971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include PIO support" >&5 19972printf %s "checking whether to include PIO support... " >&6; } 19973 if test "x$ATIMISC_CPIO" = xyes; then 19974 ATIMISC_CPIO_TRUE= 19975 ATIMISC_CPIO_FALSE='#' 19976else 19977 ATIMISC_CPIO_TRUE='#' 19978 ATIMISC_CPIO_FALSE= 19979fi 19980 19981if test "x$ATIMISC_CPIO" = xyes; then 19982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, PIO" >&5 19983printf "%s\n" "yes, PIO" >&6; } 19984else 19985 19986printf "%s\n" "#define AVOID_CPIO 1" >>confdefs.h 19987 19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, MMIO" >&5 19989printf "%s\n" "no, MMIO" >&6; } 19990fi 19991 19992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5 19993printf %s "checking whether to include DGA support... " >&6; } 19994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_DGA" >&5 19995printf "%s\n" "$ATIMISC_DGA" >&6; } 19996 if test "x$ATIMISC_DGA" = xyes; then 19997 ATIMISC_DGA_TRUE= 19998 ATIMISC_DGA_FALSE='#' 19999else 20000 ATIMISC_DGA_TRUE='#' 20001 ATIMISC_DGA_FALSE= 20002fi 20003 20004if ! test "x$ATIMISC_DGA" = xyes; then 20005 20006printf "%s\n" "#define AVOID_DGA 1" >>confdefs.h 20007 20008fi 20009 20010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include TV Out support" >&5 20011printf %s "checking whether to include TV Out support... " >&6; } 20012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_TV_OUT" >&5 20013printf "%s\n" "$ATIMISC_TV_OUT" >&6; } 20014 if test "x$ATIMISC_TV_OUT" = xyes; then 20015 ATIMISC_TV_OUT_TRUE= 20016 ATIMISC_TV_OUT_FALSE='#' 20017else 20018 ATIMISC_TV_OUT_TRUE='#' 20019 ATIMISC_TV_OUT_FALSE= 20020fi 20021 20022if test "x$ATIMISC_TV_OUT" = xyes; then 20023 20024printf "%s\n" "#define TV_OUT 1" >>confdefs.h 20025 20026fi 20027 20028# Properly handle EXA. 20029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5 20030printf %s "checking whether to enable EXA support... " >&6; } 20031if test "x$EXA" = xyes; then 20032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20033printf "%s\n" "yes" >&6; } 20034 20035 SAVE_CPPFLAGS="$CPPFLAGS" 20036 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 20037 ac_fn_c_check_header_compile "$LINENO" "exa.h" "ac_cv_header_exa_h" "#include <xorg-server.h> 20038" 20039if test "x$ac_cv_header_exa_h" = xyes 20040then : 20041 have_exa_h="yes" 20042else $as_nop 20043 have_exa_h="no" 20044fi 20045 20046 CPPFLAGS="$SAVE_CPPFLAGS" 20047else 20048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20049printf "%s\n" "no" >&6; } 20050fi 20051 20052SAVE_CPPFLAGS="$CPPFLAGS" 20053CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 20054if test "x$have_exa_h" = xyes; then 20055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5 20056printf %s "checking whether EXA version is at least 2.0.0... " >&6; } 20057 ac_ext=c 20058ac_cpp='$CPP $CPPFLAGS' 20059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20061ac_compiler_gnu=$ac_cv_c_compiler_gnu 20062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 20063printf %s "checking how to run the C preprocessor... " >&6; } 20064# On Suns, sometimes $CPP names a directory. 20065if test -n "$CPP" && test -d "$CPP"; then 20066 CPP= 20067fi 20068if test -z "$CPP"; then 20069 if test ${ac_cv_prog_CPP+y} 20070then : 20071 printf %s "(cached) " >&6 20072else $as_nop 20073 # Double quotes because $CC needs to be expanded 20074 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 20075 do 20076 ac_preproc_ok=false 20077for ac_c_preproc_warn_flag in '' yes 20078do 20079 # Use a header file that comes with gcc, so configuring glibc 20080 # with a fresh cross-compiler works. 20081 # On the NeXT, cc -E runs the code through the compiler's parser, 20082 # not just through cpp. "Syntax error" is here to catch this case. 20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20084/* end confdefs.h. */ 20085#include <limits.h> 20086 Syntax error 20087_ACEOF 20088if ac_fn_c_try_cpp "$LINENO" 20089then : 20090 20091else $as_nop 20092 # Broken: fails on valid input. 20093continue 20094fi 20095rm -f conftest.err conftest.i conftest.$ac_ext 20096 20097 # OK, works on sane cases. Now check whether nonexistent headers 20098 # can be detected and how. 20099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20100/* end confdefs.h. */ 20101#include <ac_nonexistent.h> 20102_ACEOF 20103if ac_fn_c_try_cpp "$LINENO" 20104then : 20105 # Broken: success on invalid input. 20106continue 20107else $as_nop 20108 # Passes both tests. 20109ac_preproc_ok=: 20110break 20111fi 20112rm -f conftest.err conftest.i conftest.$ac_ext 20113 20114done 20115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20116rm -f conftest.i conftest.err conftest.$ac_ext 20117if $ac_preproc_ok 20118then : 20119 break 20120fi 20121 20122 done 20123 ac_cv_prog_CPP=$CPP 20124 20125fi 20126 CPP=$ac_cv_prog_CPP 20127else 20128 ac_cv_prog_CPP=$CPP 20129fi 20130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 20131printf "%s\n" "$CPP" >&6; } 20132ac_preproc_ok=false 20133for ac_c_preproc_warn_flag in '' yes 20134do 20135 # Use a header file that comes with gcc, so configuring glibc 20136 # with a fresh cross-compiler works. 20137 # On the NeXT, cc -E runs the code through the compiler's parser, 20138 # not just through cpp. "Syntax error" is here to catch this case. 20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20140/* end confdefs.h. */ 20141#include <limits.h> 20142 Syntax error 20143_ACEOF 20144if ac_fn_c_try_cpp "$LINENO" 20145then : 20146 20147else $as_nop 20148 # Broken: fails on valid input. 20149continue 20150fi 20151rm -f conftest.err conftest.i conftest.$ac_ext 20152 20153 # OK, works on sane cases. Now check whether nonexistent headers 20154 # can be detected and how. 20155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20156/* end confdefs.h. */ 20157#include <ac_nonexistent.h> 20158_ACEOF 20159if ac_fn_c_try_cpp "$LINENO" 20160then : 20161 # Broken: success on invalid input. 20162continue 20163else $as_nop 20164 # Passes both tests. 20165ac_preproc_ok=: 20166break 20167fi 20168rm -f conftest.err conftest.i conftest.$ac_ext 20169 20170done 20171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20172rm -f conftest.i conftest.err conftest.$ac_ext 20173if $ac_preproc_ok 20174then : 20175 20176else $as_nop 20177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20178printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20179as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 20180See \`config.log' for more details" "$LINENO" 5; } 20181fi 20182 20183ac_ext=c 20184ac_cpp='$CPP $CPPFLAGS' 20185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20187ac_compiler_gnu=$ac_cv_c_compiler_gnu 20188 20189 20190cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20191/* end confdefs.h. */ 20192 20193#include <xorg-server.h> 20194#include <exa.h> 20195#if EXA_VERSION_MAJOR < 2 20196#error OLD EXA! 20197#endif 20198 20199int 20200main (void) 20201{ 20202 20203 ; 20204 return 0; 20205} 20206_ACEOF 20207if ac_fn_c_try_cpp "$LINENO" 20208then : 20209 USE_EXA=yes 20210else $as_nop 20211 USE_EXA=no 20212fi 20213rm -f conftest.err conftest.i conftest.$ac_ext 20214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5 20215printf "%s\n" "$USE_EXA" >&6; } 20216 20217 if test "x$USE_EXA" = xyes; then 20218 20219printf "%s\n" "#define USE_EXA 1" >>confdefs.h 20220 20221 fi 20222fi 20223 20224# Check whether --enable-xaa was given. 20225if test ${enable_xaa+y} 20226then : 20227 enableval=$enable_xaa; XAA="$enableval" 20228else $as_nop 20229 XAA=auto 20230fi 20231 20232if test "x$XAA" != xno; then 20233 save_CFLAGS=$CFLAGS 20234 save_CPPFLAGS=$CPPFLAGS 20235 CFLAGS=$XORG_CFLAGS 20236 CPPFLAGS="$XORG_CFLAGS" 20237 for ac_header in xaa.h 20238do : 20239 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 20240if test "x$ac_cv_header_xaa_h" = xyes 20241then : 20242 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 20243 XAA=yes 20244else $as_nop 20245 XAA=no 20246fi 20247 20248done 20249 CFLAGS=$save_CFLAGS 20250 CPPFLAGS=$save_CPPFLAGS 20251fi 20252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 20253printf %s "checking whether to include XAA support... " >&6; } 20254 if test "x$XAA" = xyes; then 20255 XAA_TRUE= 20256 XAA_FALSE='#' 20257else 20258 XAA_TRUE='#' 20259 XAA_FALSE= 20260fi 20261 20262if test "x$XAA" = xyes; then 20263 20264printf "%s\n" "#define USE_XAA test \"x\$XAA\" = xyes" >>confdefs.h 20265 20266fi 20267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 20268printf "%s\n" "$XAA" >&6; } 20269 20270ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 20271" "$ac_c_undeclared_builtin_options" "CFLAGS" 20272if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 20273then : 20274 XSERVER_LIBPCIACCESS=yes 20275else $as_nop 20276 XSERVER_LIBPCIACCESS=no 20277fi 20278 20279CPPFLAGS="$SAVE_CPPFLAGS" 20280 20281 if test "x$USE_EXA" = xyes; then 20282 USE_EXA_TRUE= 20283 USE_EXA_FALSE='#' 20284else 20285 USE_EXA_TRUE='#' 20286 USE_EXA_FALSE= 20287fi 20288 20289 20290if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20291 20292pkg_failed=no 20293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 20294printf %s "checking for PCIACCESS... " >&6; } 20295 20296if test -n "$PCIACCESS_CFLAGS"; then 20297 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 20298 elif test -n "$PKG_CONFIG"; then 20299 if test -n "$PKG_CONFIG" && \ 20300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 20301 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 20302 ac_status=$? 20303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20304 test $ac_status = 0; }; then 20305 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null` 20306 test "x$?" != "x0" && pkg_failed=yes 20307else 20308 pkg_failed=yes 20309fi 20310 else 20311 pkg_failed=untried 20312fi 20313if test -n "$PCIACCESS_LIBS"; then 20314 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20315 elif test -n "$PKG_CONFIG"; then 20316 if test -n "$PKG_CONFIG" && \ 20317 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 20318 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 20319 ac_status=$? 20320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20321 test $ac_status = 0; }; then 20322 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null` 20323 test "x$?" != "x0" && pkg_failed=yes 20324else 20325 pkg_failed=yes 20326fi 20327 else 20328 pkg_failed=untried 20329fi 20330 20331 20332 20333if test $pkg_failed = yes; then 20334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20335printf "%s\n" "no" >&6; } 20336 20337if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20338 _pkg_short_errors_supported=yes 20339else 20340 _pkg_short_errors_supported=no 20341fi 20342 if test $_pkg_short_errors_supported = yes; then 20343 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 20344 else 20345 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 20346 fi 20347 # Put the nasty error message in config.log where it belongs 20348 echo "$PCIACCESS_PKG_ERRORS" >&5 20349 20350 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met: 20351 20352$PCIACCESS_PKG_ERRORS 20353 20354Consider adjusting the PKG_CONFIG_PATH environment variable if you 20355installed software in a non-standard prefix. 20356 20357Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20358and PCIACCESS_LIBS to avoid the need to call pkg-config. 20359See the pkg-config man page for more details." "$LINENO" 5 20360elif test $pkg_failed = untried; then 20361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20362printf "%s\n" "no" >&6; } 20363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20364printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20365as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20366is in your PATH or set the PKG_CONFIG environment variable to the full 20367path to pkg-config. 20368 20369Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20370and PCIACCESS_LIBS to avoid the need to call pkg-config. 20371See the pkg-config man page for more details. 20372 20373To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20374See \`config.log' for more details" "$LINENO" 5; } 20375else 20376 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20377 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20379printf "%s\n" "yes" >&6; } 20380 20381fi 20382 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 20383fi 20384 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20385 XSERVER_LIBPCIACCESS_TRUE= 20386 XSERVER_LIBPCIACCESS_FALSE='#' 20387else 20388 XSERVER_LIBPCIACCESS_TRUE='#' 20389 XSERVER_LIBPCIACCESS_FALSE= 20390fi 20391 20392 20393 20394 20395DRIVER_NAME=mach64 20396 20397 20398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\" 20399 or install the ati wrapper as well: 20400 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati 20401" >&5 20402printf "%s\n" "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\" 20403 or install the ati wrapper as well: 20404 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati 20405" >&6;} 20406 20407ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20408 20409cat >confcache <<\_ACEOF 20410# This file is a shell script that caches the results of configure 20411# tests run on this system so they can be shared between configure 20412# scripts and configure runs, see configure's option --config-cache. 20413# It is not useful on other systems. If it contains results you don't 20414# want to keep, you may remove or edit it. 20415# 20416# config.status only pays attention to the cache file if you give it 20417# the --recheck option to rerun configure. 20418# 20419# `ac_cv_env_foo' variables (set or unset) will be overridden when 20420# loading this file, other *unset* `ac_cv_foo' will be assigned the 20421# following values. 20422 20423_ACEOF 20424 20425# The following way of writing the cache mishandles newlines in values, 20426# but we know of no workaround that is simple, portable, and efficient. 20427# So, we kill variables containing newlines. 20428# Ultrix sh set writes to stderr and can't be redirected directly, 20429# and sets the high bit in the cache file unless we assign to the vars. 20430( 20431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20432 eval ac_val=\$$ac_var 20433 case $ac_val in #( 20434 *${as_nl}*) 20435 case $ac_var in #( 20436 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20437printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20438 esac 20439 case $ac_var in #( 20440 _ | IFS | as_nl) ;; #( 20441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20442 *) { eval $ac_var=; unset $ac_var;} ;; 20443 esac ;; 20444 esac 20445 done 20446 20447 (set) 2>&1 | 20448 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20449 *${as_nl}ac_space=\ *) 20450 # `set' does not quote correctly, so add quotes: double-quote 20451 # substitution turns \\\\ into \\, and sed turns \\ into \. 20452 sed -n \ 20453 "s/'/'\\\\''/g; 20454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20455 ;; #( 20456 *) 20457 # `set' quotes correctly as required by POSIX, so do not add quotes. 20458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20459 ;; 20460 esac | 20461 sort 20462) | 20463 sed ' 20464 /^ac_cv_env_/b end 20465 t clear 20466 :clear 20467 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20468 t end 20469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20470 :end' >>confcache 20471if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20472 if test -w "$cache_file"; then 20473 if test "x$cache_file" != "x/dev/null"; then 20474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20475printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20476 if test ! -f "$cache_file" || test -h "$cache_file"; then 20477 cat confcache >"$cache_file" 20478 else 20479 case $cache_file in #( 20480 */* | ?:*) 20481 mv -f confcache "$cache_file"$$ && 20482 mv -f "$cache_file"$$ "$cache_file" ;; #( 20483 *) 20484 mv -f confcache "$cache_file" ;; 20485 esac 20486 fi 20487 fi 20488 else 20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20490printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20491 fi 20492fi 20493rm -f confcache 20494 20495test "x$prefix" = xNONE && prefix=$ac_default_prefix 20496# Let make expand exec_prefix. 20497test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20498 20499DEFS=-DHAVE_CONFIG_H 20500 20501ac_libobjs= 20502ac_ltlibobjs= 20503U= 20504for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20505 # 1. Remove the extension, and $U if already installed. 20506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20507 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20509 # will be set to the directory where LIBOBJS objects are built. 20510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20512done 20513LIBOBJS=$ac_libobjs 20514 20515LTLIBOBJS=$ac_ltlibobjs 20516 20517 20518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20519printf %s "checking that generated files are newer than configure... " >&6; } 20520 if test -n "$am_sleep_pid"; then 20521 # Hide warnings about reused PIDs. 20522 wait $am_sleep_pid 2>/dev/null 20523 fi 20524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20525printf "%s\n" "done" >&6; } 20526 if test -n "$EXEEXT"; then 20527 am__EXEEXT_TRUE= 20528 am__EXEEXT_FALSE='#' 20529else 20530 am__EXEEXT_TRUE='#' 20531 am__EXEEXT_FALSE= 20532fi 20533 20534if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20535 as_fn_error $? "conditional \"AMDEP\" was never defined. 20536Usually this means the macro was only invoked conditionally." "$LINENO" 5 20537fi 20538if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20539 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20540Usually this means the macro was only invoked conditionally." "$LINENO" 5 20541fi 20542if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20543 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20544Usually this means the macro was only invoked conditionally." "$LINENO" 5 20545fi 20546if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 20547 as_fn_error $? "conditional \"DRI\" was never defined. 20548Usually this means the macro was only invoked conditionally." "$LINENO" 5 20549fi 20550if test -z "${ATIMISC_CPIO_TRUE}" && test -z "${ATIMISC_CPIO_FALSE}"; then 20551 as_fn_error $? "conditional \"ATIMISC_CPIO\" was never defined. 20552Usually this means the macro was only invoked conditionally." "$LINENO" 5 20553fi 20554if test -z "${ATIMISC_DGA_TRUE}" && test -z "${ATIMISC_DGA_FALSE}"; then 20555 as_fn_error $? "conditional \"ATIMISC_DGA\" was never defined. 20556Usually this means the macro was only invoked conditionally." "$LINENO" 5 20557fi 20558if test -z "${ATIMISC_TV_OUT_TRUE}" && test -z "${ATIMISC_TV_OUT_FALSE}"; then 20559 as_fn_error $? "conditional \"ATIMISC_TV_OUT\" was never defined. 20560Usually this means the macro was only invoked conditionally." "$LINENO" 5 20561fi 20562if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 20563 as_fn_error $? "conditional \"XAA\" was never defined. 20564Usually this means the macro was only invoked conditionally." "$LINENO" 5 20565fi 20566if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 20567 as_fn_error $? "conditional \"USE_EXA\" was never defined. 20568Usually this means the macro was only invoked conditionally." "$LINENO" 5 20569fi 20570if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 20571 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 20572Usually this means the macro was only invoked conditionally." "$LINENO" 5 20573fi 20574 20575: "${CONFIG_STATUS=./config.status}" 20576ac_write_fail=0 20577ac_clean_files_save=$ac_clean_files 20578ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20580printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20581as_write_fail=0 20582cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20583#! $SHELL 20584# Generated by $as_me. 20585# Run this file to recreate the current configuration. 20586# Compiler output produced by configure, useful for debugging 20587# configure, is in config.log if it exists. 20588 20589debug=false 20590ac_cs_recheck=false 20591ac_cs_silent=false 20592 20593SHELL=\${CONFIG_SHELL-$SHELL} 20594export SHELL 20595_ASEOF 20596cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20597## -------------------- ## 20598## M4sh Initialization. ## 20599## -------------------- ## 20600 20601# Be more Bourne compatible 20602DUALCASE=1; export DUALCASE # for MKS sh 20603as_nop=: 20604if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20605then : 20606 emulate sh 20607 NULLCMD=: 20608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20609 # is contrary to our usage. Disable this feature. 20610 alias -g '${1+"$@"}'='"$@"' 20611 setopt NO_GLOB_SUBST 20612else $as_nop 20613 case `(set -o) 2>/dev/null` in #( 20614 *posix*) : 20615 set -o posix ;; #( 20616 *) : 20617 ;; 20618esac 20619fi 20620 20621 20622 20623# Reset variables that may have inherited troublesome values from 20624# the environment. 20625 20626# IFS needs to be set, to space, tab, and newline, in precisely that order. 20627# (If _AS_PATH_WALK were called with IFS unset, it would have the 20628# side effect of setting IFS to empty, thus disabling word splitting.) 20629# Quoting is to prevent editors from complaining about space-tab. 20630as_nl=' 20631' 20632export as_nl 20633IFS=" "" $as_nl" 20634 20635PS1='$ ' 20636PS2='> ' 20637PS4='+ ' 20638 20639# Ensure predictable behavior from utilities with locale-dependent output. 20640LC_ALL=C 20641export LC_ALL 20642LANGUAGE=C 20643export LANGUAGE 20644 20645# We cannot yet rely on "unset" to work, but we need these variables 20646# to be unset--not just set to an empty or harmless value--now, to 20647# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20648# also avoids known problems related to "unset" and subshell syntax 20649# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20650for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20651do eval test \${$as_var+y} \ 20652 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20653done 20654 20655# Ensure that fds 0, 1, and 2 are open. 20656if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20657if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20658if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20659 20660# The user is always right. 20661if ${PATH_SEPARATOR+false} :; then 20662 PATH_SEPARATOR=: 20663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20665 PATH_SEPARATOR=';' 20666 } 20667fi 20668 20669 20670# Find who we are. Look in the path if we contain no directory separator. 20671as_myself= 20672case $0 in #(( 20673 *[\\/]* ) as_myself=$0 ;; 20674 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20675for as_dir in $PATH 20676do 20677 IFS=$as_save_IFS 20678 case $as_dir in #((( 20679 '') as_dir=./ ;; 20680 */) ;; 20681 *) as_dir=$as_dir/ ;; 20682 esac 20683 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20684 done 20685IFS=$as_save_IFS 20686 20687 ;; 20688esac 20689# We did not find ourselves, most probably we were run as `sh COMMAND' 20690# in which case we are not to be found in the path. 20691if test "x$as_myself" = x; then 20692 as_myself=$0 20693fi 20694if test ! -f "$as_myself"; then 20695 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20696 exit 1 20697fi 20698 20699 20700 20701# as_fn_error STATUS ERROR [LINENO LOG_FD] 20702# ---------------------------------------- 20703# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20704# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20705# script with STATUS, using 1 if that was 0. 20706as_fn_error () 20707{ 20708 as_status=$1; test $as_status -eq 0 && as_status=1 20709 if test "$4"; then 20710 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20712 fi 20713 printf "%s\n" "$as_me: error: $2" >&2 20714 as_fn_exit $as_status 20715} # as_fn_error 20716 20717 20718 20719# as_fn_set_status STATUS 20720# ----------------------- 20721# Set $? to STATUS, without forking. 20722as_fn_set_status () 20723{ 20724 return $1 20725} # as_fn_set_status 20726 20727# as_fn_exit STATUS 20728# ----------------- 20729# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20730as_fn_exit () 20731{ 20732 set +e 20733 as_fn_set_status $1 20734 exit $1 20735} # as_fn_exit 20736 20737# as_fn_unset VAR 20738# --------------- 20739# Portably unset VAR. 20740as_fn_unset () 20741{ 20742 { eval $1=; unset $1;} 20743} 20744as_unset=as_fn_unset 20745 20746# as_fn_append VAR VALUE 20747# ---------------------- 20748# Append the text in VALUE to the end of the definition contained in VAR. Take 20749# advantage of any shell optimizations that allow amortized linear growth over 20750# repeated appends, instead of the typical quadratic growth present in naive 20751# implementations. 20752if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20753then : 20754 eval 'as_fn_append () 20755 { 20756 eval $1+=\$2 20757 }' 20758else $as_nop 20759 as_fn_append () 20760 { 20761 eval $1=\$$1\$2 20762 } 20763fi # as_fn_append 20764 20765# as_fn_arith ARG... 20766# ------------------ 20767# Perform arithmetic evaluation on the ARGs, and store the result in the 20768# global $as_val. Take advantage of shells that can avoid forks. The arguments 20769# must be portable across $(()) and expr. 20770if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20771then : 20772 eval 'as_fn_arith () 20773 { 20774 as_val=$(( $* )) 20775 }' 20776else $as_nop 20777 as_fn_arith () 20778 { 20779 as_val=`expr "$@" || test $? -eq 1` 20780 } 20781fi # as_fn_arith 20782 20783 20784if expr a : '\(a\)' >/dev/null 2>&1 && 20785 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20786 as_expr=expr 20787else 20788 as_expr=false 20789fi 20790 20791if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20792 as_basename=basename 20793else 20794 as_basename=false 20795fi 20796 20797if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20798 as_dirname=dirname 20799else 20800 as_dirname=false 20801fi 20802 20803as_me=`$as_basename -- "$0" || 20804$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20805 X"$0" : 'X\(//\)$' \| \ 20806 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20807printf "%s\n" X/"$0" | 20808 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20809 s//\1/ 20810 q 20811 } 20812 /^X\/\(\/\/\)$/{ 20813 s//\1/ 20814 q 20815 } 20816 /^X\/\(\/\).*/{ 20817 s//\1/ 20818 q 20819 } 20820 s/.*/./; q'` 20821 20822# Avoid depending upon Character Ranges. 20823as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20824as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20825as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20826as_cr_digits='0123456789' 20827as_cr_alnum=$as_cr_Letters$as_cr_digits 20828 20829 20830# Determine whether it's possible to make 'echo' print without a newline. 20831# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20832# for compatibility with existing Makefiles. 20833ECHO_C= ECHO_N= ECHO_T= 20834case `echo -n x` in #((((( 20835-n*) 20836 case `echo 'xy\c'` in 20837 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20838 xy) ECHO_C='\c';; 20839 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20840 ECHO_T=' ';; 20841 esac;; 20842*) 20843 ECHO_N='-n';; 20844esac 20845 20846# For backward compatibility with old third-party macros, we provide 20847# the shell variables $as_echo and $as_echo_n. New code should use 20848# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20849as_echo='printf %s\n' 20850as_echo_n='printf %s' 20851 20852rm -f conf$$ conf$$.exe conf$$.file 20853if test -d conf$$.dir; then 20854 rm -f conf$$.dir/conf$$.file 20855else 20856 rm -f conf$$.dir 20857 mkdir conf$$.dir 2>/dev/null 20858fi 20859if (echo >conf$$.file) 2>/dev/null; then 20860 if ln -s conf$$.file conf$$ 2>/dev/null; then 20861 as_ln_s='ln -s' 20862 # ... but there are two gotchas: 20863 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20864 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20865 # In both cases, we have to default to `cp -pR'. 20866 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20867 as_ln_s='cp -pR' 20868 elif ln conf$$.file conf$$ 2>/dev/null; then 20869 as_ln_s=ln 20870 else 20871 as_ln_s='cp -pR' 20872 fi 20873else 20874 as_ln_s='cp -pR' 20875fi 20876rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20877rmdir conf$$.dir 2>/dev/null 20878 20879 20880# as_fn_mkdir_p 20881# ------------- 20882# Create "$as_dir" as a directory, including parents if necessary. 20883as_fn_mkdir_p () 20884{ 20885 20886 case $as_dir in #( 20887 -*) as_dir=./$as_dir;; 20888 esac 20889 test -d "$as_dir" || eval $as_mkdir_p || { 20890 as_dirs= 20891 while :; do 20892 case $as_dir in #( 20893 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20894 *) as_qdir=$as_dir;; 20895 esac 20896 as_dirs="'$as_qdir' $as_dirs" 20897 as_dir=`$as_dirname -- "$as_dir" || 20898$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20899 X"$as_dir" : 'X\(//\)[^/]' \| \ 20900 X"$as_dir" : 'X\(//\)$' \| \ 20901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20902printf "%s\n" X"$as_dir" | 20903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20904 s//\1/ 20905 q 20906 } 20907 /^X\(\/\/\)[^/].*/{ 20908 s//\1/ 20909 q 20910 } 20911 /^X\(\/\/\)$/{ 20912 s//\1/ 20913 q 20914 } 20915 /^X\(\/\).*/{ 20916 s//\1/ 20917 q 20918 } 20919 s/.*/./; q'` 20920 test -d "$as_dir" && break 20921 done 20922 test -z "$as_dirs" || eval "mkdir $as_dirs" 20923 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20924 20925 20926} # as_fn_mkdir_p 20927if mkdir -p . 2>/dev/null; then 20928 as_mkdir_p='mkdir -p "$as_dir"' 20929else 20930 test -d ./-p && rmdir ./-p 20931 as_mkdir_p=false 20932fi 20933 20934 20935# as_fn_executable_p FILE 20936# ----------------------- 20937# Test if FILE is an executable regular file. 20938as_fn_executable_p () 20939{ 20940 test -f "$1" && test -x "$1" 20941} # as_fn_executable_p 20942as_test_x='test -x' 20943as_executable_p=as_fn_executable_p 20944 20945# Sed expression to map a string onto a valid CPP name. 20946as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20947 20948# Sed expression to map a string onto a valid variable name. 20949as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20950 20951 20952exec 6>&1 20953## ----------------------------------- ## 20954## Main body of $CONFIG_STATUS script. ## 20955## ----------------------------------- ## 20956_ASEOF 20957test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20958 20959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20960# Save the log message, to keep $0 and so on meaningful, and to 20961# report actual input values of CONFIG_FILES etc. instead of their 20962# values after options handling. 20963ac_log=" 20964This file was extended by xf86-video-mach64 $as_me 6.9.7, which was 20965generated by GNU Autoconf 2.71. Invocation command line was 20966 20967 CONFIG_FILES = $CONFIG_FILES 20968 CONFIG_HEADERS = $CONFIG_HEADERS 20969 CONFIG_LINKS = $CONFIG_LINKS 20970 CONFIG_COMMANDS = $CONFIG_COMMANDS 20971 $ $0 $@ 20972 20973on `(hostname || uname -n) 2>/dev/null | sed 1q` 20974" 20975 20976_ACEOF 20977 20978case $ac_config_files in *" 20979"*) set x $ac_config_files; shift; ac_config_files=$*;; 20980esac 20981 20982case $ac_config_headers in *" 20983"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20984esac 20985 20986 20987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20988# Files that config.status was made for. 20989config_files="$ac_config_files" 20990config_headers="$ac_config_headers" 20991config_commands="$ac_config_commands" 20992 20993_ACEOF 20994 20995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20996ac_cs_usage="\ 20997\`$as_me' instantiates files and other configuration actions 20998from templates according to the current configuration. Unless the files 20999and actions are specified as TAGs, all are instantiated by default. 21000 21001Usage: $0 [OPTION]... [TAG]... 21002 21003 -h, --help print this help, then exit 21004 -V, --version print version number and configuration settings, then exit 21005 --config print configuration, then exit 21006 -q, --quiet, --silent 21007 do not print progress messages 21008 -d, --debug don't remove temporary files 21009 --recheck update $as_me by reconfiguring in the same conditions 21010 --file=FILE[:TEMPLATE] 21011 instantiate the configuration file FILE 21012 --header=FILE[:TEMPLATE] 21013 instantiate the configuration header FILE 21014 21015Configuration files: 21016$config_files 21017 21018Configuration headers: 21019$config_headers 21020 21021Configuration commands: 21022$config_commands 21023 21024Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/issues>." 21025 21026_ACEOF 21027ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21028ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21030ac_cs_config='$ac_cs_config_escaped' 21031ac_cs_version="\\ 21032xf86-video-mach64 config.status 6.9.7 21033configured by $0, generated by GNU Autoconf 2.71, 21034 with options \\"\$ac_cs_config\\" 21035 21036Copyright (C) 2021 Free Software Foundation, Inc. 21037This config.status script is free software; the Free Software Foundation 21038gives unlimited permission to copy, distribute and modify it." 21039 21040ac_pwd='$ac_pwd' 21041srcdir='$srcdir' 21042INSTALL='$INSTALL' 21043MKDIR_P='$MKDIR_P' 21044AWK='$AWK' 21045test -n "\$AWK" || AWK=awk 21046_ACEOF 21047 21048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21049# The default lists apply if the user does not specify any file. 21050ac_need_defaults=: 21051while test $# != 0 21052do 21053 case $1 in 21054 --*=?*) 21055 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21056 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21057 ac_shift=: 21058 ;; 21059 --*=) 21060 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21061 ac_optarg= 21062 ac_shift=: 21063 ;; 21064 *) 21065 ac_option=$1 21066 ac_optarg=$2 21067 ac_shift=shift 21068 ;; 21069 esac 21070 21071 case $ac_option in 21072 # Handling of the options. 21073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21074 ac_cs_recheck=: ;; 21075 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21076 printf "%s\n" "$ac_cs_version"; exit ;; 21077 --config | --confi | --conf | --con | --co | --c ) 21078 printf "%s\n" "$ac_cs_config"; exit ;; 21079 --debug | --debu | --deb | --de | --d | -d ) 21080 debug=: ;; 21081 --file | --fil | --fi | --f ) 21082 $ac_shift 21083 case $ac_optarg in 21084 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21085 '') as_fn_error $? "missing file argument" ;; 21086 esac 21087 as_fn_append CONFIG_FILES " '$ac_optarg'" 21088 ac_need_defaults=false;; 21089 --header | --heade | --head | --hea ) 21090 $ac_shift 21091 case $ac_optarg in 21092 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21093 esac 21094 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21095 ac_need_defaults=false;; 21096 --he | --h) 21097 # Conflict between --help and --header 21098 as_fn_error $? "ambiguous option: \`$1' 21099Try \`$0 --help' for more information.";; 21100 --help | --hel | -h ) 21101 printf "%s\n" "$ac_cs_usage"; exit ;; 21102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21103 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21104 ac_cs_silent=: ;; 21105 21106 # This is an error. 21107 -*) as_fn_error $? "unrecognized option: \`$1' 21108Try \`$0 --help' for more information." ;; 21109 21110 *) as_fn_append ac_config_targets " $1" 21111 ac_need_defaults=false ;; 21112 21113 esac 21114 shift 21115done 21116 21117ac_configure_extra_args= 21118 21119if $ac_cs_silent; then 21120 exec 6>/dev/null 21121 ac_configure_extra_args="$ac_configure_extra_args --silent" 21122fi 21123 21124_ACEOF 21125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21126if \$ac_cs_recheck; then 21127 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21128 shift 21129 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21130 CONFIG_SHELL='$SHELL' 21131 export CONFIG_SHELL 21132 exec "\$@" 21133fi 21134 21135_ACEOF 21136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21137exec 5>>config.log 21138{ 21139 echo 21140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21141## Running $as_me. ## 21142_ASBOX 21143 printf "%s\n" "$ac_log" 21144} >&5 21145 21146_ACEOF 21147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21148# 21149# INIT-COMMANDS 21150# 21151AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21152 21153 21154# The HP-UX ksh and POSIX shell print the target directory to stdout 21155# if CDPATH is set. 21156(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21157 21158sed_quote_subst='$sed_quote_subst' 21159double_quote_subst='$double_quote_subst' 21160delay_variable_subst='$delay_variable_subst' 21161enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21162macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21163macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21164enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21165pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21166enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21167shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21168SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21169ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21170PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21171host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21172host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21173host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21174build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21175build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21176build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21177SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21178Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21179GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21180EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21181FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21182LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21183NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21184LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21185max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21186ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21187exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21188lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21189lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21190lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21191lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21192lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21193reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21194reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21195FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21196OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21197deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21198file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21199file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21200want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21201DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21202sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21203AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21204lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21205AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21206archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21207STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21208RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21209old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21210old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21211old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21212lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21213CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21214CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21215compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21216GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21217lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21218lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21219lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21220lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21221lt_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"`' 21222lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21223nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21224lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21225lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21226objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21227MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21228lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21229lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21230lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21231lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21232lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21233need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21234MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21235DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21236NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21237LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21238OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21239OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21240libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21241shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21242extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21243archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21244enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21245export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21246whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21247compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21248old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21249old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21250archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21251archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21252module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21253module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21254with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21255allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21256no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21257hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21258hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21259hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21260hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21261hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21262hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21263hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21264inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21265link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21266always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21267export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21268exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21269include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21270prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21271postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21272file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21273variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21274need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21275need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21276version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21277runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21278shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21279shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21280libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21281library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21282soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21283install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21284postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21285postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21286finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21287finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21288hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21289sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21290configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21291configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21292hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21293enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21294enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21295enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21296old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21297striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21298 21299LTCC='$LTCC' 21300LTCFLAGS='$LTCFLAGS' 21301compiler='$compiler_DEFAULT' 21302 21303# A function that is used when there is no print builtin or printf. 21304func_fallback_echo () 21305{ 21306 eval 'cat <<_LTECHO_EOF 21307\$1 21308_LTECHO_EOF' 21309} 21310 21311# Quote evaled strings. 21312for var in SHELL \ 21313ECHO \ 21314PATH_SEPARATOR \ 21315SED \ 21316GREP \ 21317EGREP \ 21318FGREP \ 21319LD \ 21320NM \ 21321LN_S \ 21322lt_SP2NL \ 21323lt_NL2SP \ 21324reload_flag \ 21325FILECMD \ 21326OBJDUMP \ 21327deplibs_check_method \ 21328file_magic_cmd \ 21329file_magic_glob \ 21330want_nocaseglob \ 21331DLLTOOL \ 21332sharedlib_from_linklib_cmd \ 21333AR \ 21334archiver_list_spec \ 21335STRIP \ 21336RANLIB \ 21337CC \ 21338CFLAGS \ 21339compiler \ 21340lt_cv_sys_global_symbol_pipe \ 21341lt_cv_sys_global_symbol_to_cdecl \ 21342lt_cv_sys_global_symbol_to_import \ 21343lt_cv_sys_global_symbol_to_c_name_address \ 21344lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21345lt_cv_nm_interface \ 21346nm_file_list_spec \ 21347lt_cv_truncate_bin \ 21348lt_prog_compiler_no_builtin_flag \ 21349lt_prog_compiler_pic \ 21350lt_prog_compiler_wl \ 21351lt_prog_compiler_static \ 21352lt_cv_prog_compiler_c_o \ 21353need_locks \ 21354MANIFEST_TOOL \ 21355DSYMUTIL \ 21356NMEDIT \ 21357LIPO \ 21358OTOOL \ 21359OTOOL64 \ 21360shrext_cmds \ 21361export_dynamic_flag_spec \ 21362whole_archive_flag_spec \ 21363compiler_needs_object \ 21364with_gnu_ld \ 21365allow_undefined_flag \ 21366no_undefined_flag \ 21367hardcode_libdir_flag_spec \ 21368hardcode_libdir_separator \ 21369exclude_expsyms \ 21370include_expsyms \ 21371file_list_spec \ 21372variables_saved_for_relink \ 21373libname_spec \ 21374library_names_spec \ 21375soname_spec \ 21376install_override_mode \ 21377finish_eval \ 21378old_striplib \ 21379striplib; do 21380 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21381 *[\\\\\\\`\\"\\\$]*) 21382 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21383 ;; 21384 *) 21385 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21386 ;; 21387 esac 21388done 21389 21390# Double-quote double-evaled strings. 21391for var in reload_cmds \ 21392old_postinstall_cmds \ 21393old_postuninstall_cmds \ 21394old_archive_cmds \ 21395extract_expsyms_cmds \ 21396old_archive_from_new_cmds \ 21397old_archive_from_expsyms_cmds \ 21398archive_cmds \ 21399archive_expsym_cmds \ 21400module_cmds \ 21401module_expsym_cmds \ 21402export_symbols_cmds \ 21403prelink_cmds \ 21404postlink_cmds \ 21405postinstall_cmds \ 21406postuninstall_cmds \ 21407finish_cmds \ 21408sys_lib_search_path_spec \ 21409configure_time_dlsearch_path \ 21410configure_time_lt_sys_library_path; do 21411 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21412 *[\\\\\\\`\\"\\\$]*) 21413 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21414 ;; 21415 *) 21416 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21417 ;; 21418 esac 21419done 21420 21421ac_aux_dir='$ac_aux_dir' 21422 21423# See if we are running on zsh, and set the options that allow our 21424# commands through without removal of \ escapes INIT. 21425if test -n "\${ZSH_VERSION+set}"; then 21426 setopt NO_GLOB_SUBST 21427fi 21428 21429 21430 PACKAGE='$PACKAGE' 21431 VERSION='$VERSION' 21432 RM='$RM' 21433 ofile='$ofile' 21434 21435 21436 21437 21438_ACEOF 21439 21440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21441 21442# Handling of arguments. 21443for ac_config_target in $ac_config_targets 21444do 21445 case $ac_config_target in 21446 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21447 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21448 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21449 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21450 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21451 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21452 21453 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21454 esac 21455done 21456 21457 21458# If the user did not use the arguments to specify the items to instantiate, 21459# then the envvar interface is used. Set only those that are not. 21460# We use the long form for the default assignment because of an extremely 21461# bizarre bug on SunOS 4.1.3. 21462if $ac_need_defaults; then 21463 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21464 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21465 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21466fi 21467 21468# Have a temporary directory for convenience. Make it in the build tree 21469# simply because there is no reason against having it here, and in addition, 21470# creating and moving files from /tmp can sometimes cause problems. 21471# Hook for its removal unless debugging. 21472# Note that there is a small window in which the directory will not be cleaned: 21473# after its creation but before its name has been assigned to `$tmp'. 21474$debug || 21475{ 21476 tmp= ac_tmp= 21477 trap 'exit_status=$? 21478 : "${ac_tmp:=$tmp}" 21479 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21480' 0 21481 trap 'as_fn_exit 1' 1 2 13 15 21482} 21483# Create a (secure) tmp directory for tmp files. 21484 21485{ 21486 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21487 test -d "$tmp" 21488} || 21489{ 21490 tmp=./conf$$-$RANDOM 21491 (umask 077 && mkdir "$tmp") 21492} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21493ac_tmp=$tmp 21494 21495# Set up the scripts for CONFIG_FILES section. 21496# No need to generate them if there are no CONFIG_FILES. 21497# This happens for instance with `./config.status config.h'. 21498if test -n "$CONFIG_FILES"; then 21499 21500 21501ac_cr=`echo X | tr X '\015'` 21502# On cygwin, bash can eat \r inside `` if the user requested igncr. 21503# But we know of no other shell where ac_cr would be empty at this 21504# point, so we can use a bashism as a fallback. 21505if test "x$ac_cr" = x; then 21506 eval ac_cr=\$\'\\r\' 21507fi 21508ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21509if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21510 ac_cs_awk_cr='\\r' 21511else 21512 ac_cs_awk_cr=$ac_cr 21513fi 21514 21515echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21516_ACEOF 21517 21518 21519{ 21520 echo "cat >conf$$subs.awk <<_ACEOF" && 21521 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21522 echo "_ACEOF" 21523} >conf$$subs.sh || 21524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21525ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21526ac_delim='%!_!# ' 21527for ac_last_try in false false false false false :; do 21528 . ./conf$$subs.sh || 21529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21530 21531 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21532 if test $ac_delim_n = $ac_delim_num; then 21533 break 21534 elif $ac_last_try; then 21535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21536 else 21537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21538 fi 21539done 21540rm -f conf$$subs.sh 21541 21542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21543cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21544_ACEOF 21545sed -n ' 21546h 21547s/^/S["/; s/!.*/"]=/ 21548p 21549g 21550s/^[^!]*!// 21551:repl 21552t repl 21553s/'"$ac_delim"'$// 21554t delim 21555:nl 21556h 21557s/\(.\{148\}\)..*/\1/ 21558t more1 21559s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21560p 21561n 21562b repl 21563:more1 21564s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21565p 21566g 21567s/.\{148\}// 21568t nl 21569:delim 21570h 21571s/\(.\{148\}\)..*/\1/ 21572t more2 21573s/["\\]/\\&/g; s/^/"/; s/$/"/ 21574p 21575b 21576:more2 21577s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21578p 21579g 21580s/.\{148\}// 21581t delim 21582' <conf$$subs.awk | sed ' 21583/^[^""]/{ 21584 N 21585 s/\n// 21586} 21587' >>$CONFIG_STATUS || ac_write_fail=1 21588rm -f conf$$subs.awk 21589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21590_ACAWK 21591cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21592 for (key in S) S_is_set[key] = 1 21593 FS = "" 21594 21595} 21596{ 21597 line = $ 0 21598 nfields = split(line, field, "@") 21599 substed = 0 21600 len = length(field[1]) 21601 for (i = 2; i < nfields; i++) { 21602 key = field[i] 21603 keylen = length(key) 21604 if (S_is_set[key]) { 21605 value = S[key] 21606 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21607 len += length(value) + length(field[++i]) 21608 substed = 1 21609 } else 21610 len += 1 + keylen 21611 } 21612 21613 print line 21614} 21615 21616_ACAWK 21617_ACEOF 21618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21619if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21620 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21621else 21622 cat 21623fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21624 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21625_ACEOF 21626 21627# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21628# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21629# trailing colons and then remove the whole line if VPATH becomes empty 21630# (actually we leave an empty line to preserve line numbers). 21631if test "x$srcdir" = x.; then 21632 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21633h 21634s/// 21635s/^/:/ 21636s/[ ]*$/:/ 21637s/:\$(srcdir):/:/g 21638s/:\${srcdir}:/:/g 21639s/:@srcdir@:/:/g 21640s/^:*// 21641s/:*$// 21642x 21643s/\(=[ ]*\).*/\1/ 21644G 21645s/\n// 21646s/^[^=]*=[ ]*$// 21647}' 21648fi 21649 21650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21651fi # test -n "$CONFIG_FILES" 21652 21653# Set up the scripts for CONFIG_HEADERS section. 21654# No need to generate them if there are no CONFIG_HEADERS. 21655# This happens for instance with `./config.status Makefile'. 21656if test -n "$CONFIG_HEADERS"; then 21657cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21658BEGIN { 21659_ACEOF 21660 21661# Transform confdefs.h into an awk script `defines.awk', embedded as 21662# here-document in config.status, that substitutes the proper values into 21663# config.h.in to produce config.h. 21664 21665# Create a delimiter string that does not exist in confdefs.h, to ease 21666# handling of long lines. 21667ac_delim='%!_!# ' 21668for ac_last_try in false false :; do 21669 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21670 if test -z "$ac_tt"; then 21671 break 21672 elif $ac_last_try; then 21673 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21674 else 21675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21676 fi 21677done 21678 21679# For the awk script, D is an array of macro values keyed by name, 21680# likewise P contains macro parameters if any. Preserve backslash 21681# newline sequences. 21682 21683ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21684sed -n ' 21685s/.\{148\}/&'"$ac_delim"'/g 21686t rset 21687:rset 21688s/^[ ]*#[ ]*define[ ][ ]*/ / 21689t def 21690d 21691:def 21692s/\\$// 21693t bsnl 21694s/["\\]/\\&/g 21695s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21696D["\1"]=" \3"/p 21697s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21698d 21699:bsnl 21700s/["\\]/\\&/g 21701s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21702D["\1"]=" \3\\\\\\n"\\/p 21703t cont 21704s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21705t cont 21706d 21707:cont 21708n 21709s/.\{148\}/&'"$ac_delim"'/g 21710t clear 21711:clear 21712s/\\$// 21713t bsnlc 21714s/["\\]/\\&/g; s/^/"/; s/$/"/p 21715d 21716:bsnlc 21717s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21718b cont 21719' <confdefs.h | sed ' 21720s/'"$ac_delim"'/"\\\ 21721"/g' >>$CONFIG_STATUS || ac_write_fail=1 21722 21723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21724 for (key in D) D_is_set[key] = 1 21725 FS = "" 21726} 21727/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21728 line = \$ 0 21729 split(line, arg, " ") 21730 if (arg[1] == "#") { 21731 defundef = arg[2] 21732 mac1 = arg[3] 21733 } else { 21734 defundef = substr(arg[1], 2) 21735 mac1 = arg[2] 21736 } 21737 split(mac1, mac2, "(") #) 21738 macro = mac2[1] 21739 prefix = substr(line, 1, index(line, defundef) - 1) 21740 if (D_is_set[macro]) { 21741 # Preserve the white space surrounding the "#". 21742 print prefix "define", macro P[macro] D[macro] 21743 next 21744 } else { 21745 # Replace #undef with comments. This is necessary, for example, 21746 # in the case of _POSIX_SOURCE, which is predefined and required 21747 # on some systems where configure will not decide to define it. 21748 if (defundef == "undef") { 21749 print "/*", prefix defundef, macro, "*/" 21750 next 21751 } 21752 } 21753} 21754{ print } 21755_ACAWK 21756_ACEOF 21757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21758 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21759fi # test -n "$CONFIG_HEADERS" 21760 21761 21762eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21763shift 21764for ac_tag 21765do 21766 case $ac_tag in 21767 :[FHLC]) ac_mode=$ac_tag; continue;; 21768 esac 21769 case $ac_mode$ac_tag in 21770 :[FHL]*:*);; 21771 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21772 :[FH]-) ac_tag=-:-;; 21773 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21774 esac 21775 ac_save_IFS=$IFS 21776 IFS=: 21777 set x $ac_tag 21778 IFS=$ac_save_IFS 21779 shift 21780 ac_file=$1 21781 shift 21782 21783 case $ac_mode in 21784 :L) ac_source=$1;; 21785 :[FH]) 21786 ac_file_inputs= 21787 for ac_f 21788 do 21789 case $ac_f in 21790 -) ac_f="$ac_tmp/stdin";; 21791 *) # Look for the file first in the build tree, then in the source tree 21792 # (if the path is not absolute). The absolute path cannot be DOS-style, 21793 # because $ac_f cannot contain `:'. 21794 test -f "$ac_f" || 21795 case $ac_f in 21796 [\\/$]*) false;; 21797 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21798 esac || 21799 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21800 esac 21801 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21802 as_fn_append ac_file_inputs " '$ac_f'" 21803 done 21804 21805 # Let's still pretend it is `configure' which instantiates (i.e., don't 21806 # use $as_me), people would be surprised to read: 21807 # /* config.h. Generated by config.status. */ 21808 configure_input='Generated from '` 21809 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21810 `' by configure.' 21811 if test x"$ac_file" != x-; then 21812 configure_input="$ac_file. $configure_input" 21813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21814printf "%s\n" "$as_me: creating $ac_file" >&6;} 21815 fi 21816 # Neutralize special characters interpreted by sed in replacement strings. 21817 case $configure_input in #( 21818 *\&* | *\|* | *\\* ) 21819 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21820 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21821 *) ac_sed_conf_input=$configure_input;; 21822 esac 21823 21824 case $ac_tag in 21825 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21827 esac 21828 ;; 21829 esac 21830 21831 ac_dir=`$as_dirname -- "$ac_file" || 21832$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21833 X"$ac_file" : 'X\(//\)[^/]' \| \ 21834 X"$ac_file" : 'X\(//\)$' \| \ 21835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21836printf "%s\n" X"$ac_file" | 21837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21838 s//\1/ 21839 q 21840 } 21841 /^X\(\/\/\)[^/].*/{ 21842 s//\1/ 21843 q 21844 } 21845 /^X\(\/\/\)$/{ 21846 s//\1/ 21847 q 21848 } 21849 /^X\(\/\).*/{ 21850 s//\1/ 21851 q 21852 } 21853 s/.*/./; q'` 21854 as_dir="$ac_dir"; as_fn_mkdir_p 21855 ac_builddir=. 21856 21857case "$ac_dir" in 21858.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21859*) 21860 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21861 # A ".." for each directory in $ac_dir_suffix. 21862 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21863 case $ac_top_builddir_sub in 21864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21866 esac ;; 21867esac 21868ac_abs_top_builddir=$ac_pwd 21869ac_abs_builddir=$ac_pwd$ac_dir_suffix 21870# for backward compatibility: 21871ac_top_builddir=$ac_top_build_prefix 21872 21873case $srcdir in 21874 .) # We are building in place. 21875 ac_srcdir=. 21876 ac_top_srcdir=$ac_top_builddir_sub 21877 ac_abs_top_srcdir=$ac_pwd ;; 21878 [\\/]* | ?:[\\/]* ) # Absolute name. 21879 ac_srcdir=$srcdir$ac_dir_suffix; 21880 ac_top_srcdir=$srcdir 21881 ac_abs_top_srcdir=$srcdir ;; 21882 *) # Relative name. 21883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21884 ac_top_srcdir=$ac_top_build_prefix$srcdir 21885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21886esac 21887ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21888 21889 21890 case $ac_mode in 21891 :F) 21892 # 21893 # CONFIG_FILE 21894 # 21895 21896 case $INSTALL in 21897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21898 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21899 esac 21900 ac_MKDIR_P=$MKDIR_P 21901 case $MKDIR_P in 21902 [\\/$]* | ?:[\\/]* ) ;; 21903 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21904 esac 21905_ACEOF 21906 21907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21908# If the template does not know about datarootdir, expand it. 21909# FIXME: This hack should be removed a few years after 2.60. 21910ac_datarootdir_hack=; ac_datarootdir_seen= 21911ac_sed_dataroot=' 21912/datarootdir/ { 21913 p 21914 q 21915} 21916/@datadir@/p 21917/@docdir@/p 21918/@infodir@/p 21919/@localedir@/p 21920/@mandir@/p' 21921case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21922*datarootdir*) ac_datarootdir_seen=yes;; 21923*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21925printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21926_ACEOF 21927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21928 ac_datarootdir_hack=' 21929 s&@datadir@&$datadir&g 21930 s&@docdir@&$docdir&g 21931 s&@infodir@&$infodir&g 21932 s&@localedir@&$localedir&g 21933 s&@mandir@&$mandir&g 21934 s&\\\${datarootdir}&$datarootdir&g' ;; 21935esac 21936_ACEOF 21937 21938# Neutralize VPATH when `$srcdir' = `.'. 21939# Shell code in configure.ac might set extrasub. 21940# FIXME: do we really want to maintain this feature? 21941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21942ac_sed_extra="$ac_vpsub 21943$extrasub 21944_ACEOF 21945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21946:t 21947/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21948s|@configure_input@|$ac_sed_conf_input|;t t 21949s&@top_builddir@&$ac_top_builddir_sub&;t t 21950s&@top_build_prefix@&$ac_top_build_prefix&;t t 21951s&@srcdir@&$ac_srcdir&;t t 21952s&@abs_srcdir@&$ac_abs_srcdir&;t t 21953s&@top_srcdir@&$ac_top_srcdir&;t t 21954s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21955s&@builddir@&$ac_builddir&;t t 21956s&@abs_builddir@&$ac_abs_builddir&;t t 21957s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21958s&@INSTALL@&$ac_INSTALL&;t t 21959s&@MKDIR_P@&$ac_MKDIR_P&;t t 21960$ac_datarootdir_hack 21961" 21962eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21963 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21964 21965test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21966 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21968 "$ac_tmp/out"`; test -z "$ac_out"; } && 21969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21970which seems to be undefined. Please make sure it is defined" >&5 21971printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21972which seems to be undefined. Please make sure it is defined" >&2;} 21973 21974 rm -f "$ac_tmp/stdin" 21975 case $ac_file in 21976 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21977 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21978 esac \ 21979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21980 ;; 21981 :H) 21982 # 21983 # CONFIG_HEADER 21984 # 21985 if test x"$ac_file" != x-; then 21986 { 21987 printf "%s\n" "/* $configure_input */" >&1 \ 21988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21989 } >"$ac_tmp/config.h" \ 21990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21991 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21993printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21994 else 21995 rm -f "$ac_file" 21996 mv "$ac_tmp/config.h" "$ac_file" \ 21997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21998 fi 21999 else 22000 printf "%s\n" "/* $configure_input */" >&1 \ 22001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22002 || as_fn_error $? "could not create -" "$LINENO" 5 22003 fi 22004# Compute "$ac_file"'s index in $config_headers. 22005_am_arg="$ac_file" 22006_am_stamp_count=1 22007for _am_header in $config_headers :; do 22008 case $_am_header in 22009 $_am_arg | $_am_arg:* ) 22010 break ;; 22011 * ) 22012 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22013 esac 22014done 22015echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22016$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22017 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22018 X"$_am_arg" : 'X\(//\)$' \| \ 22019 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22020printf "%s\n" X"$_am_arg" | 22021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22022 s//\1/ 22023 q 22024 } 22025 /^X\(\/\/\)[^/].*/{ 22026 s//\1/ 22027 q 22028 } 22029 /^X\(\/\/\)$/{ 22030 s//\1/ 22031 q 22032 } 22033 /^X\(\/\).*/{ 22034 s//\1/ 22035 q 22036 } 22037 s/.*/./; q'`/stamp-h$_am_stamp_count 22038 ;; 22039 22040 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22041printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22042 ;; 22043 esac 22044 22045 22046 case $ac_file$ac_mode in 22047 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22048 # Older Autoconf quotes --file arguments for eval, but not when files 22049 # are listed without --file. Let's play safe and only enable the eval 22050 # if we detect the quoting. 22051 # TODO: see whether this extra hack can be removed once we start 22052 # requiring Autoconf 2.70 or later. 22053 case $CONFIG_FILES in #( 22054 *\'*) : 22055 eval set x "$CONFIG_FILES" ;; #( 22056 *) : 22057 set x $CONFIG_FILES ;; #( 22058 *) : 22059 ;; 22060esac 22061 shift 22062 # Used to flag and report bootstrapping failures. 22063 am_rc=0 22064 for am_mf 22065 do 22066 # Strip MF so we end up with the name of the file. 22067 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22068 # Check whether this is an Automake generated Makefile which includes 22069 # dependency-tracking related rules and includes. 22070 # Grep'ing the whole file directly is not great: AIX grep has a line 22071 # limit of 2048, but all sed's we know have understand at least 4000. 22072 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22073 || continue 22074 am_dirpart=`$as_dirname -- "$am_mf" || 22075$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22076 X"$am_mf" : 'X\(//\)[^/]' \| \ 22077 X"$am_mf" : 'X\(//\)$' \| \ 22078 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22079printf "%s\n" X"$am_mf" | 22080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22081 s//\1/ 22082 q 22083 } 22084 /^X\(\/\/\)[^/].*/{ 22085 s//\1/ 22086 q 22087 } 22088 /^X\(\/\/\)$/{ 22089 s//\1/ 22090 q 22091 } 22092 /^X\(\/\).*/{ 22093 s//\1/ 22094 q 22095 } 22096 s/.*/./; q'` 22097 am_filepart=`$as_basename -- "$am_mf" || 22098$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22099 X"$am_mf" : 'X\(//\)$' \| \ 22100 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22101printf "%s\n" X/"$am_mf" | 22102 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22103 s//\1/ 22104 q 22105 } 22106 /^X\/\(\/\/\)$/{ 22107 s//\1/ 22108 q 22109 } 22110 /^X\/\(\/\).*/{ 22111 s//\1/ 22112 q 22113 } 22114 s/.*/./; q'` 22115 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22116 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22117 | $MAKE -f - am--depfiles" >&5 22118 (cd "$am_dirpart" \ 22119 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22120 | $MAKE -f - am--depfiles) >&5 2>&5 22121 ac_status=$? 22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22123 (exit $ac_status); } || am_rc=$? 22124 done 22125 if test $am_rc -ne 0; then 22126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22127printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22128as_fn_error $? "Something went wrong bootstrapping makefile fragments 22129 for automatic dependency tracking. If GNU make was not used, consider 22130 re-running the configure script with MAKE=\"gmake\" (or whatever is 22131 necessary). You can also try re-running configure with the 22132 '--disable-dependency-tracking' option to at least be able to build 22133 the package (albeit without support for automatic dependency tracking). 22134See \`config.log' for more details" "$LINENO" 5; } 22135 fi 22136 { am_dirpart=; unset am_dirpart;} 22137 { am_filepart=; unset am_filepart;} 22138 { am_mf=; unset am_mf;} 22139 { am_rc=; unset am_rc;} 22140 rm -f conftest-deps.mk 22141} 22142 ;; 22143 "libtool":C) 22144 22145 # See if we are running on zsh, and set the options that allow our 22146 # commands through without removal of \ escapes. 22147 if test -n "${ZSH_VERSION+set}"; then 22148 setopt NO_GLOB_SUBST 22149 fi 22150 22151 cfgfile=${ofile}T 22152 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22153 $RM "$cfgfile" 22154 22155 cat <<_LT_EOF >> "$cfgfile" 22156#! $SHELL 22157# Generated automatically by $as_me ($PACKAGE) $VERSION 22158# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22159# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22160 22161# Provide generalized library-building support services. 22162# Written by Gordon Matzigkeit, 1996 22163 22164# Copyright (C) 2014 Free Software Foundation, Inc. 22165# This is free software; see the source for copying conditions. There is NO 22166# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22167 22168# GNU Libtool is free software; you can redistribute it and/or modify 22169# it under the terms of the GNU General Public License as published by 22170# the Free Software Foundation; either version 2 of of the License, or 22171# (at your option) any later version. 22172# 22173# As a special exception to the GNU General Public License, if you 22174# distribute this file as part of a program or library that is built 22175# using GNU Libtool, you may include this file under the same 22176# distribution terms that you use for the rest of that program. 22177# 22178# GNU Libtool is distributed in the hope that it will be useful, but 22179# WITHOUT ANY WARRANTY; without even the implied warranty of 22180# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22181# GNU General Public License for more details. 22182# 22183# You should have received a copy of the GNU General Public License 22184# along with this program. If not, see <http://www.gnu.org/licenses/>. 22185 22186 22187# The names of the tagged configurations supported by this script. 22188available_tags='' 22189 22190# Configured defaults for sys_lib_dlsearch_path munging. 22191: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22192 22193# ### BEGIN LIBTOOL CONFIG 22194 22195# Whether or not to build static libraries. 22196build_old_libs=$enable_static 22197 22198# Which release of libtool.m4 was used? 22199macro_version=$macro_version 22200macro_revision=$macro_revision 22201 22202# Whether or not to build shared libraries. 22203build_libtool_libs=$enable_shared 22204 22205# What type of objects to build. 22206pic_mode=$pic_mode 22207 22208# Whether or not to optimize for fast installation. 22209fast_install=$enable_fast_install 22210 22211# Shared archive member basename,for filename based shared library versioning on AIX. 22212shared_archive_member_spec=$shared_archive_member_spec 22213 22214# Shell to use when invoking shell scripts. 22215SHELL=$lt_SHELL 22216 22217# An echo program that protects backslashes. 22218ECHO=$lt_ECHO 22219 22220# The PATH separator for the build system. 22221PATH_SEPARATOR=$lt_PATH_SEPARATOR 22222 22223# The host system. 22224host_alias=$host_alias 22225host=$host 22226host_os=$host_os 22227 22228# The build system. 22229build_alias=$build_alias 22230build=$build 22231build_os=$build_os 22232 22233# A sed program that does not truncate output. 22234SED=$lt_SED 22235 22236# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22237Xsed="\$SED -e 1s/^X//" 22238 22239# A grep program that handles long lines. 22240GREP=$lt_GREP 22241 22242# An ERE matcher. 22243EGREP=$lt_EGREP 22244 22245# A literal string matcher. 22246FGREP=$lt_FGREP 22247 22248# A BSD- or MS-compatible name lister. 22249NM=$lt_NM 22250 22251# Whether we need soft or hard links. 22252LN_S=$lt_LN_S 22253 22254# What is the maximum length of a command? 22255max_cmd_len=$max_cmd_len 22256 22257# Object file suffix (normally "o"). 22258objext=$ac_objext 22259 22260# Executable file suffix (normally ""). 22261exeext=$exeext 22262 22263# whether the shell understands "unset". 22264lt_unset=$lt_unset 22265 22266# turn spaces into newlines. 22267SP2NL=$lt_lt_SP2NL 22268 22269# turn newlines into spaces. 22270NL2SP=$lt_lt_NL2SP 22271 22272# convert \$build file names to \$host format. 22273to_host_file_cmd=$lt_cv_to_host_file_cmd 22274 22275# convert \$build files to toolchain format. 22276to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22277 22278# A file(cmd) program that detects file types. 22279FILECMD=$lt_FILECMD 22280 22281# An object symbol dumper. 22282OBJDUMP=$lt_OBJDUMP 22283 22284# Method to check whether dependent libraries are shared objects. 22285deplibs_check_method=$lt_deplibs_check_method 22286 22287# Command to use when deplibs_check_method = "file_magic". 22288file_magic_cmd=$lt_file_magic_cmd 22289 22290# How to find potential files when deplibs_check_method = "file_magic". 22291file_magic_glob=$lt_file_magic_glob 22292 22293# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22294want_nocaseglob=$lt_want_nocaseglob 22295 22296# DLL creation program. 22297DLLTOOL=$lt_DLLTOOL 22298 22299# Command to associate shared and link libraries. 22300sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22301 22302# The archiver. 22303AR=$lt_AR 22304 22305# Flags to create an archive (by configure). 22306lt_ar_flags=$lt_ar_flags 22307 22308# Flags to create an archive. 22309AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22310 22311# How to feed a file listing to the archiver. 22312archiver_list_spec=$lt_archiver_list_spec 22313 22314# A symbol stripping program. 22315STRIP=$lt_STRIP 22316 22317# Commands used to install an old-style archive. 22318RANLIB=$lt_RANLIB 22319old_postinstall_cmds=$lt_old_postinstall_cmds 22320old_postuninstall_cmds=$lt_old_postuninstall_cmds 22321 22322# Whether to use a lock for old archive extraction. 22323lock_old_archive_extraction=$lock_old_archive_extraction 22324 22325# A C compiler. 22326LTCC=$lt_CC 22327 22328# LTCC compiler flags. 22329LTCFLAGS=$lt_CFLAGS 22330 22331# Take the output of nm and produce a listing of raw symbols and C names. 22332global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22333 22334# Transform the output of nm in a proper C declaration. 22335global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22336 22337# Transform the output of nm into a list of symbols to manually relocate. 22338global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22339 22340# Transform the output of nm in a C name address pair. 22341global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22342 22343# Transform the output of nm in a C name address pair when lib prefix is needed. 22344global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22345 22346# The name lister interface. 22347nm_interface=$lt_lt_cv_nm_interface 22348 22349# Specify filename containing input files for \$NM. 22350nm_file_list_spec=$lt_nm_file_list_spec 22351 22352# The root where to search for dependent libraries,and where our libraries should be installed. 22353lt_sysroot=$lt_sysroot 22354 22355# Command to truncate a binary pipe. 22356lt_truncate_bin=$lt_lt_cv_truncate_bin 22357 22358# The name of the directory that contains temporary libtool files. 22359objdir=$objdir 22360 22361# Used to examine libraries when file_magic_cmd begins with "file". 22362MAGIC_CMD=$MAGIC_CMD 22363 22364# Must we lock files when doing compilation? 22365need_locks=$lt_need_locks 22366 22367# Manifest tool. 22368MANIFEST_TOOL=$lt_MANIFEST_TOOL 22369 22370# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22371DSYMUTIL=$lt_DSYMUTIL 22372 22373# Tool to change global to local symbols on Mac OS X. 22374NMEDIT=$lt_NMEDIT 22375 22376# Tool to manipulate fat objects and archives on Mac OS X. 22377LIPO=$lt_LIPO 22378 22379# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22380OTOOL=$lt_OTOOL 22381 22382# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22383OTOOL64=$lt_OTOOL64 22384 22385# Old archive suffix (normally "a"). 22386libext=$libext 22387 22388# Shared library suffix (normally ".so"). 22389shrext_cmds=$lt_shrext_cmds 22390 22391# The commands to extract the exported symbol list from a shared archive. 22392extract_expsyms_cmds=$lt_extract_expsyms_cmds 22393 22394# Variables whose values should be saved in libtool wrapper scripts and 22395# restored at link time. 22396variables_saved_for_relink=$lt_variables_saved_for_relink 22397 22398# Do we need the "lib" prefix for modules? 22399need_lib_prefix=$need_lib_prefix 22400 22401# Do we need a version for libraries? 22402need_version=$need_version 22403 22404# Library versioning type. 22405version_type=$version_type 22406 22407# Shared library runtime path variable. 22408runpath_var=$runpath_var 22409 22410# Shared library path variable. 22411shlibpath_var=$shlibpath_var 22412 22413# Is shlibpath searched before the hard-coded library search path? 22414shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22415 22416# Format of library name prefix. 22417libname_spec=$lt_libname_spec 22418 22419# List of archive names. First name is the real one, the rest are links. 22420# The last name is the one that the linker finds with -lNAME 22421library_names_spec=$lt_library_names_spec 22422 22423# The coded name of the library, if different from the real name. 22424soname_spec=$lt_soname_spec 22425 22426# Permission mode override for installation of shared libraries. 22427install_override_mode=$lt_install_override_mode 22428 22429# Command to use after installation of a shared archive. 22430postinstall_cmds=$lt_postinstall_cmds 22431 22432# Command to use after uninstallation of a shared archive. 22433postuninstall_cmds=$lt_postuninstall_cmds 22434 22435# Commands used to finish a libtool library installation in a directory. 22436finish_cmds=$lt_finish_cmds 22437 22438# As "finish_cmds", except a single script fragment to be evaled but 22439# not shown. 22440finish_eval=$lt_finish_eval 22441 22442# Whether we should hardcode library paths into libraries. 22443hardcode_into_libs=$hardcode_into_libs 22444 22445# Compile-time system search path for libraries. 22446sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22447 22448# Detected run-time system search path for libraries. 22449sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22450 22451# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22452configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22453 22454# Whether dlopen is supported. 22455dlopen_support=$enable_dlopen 22456 22457# Whether dlopen of programs is supported. 22458dlopen_self=$enable_dlopen_self 22459 22460# Whether dlopen of statically linked programs is supported. 22461dlopen_self_static=$enable_dlopen_self_static 22462 22463# Commands to strip libraries. 22464old_striplib=$lt_old_striplib 22465striplib=$lt_striplib 22466 22467 22468# The linker used to build libraries. 22469LD=$lt_LD 22470 22471# How to create reloadable object files. 22472reload_flag=$lt_reload_flag 22473reload_cmds=$lt_reload_cmds 22474 22475# Commands used to build an old-style archive. 22476old_archive_cmds=$lt_old_archive_cmds 22477 22478# A language specific compiler. 22479CC=$lt_compiler 22480 22481# Is the compiler the GNU compiler? 22482with_gcc=$GCC 22483 22484# Compiler flag to turn off builtin functions. 22485no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22486 22487# Additional compiler flags for building library objects. 22488pic_flag=$lt_lt_prog_compiler_pic 22489 22490# How to pass a linker flag through the compiler. 22491wl=$lt_lt_prog_compiler_wl 22492 22493# Compiler flag to prevent dynamic linking. 22494link_static_flag=$lt_lt_prog_compiler_static 22495 22496# Does compiler simultaneously support -c and -o options? 22497compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22498 22499# Whether or not to add -lc for building shared libraries. 22500build_libtool_need_lc=$archive_cmds_need_lc 22501 22502# Whether or not to disallow shared libs when runtime libs are static. 22503allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22504 22505# Compiler flag to allow reflexive dlopens. 22506export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22507 22508# Compiler flag to generate shared objects directly from archives. 22509whole_archive_flag_spec=$lt_whole_archive_flag_spec 22510 22511# Whether the compiler copes with passing no objects directly. 22512compiler_needs_object=$lt_compiler_needs_object 22513 22514# Create an old-style archive from a shared archive. 22515old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22516 22517# Create a temporary old-style archive to link instead of a shared archive. 22518old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22519 22520# Commands used to build a shared archive. 22521archive_cmds=$lt_archive_cmds 22522archive_expsym_cmds=$lt_archive_expsym_cmds 22523 22524# Commands used to build a loadable module if different from building 22525# a shared archive. 22526module_cmds=$lt_module_cmds 22527module_expsym_cmds=$lt_module_expsym_cmds 22528 22529# Whether we are building with GNU ld or not. 22530with_gnu_ld=$lt_with_gnu_ld 22531 22532# Flag that allows shared libraries with undefined symbols to be built. 22533allow_undefined_flag=$lt_allow_undefined_flag 22534 22535# Flag that enforces no undefined symbols. 22536no_undefined_flag=$lt_no_undefined_flag 22537 22538# Flag to hardcode \$libdir into a binary during linking. 22539# This must work even if \$libdir does not exist 22540hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22541 22542# Whether we need a single "-rpath" flag with a separated argument. 22543hardcode_libdir_separator=$lt_hardcode_libdir_separator 22544 22545# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22546# DIR into the resulting binary. 22547hardcode_direct=$hardcode_direct 22548 22549# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22550# DIR into the resulting binary and the resulting library dependency is 22551# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22552# library is relocated. 22553hardcode_direct_absolute=$hardcode_direct_absolute 22554 22555# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22556# into the resulting binary. 22557hardcode_minus_L=$hardcode_minus_L 22558 22559# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22560# into the resulting binary. 22561hardcode_shlibpath_var=$hardcode_shlibpath_var 22562 22563# Set to "yes" if building a shared library automatically hardcodes DIR 22564# into the library and all subsequent libraries and executables linked 22565# against it. 22566hardcode_automatic=$hardcode_automatic 22567 22568# Set to yes if linker adds runtime paths of dependent libraries 22569# to runtime path list. 22570inherit_rpath=$inherit_rpath 22571 22572# Whether libtool must link a program against all its dependency libraries. 22573link_all_deplibs=$link_all_deplibs 22574 22575# Set to "yes" if exported symbols are required. 22576always_export_symbols=$always_export_symbols 22577 22578# The commands to list exported symbols. 22579export_symbols_cmds=$lt_export_symbols_cmds 22580 22581# Symbols that should not be listed in the preloaded symbols. 22582exclude_expsyms=$lt_exclude_expsyms 22583 22584# Symbols that must always be exported. 22585include_expsyms=$lt_include_expsyms 22586 22587# Commands necessary for linking programs (against libraries) with templates. 22588prelink_cmds=$lt_prelink_cmds 22589 22590# Commands necessary for finishing linking programs. 22591postlink_cmds=$lt_postlink_cmds 22592 22593# Specify filename containing input files. 22594file_list_spec=$lt_file_list_spec 22595 22596# How to hardcode a shared library path into an executable. 22597hardcode_action=$hardcode_action 22598 22599# ### END LIBTOOL CONFIG 22600 22601_LT_EOF 22602 22603 cat <<'_LT_EOF' >> "$cfgfile" 22604 22605# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22606 22607# func_munge_path_list VARIABLE PATH 22608# ----------------------------------- 22609# VARIABLE is name of variable containing _space_ separated list of 22610# directories to be munged by the contents of PATH, which is string 22611# having a format: 22612# "DIR[:DIR]:" 22613# string "DIR[ DIR]" will be prepended to VARIABLE 22614# ":DIR[:DIR]" 22615# string "DIR[ DIR]" will be appended to VARIABLE 22616# "DIRP[:DIRP]::[DIRA:]DIRA" 22617# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22618# "DIRA[ DIRA]" will be appended to VARIABLE 22619# "DIR[:DIR]" 22620# VARIABLE will be replaced by "DIR[ DIR]" 22621func_munge_path_list () 22622{ 22623 case x$2 in 22624 x) 22625 ;; 22626 *:) 22627 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22628 ;; 22629 x:*) 22630 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22631 ;; 22632 *::*) 22633 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22634 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22635 ;; 22636 *) 22637 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22638 ;; 22639 esac 22640} 22641 22642 22643# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22644func_cc_basename () 22645{ 22646 for cc_temp in $*""; do 22647 case $cc_temp in 22648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22650 \-*) ;; 22651 *) break;; 22652 esac 22653 done 22654 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22655} 22656 22657 22658# ### END FUNCTIONS SHARED WITH CONFIGURE 22659 22660_LT_EOF 22661 22662 case $host_os in 22663 aix3*) 22664 cat <<\_LT_EOF >> "$cfgfile" 22665# AIX sometimes has problems with the GCC collect2 program. For some 22666# reason, if we set the COLLECT_NAMES environment variable, the problems 22667# vanish in a puff of smoke. 22668if test set != "${COLLECT_NAMES+set}"; then 22669 COLLECT_NAMES= 22670 export COLLECT_NAMES 22671fi 22672_LT_EOF 22673 ;; 22674 esac 22675 22676 22677 22678ltmain=$ac_aux_dir/ltmain.sh 22679 22680 22681 # We use sed instead of cat because bash on DJGPP gets confused if 22682 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22683 # text mode, it properly converts lines to CR/LF. This bash problem 22684 # is reportedly fixed, but why not run on old versions too? 22685 $SED '$q' "$ltmain" >> "$cfgfile" \ 22686 || (rm -f "$cfgfile"; exit 1) 22687 22688 mv -f "$cfgfile" "$ofile" || 22689 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22690 chmod +x "$ofile" 22691 22692 ;; 22693 22694 esac 22695done # for ac_tag 22696 22697 22698as_fn_exit 0 22699_ACEOF 22700ac_clean_files=$ac_clean_files_save 22701 22702test $ac_write_fail = 0 || 22703 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22704 22705 22706# configure is writing to config.log, and then calls config.status. 22707# config.status does its own redirection, appending to config.log. 22708# Unfortunately, on DOS this fails, as config.log is still kept open 22709# by configure, so config.status won't be able to write to it; its 22710# output is simply discarded. So we exec the FD to /dev/null, 22711# effectively closing config.log, so it can be properly (re)opened and 22712# appended to by config.status. When coming back to configure, we 22713# need to make the FD available again. 22714if test "$no_create" != yes; then 22715 ac_cs_success=: 22716 ac_config_status_args= 22717 test "$silent" = yes && 22718 ac_config_status_args="$ac_config_status_args --quiet" 22719 exec 5>/dev/null 22720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22721 exec 5>>config.log 22722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22723 # would make configure fail if this is the last instruction. 22724 $ac_cs_success || as_fn_exit 1 22725fi 22726if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22728printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22729fi 22730 22731 22732